@iyio/common
Advanced tools
Comparing version 0.0.32 to 0.0.33
{ | ||
"name": "@iyio/common", | ||
"version": "0.0.32", | ||
"version": "0.0.33", | ||
"type": "module", | ||
@@ -11,2 +11,3 @@ "sideEffects": false, | ||
"rxjs": "^7.5.7", | ||
"date-fns": "^2.29.3", | ||
"uuid": "^9.0.0", | ||
@@ -13,0 +14,0 @@ "tslib": "^2.3.0" |
@@ -37,2 +37,3 @@ export * from './lib/array'; | ||
export * from './lib/PromiseSource'; | ||
export * from './lib/query-ctrl-lib'; | ||
export * from './lib/query-static-operators'; | ||
@@ -46,2 +47,4 @@ export * from './lib/query-types'; | ||
export * from './lib/scope-types'; | ||
export * from './lib/series-ctrls'; | ||
export * from './lib/series-lib'; | ||
export * from './lib/series-types'; | ||
@@ -48,0 +51,0 @@ export * from './lib/Setter'; |
@@ -37,2 +37,3 @@ export * from './lib/array'; | ||
export * from './lib/PromiseSource'; | ||
export * from './lib/query-ctrl-lib'; | ||
export * from './lib/query-static-operators'; | ||
@@ -46,2 +47,4 @@ export * from './lib/query-types'; | ||
export * from './lib/scope-types'; | ||
export * from './lib/series-ctrls'; | ||
export * from './lib/series-lib'; | ||
export * from './lib/series-types'; | ||
@@ -48,0 +51,0 @@ export * from './lib/Setter'; |
@@ -11,3 +11,3 @@ import { UnsupportedError } from "./errors"; | ||
static isSupported() { | ||
return (typeof global.history !== 'undefined') || (typeof global.location !== 'undefined'); | ||
return (typeof globalThis.history !== 'undefined') || (typeof globalThis.location !== 'undefined'); | ||
} | ||
@@ -14,0 +14,0 @@ push(path, query) { |
@@ -22,3 +22,2 @@ import { BehaviorSubject } from "rxjs/internal/BehaviorSubject"; | ||
} | ||
export declare const defaultQueryRecordStorePath = "/QueryRecords"; | ||
export interface QueryCtrlOptions { | ||
@@ -48,3 +47,3 @@ store?: IStore; | ||
private readonly querySub; | ||
constructor({ store, queryRecordStorePath }?: QueryCtrlOptions); | ||
constructor({ store, queryRecordStorePath, }?: QueryCtrlOptions); | ||
dispose(): void; | ||
@@ -51,0 +50,0 @@ loadAsync(queryOptions: QueryOptions | null | undefined): Promise<void>; |
@@ -1,2 +0,3 @@ | ||
import { defaultQueryRecordStorePath, QueryCtrl } from "./QueryCtrl"; | ||
import { defaultQueryRecordStorePath } from "./query-ctrl-lib"; | ||
import { QueryCtrl } from "./QueryCtrl"; | ||
import { defineServiceFactory, defineStringParam } from "./scope-lib"; | ||
@@ -3,0 +4,0 @@ export const queryCtrlFactory = defineServiceFactory('queryCtrlFactory', scope => QueryCtrl.fromScope(scope)); |
@@ -7,2 +7,3 @@ import { __awaiter } from "tslib"; | ||
import { deepClone, deepCompare } from "./object"; | ||
import { defaultQueryRecordStorePath } from "./query-ctrl-lib"; | ||
import { sortStaticQuery } from "./query-static-operators"; | ||
@@ -14,5 +15,4 @@ import { isBaseQueryRecord, isQuery, isQueryWithData } from "./query-types"; | ||
import { storeRoot } from "./store.deps"; | ||
export const defaultQueryRecordStorePath = '/QueryRecords'; | ||
export class QueryCtrl { | ||
constructor({ store = storeRoot(), queryRecordStorePath = defaultQueryRecordStorePath } = {}) { | ||
constructor({ store = storeRoot(), queryRecordStorePath = defaultQueryRecordStorePath, } = {}) { | ||
this._query = new BehaviorSubject(null); | ||
@@ -19,0 +19,0 @@ this._state = new BehaviorSubject({}); |
@@ -27,5 +27,5 @@ import { getUriHost, getUriProtocol } from "./uri"; | ||
globalThis.location && | ||
((_a = getUriHost(path)) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== global.location.host | ||
((_a = getUriHost(path)) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== globalThis.location.host | ||
? true : false); | ||
}; | ||
//# sourceMappingURL=ui-lib.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
444456
233
7222
4