igniteui-angular 18.1.0-beta.1 → 18.1.0-rc.0
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/esm2022/lib/grids/state-base.directive.mjs +1 -1
- package/esm2022/lib/grids/state.directive.mjs +5 -5
- package/esm2022/lib/services/overlay/overlay.mjs +27 -16
- package/esm2022/lib/services/overlay/utilities.mjs +1 -1
- package/esm2022/lib/services/public_api.mjs +6 -6
- package/fesm2022/igniteui-angular.mjs +69 -58
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/core/styles/components/stepper/_stepper-theme.scss +7 -7
- package/lib/grids/state-base.directive.d.ts +0 -1
- package/lib/grids/state.directive.d.ts +4 -3
- package/lib/services/overlay/overlay.d.ts +16 -6
- package/lib/services/overlay/utilities.d.ts +7 -1
- package/lib/services/public_api.d.ts +5 -5
- package/package.json +1 -1
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Export services
|
|
2
|
+
export * from '../directives/text-highlight/text-highlight.service';
|
|
2
3
|
export * from './csv/csv-exporter';
|
|
3
4
|
export * from './csv/csv-exporter-options';
|
|
4
5
|
export * from './excel/excel-exporter';
|
|
@@ -7,13 +8,12 @@ export * from './exporter-common/base-export-service';
|
|
|
7
8
|
export * from './exporter-common/exporter-options-base';
|
|
8
9
|
export * from './overlay/overlay';
|
|
9
10
|
export * from './overlay/position';
|
|
10
|
-
export { AbsolutePosition, RelativePosition, RelativePositionStrategy, HorizontalAlignment, VerticalAlignment, Point } from './overlay/utilities';
|
|
11
11
|
export * from './overlay/scroll';
|
|
12
|
-
export
|
|
12
|
+
export { AbsolutePosition, HorizontalAlignment, Point, RelativePosition, RelativePositionStrategy, VerticalAlignment } from './overlay/utilities';
|
|
13
13
|
export * from './transaction/base-transaction';
|
|
14
|
-
export * from './transaction/transaction';
|
|
15
|
-
export * from './transaction/igx-hierarchical-transaction';
|
|
16
14
|
export * from './transaction/hierarchical-transaction';
|
|
15
|
+
export * from './transaction/igx-hierarchical-transaction';
|
|
16
|
+
export * from './transaction/igx-transaction';
|
|
17
|
+
export * from './transaction/transaction';
|
|
17
18
|
export * from './transaction/transaction-factory.service';
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lnbml0ZXVpLWFuZ3VsYXIvc3JjL2xpYi9zZXJ2aWNlcy9wdWJsa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hbnNhY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbi9oaWVyYXJjaGljYWwtdHJhbnNhY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbi9pZ3gtaGllcmFyY2hpY2FsLXRyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdHJhbnNhY3Rpb24vaWd4LXRyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi1mYWN0b3J5LnNlcnZpY2UnO1xuXG4iXX0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Directive, Input, HostListener, InjectionToken, isDevMode, inject, PLATFORM_ID, Inject,
|
|
2
|
+
import { Injectable, Directive, Input, HostListener, EventEmitter, InjectionToken, isDevMode, inject, PLATFORM_ID, Inject, ElementRef, ViewContainerRef, createComponent, Output, HostBinding, Self, Optional, booleanAttribute, SecurityContext, Component, ContentChildren, ContentChild, RendererStyleFlags2, Pipe, ViewChild, LOCALE_ID, forwardRef, Host, QueryList, ViewChildren, TemplateRef, ChangeDetectionStrategy, SimpleChange, SkipSelf, CUSTOM_ELEMENTS_SCHEMA, reflectComponentType, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/forms';
|
|
4
4
|
import { NgModel, NgControl, FormControlName, NG_VALUE_ACCESSOR, Validators, NG_VALIDATORS, FormGroup, FormsModule, RequiredValidator, MinValidator, MaxValidator, EmailValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import { Observable, Subject, fromEvent, BehaviorSubject, interval, animationFrameScheduler, noop, merge, Subscription, timer, pipe, take as take$1, timeout } from 'rxjs';
|
|
@@ -7,9 +7,9 @@ import { takeUntil, filter, throttle, throttleTime, first as first$2, startWith,
|
|
|
7
7
|
import { isPlatformBrowser, formatDate as formatDate$1, CurrencyPipe, formatPercent, formatNumber, getLocaleCurrencyCode, DatePipe, getLocaleDateFormat, FormatWidth, getLocaleDateTimeFormat, DOCUMENT, NgTemplateOutlet, NgIf, NgClass, NgSwitch, NgSwitchCase, NgSwitchDefault, NgFor, TitleCasePipe, getLocaleFirstDayOfWeek, NgStyle, getLocaleCurrencySymbol, formatCurrency as formatCurrency$1, getLocaleNumberFormat, NumberFormatStyle, DecimalPipe, PercentPipe, getCurrencySymbol, AsyncPipe } from '@angular/common';
|
|
8
8
|
import { mergeWith, isEqual as isEqual$1 } from 'lodash-es';
|
|
9
9
|
import { strToU8, zip } from 'fflate';
|
|
10
|
+
import { scaleInVerTop, scaleOutVerTop, AnimationUtil, fadeIn, fadeOut, slideInTop, slideOutTop, slideInBottom, slideOutBottom, scaleInHorRight, scaleOutHorRight, scaleInHorLeft, scaleOutHorLeft, scaleInVerBottom, scaleOutVerBottom, scaleInCenter, growVerIn, growVerOut, slideInLeft } from 'igniteui-angular/animations';
|
|
10
11
|
import * as i1 from '@angular/animations';
|
|
11
12
|
import { style, animate, useAnimation } from '@angular/animations';
|
|
12
|
-
import { scaleInVerTop, scaleOutVerTop, AnimationUtil, fadeIn, fadeOut, slideInTop, slideOutTop, slideInBottom, slideOutBottom, scaleInHorRight, scaleOutHorRight, scaleInHorLeft, scaleOutHorLeft, scaleInVerBottom, scaleOutVerBottom, scaleInCenter, growVerIn, growVerOut, slideInLeft } from 'igniteui-angular/animations';
|
|
13
13
|
import * as i1$2 from '@angular/platform-browser';
|
|
14
14
|
import { ɵgetDOM as _getDOM, HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
|
|
15
15
|
import * as i2 from '@angular/common/http';
|
|
@@ -126,6 +126,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
126
126
|
args: ['click']
|
|
127
127
|
}] } });
|
|
128
128
|
|
|
129
|
+
class IgxTextHighlightService {
|
|
130
|
+
constructor() {
|
|
131
|
+
this.highlightGroupsMap = new Map();
|
|
132
|
+
this.onActiveElementChanged = new EventEmitter();
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Activates the highlight at a given index.
|
|
136
|
+
* (if such index exists)
|
|
137
|
+
*/
|
|
138
|
+
setActiveHighlight(groupName, highlight) {
|
|
139
|
+
this.highlightGroupsMap.set(groupName, highlight);
|
|
140
|
+
this.onActiveElementChanged.emit(groupName);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Clears any existing highlight.
|
|
144
|
+
*/
|
|
145
|
+
clearActiveHighlight(groupName) {
|
|
146
|
+
this.highlightGroupsMap.set(groupName, {
|
|
147
|
+
index: -1
|
|
148
|
+
});
|
|
149
|
+
this.onActiveElementChanged.emit(groupName);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Destroys a highlight group.
|
|
153
|
+
*/
|
|
154
|
+
destroyGroup(groupName) {
|
|
155
|
+
this.highlightGroupsMap.delete(groupName);
|
|
156
|
+
}
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxTextHighlightService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
158
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxTextHighlightService, providedIn: 'root' }); }
|
|
159
|
+
}
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxTextHighlightService, decorators: [{
|
|
161
|
+
type: Injectable,
|
|
162
|
+
args: [{
|
|
163
|
+
providedIn: 'root'
|
|
164
|
+
}]
|
|
165
|
+
}], ctorParameters: () => [] });
|
|
166
|
+
|
|
129
167
|
/* Copyright (c) 2014-2020 Denis Pushkarev
|
|
130
168
|
*
|
|
131
169
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -5731,17 +5769,16 @@ class IgxOverlayService {
|
|
|
5731
5769
|
return new AutoPositionStrategy(positionSettings);
|
|
5732
5770
|
}
|
|
5733
5771
|
}
|
|
5734
|
-
attach(componentOrElement, viewContainerRefOrSettings,
|
|
5735
|
-
const info = this.getOverlayInfo(componentOrElement, viewContainerRefOrSettings);
|
|
5772
|
+
attach(componentOrElement, viewContainerRefOrSettings, settings) {
|
|
5773
|
+
const info = this.getOverlayInfo(componentOrElement, viewContainerRefOrSettings, settings);
|
|
5736
5774
|
if (!info) {
|
|
5737
5775
|
console.warn('Overlay was not able to attach provided component!');
|
|
5738
5776
|
return null;
|
|
5739
5777
|
}
|
|
5740
5778
|
info.id = (this._componentId++).toString();
|
|
5741
5779
|
info.visible = false;
|
|
5742
|
-
const settings = Object.assign({}, this._defaultSettings, this.getUserOverlaySettings(viewContainerRefOrSettings, moduleRefOrSettings));
|
|
5743
5780
|
// Emit the contentAppending event before appending the content
|
|
5744
|
-
const eventArgs = { id: info.id, elementRef: info.elementRef, componentRef: info.componentRef, settings };
|
|
5781
|
+
const eventArgs = { id: info.id, elementRef: info.elementRef, componentRef: info.componentRef, settings: info.settings };
|
|
5745
5782
|
this.contentAppending.emit(eventArgs);
|
|
5746
5783
|
// Append the content to the overlay
|
|
5747
5784
|
info.settings = eventArgs.settings;
|
|
@@ -5934,26 +5971,37 @@ class IgxOverlayService {
|
|
|
5934
5971
|
this.closeDone(info);
|
|
5935
5972
|
}
|
|
5936
5973
|
}
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5974
|
+
/**
|
|
5975
|
+
* Creates overlayInfo. Sets the info's `elementRef`, `componentRef`and `settings`. Also
|
|
5976
|
+
* initialize info's `ngZone`, `transformX` and `transformY`.
|
|
5977
|
+
* @param component ElementRef or Type. If type is provided dynamic component will be created
|
|
5978
|
+
* @param viewContainerRefOrSettings (optional): If ElementRef is provided for `component` this
|
|
5979
|
+
* parameter is OverlaySettings. Otherwise it could be ViewContainerRef or OverlayCreateSettings and will be
|
|
5980
|
+
* used when dynamic component is created.
|
|
5981
|
+
* @param settings (optional): OverlaySettings when `ViewContainerRef` is provided.
|
|
5982
|
+
* @returns OverlayInfo
|
|
5983
|
+
*/
|
|
5984
|
+
getOverlayInfo(component, viewContainerRefOrSettings, settings) {
|
|
5945
5985
|
const info = { ngZone: this._zone, transformX: 0, transformY: 0 };
|
|
5986
|
+
let overlaySettings = settings;
|
|
5946
5987
|
if (component instanceof ElementRef) {
|
|
5947
5988
|
info.elementRef = component;
|
|
5989
|
+
overlaySettings = viewContainerRefOrSettings;
|
|
5948
5990
|
}
|
|
5949
5991
|
else {
|
|
5950
5992
|
let dynamicComponent;
|
|
5951
5993
|
if (viewContainerRefOrSettings instanceof ViewContainerRef) {
|
|
5952
|
-
|
|
5994
|
+
const viewContainerRef = viewContainerRefOrSettings;
|
|
5995
|
+
dynamicComponent = viewContainerRef.createComponent(component);
|
|
5953
5996
|
}
|
|
5954
5997
|
else {
|
|
5955
5998
|
const environmentInjector = this._appRef.injector;
|
|
5956
|
-
|
|
5999
|
+
const createSettings = viewContainerRefOrSettings;
|
|
6000
|
+
let elementInjector;
|
|
6001
|
+
if (createSettings) {
|
|
6002
|
+
({ injector: elementInjector, ...overlaySettings } = createSettings);
|
|
6003
|
+
}
|
|
6004
|
+
dynamicComponent = createComponent(component, { environmentInjector, elementInjector });
|
|
5957
6005
|
this._appRef.attachView(dynamicComponent.hostView);
|
|
5958
6006
|
}
|
|
5959
6007
|
if (dynamicComponent.onDestroy) {
|
|
@@ -5968,6 +6016,7 @@ class IgxOverlayService {
|
|
|
5968
6016
|
info.elementRef = { nativeElement: element };
|
|
5969
6017
|
info.componentRef = dynamicComponent;
|
|
5970
6018
|
}
|
|
6019
|
+
info.settings = Object.assign({}, this._defaultSettings, overlaySettings);
|
|
5971
6020
|
return info;
|
|
5972
6021
|
}
|
|
5973
6022
|
placeElementHook(element) {
|
|
@@ -7163,44 +7212,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
7163
7212
|
}]
|
|
7164
7213
|
}] });
|
|
7165
7214
|
|
|
7166
|
-
class IgxTextHighlightService {
|
|
7167
|
-
constructor() {
|
|
7168
|
-
this.highlightGroupsMap = new Map();
|
|
7169
|
-
this.onActiveElementChanged = new EventEmitter();
|
|
7170
|
-
}
|
|
7171
|
-
/**
|
|
7172
|
-
* Activates the highlight at a given index.
|
|
7173
|
-
* (if such index exists)
|
|
7174
|
-
*/
|
|
7175
|
-
setActiveHighlight(groupName, highlight) {
|
|
7176
|
-
this.highlightGroupsMap.set(groupName, highlight);
|
|
7177
|
-
this.onActiveElementChanged.emit(groupName);
|
|
7178
|
-
}
|
|
7179
|
-
/**
|
|
7180
|
-
* Clears any existing highlight.
|
|
7181
|
-
*/
|
|
7182
|
-
clearActiveHighlight(groupName) {
|
|
7183
|
-
this.highlightGroupsMap.set(groupName, {
|
|
7184
|
-
index: -1
|
|
7185
|
-
});
|
|
7186
|
-
this.onActiveElementChanged.emit(groupName);
|
|
7187
|
-
}
|
|
7188
|
-
/**
|
|
7189
|
-
* Destroys a highlight group.
|
|
7190
|
-
*/
|
|
7191
|
-
destroyGroup(groupName) {
|
|
7192
|
-
this.highlightGroupsMap.delete(groupName);
|
|
7193
|
-
}
|
|
7194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxTextHighlightService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7195
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxTextHighlightService, providedIn: 'root' }); }
|
|
7196
|
-
}
|
|
7197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxTextHighlightService, decorators: [{
|
|
7198
|
-
type: Injectable,
|
|
7199
|
-
args: [{
|
|
7200
|
-
providedIn: 'root'
|
|
7201
|
-
}]
|
|
7202
|
-
}], ctorParameters: () => [] });
|
|
7203
|
-
|
|
7204
7215
|
// Export services
|
|
7205
7216
|
|
|
7206
7217
|
/** @hidden */
|
|
@@ -77423,10 +77434,10 @@ class IgxGridStateDirective extends IgxGridStateBaseDirective {
|
|
|
77423
77434
|
* public options = {selection: false, advancedFiltering: false};
|
|
77424
77435
|
* ```
|
|
77425
77436
|
*/
|
|
77426
|
-
get
|
|
77437
|
+
get options() {
|
|
77427
77438
|
return super.options;
|
|
77428
77439
|
}
|
|
77429
|
-
set
|
|
77440
|
+
set options(value) {
|
|
77430
77441
|
super.options = value;
|
|
77431
77442
|
}
|
|
77432
77443
|
/**
|
|
@@ -77469,7 +77480,7 @@ class IgxGridStateDirective extends IgxGridStateBaseDirective {
|
|
|
77469
77480
|
return super.setStateInternal(state, features);
|
|
77470
77481
|
}
|
|
77471
77482
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxGridStateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
77472
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.5", type: IgxGridStateDirective, isStandalone: true, selector: "[igxGridState]", inputs: {
|
|
77483
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.5", type: IgxGridStateDirective, isStandalone: true, selector: "[igxGridState]", inputs: { options: ["igxGridState", "options"] }, outputs: { stateParsed: "stateParsed" }, usesInheritance: true, ngImport: i0 }); }
|
|
77473
77484
|
}
|
|
77474
77485
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: IgxGridStateDirective, decorators: [{
|
|
77475
77486
|
type: Directive,
|
|
@@ -77477,7 +77488,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
77477
77488
|
selector: '[igxGridState]',
|
|
77478
77489
|
standalone: true
|
|
77479
77490
|
}]
|
|
77480
|
-
}], propDecorators: {
|
|
77491
|
+
}], propDecorators: { options: [{
|
|
77481
77492
|
type: Input,
|
|
77482
77493
|
args: ['igxGridState']
|
|
77483
77494
|
}], stateParsed: [{
|