igniteui-webcomponents-grids 5.0.0-beta.0 → 5.0.0-beta.2
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/grids/combined.js +21 -22
- package/grids/lib/igc-grid-state-component.d.ts +1 -0
- package/grids/lib/igc-pivot-aggregator.d.ts +1 -1
- package/grids/lib/igc-pivot-configuration.d.ts +1 -1
- package/grids/lib/igc-pivot-dimension.d.ts +1 -1
- package/grids/lib/igc-pivot-value.d.ts +1 -1
- package/package.json +4 -4
package/grids/combined.js
CHANGED
|
@@ -16344,46 +16344,49 @@ var _o = (() => {
|
|
|
16344
16344
|
s.set(e, St2(Pe2({}, r), { type: r.type ?? a })), this._iconLoaded.next({ name: e, family: i });
|
|
16345
16345
|
}
|
|
16346
16346
|
getIconRef(e, i) {
|
|
16347
|
-
let r = this._iconRefs.get(i)?.get(e), s = r?.family ?? i, a = r?.name ?? e, l =
|
|
16348
|
-
|
|
16347
|
+
let r = this._iconRefs.get(i)?.get(e), s = r?.family ?? i, a = r?.name ?? e, l = this.familyClassName(s), c = this._families.get(s)?.prefix, d = a;
|
|
16348
|
+
d && c && (d = a.includes(c) ? a : `${c}${a}`);
|
|
16349
|
+
let x = this.isSvgIconCached(d, s) ? "svg" : r?.type ?? this.familyType(s);
|
|
16350
|
+
return { className: l, type: x, name: d, family: s };
|
|
16351
|
+
}
|
|
16352
|
+
getOrCreateSvgFamily(e) {
|
|
16353
|
+
return this._families.has(e) || this._families.set(e, { className: e, type: "svg" }), this._families.get(e);
|
|
16349
16354
|
}
|
|
16350
16355
|
addSvgIcon(e, i, r = this._defaultFamily.name, s = false) {
|
|
16351
16356
|
if (e && i) {
|
|
16352
16357
|
let a = this._sanitizer.bypassSecurityTrustResourceUrl(i);
|
|
16353
16358
|
if (!a) throw new Error(`The provided URL could not be processed as trusted resource URL by Angular's DomSanitizer: "${i}".`);
|
|
16354
16359
|
if (!this._sanitizer.sanitize(oo.RESOURCE_URL, a)) throw new Error(`The URL provided was not trusted as a resource URL: "${i}".`);
|
|
16355
|
-
this.isSvgIconCached(e, r) || (this.
|
|
16360
|
+
this.isSvgIconCached(e, r) || (this.getOrCreateSvgFamily(r), this.fetchSvg(i).subscribe((c) => {
|
|
16356
16361
|
this.cacheSvgIcon(e, c, r, s);
|
|
16357
16362
|
}));
|
|
16358
16363
|
} else throw new Error("You should provide at least `name` and `url` to register an svg icon.");
|
|
16359
16364
|
}
|
|
16360
|
-
addSvgIconFromText(e, i, r =
|
|
16365
|
+
addSvgIconFromText(e, i, r = this._defaultFamily.name, s = false) {
|
|
16361
16366
|
if (e && i) {
|
|
16362
16367
|
if (this.isSvgIconCached(e, r)) return;
|
|
16363
|
-
this.
|
|
16368
|
+
this.getOrCreateSvgFamily(r), this.cacheSvgIcon(e, i, r, s);
|
|
16364
16369
|
} else throw new Error("You should provide at least `name` and `iconText` to register an svg icon.");
|
|
16365
16370
|
}
|
|
16366
|
-
isSvgIconCached(e, i
|
|
16367
|
-
|
|
16368
|
-
return this._cachedIcons.has(r) ? this._cachedIcons.get(r).has(e) : false;
|
|
16371
|
+
isSvgIconCached(e, i) {
|
|
16372
|
+
return this._cachedIcons.has(i) ? this._cachedIcons.get(i).has(e) : false;
|
|
16369
16373
|
}
|
|
16370
|
-
getSvgIcon(e, i
|
|
16371
|
-
|
|
16372
|
-
return this._cachedIcons.get(r)?.get(e);
|
|
16374
|
+
getSvgIcon(e, i) {
|
|
16375
|
+
return this._cachedIcons.get(i)?.get(e);
|
|
16373
16376
|
}
|
|
16374
16377
|
fetchSvg(e) {
|
|
16375
16378
|
return this._httpClient.get(e, { responseType: "text" });
|
|
16376
16379
|
}
|
|
16377
16380
|
cacheSvgIcon(e, i, r = this._defaultFamily.name, s) {
|
|
16378
|
-
if (
|
|
16381
|
+
if (this._platformUtil?.isBrowser && e && i) {
|
|
16379
16382
|
let l = this._domParser.parseFromString(i, "image/svg+xml").querySelector("svg");
|
|
16380
|
-
if (this._cachedIcons.has(r) ||
|
|
16383
|
+
if (this._cachedIcons.has(r) || this._cachedIcons.set(r, /* @__PURE__ */ new Map()), l) {
|
|
16381
16384
|
if (l.setAttribute("fit", ""), l.setAttribute("preserveAspectRatio", "xMidYMid meet"), s) {
|
|
16382
16385
|
let d = l.querySelector("title"), g = l.querySelector("desc");
|
|
16383
16386
|
d && l.removeChild(d), g && l.removeChild(g);
|
|
16384
16387
|
}
|
|
16385
16388
|
let c = this._sanitizer.bypassSecurityTrustHtml(l.outerHTML);
|
|
16386
|
-
this._cachedIcons.get(r).set(e, c);
|
|
16389
|
+
this._cachedIcons.get(r).set(e, c), this._iconLoaded.next({ name: e, value: i, family: r });
|
|
16387
16390
|
}
|
|
16388
16391
|
}
|
|
16389
16392
|
}
|
|
@@ -16831,12 +16834,8 @@ var Yt = (() => {
|
|
|
16831
16834
|
this._filled = e;
|
|
16832
16835
|
}
|
|
16833
16836
|
ngAfterViewChecked() {
|
|
16834
|
-
|
|
16835
|
-
|
|
16836
|
-
e && Promise.resolve().then(() => {
|
|
16837
|
-
this._theme$.next(e), this.cdr.markForCheck();
|
|
16838
|
-
});
|
|
16839
|
-
}
|
|
16837
|
+
let e = this.themeService.getComponentTheme(this.element);
|
|
16838
|
+
e && (this._theme$.next(e), this.cdr.markForCheck());
|
|
16840
16839
|
}
|
|
16841
16840
|
ngOnDestroy() {
|
|
16842
16841
|
this._subscription.unsubscribe();
|
|
@@ -51952,8 +51951,8 @@ var Mx = (() => {
|
|
|
51952
51951
|
for (let r of i) {
|
|
51953
51952
|
let s = e.get(r);
|
|
51954
51953
|
for (let a of s.keys()) {
|
|
51955
|
-
let l = s.get(a).collection;
|
|
51956
|
-
this._iconService.setIconRef(a, "default", { family: l, name:
|
|
51954
|
+
let l = s.get(a).collection, c = s.get(a).name;
|
|
51955
|
+
this._iconService.setIconRef(a, "default", { family: l, name: c });
|
|
51957
51956
|
}
|
|
51958
51957
|
}
|
|
51959
51958
|
}
|
|
@@ -11,6 +11,7 @@ import { EventEmitterMixin, LitElement, Constructor, AbstractConstructor } from
|
|
|
11
11
|
/* blazorIndirectRender */
|
|
12
12
|
/* singleInstanceIdentifier */
|
|
13
13
|
/* contentParent: GridBaseDirective */
|
|
14
|
+
/* contentParent: HierarchicalGrid */
|
|
14
15
|
/* jsonAPIManageCollectionInMarkup */
|
|
15
16
|
/**
|
|
16
17
|
* State component allows saving and restoring the state of the grid features.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { PivotAggregationType } from './pivot-aggregation-type';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
/* jsonAPIPlainObject */
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
/* marshalByValue */
|
|
8
|
+
/* jsonAPIComplexObject */
|
|
9
9
|
/**
|
|
10
10
|
* Interface describing a IPivotAggregator class.
|
|
11
11
|
* Used for specifying custom aggregator lists.
|
|
@@ -4,11 +4,11 @@ import { SortingDirection } from './sorting-direction';
|
|
|
4
4
|
import { GridColumnDataType } from './grid-column-data-type';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
/* jsonAPIPlainObject */
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
/* blazorElement */
|
|
11
10
|
/* marshalByValue */
|
|
11
|
+
/* jsonAPIComplexObject */
|
|
12
12
|
/**
|
|
13
13
|
* Configuration of a pivot dimension.
|
|
14
14
|
*/
|
|
@@ -3,10 +3,10 @@ import { IgcPivotAggregator } from './igc-pivot-aggregator';
|
|
|
3
3
|
import { GridColumnDataType } from './grid-column-data-type';
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
/* jsonAPIPlainObject */
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
/* marshalByValue */
|
|
9
|
+
/* jsonAPIComplexObject */
|
|
10
10
|
/**
|
|
11
11
|
* Configuration of a pivot value aggregation.
|
|
12
12
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-webcomponents-grids",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "Ignite UI Web Components grid components.",
|
|
5
5
|
"homepage": "https://github.com/IgniteUI/igniteui-webcomponents-grids",
|
|
6
6
|
"keywords": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"tslib": "^2.3.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"igniteui-webcomponents-core": "5.0.0-beta.
|
|
22
|
-
"igniteui-webcomponents-layouts": "5.0.0-beta.
|
|
23
|
-
"igniteui-webcomponents-inputs": "5.0.0-beta.
|
|
21
|
+
"igniteui-webcomponents-core": "5.0.0-beta.2",
|
|
22
|
+
"igniteui-webcomponents-layouts": "5.0.0-beta.2",
|
|
23
|
+
"igniteui-webcomponents-inputs": "5.0.0-beta.2"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": [
|
|
26
26
|
"./grids/combined.js"
|