@c8y/ngx-components 1023.4.5 → 1023.5.3
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/context-dashboard/index.d.ts +4 -1
- package/context-dashboard/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +4 -2
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-tenants.mjs +2 -2
- package/fesm2022/c8y-ngx-components-tenants.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +6 -2
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Input, Directive, createEnvironmentInjector, InjectionToken, Optional,
|
|
|
3
3
|
import * as i1$3 from 'ngx-bootstrap/dropdown';
|
|
4
4
|
import { BsDropdownModule, BsDropdownDirective } from 'ngx-bootstrap/dropdown';
|
|
5
5
|
import { CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
|
|
6
|
-
import { castArray, flatten, uniq, sortBy, groupBy, camelCase, isEqual, isUndefined, throttle as throttle$1, each, mapValues, mapKeys, keys, get, isNaN as isNaN$1, isFinite, forEach, assign, min, every, first, map as map$1, find, negate, upperFirst, memoize as memoize$1, property, some, entries, omitBy, isDate, pick, flatMap, orderBy,
|
|
6
|
+
import { castArray, flatten, uniq, sortBy, groupBy, camelCase, isEqual, isUndefined, throttle as throttle$1, each, mapValues, mapKeys, keys, get, isNaN as isNaN$1, isFinite, forEach, assign, min, every, first, map as map$1, find, negate, upperFirst, memoize as memoize$1, isEmpty, property, some, entries, omitBy, isDate, pick, flatMap, orderBy, filter as filter$2, snakeCase, matches, escape, escapeRegExp, assignWith, set, cloneDeep, uniqBy, toNumber, isEqualWith, clone, omit, has, transform, identity, unset, flow, findIndex as findIndex$1, isNil, chunk, values, union, without, indexOf, kebabCase, forOwn } from 'lodash-es';
|
|
7
7
|
import { merge, of, defer, combineLatest, race, isObservable, from, Subject, BehaviorSubject, ReplaySubject, firstValueFrom, lastValueFrom, NEVER, Observable, startWith as startWith$1, filter as filter$1, tap as tap$1, mergeMap, fromEvent, pipe, throwError, concat, map as map$2, fromEventPattern, switchMap as switchMap$1, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, shareReplay as shareReplay$1, timer, catchError as catchError$1, empty, forkJoin, interval } from 'rxjs';
|
|
8
8
|
import { map, distinctUntilChanged, filter, startWith, switchMap, shareReplay, take, scan, takeUntil, tap, catchError, debounceTime, share, first as first$1, retryWhen, delay, concatMap, debounce, sample, withLatestFrom, mergeMap as mergeMap$1, every as every$1, toArray, merge as merge$1, expand, mapTo, skip, reduce, finalize, combineLatestWith } from 'rxjs/operators';
|
|
9
9
|
import * as i1 from '@c8y/client';
|
|
@@ -7059,6 +7059,9 @@ class Permissions {
|
|
|
7059
7059
|
*
|
|
7060
7060
|
*/
|
|
7061
7061
|
async checkWithRequest(mo) {
|
|
7062
|
+
if (isEmpty(mo.id)) {
|
|
7063
|
+
return Promise.resolve(false);
|
|
7064
|
+
}
|
|
7062
7065
|
const moId = mo.id.toString();
|
|
7063
7066
|
const partialUpdateObject = {
|
|
7064
7067
|
id: moId
|
|
@@ -7276,8 +7279,9 @@ class MarkdownToHtmlPipe {
|
|
|
7276
7279
|
const originalRendererLink = renderer.link;
|
|
7277
7280
|
renderer.link = link => {
|
|
7278
7281
|
const { href } = link;
|
|
7282
|
+
const url = new URL(href, window.location.origin);
|
|
7279
7283
|
const { hostname, protocol } = window.location;
|
|
7280
|
-
const localLink =
|
|
7284
|
+
const localLink = url.hostname === hostname && url.protocol === protocol;
|
|
7281
7285
|
const html = originalRendererLink.call(renderer, link);
|
|
7282
7286
|
return localLink ? html : html.replace(/^<a /, anchorWithAttributes);
|
|
7283
7287
|
};
|