Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
752efe3e3c | ||
|
|
864fa79454 | ||
|
|
174300d9f1 | ||
|
|
30f944123f | ||
|
|
921b9e09f8 | ||
|
|
2a45504163 | ||
|
|
7c5fcb8f06 | ||
|
|
2574c98c65 | ||
|
|
f9f0408daf |
@@ -89,18 +89,6 @@ export class XCardEmptyContainer
|
|||||||
this.cardPropertyProvider.cardSubTitle;
|
this.cardPropertyProvider.cardSubTitle;
|
||||||
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.cardPropertyProvider.cardCssClass;
|
this.cardPropertyProvider.cardCssClass;
|
||||||
|
|
||||||
//
|
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -193,27 +181,6 @@ export class XCardEmptyContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.cardCssClass;
|
this.propertyProvider.cardCssClass;
|
||||||
|
|
||||||
//
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -329,31 +296,6 @@ export class XCardEmptyContainerComponent
|
|||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
),
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -460,16 +402,6 @@ export class XCardActionBarContainer extends XBaseContainer implements IXCardAct
|
|||||||
this.cardPropertyProvider.cardShowFooter;
|
this.cardPropertyProvider.cardShowFooter;
|
||||||
readonly cardShowActions: XStandardType<boolean> =
|
readonly cardShowActions: XStandardType<boolean> =
|
||||||
this.cardPropertyProvider.cardShowActions;
|
this.cardPropertyProvider.cardShowActions;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -548,27 +480,6 @@ export class XCardActionBarContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardActionProvider: Subject<XCardActionModel> =
|
cardActionProvider: Subject<XCardActionModel> =
|
||||||
this.propertyProvider.cardActionProvider;
|
this.propertyProvider.cardActionProvider;
|
||||||
|
|
||||||
//
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -657,31 +568,6 @@ export class XCardActionBarContainerComponent
|
|||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
),
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -48,7 +48,9 @@ export interface IXMaxAllowedFilesContainer {
|
|||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class XMaxAllowedFilesContainer implements Readonly<IXMaxAllowedFilesContainer> {
|
export class XMaxAllowedFilesContainer
|
||||||
|
implements Readonly<IXMaxAllowedFilesContainer>
|
||||||
|
{
|
||||||
//
|
//
|
||||||
//#region Props ...
|
//#region Props ...
|
||||||
readonly maxAllowedFiles: XStandardType<number> = this.config.maxUploadFiles;
|
readonly maxAllowedFiles: XStandardType<number> = this.config.maxUploadFiles;
|
||||||
@@ -61,7 +63,7 @@ export class XMaxAllowedFilesContainer implements Readonly<IXMaxAllowedFilesCont
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
||||||
private config: XFrameworkComponentsConfig,
|
private config: XFrameworkComponentsConfig
|
||||||
) {}
|
) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -77,7 +79,9 @@ export interface IXMaxAllowedSizeContainer {
|
|||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class XMaxAllowedSizeContainer implements Readonly<IXMaxAllowedSizeContainer> {
|
export class XMaxAllowedSizeContainer
|
||||||
|
implements Readonly<IXMaxAllowedSizeContainer>
|
||||||
|
{
|
||||||
//
|
//
|
||||||
//#region Props ...
|
//#region Props ...
|
||||||
readonly maxAllowedSize: XStandardType<number> = this.config.maxAllowedSize;
|
readonly maxAllowedSize: XStandardType<number> = this.config.maxAllowedSize;
|
||||||
@@ -90,7 +94,7 @@ export class XMaxAllowedSizeContainer implements Readonly<IXMaxAllowedSizeContai
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
||||||
private config: XFrameworkComponentsConfig,
|
private config: XFrameworkComponentsConfig
|
||||||
) {}
|
) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -106,7 +110,9 @@ export interface IXMinAllowedFileSizeContainer {
|
|||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class XMinAllowedFileSizeContainer implements Readonly<IXMinAllowedFileSizeContainer> {
|
export class XMinAllowedFileSizeContainer
|
||||||
|
implements Readonly<IXMinAllowedFileSizeContainer>
|
||||||
|
{
|
||||||
//
|
//
|
||||||
//#region Props ...
|
//#region Props ...
|
||||||
readonly minAllowedFileSize: XStandardType<number> =
|
readonly minAllowedFileSize: XStandardType<number> =
|
||||||
@@ -120,7 +126,7 @@ export class XMinAllowedFileSizeContainer implements Readonly<IXMinAllowedFileSi
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
||||||
private config: XFrameworkComponentsConfig,
|
private config: XFrameworkComponentsConfig
|
||||||
) {}
|
) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -136,7 +142,9 @@ export interface IXMaxAllowedFileSizeContainer {
|
|||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class XMaxAllowedFileSizeContainer implements Readonly<IXMaxAllowedFileSizeContainer> {
|
export class XMaxAllowedFileSizeContainer
|
||||||
|
implements Readonly<IXMaxAllowedFileSizeContainer>
|
||||||
|
{
|
||||||
//
|
//
|
||||||
//#region Props ...
|
//#region Props ...
|
||||||
readonly maxAllowedFileSize: XStandardType<number> =
|
readonly maxAllowedFileSize: XStandardType<number> =
|
||||||
@@ -150,7 +158,7 @@ export class XMaxAllowedFileSizeContainer implements Readonly<IXMaxAllowedFileSi
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
||||||
private config: XFrameworkComponentsConfig,
|
private config: XFrameworkComponentsConfig
|
||||||
) {}
|
) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -183,7 +191,7 @@ export class XFileRegularContainer implements Readonly<IXFileRegularContainer> {
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
||||||
private config: XFrameworkComponentsConfig,
|
private config: XFrameworkComponentsConfig
|
||||||
) {}
|
) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -246,7 +254,7 @@ export class XFileContainer implements Readonly<IXFileContainer> {
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
@Inject(X_FRAMEWORK_COMPONENTS_CONFIG)
|
||||||
private config: XFrameworkComponentsConfig,
|
private config: XFrameworkComponentsConfig
|
||||||
) {}
|
) {}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -331,7 +339,7 @@ export abstract class XFileContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XFileContainer,
|
protected propertyProvider: XFileContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -340,7 +348,7 @@ export abstract class XFileContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -348,52 +356,52 @@ export abstract class XFileContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXFileContainer,
|
container?: IXFileContainer
|
||||||
): Observable<IXFileContainer> {
|
): Observable<IXFileContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
emptyFileException: this.getValue(
|
emptyFileException: this.getValue(
|
||||||
container ? container.emptyFileException : this.emptyFileException,
|
container ? container.emptyFileException : this.emptyFileException
|
||||||
),
|
),
|
||||||
notAllowedFileException: this.getValue(
|
notAllowedFileException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.notAllowedFileException
|
? container.notAllowedFileException
|
||||||
: this.notAllowedFileException,
|
: this.notAllowedFileException
|
||||||
),
|
),
|
||||||
allowedExtensions: this.getValue(
|
allowedExtensions: this.getValue(
|
||||||
container ? container.allowedExtensions : this.allowedExtensions,
|
container ? container.allowedExtensions : this.allowedExtensions
|
||||||
),
|
),
|
||||||
maxAllowedFiles: this.getValue(
|
maxAllowedFiles: this.getValue(
|
||||||
container ? container.maxAllowedFiles : this.maxAllowedFiles,
|
container ? container.maxAllowedFiles : this.maxAllowedFiles
|
||||||
),
|
),
|
||||||
maxAllowedFilesException: this.getValue(
|
maxAllowedFilesException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFilesException
|
? container.maxAllowedFilesException
|
||||||
: this.maxAllowedFilesException,
|
: this.maxAllowedFilesException
|
||||||
),
|
),
|
||||||
maxAllowedSize: this.getValue(
|
maxAllowedSize: this.getValue(
|
||||||
container ? container.maxAllowedSize : this.maxAllowedSize,
|
container ? container.maxAllowedSize : this.maxAllowedSize
|
||||||
),
|
),
|
||||||
maxAllowedSizeException: this.getValue(
|
maxAllowedSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedSizeException
|
? container.maxAllowedSizeException
|
||||||
: this.maxAllowedSizeException,
|
: this.maxAllowedSizeException
|
||||||
),
|
),
|
||||||
minAllowedFileSize: this.getValue(
|
minAllowedFileSize: this.getValue(
|
||||||
container ? container.minAllowedFileSize : this.minAllowedFileSize,
|
container ? container.minAllowedFileSize : this.minAllowedFileSize
|
||||||
),
|
),
|
||||||
minAllowedFileSizeException: this.getValue(
|
minAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.minAllowedFileSizeException
|
? container.minAllowedFileSizeException
|
||||||
: this.minAllowedFileSizeException,
|
: this.minAllowedFileSizeException
|
||||||
),
|
),
|
||||||
maxAllowedFileSize: this.getValue(
|
maxAllowedFileSize: this.getValue(
|
||||||
container ? container.maxAllowedFileSize : this.maxAllowedFileSize,
|
container ? container.maxAllowedFileSize : this.maxAllowedFileSize
|
||||||
),
|
),
|
||||||
maxAllowedFileSizeException: this.getValue(
|
maxAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFileSizeException
|
? container.maxAllowedFileSizeException
|
||||||
: this.maxAllowedFileSizeException,
|
: this.maxAllowedFileSizeException
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -403,7 +411,7 @@ export abstract class XFileContainerComponent
|
|||||||
|
|
||||||
//
|
//
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -446,16 +454,6 @@ export class XCardFileContainer
|
|||||||
this.cardPropertyProvider.cardSubTitle;
|
this.cardPropertyProvider.cardSubTitle;
|
||||||
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.cardPropertyProvider.cardCssClass;
|
this.cardPropertyProvider.cardCssClass;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -503,7 +501,7 @@ export class XCardFileContainer
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
protected cardPropertyProvider: XComponentCardContainer,
|
protected cardPropertyProvider: XComponentCardContainer,
|
||||||
protected filePropertyProvider: XFileContainer,
|
protected filePropertyProvider: XFileContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -558,26 +556,6 @@ export class XCardFileContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.cardCssClass;
|
this.propertyProvider.cardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -643,7 +621,7 @@ export class XCardFileContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XCardFileContainer,
|
protected propertyProvider: XCardFileContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -652,7 +630,7 @@ export class XCardFileContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -660,107 +638,82 @@ export class XCardFileContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXCardFileContainer,
|
container?: IXCardFileContainer
|
||||||
): Observable<IXCardFileContainer> {
|
): Observable<IXCardFileContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
//#region XComponentCard ...
|
//#region XComponentCard ...
|
||||||
cardCssClass: this.getArrayValue(
|
cardCssClass: this.getArrayValue(
|
||||||
container ? container.cardCssClass : this.cardCssClass,
|
container ? container.cardCssClass : this.cardCssClass
|
||||||
),
|
),
|
||||||
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
||||||
wrapWithCard: this.getValue(
|
wrapWithCard: this.getValue(
|
||||||
container ? container.wrapWithCard : this.wrapWithCard,
|
container ? container.wrapWithCard : this.wrapWithCard
|
||||||
),
|
),
|
||||||
cardShowFooter: this.getValue(
|
cardShowFooter: this.getValue(
|
||||||
container ? container.cardShowFooter : this.cardShowFooter,
|
container ? container.cardShowFooter : this.cardShowFooter
|
||||||
),
|
),
|
||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions
|
||||||
),
|
),
|
||||||
cardColor: this.getValue(
|
cardColor: this.getValue(
|
||||||
container ? container.cardColor : this.cardColor,
|
container ? container.cardColor : this.cardColor
|
||||||
),
|
),
|
||||||
cardForegroundColor: this.getValue(
|
cardForegroundColor: this.getValue(
|
||||||
container ? container.cardForegroundColor : this.cardForegroundColor,
|
container ? container.cardForegroundColor : this.cardForegroundColor
|
||||||
),
|
),
|
||||||
cardTitle: this.getValue(
|
cardTitle: this.getValue(
|
||||||
container ? container.cardTitle : this.cardTitle,
|
container ? container.cardTitle : this.cardTitle
|
||||||
),
|
),
|
||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region File ...
|
//#region File ...
|
||||||
emptyFileException: this.getValue(
|
emptyFileException: this.getValue(
|
||||||
container ? container.emptyFileException : this.emptyFileException,
|
container ? container.emptyFileException : this.emptyFileException
|
||||||
),
|
),
|
||||||
notAllowedFileException: this.getValue(
|
notAllowedFileException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.notAllowedFileException
|
? container.notAllowedFileException
|
||||||
: this.notAllowedFileException,
|
: this.notAllowedFileException
|
||||||
),
|
),
|
||||||
allowedExtensions: this.getValue(
|
allowedExtensions: this.getValue(
|
||||||
container ? container.allowedExtensions : this.allowedExtensions,
|
container ? container.allowedExtensions : this.allowedExtensions
|
||||||
),
|
),
|
||||||
maxAllowedFiles: this.getValue(
|
maxAllowedFiles: this.getValue(
|
||||||
container ? container.maxAllowedFiles : this.maxAllowedFiles,
|
container ? container.maxAllowedFiles : this.maxAllowedFiles
|
||||||
),
|
),
|
||||||
maxAllowedFilesException: this.getValue(
|
maxAllowedFilesException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFilesException
|
? container.maxAllowedFilesException
|
||||||
: this.maxAllowedFilesException,
|
: this.maxAllowedFilesException
|
||||||
),
|
),
|
||||||
maxAllowedSize: this.getValue(
|
maxAllowedSize: this.getValue(
|
||||||
container ? container.maxAllowedSize : this.maxAllowedSize,
|
container ? container.maxAllowedSize : this.maxAllowedSize
|
||||||
),
|
),
|
||||||
maxAllowedSizeException: this.getValue(
|
maxAllowedSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedSizeException
|
? container.maxAllowedSizeException
|
||||||
: this.maxAllowedSizeException,
|
: this.maxAllowedSizeException
|
||||||
),
|
),
|
||||||
minAllowedFileSize: this.getValue(
|
minAllowedFileSize: this.getValue(
|
||||||
container ? container.minAllowedFileSize : this.minAllowedFileSize,
|
container ? container.minAllowedFileSize : this.minAllowedFileSize
|
||||||
),
|
),
|
||||||
minAllowedFileSizeException: this.getValue(
|
minAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.minAllowedFileSizeException
|
? container.minAllowedFileSizeException
|
||||||
: this.minAllowedFileSizeException,
|
: this.minAllowedFileSizeException
|
||||||
),
|
),
|
||||||
maxAllowedFileSize: this.getValue(
|
maxAllowedFileSize: this.getValue(
|
||||||
container ? container.maxAllowedFileSize : this.maxAllowedFileSize,
|
container ? container.maxAllowedFileSize : this.maxAllowedFileSize
|
||||||
),
|
),
|
||||||
maxAllowedFileSizeException: this.getValue(
|
maxAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFileSizeException
|
? container.maxAllowedFileSizeException
|
||||||
: this.maxAllowedFileSizeException,
|
: this.maxAllowedFileSizeException
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
}).pipe(
|
}).pipe(
|
||||||
@@ -774,7 +727,7 @@ export class XCardFileContainerComponent
|
|||||||
? container.cardActionProvider
|
? container.cardActionProvider
|
||||||
: this.cardActionProvider,
|
: this.cardActionProvider,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -787,7 +740,8 @@ export class XCardFileContainerComponent
|
|||||||
type TXCardFileFileDropContainer = IXComponentCardContainer &
|
type TXCardFileFileDropContainer = IXComponentCardContainer &
|
||||||
IXFileContainer &
|
IXFileContainer &
|
||||||
IXComponentFileDropAreaContainer;
|
IXComponentFileDropAreaContainer;
|
||||||
export interface IXCardFileFileDropContainer extends TXCardFileFileDropContainer {}
|
export interface IXCardFileFileDropContainer
|
||||||
|
extends TXCardFileFileDropContainer {}
|
||||||
|
|
||||||
//
|
//
|
||||||
@Injectable({
|
@Injectable({
|
||||||
@@ -821,16 +775,6 @@ export class XCardFileFileDropContainer
|
|||||||
this.cardPropertyProvider.cardSubTitle;
|
this.cardPropertyProvider.cardSubTitle;
|
||||||
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.cardPropertyProvider.cardCssClass;
|
this.cardPropertyProvider.cardCssClass;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -955,16 +899,6 @@ export class XCardFileFileDropContainer
|
|||||||
this.fileDropPropertyProvider.fileDropAreaCardSubTitle;
|
this.fileDropPropertyProvider.fileDropAreaCardSubTitle;
|
||||||
readonly fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.fileDropPropertyProvider.fileDropAreaCardCssClass;
|
this.fileDropPropertyProvider.fileDropAreaCardCssClass;
|
||||||
readonly fileDropAreaCardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.fileDropPropertyProvider.fileDropAreaCardShowFullScreenButton;
|
|
||||||
readonly fileDropAreaCardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.fileDropPropertyProvider.fileDropAreaCardEnterFullScreenButtonIcon;
|
|
||||||
readonly fileDropAreaCardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.fileDropPropertyProvider.fileDropAreaCardEnterFullScreenButtonColor;
|
|
||||||
readonly fileDropAreaCardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.fileDropPropertyProvider.fileDropAreaCardExitFullScreenButtonIcon;
|
|
||||||
readonly fileDropAreaCardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.fileDropPropertyProvider.fileDropAreaCardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -974,7 +908,7 @@ export class XCardFileFileDropContainer
|
|||||||
constructor(
|
constructor(
|
||||||
protected cardPropertyProvider: XComponentCardContainer,
|
protected cardPropertyProvider: XComponentCardContainer,
|
||||||
protected fileDropPropertyProvider: XComponentFileDropAreaContainer,
|
protected fileDropPropertyProvider: XComponentFileDropAreaContainer,
|
||||||
protected filePropertyProvider: XFileContainer,
|
protected filePropertyProvider: XFileContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -1029,26 +963,6 @@ export class XCardFileFileDropContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.cardCssClass;
|
this.propertyProvider.cardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1217,26 +1131,6 @@ export class XCardFileFileDropContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>> =
|
fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.fileDropAreaCardCssClass;
|
this.propertyProvider.fileDropAreaCardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.fileDropAreaCardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -1252,7 +1146,7 @@ export class XCardFileFileDropContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XCardFileFileDropContainer,
|
protected propertyProvider: XCardFileFileDropContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -1261,7 +1155,7 @@ export class XCardFileFileDropContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -1269,107 +1163,82 @@ export class XCardFileFileDropContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXCardFileFileDropContainer,
|
container?: IXCardFileFileDropContainer
|
||||||
): Observable<IXCardFileFileDropContainer> {
|
): Observable<IXCardFileFileDropContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
//#region XComponentCard ...
|
//#region XComponentCard ...
|
||||||
cardCssClass: this.getArrayValue(
|
cardCssClass: this.getArrayValue(
|
||||||
container ? container.cardCssClass : this.cardCssClass,
|
container ? container.cardCssClass : this.cardCssClass
|
||||||
),
|
),
|
||||||
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
||||||
wrapWithCard: this.getValue(
|
wrapWithCard: this.getValue(
|
||||||
container ? container.wrapWithCard : this.wrapWithCard,
|
container ? container.wrapWithCard : this.wrapWithCard
|
||||||
),
|
),
|
||||||
cardShowFooter: this.getValue(
|
cardShowFooter: this.getValue(
|
||||||
container ? container.cardShowFooter : this.cardShowFooter,
|
container ? container.cardShowFooter : this.cardShowFooter
|
||||||
),
|
),
|
||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions
|
||||||
),
|
),
|
||||||
cardColor: this.getValue(
|
cardColor: this.getValue(
|
||||||
container ? container.cardColor : this.cardColor,
|
container ? container.cardColor : this.cardColor
|
||||||
),
|
),
|
||||||
cardForegroundColor: this.getValue(
|
cardForegroundColor: this.getValue(
|
||||||
container ? container.cardForegroundColor : this.cardForegroundColor,
|
container ? container.cardForegroundColor : this.cardForegroundColor
|
||||||
),
|
),
|
||||||
cardTitle: this.getValue(
|
cardTitle: this.getValue(
|
||||||
container ? container.cardTitle : this.cardTitle,
|
container ? container.cardTitle : this.cardTitle
|
||||||
),
|
),
|
||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region File ...
|
//#region File ...
|
||||||
emptyFileException: this.getValue(
|
emptyFileException: this.getValue(
|
||||||
container ? container.emptyFileException : this.emptyFileException,
|
container ? container.emptyFileException : this.emptyFileException
|
||||||
),
|
),
|
||||||
notAllowedFileException: this.getValue(
|
notAllowedFileException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.notAllowedFileException
|
? container.notAllowedFileException
|
||||||
: this.notAllowedFileException,
|
: this.notAllowedFileException
|
||||||
),
|
),
|
||||||
allowedExtensions: this.getValue(
|
allowedExtensions: this.getValue(
|
||||||
container ? container.allowedExtensions : this.allowedExtensions,
|
container ? container.allowedExtensions : this.allowedExtensions
|
||||||
),
|
),
|
||||||
maxAllowedFiles: this.getValue(
|
maxAllowedFiles: this.getValue(
|
||||||
container ? container.maxAllowedFiles : this.maxAllowedFiles,
|
container ? container.maxAllowedFiles : this.maxAllowedFiles
|
||||||
),
|
),
|
||||||
maxAllowedFilesException: this.getValue(
|
maxAllowedFilesException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFilesException
|
? container.maxAllowedFilesException
|
||||||
: this.maxAllowedFilesException,
|
: this.maxAllowedFilesException
|
||||||
),
|
),
|
||||||
maxAllowedSize: this.getValue(
|
maxAllowedSize: this.getValue(
|
||||||
container ? container.maxAllowedSize : this.maxAllowedSize,
|
container ? container.maxAllowedSize : this.maxAllowedSize
|
||||||
),
|
),
|
||||||
maxAllowedSizeException: this.getValue(
|
maxAllowedSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedSizeException
|
? container.maxAllowedSizeException
|
||||||
: this.maxAllowedSizeException,
|
: this.maxAllowedSizeException
|
||||||
),
|
),
|
||||||
minAllowedFileSize: this.getValue(
|
minAllowedFileSize: this.getValue(
|
||||||
container ? container.minAllowedFileSize : this.minAllowedFileSize,
|
container ? container.minAllowedFileSize : this.minAllowedFileSize
|
||||||
),
|
),
|
||||||
minAllowedFileSizeException: this.getValue(
|
minAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.minAllowedFileSizeException
|
? container.minAllowedFileSizeException
|
||||||
: this.minAllowedFileSizeException,
|
: this.minAllowedFileSizeException
|
||||||
),
|
),
|
||||||
maxAllowedFileSize: this.getValue(
|
maxAllowedFileSize: this.getValue(
|
||||||
container ? container.maxAllowedFileSize : this.maxAllowedFileSize,
|
container ? container.maxAllowedFileSize : this.maxAllowedFileSize
|
||||||
),
|
),
|
||||||
maxAllowedFileSizeException: this.getValue(
|
maxAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFileSizeException
|
? container.maxAllowedFileSizeException
|
||||||
: this.maxAllowedFileSizeException,
|
: this.maxAllowedFileSizeException
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -1377,132 +1246,103 @@ export class XCardFileFileDropContainerComponent
|
|||||||
//#region FileDrop ...
|
//#region FileDrop ...
|
||||||
//
|
//
|
||||||
fileDropAreaCssClass: this.getValue(
|
fileDropAreaCssClass: this.getValue(
|
||||||
container ? container.fileDropAreaCssClass : this.fileDropAreaCssClass,
|
container ? container.fileDropAreaCssClass : this.fileDropAreaCssClass
|
||||||
),
|
),
|
||||||
fileDropAreaColor: this.getValue(
|
fileDropAreaColor: this.getValue(
|
||||||
container ? container.fileDropAreaColor : this.fileDropAreaColor,
|
container ? container.fileDropAreaColor : this.fileDropAreaColor
|
||||||
),
|
),
|
||||||
fileDropAreaForegroundColor: this.getValue(
|
fileDropAreaForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaForegroundColor
|
? container.fileDropAreaForegroundColor
|
||||||
: this.fileDropAreaForegroundColor,
|
: this.fileDropAreaForegroundColor
|
||||||
),
|
),
|
||||||
fileDropAreaIcon: this.getValue(
|
fileDropAreaIcon: this.getValue(
|
||||||
container ? container.fileDropAreaIcon : this.fileDropAreaIcon,
|
container ? container.fileDropAreaIcon : this.fileDropAreaIcon
|
||||||
),
|
),
|
||||||
fileDropAreaMessage: this.getValue(
|
fileDropAreaMessage: this.getValue(
|
||||||
container ? container.fileDropAreaMessage : this.fileDropAreaMessage,
|
container ? container.fileDropAreaMessage : this.fileDropAreaMessage
|
||||||
),
|
),
|
||||||
fileDropAreaDisableFileCheck: this.getValue(
|
fileDropAreaDisableFileCheck: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaDisableFileCheck
|
? container.fileDropAreaDisableFileCheck
|
||||||
: this.fileDropAreaDisableFileCheck,
|
: this.fileDropAreaDisableFileCheck
|
||||||
),
|
),
|
||||||
fileDropAreaSupportsMultipleFiles: this.getValue(
|
fileDropAreaSupportsMultipleFiles: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaSupportsMultipleFiles
|
? container.fileDropAreaSupportsMultipleFiles
|
||||||
: this.fileDropAreaSupportsMultipleFiles,
|
: this.fileDropAreaSupportsMultipleFiles
|
||||||
),
|
),
|
||||||
fileDropAreaAllowedExtensions: this.getValue(
|
fileDropAreaAllowedExtensions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaAllowedExtensions
|
? container.fileDropAreaAllowedExtensions
|
||||||
: this.fileDropAreaAllowedExtensions,
|
: this.fileDropAreaAllowedExtensions
|
||||||
),
|
),
|
||||||
fileDropAreaDragDisabled: this.getValue(
|
fileDropAreaDragDisabled: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaDragDisabled
|
? container.fileDropAreaDragDisabled
|
||||||
: this.fileDropAreaDragDisabled,
|
: this.fileDropAreaDragDisabled
|
||||||
),
|
),
|
||||||
fileDropAreaContentTemplate: this.getValue(
|
fileDropAreaContentTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaContentTemplate
|
? container.fileDropAreaContentTemplate
|
||||||
: this.fileDropAreaContentTemplate,
|
: this.fileDropAreaContentTemplate
|
||||||
),
|
),
|
||||||
fileDropAreaSuccessColor: this.getValue(
|
fileDropAreaSuccessColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaSuccessColor
|
? container.fileDropAreaSuccessColor
|
||||||
: this.fileDropAreaSuccessColor,
|
: this.fileDropAreaSuccessColor
|
||||||
),
|
),
|
||||||
fileDropAreaErrorColor: this.getValue(
|
fileDropAreaErrorColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaErrorColor
|
? container.fileDropAreaErrorColor
|
||||||
: this.fileDropAreaErrorColor,
|
: this.fileDropAreaErrorColor
|
||||||
),
|
),
|
||||||
fileDropAreaAccentColor: this.getValue(
|
fileDropAreaAccentColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaAccentColor
|
? container.fileDropAreaAccentColor
|
||||||
: this.fileDropAreaAccentColor,
|
: this.fileDropAreaAccentColor
|
||||||
),
|
),
|
||||||
showFileDropArea: this.getValue(
|
showFileDropArea: this.getValue(
|
||||||
container ? container.showFileDropArea : this.showFileDropArea,
|
container ? container.showFileDropArea : this.showFileDropArea
|
||||||
),
|
),
|
||||||
fileDropAreaIsInPage: this.getValue(
|
fileDropAreaIsInPage: this.getValue(
|
||||||
container ? container.fileDropAreaIsInPage : this.fileDropAreaIsInPage,
|
container ? container.fileDropAreaIsInPage : this.fileDropAreaIsInPage
|
||||||
),
|
),
|
||||||
fileDropAreaWrapWithCard: this.getValue(
|
fileDropAreaWrapWithCard: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaWrapWithCard
|
? container.fileDropAreaWrapWithCard
|
||||||
: this.fileDropAreaWrapWithCard,
|
: this.fileDropAreaWrapWithCard
|
||||||
),
|
),
|
||||||
fileDropAreaCardShowFooter: this.getValue(
|
fileDropAreaCardShowFooter: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardShowFooter
|
? container.fileDropAreaCardShowFooter
|
||||||
: this.fileDropAreaCardShowFooter,
|
: this.fileDropAreaCardShowFooter
|
||||||
),
|
),
|
||||||
fileDropAreaCardShowActions: this.getValue(
|
fileDropAreaCardShowActions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardShowActions
|
? container.fileDropAreaCardShowActions
|
||||||
: this.fileDropAreaCardShowActions,
|
: this.fileDropAreaCardShowActions
|
||||||
),
|
),
|
||||||
fileDropAreaCardColor: this.getValue(
|
fileDropAreaCardColor: this.getValue(
|
||||||
container
|
container ? container.fileDropAreaCardColor : this.fileDropAreaCardColor
|
||||||
? container.fileDropAreaCardColor
|
|
||||||
: this.fileDropAreaCardColor,
|
|
||||||
),
|
),
|
||||||
fileDropAreaCardForegroundColor: this.getValue(
|
fileDropAreaCardForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardForegroundColor
|
? container.fileDropAreaCardForegroundColor
|
||||||
: this.fileDropAreaCardForegroundColor,
|
: this.fileDropAreaCardForegroundColor
|
||||||
),
|
),
|
||||||
fileDropAreaCardTitle: this.getValue(
|
fileDropAreaCardTitle: this.getValue(
|
||||||
container
|
container ? container.fileDropAreaCardTitle : this.fileDropAreaCardTitle
|
||||||
? container.fileDropAreaCardTitle
|
|
||||||
: this.fileDropAreaCardTitle,
|
|
||||||
),
|
),
|
||||||
fileDropAreaCardSubTitle: this.getValue(
|
fileDropAreaCardSubTitle: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardSubTitle
|
? container.fileDropAreaCardSubTitle
|
||||||
: this.fileDropAreaCardSubTitle,
|
: this.fileDropAreaCardSubTitle
|
||||||
),
|
),
|
||||||
fileDropAreaCardCssClass: this.getValue(
|
fileDropAreaCardCssClass: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardCssClass
|
? container.fileDropAreaCardCssClass
|
||||||
: this.fileDropAreaCardCssClass,
|
: this.fileDropAreaCardCssClass
|
||||||
),
|
|
||||||
fileDropAreaCardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardShowFullScreenButton
|
|
||||||
: this.fileDropAreaCardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
fileDropAreaCardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardEnterFullScreenButtonIcon
|
|
||||||
: this.fileDropAreaCardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
fileDropAreaCardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardEnterFullScreenButtonColor
|
|
||||||
: this.fileDropAreaCardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
fileDropAreaCardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardExitFullScreenButtonIcon
|
|
||||||
: this.fileDropAreaCardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
fileDropAreaCardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardExitFullScreenButtonColor
|
|
||||||
: this.fileDropAreaCardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
}).pipe(
|
}).pipe(
|
||||||
@@ -1529,7 +1369,7 @@ export class XCardFileFileDropContainerComponent
|
|||||||
//
|
//
|
||||||
fileDropAreaFilesChangeEmiter: this.fileDropAreaFilesChangeEmiter,
|
fileDropAreaFilesChangeEmiter: this.fileDropAreaFilesChangeEmiter,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ import { map } from 'rxjs/operators';
|
|||||||
import { Observable, forkJoin, Subject } from 'rxjs';
|
import { Observable, forkJoin, Subject } from 'rxjs';
|
||||||
import { ViewportRuler } from '@angular/cdk/overlay';
|
import { ViewportRuler } from '@angular/cdk/overlay';
|
||||||
import { XManagerService } from 'x-framework-services';
|
import { XManagerService } from 'x-framework-services';
|
||||||
import { XIconIdentifier } from '../x-icon/x-icon.typings';
|
|
||||||
import { IXButtonContainer, XButtonType } from '../x-button/x-button.typings';
|
import { IXButtonContainer, XButtonType } from '../x-button/x-button.typings';
|
||||||
import { X_FRAMEWORK_COMPONENTS_CONFIG } from '../tokens/x-injectable-tokens';
|
import { X_FRAMEWORK_COMPONENTS_CONFIG } from '../tokens/x-injectable-tokens';
|
||||||
import { XSlotNameIdentifier, XSlotName } from '../x-slotter/x-slotter.typings';
|
import { XSlotNameIdentifier, XSlotName } from '../x-slotter/x-slotter.typings';
|
||||||
@@ -275,7 +274,7 @@ export abstract class XNextPrevResetHostContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XNextPrevResetHostContainer,
|
protected propertyProvider: XNextPrevResetHostContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -284,7 +283,7 @@ export abstract class XNextPrevResetHostContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -292,7 +291,7 @@ export abstract class XNextPrevResetHostContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXNextPrevResetHostContainer,
|
container?: IXNextPrevResetHostContainer
|
||||||
): Observable<IXNextPrevResetHostContainer> {
|
): Observable<IXNextPrevResetHostContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
@@ -310,7 +309,7 @@ export abstract class XNextPrevResetHostContainerComponent
|
|||||||
onPrev: this.onPrev,
|
onPrev: this.onPrev,
|
||||||
onReset: this.onReset,
|
onReset: this.onReset,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -322,7 +321,8 @@ export abstract class XNextPrevResetHostContainerComponent
|
|||||||
//
|
//
|
||||||
type TXCardEmptyContainer = IXComponentCardContainer &
|
type TXCardEmptyContainer = IXComponentCardContainer &
|
||||||
IXNextPrevResetHostContainer;
|
IXNextPrevResetHostContainer;
|
||||||
export interface IXCardNextPrevResetHostContainer extends TXCardEmptyContainer {}
|
export interface IXCardNextPrevResetHostContainer
|
||||||
|
extends TXCardEmptyContainer {}
|
||||||
|
|
||||||
//
|
//
|
||||||
@Injectable({
|
@Injectable({
|
||||||
@@ -356,16 +356,6 @@ export class XCardNextPrevResetHostContainer
|
|||||||
this.cardPropertyProvider.cardSubTitle;
|
this.cardPropertyProvider.cardSubTitle;
|
||||||
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.cardPropertyProvider.cardCssClass;
|
this.cardPropertyProvider.cardCssClass;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -400,7 +390,7 @@ export class XCardNextPrevResetHostContainer
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
protected cardPropertyProvider: XComponentCardContainer,
|
protected cardPropertyProvider: XComponentCardContainer,
|
||||||
protected nextPrevResetHostPropertyProvider: XNextPrevResetHostContainer,
|
protected nextPrevResetHostPropertyProvider: XNextPrevResetHostContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -455,26 +445,6 @@ export class XCardNextPrevResetHostContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.cardCssClass;
|
this.propertyProvider.cardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -519,7 +489,7 @@ export class XCardNextPrevResetHostContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XCardNextPrevResetHostContainer,
|
protected propertyProvider: XCardNextPrevResetHostContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -528,7 +498,7 @@ export class XCardNextPrevResetHostContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -536,60 +506,35 @@ export class XCardNextPrevResetHostContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXCardNextPrevResetHostContainer,
|
container?: IXCardNextPrevResetHostContainer
|
||||||
): Observable<IXCardNextPrevResetHostContainer> {
|
): Observable<IXCardNextPrevResetHostContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
//#region XComponentCard ...
|
//#region XComponentCard ...
|
||||||
cardCssClass: this.getArrayValue(
|
cardCssClass: this.getArrayValue(
|
||||||
container ? container.cardCssClass : this.cardCssClass,
|
container ? container.cardCssClass : this.cardCssClass
|
||||||
),
|
),
|
||||||
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
||||||
wrapWithCard: this.getValue(
|
wrapWithCard: this.getValue(
|
||||||
container ? container.wrapWithCard : this.wrapWithCard,
|
container ? container.wrapWithCard : this.wrapWithCard
|
||||||
),
|
),
|
||||||
cardShowFooter: this.getValue(
|
cardShowFooter: this.getValue(
|
||||||
container ? container.cardShowFooter : this.cardShowFooter,
|
container ? container.cardShowFooter : this.cardShowFooter
|
||||||
),
|
),
|
||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions
|
||||||
),
|
),
|
||||||
cardColor: this.getValue(
|
cardColor: this.getValue(
|
||||||
container ? container.cardColor : this.cardColor,
|
container ? container.cardColor : this.cardColor
|
||||||
),
|
),
|
||||||
cardForegroundColor: this.getValue(
|
cardForegroundColor: this.getValue(
|
||||||
container ? container.cardForegroundColor : this.cardForegroundColor,
|
container ? container.cardForegroundColor : this.cardForegroundColor
|
||||||
),
|
),
|
||||||
cardTitle: this.getValue(
|
cardTitle: this.getValue(
|
||||||
container ? container.cardTitle : this.cardTitle,
|
container ? container.cardTitle : this.cardTitle
|
||||||
),
|
),
|
||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -616,7 +561,7 @@ export class XCardNextPrevResetHostContainerComponent
|
|||||||
onPrev: this.onPrev,
|
onPrev: this.onPrev,
|
||||||
onReset: this.onReset,
|
onReset: this.onReset,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -631,7 +576,8 @@ type TXNextPrevResetContainer = IXNextContainer &
|
|||||||
IXResetContainer;
|
IXResetContainer;
|
||||||
// tslint:disable-next-line:no-empty-interface
|
// tslint:disable-next-line:no-empty-interface
|
||||||
export interface IXNextPrevResetContainer
|
export interface IXNextPrevResetContainer
|
||||||
extends IXBaseContainer, TXNextPrevResetContainer {}
|
extends IXBaseContainer,
|
||||||
|
TXNextPrevResetContainer {}
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
@@ -691,7 +637,7 @@ export class XNextPrevResetContainer
|
|||||||
constructor(
|
constructor(
|
||||||
protected prevPropertyProvider: XPrevContainer,
|
protected prevPropertyProvider: XPrevContainer,
|
||||||
protected nextPropertyProvider: XNextContainer,
|
protected nextPropertyProvider: XNextContainer,
|
||||||
protected resetpropertyProvider: XResetContainer,
|
protected resetpropertyProvider: XResetContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -795,7 +741,7 @@ export abstract class XNextPrevResetContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XNextPrevResetContainer,
|
protected propertyProvider: XNextPrevResetContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -804,7 +750,7 @@ export abstract class XNextPrevResetContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -812,57 +758,57 @@ export abstract class XNextPrevResetContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXNextPrevResetContainer,
|
container?: IXNextPrevResetContainer
|
||||||
): Observable<IXNextPrevResetContainer> {
|
): Observable<IXNextPrevResetContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
hasNext: this.getValue(container ? container.hasNext : this.hasNext),
|
hasNext: this.getValue(container ? container.hasNext : this.hasNext),
|
||||||
disableNext: this.getValue(
|
disableNext: this.getValue(
|
||||||
container ? container.disableNext : this.disableNext,
|
container ? container.disableNext : this.disableNext
|
||||||
),
|
),
|
||||||
nextConfirmer: this.getValue(
|
nextConfirmer: this.getValue(
|
||||||
container ? container.nextConfirmer : this.nextConfirmer,
|
container ? container.nextConfirmer : this.nextConfirmer
|
||||||
),
|
),
|
||||||
nextPosition: this.getValue(
|
nextPosition: this.getValue(
|
||||||
container ? container.nextPosition : this.nextPosition,
|
container ? container.nextPosition : this.nextPosition
|
||||||
),
|
),
|
||||||
nextCssClass: this.getValue(
|
nextCssClass: this.getValue(
|
||||||
container ? container.nextCssClass : this.nextCssClass,
|
container ? container.nextCssClass : this.nextCssClass
|
||||||
),
|
),
|
||||||
nextButton: this.getValue(
|
nextButton: this.getValue(
|
||||||
container ? container.nextButton : this.nextButton,
|
container ? container.nextButton : this.nextButton
|
||||||
),
|
),
|
||||||
hasPrev: this.getValue(container ? container.hasPrev : this.hasPrev),
|
hasPrev: this.getValue(container ? container.hasPrev : this.hasPrev),
|
||||||
disablePrev: this.getValue(
|
disablePrev: this.getValue(
|
||||||
container ? container.disablePrev : this.disablePrev,
|
container ? container.disablePrev : this.disablePrev
|
||||||
),
|
),
|
||||||
prevConfirmer: this.getValue(
|
prevConfirmer: this.getValue(
|
||||||
container ? container.prevConfirmer : this.prevConfirmer,
|
container ? container.prevConfirmer : this.prevConfirmer
|
||||||
),
|
),
|
||||||
prevPosition: this.getValue(
|
prevPosition: this.getValue(
|
||||||
container ? container.prevPosition : this.prevPosition,
|
container ? container.prevPosition : this.prevPosition
|
||||||
),
|
),
|
||||||
prevCssClass: this.getValue(
|
prevCssClass: this.getValue(
|
||||||
container ? container.prevCssClass : this.prevCssClass,
|
container ? container.prevCssClass : this.prevCssClass
|
||||||
),
|
),
|
||||||
prevButton: this.getValue(
|
prevButton: this.getValue(
|
||||||
container ? container.prevButton : this.prevButton,
|
container ? container.prevButton : this.prevButton
|
||||||
),
|
),
|
||||||
hasReset: this.getValue(container ? container.hasReset : this.hasReset),
|
hasReset: this.getValue(container ? container.hasReset : this.hasReset),
|
||||||
disableReset: this.getValue(
|
disableReset: this.getValue(
|
||||||
container ? container.disableReset : this.disableReset,
|
container ? container.disableReset : this.disableReset
|
||||||
),
|
),
|
||||||
resetConfirmer: this.getValue(
|
resetConfirmer: this.getValue(
|
||||||
container ? container.resetConfirmer : this.resetConfirmer,
|
container ? container.resetConfirmer : this.resetConfirmer
|
||||||
),
|
),
|
||||||
resetPosition: this.getValue(
|
resetPosition: this.getValue(
|
||||||
container ? container.resetPosition : this.resetPosition,
|
container ? container.resetPosition : this.resetPosition
|
||||||
),
|
),
|
||||||
resetCssClass: this.getValue(
|
resetCssClass: this.getValue(
|
||||||
container ? container.resetCssClass : this.resetCssClass,
|
container ? container.resetCssClass : this.resetCssClass
|
||||||
),
|
),
|
||||||
resetButton: this.getValue(
|
resetButton: this.getValue(
|
||||||
container ? container.resetButton : this.resetButton,
|
container ? container.resetButton : this.resetButton
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -872,7 +818,7 @@ export abstract class XNextPrevResetContainerComponent
|
|||||||
|
|
||||||
//
|
//
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -884,7 +830,8 @@ export abstract class XNextPrevResetContainerComponent
|
|||||||
type TXNextPrevResetAndHostContainer = IXNextPrevResetContainer &
|
type TXNextPrevResetAndHostContainer = IXNextPrevResetContainer &
|
||||||
IXCardNextPrevResetHostContainer;
|
IXCardNextPrevResetHostContainer;
|
||||||
export interface IXNextPrevResetAndHostContainer
|
export interface IXNextPrevResetAndHostContainer
|
||||||
extends IXBaseContainer, TXNextPrevResetAndHostContainer {}
|
extends IXBaseContainer,
|
||||||
|
TXNextPrevResetAndHostContainer {}
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
@@ -993,16 +940,6 @@ export class XNextPrevResetAndHostContainer
|
|||||||
this.cardNextPrevResetPropertyProvider.cardSubTitle;
|
this.cardNextPrevResetPropertyProvider.cardSubTitle;
|
||||||
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.cardNextPrevResetPropertyProvider.cardCssClass;
|
this.cardNextPrevResetPropertyProvider.cardCssClass;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardNextPrevResetPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardNextPrevResetPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardNextPrevResetPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardNextPrevResetPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardNextPrevResetPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -1010,7 +947,7 @@ export class XNextPrevResetAndHostContainer
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
protected nextPrevResetPropertyProvider: XNextPrevResetContainer,
|
protected nextPrevResetPropertyProvider: XNextPrevResetContainer,
|
||||||
protected cardNextPrevResetPropertyProvider: XCardNextPrevResetHostContainer,
|
protected cardNextPrevResetPropertyProvider: XCardNextPrevResetHostContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -1064,26 +1001,6 @@ export class XNextPrevResetAndHostContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
cardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.cardCssClass;
|
this.propertyProvider.cardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1206,7 +1123,7 @@ export class XNextPrevResetAndHostContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XNextPrevResetAndHostContainer,
|
protected propertyProvider: XNextPrevResetAndHostContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -1215,7 +1132,7 @@ export class XNextPrevResetAndHostContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -1223,60 +1140,35 @@ export class XNextPrevResetAndHostContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXNextPrevResetAndHostContainer,
|
container?: IXNextPrevResetAndHostContainer
|
||||||
): Observable<IXNextPrevResetAndHostContainer> {
|
): Observable<IXNextPrevResetAndHostContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
//#region XComponentCard ...
|
//#region XComponentCard ...
|
||||||
cardCssClass: this.getArrayValue(
|
cardCssClass: this.getArrayValue(
|
||||||
container ? container.cardCssClass : this.cardCssClass,
|
container ? container.cardCssClass : this.cardCssClass
|
||||||
),
|
),
|
||||||
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
||||||
wrapWithCard: this.getValue(
|
wrapWithCard: this.getValue(
|
||||||
container ? container.wrapWithCard : this.wrapWithCard,
|
container ? container.wrapWithCard : this.wrapWithCard
|
||||||
),
|
),
|
||||||
cardShowFooter: this.getValue(
|
cardShowFooter: this.getValue(
|
||||||
container ? container.cardShowFooter : this.cardShowFooter,
|
container ? container.cardShowFooter : this.cardShowFooter
|
||||||
),
|
),
|
||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions
|
||||||
),
|
),
|
||||||
cardColor: this.getValue(
|
cardColor: this.getValue(
|
||||||
container ? container.cardColor : this.cardColor,
|
container ? container.cardColor : this.cardColor
|
||||||
),
|
),
|
||||||
cardForegroundColor: this.getValue(
|
cardForegroundColor: this.getValue(
|
||||||
container ? container.cardForegroundColor : this.cardForegroundColor,
|
container ? container.cardForegroundColor : this.cardForegroundColor
|
||||||
),
|
),
|
||||||
cardTitle: this.getValue(
|
cardTitle: this.getValue(
|
||||||
container ? container.cardTitle : this.cardTitle,
|
container ? container.cardTitle : this.cardTitle
|
||||||
),
|
),
|
||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -1293,51 +1185,51 @@ export class XNextPrevResetAndHostContainerComponent
|
|||||||
//
|
//
|
||||||
hasNext: this.getValue(container ? container.hasNext : this.hasNext),
|
hasNext: this.getValue(container ? container.hasNext : this.hasNext),
|
||||||
disableNext: this.getValue(
|
disableNext: this.getValue(
|
||||||
container ? container.disableNext : this.disableNext,
|
container ? container.disableNext : this.disableNext
|
||||||
),
|
),
|
||||||
nextConfirmer: this.getValue(
|
nextConfirmer: this.getValue(
|
||||||
container ? container.nextConfirmer : this.nextConfirmer,
|
container ? container.nextConfirmer : this.nextConfirmer
|
||||||
),
|
),
|
||||||
nextPosition: this.getValue(
|
nextPosition: this.getValue(
|
||||||
container ? container.nextPosition : this.nextPosition,
|
container ? container.nextPosition : this.nextPosition
|
||||||
),
|
),
|
||||||
nextCssClass: this.getValue(
|
nextCssClass: this.getValue(
|
||||||
container ? container.nextCssClass : this.nextCssClass,
|
container ? container.nextCssClass : this.nextCssClass
|
||||||
),
|
),
|
||||||
nextButton: this.getValue(
|
nextButton: this.getValue(
|
||||||
container ? container.nextButton : this.nextButton,
|
container ? container.nextButton : this.nextButton
|
||||||
),
|
),
|
||||||
hasPrev: this.getValue(container ? container.hasPrev : this.hasPrev),
|
hasPrev: this.getValue(container ? container.hasPrev : this.hasPrev),
|
||||||
disablePrev: this.getValue(
|
disablePrev: this.getValue(
|
||||||
container ? container.disablePrev : this.disablePrev,
|
container ? container.disablePrev : this.disablePrev
|
||||||
),
|
),
|
||||||
prevConfirmer: this.getValue(
|
prevConfirmer: this.getValue(
|
||||||
container ? container.prevConfirmer : this.prevConfirmer,
|
container ? container.prevConfirmer : this.prevConfirmer
|
||||||
),
|
),
|
||||||
prevPosition: this.getValue(
|
prevPosition: this.getValue(
|
||||||
container ? container.prevPosition : this.prevPosition,
|
container ? container.prevPosition : this.prevPosition
|
||||||
),
|
),
|
||||||
prevCssClass: this.getValue(
|
prevCssClass: this.getValue(
|
||||||
container ? container.prevCssClass : this.prevCssClass,
|
container ? container.prevCssClass : this.prevCssClass
|
||||||
),
|
),
|
||||||
prevButton: this.getValue(
|
prevButton: this.getValue(
|
||||||
container ? container.prevButton : this.prevButton,
|
container ? container.prevButton : this.prevButton
|
||||||
),
|
),
|
||||||
hasReset: this.getValue(container ? container.hasReset : this.hasReset),
|
hasReset: this.getValue(container ? container.hasReset : this.hasReset),
|
||||||
disableReset: this.getValue(
|
disableReset: this.getValue(
|
||||||
container ? container.disableReset : this.disableReset,
|
container ? container.disableReset : this.disableReset
|
||||||
),
|
),
|
||||||
resetConfirmer: this.getValue(
|
resetConfirmer: this.getValue(
|
||||||
container ? container.resetConfirmer : this.resetConfirmer,
|
container ? container.resetConfirmer : this.resetConfirmer
|
||||||
),
|
),
|
||||||
resetPosition: this.getValue(
|
resetPosition: this.getValue(
|
||||||
container ? container.resetPosition : this.resetPosition,
|
container ? container.resetPosition : this.resetPosition
|
||||||
),
|
),
|
||||||
resetCssClass: this.getValue(
|
resetCssClass: this.getValue(
|
||||||
container ? container.resetCssClass : this.resetCssClass,
|
container ? container.resetCssClass : this.resetCssClass
|
||||||
),
|
),
|
||||||
resetButton: this.getValue(
|
resetButton: this.getValue(
|
||||||
container ? container.resetButton : this.resetButton,
|
container ? container.resetButton : this.resetButton
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
}).pipe(
|
}).pipe(
|
||||||
@@ -1356,7 +1248,7 @@ export class XNextPrevResetAndHostContainerComponent
|
|||||||
onPrev: this.onPrev,
|
onPrev: this.onPrev,
|
||||||
onReset: this.onReset,
|
onReset: this.onReset,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
export interface XSizeModel {
|
||||||
|
width?: number;
|
||||||
|
height?: number;
|
||||||
|
}
|
||||||
+2
-12
@@ -43,11 +43,6 @@ export class XCardTestComponent extends XCardContainerComponent {}
|
|||||||
[showFooter]="props.cardShowFooter"
|
[showFooter]="props.cardShowFooter"
|
||||||
[actionProvider]="props.cardActionProvider"
|
[actionProvider]="props.cardActionProvider"
|
||||||
[foregroundColor]="props.cardForegroundColor"
|
[foregroundColor]="props.cardForegroundColor"
|
||||||
[showFullScreenButton]="props.showFullScreenButton"
|
|
||||||
[exitFullScreenButtonIcon]="props.exitFullScreenButtonIcon"
|
|
||||||
[enterFullScreenButtonIcon]="props.enterFullScreenButtonIcon"
|
|
||||||
[exitFullScreenButtonColor]="props.exitFullScreenButtonColor"
|
|
||||||
[enterFullScreenButtonColor]="props.enterFullScreenButtonColor"
|
|
||||||
>
|
>
|
||||||
</x-card>
|
</x-card>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@@ -60,21 +55,16 @@ export class XCardTestComponent extends XCardContainerComponent {}
|
|||||||
class="x-card"
|
class="x-card"
|
||||||
[showActions]="true"
|
[showActions]="true"
|
||||||
[color]="props.cardColor"
|
[color]="props.cardColor"
|
||||||
[isInPage]="props.isInPage"
|
|
||||||
[ngClass]="props.cardCssClass"
|
[ngClass]="props.cardCssClass"
|
||||||
|
[isInPage]="props.isInPage"
|
||||||
[showHeader]="
|
[showHeader]="
|
||||||
(notEmptyValue(props.cardTitle) | async) ||
|
(notEmptyValue(props.cardTitle) | async) ||
|
||||||
(notEmptyValue(props.cardSubTitle) | async)
|
(notEmptyValue(props.cardSubTitle) | async)
|
||||||
"
|
"
|
||||||
|
[subTitle]="getResourceValue(props.cardSubTitle)"
|
||||||
[title]="getResourceValue(props.cardTitle) | async"
|
[title]="getResourceValue(props.cardTitle) | async"
|
||||||
[showFooter]="getValue(props.cardShowFooter) | async"
|
[showFooter]="getValue(props.cardShowFooter) | async"
|
||||||
[subTitle]="getResourceValue(props.cardSubTitle) | async"
|
|
||||||
[foregroundColor]="getValue(props.cardForegroundColor) | async"
|
[foregroundColor]="getValue(props.cardForegroundColor) | async"
|
||||||
[showFullScreenButton]="getValue(props.cardShowFullScreenButton) | async"
|
|
||||||
[exitFullScreenButtonIcon]="getValue(props.cardExitFullScreenButtonIcon) | async"
|
|
||||||
[enterFullScreenButtonIcon]="getValue(props.cardEnterFullScreenButtonIcon) | async"
|
|
||||||
[exitFullScreenButtonColor]="getValue(props.cardExitFullScreenButtonColor) | async"
|
|
||||||
[enterFullScreenButtonColor]="getValue(props.cardEnterFullScreenButtonColor) | async"
|
|
||||||
>
|
>
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<ng-container *ngTemplateOutlet="componentsRef"></ng-container>
|
<ng-container *ngTemplateOutlet="componentsRef"></ng-container>
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
[class.no-text]="isNoTextCard() | async"
|
[class.no-text]="isNoTextCard() | async"
|
||||||
[class.page-card]="getValue(isInPage) | async"
|
[class.page-card]="getValue(isInPage) | async"
|
||||||
[isForeground]="getValue(foregroundColor) | async"
|
[isForeground]="getValue(foregroundColor) | async"
|
||||||
[class.full-screen]="getValue(isFullScreen) | async"
|
[class.fullscreen]="getValue(isFullscreen) | async"
|
||||||
>
|
>
|
||||||
<!-- Card Header -->
|
<!-- Card Header -->
|
||||||
<mat-card-header class="x-header" *ngIf="getValue(showHeader) | async">
|
<mat-card-header #cardHeader class="x-header" *ngIf="getValue(showHeader) | async">
|
||||||
<!-- Avatar Image -->
|
<!-- Avatar Image -->
|
||||||
<section
|
<section
|
||||||
*ngIf="notEmptyValue(avatarUrl) | async"
|
*ngIf="notEmptyValue(avatarUrl) | async"
|
||||||
@@ -52,21 +52,12 @@
|
|||||||
|
|
||||||
<!-- Header Content -->
|
<!-- Header Content -->
|
||||||
<ng-content select="[header]"></ng-content>
|
<ng-content select="[header]"></ng-content>
|
||||||
|
|
||||||
<!-- Fullscreen Toggle Button -->
|
|
||||||
<x-icon
|
|
||||||
class="x-fullscreen-toggle"
|
|
||||||
(clicked)="handleToggleFullScreen()"
|
|
||||||
[name]="getFullScreenIconName() | async"
|
|
||||||
[color]="getFullScreenIconColor() | async"
|
|
||||||
[clickable]="!loading && !uiDisabled && !lock"
|
|
||||||
*ngIf="getValue(showFullScreenButton) | async"
|
|
||||||
></x-icon>
|
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
|
|
||||||
<!-- Card Image -->
|
<!-- Card Image -->
|
||||||
<img
|
<img
|
||||||
mat-card-image
|
mat-card-image
|
||||||
|
#cardImage
|
||||||
class="x-image"
|
class="x-image"
|
||||||
[src]="getValue(imageUrl) | async"
|
[src]="getValue(imageUrl) | async"
|
||||||
*ngIf="notEmptyValue(imageUrl) | async"
|
*ngIf="notEmptyValue(imageUrl) | async"
|
||||||
@@ -74,18 +65,18 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Card Content -->
|
<!-- Card Content -->
|
||||||
<mat-card-content class="x-content" *ngIf="getValue(showContent) | async">
|
<mat-card-content #cardContent class="x-content" *ngIf="getValue(showContent) | async">
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
<!-- Card Actions -->
|
<!-- Card Actions -->
|
||||||
<mat-card-actions class="x-actions" *ngIf="getValue(showActions) | async">
|
<mat-card-actions #cardActions class="x-actions" *ngIf="getValue(showActions) | async">
|
||||||
<ng-content select="[actions]"></ng-content>
|
<ng-content select="[actions]"></ng-content>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
|
|
||||||
<!-- Card Footer -->
|
<!-- Card Footer -->
|
||||||
<mat-card-footer
|
<mat-card-footer
|
||||||
#footer
|
#cardFooter
|
||||||
class="x-footer"
|
class="x-footer"
|
||||||
*ngIf="getValue(showFooter) | async"
|
*ngIf="getValue(showFooter) | async"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,6 +1,43 @@
|
|||||||
//
|
//
|
||||||
@import "../theme/theme.scss";
|
@import "../theme/theme.scss";
|
||||||
|
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
width: inherit;
|
||||||
|
height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.x-wrapper {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
border-radius: var(--card-border-radius, 8px);
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&:fullscreen {
|
||||||
|
border-radius: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
|
||||||
|
.x-header {
|
||||||
|
padding: 16px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.x-content {
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.x-image {
|
||||||
|
max-height: 60vh;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
:host::ng-deep.x-card.no-text {
|
:host::ng-deep.x-card.no-text {
|
||||||
.mat-card-header-text {
|
.mat-card-header-text {
|
||||||
@@ -16,7 +53,7 @@
|
|||||||
height: var(--height, inherit);
|
height: var(--height, inherit);
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-card.page-card {
|
.x-card.page-card:not(.fullscreen) {
|
||||||
@include push-auto();
|
@include push-auto();
|
||||||
@include applyWidthHeight();
|
@include applyWidthHeight();
|
||||||
@include m-tb($d-l);
|
@include m-tb($d-l);
|
||||||
@@ -32,19 +69,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-card.full-screen {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
border-radius: 0;
|
|
||||||
margin: 0;
|
|
||||||
z-index: var(--full-screen-z-index, 9999);
|
|
||||||
}
|
|
||||||
|
|
||||||
.x-header,
|
.x-header,
|
||||||
.x-content,
|
.x-content,
|
||||||
.x-actions,
|
.x-actions,
|
||||||
|
|||||||
@@ -5,8 +5,18 @@ import {
|
|||||||
} from './x-card.typings';
|
} from './x-card.typings';
|
||||||
import { Subject, Subscription } from 'rxjs';
|
import { Subject, Subscription } from 'rxjs';
|
||||||
import { concatMap, map } from 'rxjs/operators';
|
import { concatMap, map } from 'rxjs/operators';
|
||||||
import { nameof, isNullOrEmptyString } from 'x-framework-core';
|
import { XSizeModel } from '../classes/x-size.model.';
|
||||||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
import {
|
||||||
|
nameof,
|
||||||
|
isNullOrEmptyString,
|
||||||
|
isNullOrUndefined,
|
||||||
|
} from 'x-framework-core';
|
||||||
|
import {
|
||||||
|
Component,
|
||||||
|
ChangeDetectionStrategy,
|
||||||
|
ElementRef,
|
||||||
|
ViewChild,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
// tslint:disable-next-line:component-selector
|
// tslint:disable-next-line:component-selector
|
||||||
@@ -22,21 +32,107 @@ export class XCardComponent extends XCardContainerComponent {
|
|||||||
private ACTION_PROVIDER_SUBSCRIPTION: Subscription;
|
private ACTION_PROVIDER_SUBSCRIPTION: Subscription;
|
||||||
|
|
||||||
//
|
//
|
||||||
private IS_FULL_SCREEN: boolean = false;
|
//#region Card Elements ....
|
||||||
set isFullScreen(v: boolean) {
|
private CARD_IMAGE: ElementRef<HTMLElement> = undefined;
|
||||||
//
|
private CARD_HEADER: ElementRef<HTMLElement> = undefined;
|
||||||
const isChanged = v != this.IS_FULL_SCREEN;
|
private CARD_FOOTER: ElementRef<HTMLElement> = undefined;
|
||||||
|
private CARD_CONTENT: ElementRef<HTMLElement> = undefined;
|
||||||
|
private CARD_ACTIONS: ElementRef<HTMLElement> = undefined;
|
||||||
|
|
||||||
//
|
@ViewChild('cardImage', { static: false })
|
||||||
this.IS_FULL_SCREEN = v;
|
set cardImage(v: ElementRef<HTMLElement>) {
|
||||||
|
this.CARD_IMAGE = v;
|
||||||
}
|
}
|
||||||
get isFullScreen() {
|
|
||||||
return this.IS_FULL_SCREEN;
|
@ViewChild('cardHeader', { static: false })
|
||||||
|
set cardHeader(v: ElementRef<HTMLElement>) {
|
||||||
|
this.CARD_HEADER = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ViewChild('cardFooter', { static: false })
|
||||||
|
set cardFooter(v: ElementRef<HTMLElement>) {
|
||||||
|
this.CARD_FOOTER = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ViewChild('cardContent', { static: false })
|
||||||
|
set cardContent(v: ElementRef<HTMLElement>) {
|
||||||
|
this.CARD_CONTENT = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ViewChild('cardActions', { static: false })
|
||||||
|
set cardActions(v: ElementRef<HTMLElement>) {
|
||||||
|
this.CARD_ACTIONS = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
get cardImage() {
|
||||||
|
return this.CARD_IMAGE;
|
||||||
|
}
|
||||||
|
|
||||||
|
get cardHeader() {
|
||||||
|
return this.CARD_HEADER;
|
||||||
|
}
|
||||||
|
|
||||||
|
get cardFooter() {
|
||||||
|
return this.CARD_FOOTER;
|
||||||
|
}
|
||||||
|
|
||||||
|
get cardContent() {
|
||||||
|
return this.CARD_CONTENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
get cardActions() {
|
||||||
|
return this.CARD_ACTIONS;
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
|
//
|
||||||
|
//#region Full Screen ...
|
||||||
|
//
|
||||||
|
private IS_FULLSCREEN: boolean = false;
|
||||||
|
|
||||||
|
set isFullscreen(v: boolean) {
|
||||||
|
//
|
||||||
|
const isChanged = v != this.IS_FULLSCREEN;
|
||||||
|
if (isChanged) {
|
||||||
|
//
|
||||||
|
this.actionProvider.next({
|
||||||
|
action: XCardAction.FullScreenToggled,
|
||||||
|
payload: v,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
this.IS_FULLSCREEN = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
get isFullscreen() {
|
||||||
|
return this.IS_FULLSCREEN;
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region LifeCycles ...
|
//#region LifeCycles ...
|
||||||
|
onInit() {
|
||||||
|
super.onInit();
|
||||||
|
|
||||||
|
//
|
||||||
|
// Listen for fullscreen change events (handles ESC key and browser UI)
|
||||||
|
document.addEventListener('fullscreenchange', this.fullscreenChangeHandler);
|
||||||
|
document.addEventListener(
|
||||||
|
'webkitfullscreenchange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
|
document.addEventListener(
|
||||||
|
'mozfullscreenchange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
|
document.addEventListener(
|
||||||
|
'MSFullscreenChange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
onChange(changeKeys: string[]) {
|
onChange(changeKeys: string[]) {
|
||||||
super.onChange(changeKeys);
|
super.onChange(changeKeys);
|
||||||
|
|
||||||
@@ -57,6 +153,24 @@ export class XCardComponent extends XCardContainerComponent {
|
|||||||
|
|
||||||
//
|
//
|
||||||
this.unregisterActionProvider();
|
this.unregisterActionProvider();
|
||||||
|
|
||||||
|
//
|
||||||
|
document.removeEventListener(
|
||||||
|
'fullscreenchange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
|
document.removeEventListener(
|
||||||
|
'webkitfullscreenchange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
|
document.removeEventListener(
|
||||||
|
'mozfullscreenchange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
|
document.removeEventListener(
|
||||||
|
'MSFullscreenChange',
|
||||||
|
this.fullscreenChangeHandler,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
registerViewHandlers() {
|
registerViewHandlers() {
|
||||||
@@ -89,79 +203,183 @@ export class XCardComponent extends XCardContainerComponent {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFullScreenIconName() {
|
|
||||||
return this.getValue(this.isFullScreen).pipe(
|
|
||||||
concatMap((isFull) => {
|
|
||||||
//
|
|
||||||
if (!isFull) {
|
|
||||||
return this.getValue(this.enterFullScreenButtonIcon);
|
|
||||||
} else {
|
|
||||||
return this.getValue(this.exitFullScreenButtonIcon);
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
getFullScreenIconColor() {
|
|
||||||
return this.getValue(this.isFullScreen).pipe(
|
|
||||||
concatMap((isFull) => {
|
|
||||||
//
|
|
||||||
if (!isFull) {
|
|
||||||
return this.getValue(this.enterFullScreenButtonColor);
|
|
||||||
} else {
|
|
||||||
return this.getValue(this.exitFullScreenButtonColor);
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
//#endregion
|
|
||||||
|
|
||||||
//
|
|
||||||
//#region UI Handlers ...
|
|
||||||
async handleToggleFullScreen() {
|
|
||||||
await this.toggleFullScreen();
|
|
||||||
}
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region Actions ...
|
//#region Actions ...
|
||||||
public async enterFullScreen() {
|
public async enterFullscreen(options?: FullscreenOptions) {
|
||||||
//
|
//
|
||||||
if (this.isFullScreen) {
|
if (this.isFullscreen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
this.isFullScreen = true;
|
const element: HTMLElement = this.element?.nativeElement;
|
||||||
// this.fullScreenChanged.emit(true);
|
if (!element) {
|
||||||
|
|
||||||
//
|
|
||||||
this.detectChanges();
|
|
||||||
}
|
|
||||||
|
|
||||||
public async exitFullScreen() {
|
|
||||||
//
|
|
||||||
if (!this.isFullScreen) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
this.isFullScreen = false;
|
try {
|
||||||
// this.fullScreenChanged.emit(false);
|
//
|
||||||
|
if (!this.canUseFullscreen()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
this.detectChanges();
|
await element.requestFullscreen(options);
|
||||||
|
|
||||||
|
//
|
||||||
|
this.isFullscreen = true;
|
||||||
|
this.detectChanges();
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async toggleFullScreen() {
|
public async exitFullscreen() {
|
||||||
//
|
//
|
||||||
if (this.isFullScreen) {
|
if (!this.isFullscreen) {
|
||||||
await this.exitFullScreen();
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
try {
|
||||||
|
//
|
||||||
|
if (document.fullscreenElement) {
|
||||||
|
await document.exitFullscreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
this.isFullscreen = false;
|
||||||
|
this.detectChanges();
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async toggleFullscreen() {
|
||||||
|
//
|
||||||
|
if (this.isFullscreen) {
|
||||||
|
await this.exitFullscreen();
|
||||||
} else {
|
} else {
|
||||||
await this.enterFullScreen();
|
await this.enterFullscreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
//#region Size Calculating ...
|
||||||
|
public calculateImageSize() {
|
||||||
|
//
|
||||||
|
let result: XSizeModel = undefined;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Validate ...
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.CARD_IMAGE) ||
|
||||||
|
isNullOrUndefined(this.CARD_IMAGE.nativeElement)
|
||||||
|
) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result = {
|
||||||
|
width: this.CARD_IMAGE.nativeElement.offsetWidth,
|
||||||
|
height: this.CARD_IMAGE.nativeElement.offsetHeight,
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public calculateHeaderSize() {
|
||||||
|
//
|
||||||
|
let result: XSizeModel = undefined;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Validate ...
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.CARD_HEADER) ||
|
||||||
|
isNullOrUndefined(this.CARD_HEADER.nativeElement)
|
||||||
|
) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result = {
|
||||||
|
width: this.CARD_HEADER.nativeElement.offsetWidth,
|
||||||
|
height: this.CARD_HEADER.nativeElement.offsetHeight,
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public calculateFooterSize() {
|
||||||
|
//
|
||||||
|
let result: XSizeModel = undefined;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Validate ...
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.CARD_FOOTER) ||
|
||||||
|
isNullOrUndefined(this.CARD_FOOTER.nativeElement)
|
||||||
|
) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result = {
|
||||||
|
width: this.CARD_FOOTER.nativeElement.offsetWidth,
|
||||||
|
height: this.CARD_FOOTER.nativeElement.offsetHeight,
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public calculateContentSize() {
|
||||||
|
//
|
||||||
|
let result: XSizeModel = undefined;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Validate ...
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.CARD_CONTENT) ||
|
||||||
|
isNullOrUndefined(this.CARD_CONTENT.nativeElement)
|
||||||
|
) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result = {
|
||||||
|
width: this.CARD_CONTENT.nativeElement.offsetWidth,
|
||||||
|
height: this.CARD_CONTENT.nativeElement.offsetHeight,
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public calculateActionsSize() {
|
||||||
|
//
|
||||||
|
let result: XSizeModel = undefined;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Validate ...
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.CARD_ACTIONS) ||
|
||||||
|
isNullOrUndefined(this.CARD_ACTIONS.nativeElement)
|
||||||
|
) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
result = {
|
||||||
|
width: this.CARD_ACTIONS.nativeElement.offsetWidth,
|
||||||
|
height: this.CARD_ACTIONS.nativeElement.offsetHeight,
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -196,17 +414,17 @@ export class XCardComponent extends XCardContainerComponent {
|
|||||||
|
|
||||||
//
|
//
|
||||||
case XCardAction.EnterFullScreen:
|
case XCardAction.EnterFullScreen:
|
||||||
await this.enterFullScreen();
|
await this.enterFullscreen();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//
|
//
|
||||||
case XCardAction.ExitFullScreen:
|
case XCardAction.ExitFullScreen:
|
||||||
await this.exitFullScreen();
|
await this.exitFullscreen();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//
|
//
|
||||||
case XCardAction.ToggleFullScreen:
|
case XCardAction.ToggleFullScreen:
|
||||||
await this.toggleFullScreen();
|
await this.toggleFullscreen();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -223,5 +441,31 @@ export class XCardComponent extends XCardContainerComponent {
|
|||||||
this.ACTION_PROVIDER_SUBSCRIPTION = null;
|
this.ACTION_PROVIDER_SUBSCRIPTION = null;
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
|
//
|
||||||
|
//#region Fullscreen ...
|
||||||
|
private fullscreenChangeHandler = () => {
|
||||||
|
//
|
||||||
|
const isFullscreen = !!(
|
||||||
|
document.fullscreenElement ||
|
||||||
|
(document as any).webkitFullscreenElement ||
|
||||||
|
(document as any).mozFullScreenElement ||
|
||||||
|
(document as any).msFullscreenElement
|
||||||
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
this.isFullscreen = isFullscreen;
|
||||||
|
this.detectChanges();
|
||||||
|
};
|
||||||
|
|
||||||
|
private canUseFullscreen(): boolean {
|
||||||
|
return !!(
|
||||||
|
document.fullscreenEnabled ||
|
||||||
|
(document as any).webkitFullscreenEnabled ||
|
||||||
|
(document as any).mozFullScreenEnabled ||
|
||||||
|
(document as any).msFullscreenEnabled
|
||||||
|
);
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { XCardComponent } from './x-card.component';
|
import { XCardComponent } from './x-card.component';
|
||||||
import { XIconModule } from './../x-icon/x-icon.module';
|
|
||||||
import { XBaseComponentModule } from '../modules/x-base-component.module';
|
import { XBaseComponentModule } from '../modules/x-base-component.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [XCardComponent],
|
declarations: [
|
||||||
imports: [CommonModule, XIconModule, XBaseComponentModule],
|
XCardComponent
|
||||||
exports: [XIconModule, XBaseComponentModule, XCardComponent],
|
],
|
||||||
|
imports: [CommonModule, XBaseComponentModule],
|
||||||
|
exports: [XBaseComponentModule, XCardComponent],
|
||||||
})
|
})
|
||||||
export class XCardModule {}
|
export class XCardModule {}
|
||||||
|
|||||||
@@ -29,15 +29,18 @@ import { forkJoin, Observable, Subject } from 'rxjs';
|
|||||||
import { ViewportRuler } from '@angular/cdk/overlay';
|
import { ViewportRuler } from '@angular/cdk/overlay';
|
||||||
import { XManagerService } from 'x-framework-services';
|
import { XManagerService } from 'x-framework-services';
|
||||||
import { XBaseActionModel } from '../classes/x-base-action.model';
|
import { XBaseActionModel } from '../classes/x-base-action.model';
|
||||||
import { XIconIdentifier, XIconNames } from '../x-icon/x-icon.typings';
|
|
||||||
import { X_FRAMEWORK_COMPONENTS_CONFIG } from '../tokens/x-injectable-tokens';
|
import { X_FRAMEWORK_COMPONENTS_CONFIG } from '../tokens/x-injectable-tokens';
|
||||||
import { XFrameworkComponentsConfig } from '../config/x-framework-components.config';
|
import { XFrameworkComponentsConfig } from '../config/x-framework-components.config';
|
||||||
|
|
||||||
export enum XCardAction {
|
export enum XCardAction {
|
||||||
|
//
|
||||||
Refresh = 'refresh',
|
Refresh = 'refresh',
|
||||||
|
//
|
||||||
ExitFullScreen = 'exit_full_screen',
|
ExitFullScreen = 'exit_full_screen',
|
||||||
EnterFullScreen = 'enter_full_screen',
|
EnterFullScreen = 'enter_full_screen',
|
||||||
ToggleFullScreen = 'toggle_full_screen',
|
ToggleFullScreen = 'toggle_full_screen',
|
||||||
|
//
|
||||||
|
FullScreenToggled = 'full_screen_toggled',
|
||||||
}
|
}
|
||||||
|
|
||||||
export type XCardActionIdentifier = XCardAction | string;
|
export type XCardActionIdentifier = XCardAction | string;
|
||||||
@@ -62,13 +65,6 @@ export interface IXCardContainer extends IXBaseContainer {
|
|||||||
avatarUrl: XStandardType<string>;
|
avatarUrl: XStandardType<string>;
|
||||||
avatarTemplate: TemplateRef<any>;
|
avatarTemplate: TemplateRef<any>;
|
||||||
|
|
||||||
//
|
|
||||||
showFullScreenButton: XStandardType<boolean>;
|
|
||||||
enterFullScreenButtonIcon: XStandardType<XIconIdentifier>;
|
|
||||||
enterFullScreenButtonColor: XStandardType<XColorIdentifier>;
|
|
||||||
exitFullScreenButtonIcon: XStandardType<XIconIdentifier>;
|
|
||||||
exitFullScreenButtonColor: XStandardType<XColorIdentifier>;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
imageUrl: XStandardType<string>;
|
imageUrl: XStandardType<string>;
|
||||||
imageDescription: XStandardType<XResourceIdentifier>;
|
imageDescription: XStandardType<XResourceIdentifier>;
|
||||||
@@ -107,17 +103,6 @@ export class XCardContainer
|
|||||||
readonly avatarUrl: XStandardType<string>;
|
readonly avatarUrl: XStandardType<string>;
|
||||||
readonly avatarTemplate: TemplateRef<any>;
|
readonly avatarTemplate: TemplateRef<any>;
|
||||||
|
|
||||||
//
|
|
||||||
readonly showFullScreenButton: XStandardType<boolean> = false;
|
|
||||||
readonly enterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
XIconNames.fullscreen;
|
|
||||||
readonly enterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
XColorWithBrightness.Light;
|
|
||||||
readonly exitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
XIconNames.close_fullscreen;
|
|
||||||
readonly exitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
XColorWithBrightness.Light;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
readonly imageUrl: XStandardType<string>;
|
readonly imageUrl: XStandardType<string>;
|
||||||
readonly imageDescription: XStandardType<XResourceIdentifier>;
|
readonly imageDescription: XStandardType<XResourceIdentifier>;
|
||||||
@@ -174,27 +159,6 @@ export abstract class XCardContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
avatarTemplate: TemplateRef<any> = this.propertyProvider.avatarTemplate;
|
avatarTemplate: TemplateRef<any> = this.propertyProvider.avatarTemplate;
|
||||||
|
|
||||||
//
|
|
||||||
@Input()
|
|
||||||
showFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.showFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
enterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.enterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
enterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.enterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
exitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.exitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
exitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.exitFullScreenButtonColor;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@Input()
|
@Input()
|
||||||
imageUrl: XStandardType<string> = this.propertyProvider.imageUrl;
|
imageUrl: XStandardType<string> = this.propertyProvider.imageUrl;
|
||||||
@@ -273,31 +237,6 @@ export abstract class XCardContainerComponent
|
|||||||
container ? container.avatarTemplate : this.avatarTemplate,
|
container ? container.avatarTemplate : this.avatarTemplate,
|
||||||
),
|
),
|
||||||
|
|
||||||
//
|
|
||||||
showFullScreenButton: this.getValue(
|
|
||||||
container ? container.showFullScreenButton : this.showFullScreenButton,
|
|
||||||
),
|
|
||||||
enterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.enterFullScreenButtonIcon
|
|
||||||
: this.enterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
enterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.enterFullScreenButtonColor
|
|
||||||
: this.enterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
exitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.exitFullScreenButtonIcon
|
|
||||||
: this.exitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
exitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.exitFullScreenButtonColor
|
|
||||||
: this.exitFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
|
|
||||||
//
|
//
|
||||||
imageUrl: this.getValue(container ? container.imageUrl : this.imageUrl),
|
imageUrl: this.getValue(container ? container.imageUrl : this.imageUrl),
|
||||||
imageDescription: this.getValue(
|
imageDescription: this.getValue(
|
||||||
@@ -348,11 +287,6 @@ type TXComponentCardContainer = {
|
|||||||
| 'subTitle'
|
| 'subTitle'
|
||||||
| 'showFooter'
|
| 'showFooter'
|
||||||
| 'showActions'
|
| 'showActions'
|
||||||
| 'showFullScreenButton'
|
|
||||||
| 'enterFullScreenButtonIcon'
|
|
||||||
| 'enterFullScreenButtonColor'
|
|
||||||
| 'exitFullScreenButtonIcon'
|
|
||||||
| 'exitFullScreenButtonColor'
|
|
||||||
> as `card${Capitalize<string & TKey>}`]: IXCardContainer[TKey];
|
> as `card${Capitalize<string & TKey>}`]: IXCardContainer[TKey];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -398,18 +332,6 @@ export class XComponentCardContainer
|
|||||||
this.propertyProvider.showFooter;
|
this.propertyProvider.showFooter;
|
||||||
readonly cardShowActions: XStandardType<boolean> =
|
readonly cardShowActions: XStandardType<boolean> =
|
||||||
this.propertyProvider.showActions;
|
this.propertyProvider.showActions;
|
||||||
|
|
||||||
//
|
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.showFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.enterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.enterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.exitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.exitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -470,27 +392,6 @@ export abstract class XComponentCardContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardShowActions: XStandardType<boolean> =
|
cardShowActions: XStandardType<boolean> =
|
||||||
this.propertyProvider.cardShowActions;
|
this.propertyProvider.cardShowActions;
|
||||||
|
|
||||||
//
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -550,31 +451,6 @@ export abstract class XComponentCardContainerComponent
|
|||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions,
|
||||||
),
|
),
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<!-- Component Template -->
|
<!-- Component Template -->
|
||||||
<ng-container *ngIf="getValue(wrapWithCard) | async; else componentsRef">
|
<ng-container *ngIf="getValue(wrapWithCard) | async; else componentsRef">
|
||||||
<x-card
|
<x-card
|
||||||
|
#chartCard
|
||||||
class="x-card"
|
class="x-card"
|
||||||
[showActions]="true"
|
[showActions]="true"
|
||||||
|
[actionProvider]="cardActionProvider"
|
||||||
[color]="getValue(cardColor) | async"
|
[color]="getValue(cardColor) | async"
|
||||||
[ngClass]="getValue(cssClass) | async"
|
[ngClass]="getValue(cssClass) | async"
|
||||||
[isInPage]="getValue(isInPage) | async"
|
[isInPage]="getValue(isInPage) | async"
|
||||||
@@ -14,18 +16,7 @@
|
|||||||
[title]="getResourceValue(cardTitle) | async"
|
[title]="getResourceValue(cardTitle) | async"
|
||||||
[showFooter]="getValue(cardShowFooter) | async"
|
[showFooter]="getValue(cardShowFooter) | async"
|
||||||
[showActions]="getValue(cardShowActions) | async"
|
[showActions]="getValue(cardShowActions) | async"
|
||||||
[enterFullScreenButtonIcon]="
|
|
||||||
getValue(cardEnterFullScreenButtonIcon) | async
|
|
||||||
"
|
|
||||||
[enterFullScreenButtonColor]="
|
|
||||||
getValue(cardEnterFullScreenButtonColor) | async
|
|
||||||
"
|
|
||||||
[exitFullScreenButtonColor]="
|
|
||||||
getValue(cardExitFullScreenButtonColor) | async
|
|
||||||
"
|
|
||||||
[foregroundColor]="getValue(cardForegroundColor) | async"
|
[foregroundColor]="getValue(cardForegroundColor) | async"
|
||||||
[showFullScreenButton]="getValue(cardShowFullScreenButton) | async"
|
|
||||||
[exitFullScreenButtonIcon]="getValue(cardExitFullScreenButtonIcon) | async"
|
|
||||||
>
|
>
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<ng-container *ngTemplateOutlet="componentsRef"></ng-container>
|
<ng-container *ngTemplateOutlet="componentsRef"></ng-container>
|
||||||
@@ -52,6 +43,7 @@
|
|||||||
>
|
>
|
||||||
<!-- Toolbar -->
|
<!-- Toolbar -->
|
||||||
<x-action-bar
|
<x-action-bar
|
||||||
|
#chartActionBar
|
||||||
[color]="actionBarColor"
|
[color]="actionBarColor"
|
||||||
[cssClass]="actionBarCssClass"
|
[cssClass]="actionBarCssClass"
|
||||||
[actionProvider]="actionBarActionProvider"
|
[actionProvider]="actionBarActionProvider"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import {
|
|||||||
Component,
|
Component,
|
||||||
ViewChild,
|
ViewChild,
|
||||||
ElementRef,
|
ElementRef,
|
||||||
HostListener,
|
|
||||||
ChangeDetectionStrategy,
|
ChangeDetectionStrategy,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import {
|
import {
|
||||||
@@ -14,24 +13,25 @@ import {
|
|||||||
downloadFileByUrl,
|
downloadFileByUrl,
|
||||||
isNullOrUndefined,
|
isNullOrUndefined,
|
||||||
isNullOrEmptyString,
|
isNullOrEmptyString,
|
||||||
downloadArrayBufferedFile,
|
|
||||||
XColorWithBrightness,
|
XColorWithBrightness,
|
||||||
|
downloadArrayBufferedFile,
|
||||||
} from 'x-framework-core';
|
} from 'x-framework-core';
|
||||||
import {
|
import {
|
||||||
isChartType,
|
isChartType,
|
||||||
XChartAction,
|
XChartAction,
|
||||||
XChartOptions,
|
XChartOptions,
|
||||||
XChartSeriesType,
|
|
||||||
XChartEventOpts,
|
XChartEventOpts,
|
||||||
|
XChartTextAlign,
|
||||||
|
XChartSeriesType,
|
||||||
|
isChartTextAlign,
|
||||||
XChartActionBarItem,
|
XChartActionBarItem,
|
||||||
XChartDrilldownEvent,
|
XChartDrilldownEvent,
|
||||||
XChartContainerComponent,
|
XChartContainerComponent,
|
||||||
XChartStoryboardBeatInfo,
|
XChartStoryboardBeatInfo,
|
||||||
isChartTextAlign,
|
XChartColorFormatterOpts,
|
||||||
XChartTextAlign,
|
|
||||||
} from './x-chart.typings';
|
} from './x-chart.typings';
|
||||||
import { Subscription } from 'rxjs';
|
|
||||||
import ApexCharts from 'apexcharts';
|
import ApexCharts from 'apexcharts';
|
||||||
|
import { Subject, Subscription } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
XActionBarItem,
|
XActionBarItem,
|
||||||
XActionBarItemSlot,
|
XActionBarItemSlot,
|
||||||
@@ -39,6 +39,8 @@ import {
|
|||||||
} from '../x-action-bar/x-action-bar.typings';
|
} from '../x-action-bar/x-action-bar.typings';
|
||||||
import { XIconNames } from '../x-icon/x-icon.typings';
|
import { XIconNames } from '../x-icon/x-icon.typings';
|
||||||
import { XCardAction } from '../x-card/x-card.typings';
|
import { XCardAction } from '../x-card/x-card.typings';
|
||||||
|
import { XCardComponent } from '../x-card/x-card.component';
|
||||||
|
import { XActionBarComponent } from '../x-action-bar/x-action-bar.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'x-chart',
|
selector: 'x-chart',
|
||||||
@@ -50,39 +52,70 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
//
|
//
|
||||||
//#region Props ...
|
//#region Props ...
|
||||||
//
|
//
|
||||||
private CHART_CONTAINER: ElementRef | undefined;
|
//#region Chart Container ...
|
||||||
|
//
|
||||||
|
private CHART_CONTAINER: ElementRef = undefined;
|
||||||
|
|
||||||
@ViewChild('chartContainer', { static: false })
|
@ViewChild('chartContainer', { static: false })
|
||||||
set chartContainer(el: ElementRef | undefined) {
|
set chartContainer(v: ElementRef) {
|
||||||
//
|
//
|
||||||
if (isNullOrUndefined(el)) {
|
if (isNullOrUndefined(v)) {
|
||||||
//
|
//
|
||||||
this.destroyComponent();
|
this.destroyComponent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
this.CHART_CONTAINER = el;
|
this.CHART_CONTAINER = v;
|
||||||
this.initializeComponent();
|
this.initializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
get chartContainer() {
|
get chartContainer() {
|
||||||
return this.CHART_CONTAINER;
|
return this.CHART_CONTAINER;
|
||||||
}
|
}
|
||||||
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@HostListener('resize', ['$event'])
|
//#region Chart ActionBar ...
|
||||||
onResize(event: any) {
|
//
|
||||||
|
private CHART_ACTIONBAR: XActionBarComponent = undefined;
|
||||||
|
|
||||||
|
@ViewChild('chartActionBar', { static: false })
|
||||||
|
set chartActionBar(v: XActionBarComponent) {
|
||||||
|
this.CHART_ACTIONBAR = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
get chartActionBar() {
|
||||||
|
return this.CHART_ACTIONBAR;
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
//
|
||||||
|
//#region Chart Card ...
|
||||||
|
//
|
||||||
|
private CHART_CARD: XCardComponent = undefined;
|
||||||
|
|
||||||
|
@ViewChild('chartCard', { static: false })
|
||||||
|
set chartCard(v: XCardComponent) {
|
||||||
//
|
//
|
||||||
if (isNullOrUndefined(this.chartInstance)) {
|
if (!isNullOrUndefined(v)) {
|
||||||
return;
|
this.registerCardActionProvider();
|
||||||
|
} else {
|
||||||
|
this.unregisterCardActionProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Complete this ...
|
this.CHART_CARD = v;
|
||||||
// this.chartInstance.updateOptions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get chartCard() {
|
||||||
|
return this.CHART_CARD;
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
//
|
||||||
|
private ORIGINAL_HEIGHT: string = undefined;
|
||||||
|
|
||||||
//
|
//
|
||||||
private CHART_OPTIONS: XChartOptions = null;
|
private CHART_OPTIONS: XChartOptions = null;
|
||||||
|
|
||||||
@@ -91,6 +124,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
|
|
||||||
//
|
//
|
||||||
private ACTION_PROVIDER_SUBSCRIPTION: Subscription;
|
private ACTION_PROVIDER_SUBSCRIPTION: Subscription;
|
||||||
|
private CARD_ACTION_PROVIDER_SUBSCRIPTION: Subscription;
|
||||||
|
|
||||||
//
|
//
|
||||||
readonly IconNames = Object.assign({}, XIconNames);
|
readonly IconNames = Object.assign({}, XIconNames);
|
||||||
@@ -340,6 +374,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
//
|
//
|
||||||
this.destroyComponent();
|
this.destroyComponent();
|
||||||
this.unregisterActionProvider();
|
this.unregisterActionProvider();
|
||||||
|
this.unregisterCardActionProvider();
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -663,52 +698,17 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
|
|
||||||
async handleToggleFullscreen() {
|
async handleToggleFullscreen() {
|
||||||
//
|
//
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.chartInstance) ||
|
||||||
|
isNullOrUndefined(this.chartContainer) ||
|
||||||
|
isNullOrUndefined(this.chartContainer.nativeElement)
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Handle Fullscreen Toggle using Card ...
|
||||||
this.cardActionProvider.next({ action: XCardAction.ToggleFullScreen });
|
this.cardActionProvider.next({ action: XCardAction.ToggleFullScreen });
|
||||||
|
|
||||||
// if (
|
|
||||||
// isNullOrUndefined(this.chartInstance) ||
|
|
||||||
// isNullOrUndefined(this.chartContainer) ||
|
|
||||||
// isNullOrUndefined(this.chartContainer.nativeElement)
|
|
||||||
// ) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //
|
|
||||||
// const chartWrapper = this.chartContainer.nativeElement;
|
|
||||||
// const doc = document as any;
|
|
||||||
|
|
||||||
// //
|
|
||||||
// // Check if the chart wrapper is currently in fullscreen mode
|
|
||||||
// const isFullscreen =
|
|
||||||
// doc.fullscreenElement === chartWrapper ||
|
|
||||||
// doc.msFullscreenElement === chartWrapper ||
|
|
||||||
// doc.mozFullScreenElement === chartWrapper ||
|
|
||||||
// doc.webkitFullscreenElement === chartWrapper;
|
|
||||||
// if (!isFullscreen) {
|
|
||||||
// //
|
|
||||||
// // Enter Fullscreen
|
|
||||||
// if (chartWrapper.requestFullscreen) {
|
|
||||||
// await chartWrapper.requestFullscreen();
|
|
||||||
// } else if (chartWrapper.webkitRequestFullscreen) {
|
|
||||||
// await chartWrapper.webkitRequestFullscreen();
|
|
||||||
// } else if (chartWrapper.mozRequestFullScreen) {
|
|
||||||
// await chartWrapper.mozRequestFullScreen();
|
|
||||||
// } else if (chartWrapper.msRequestFullscreen) {
|
|
||||||
// await chartWrapper.msRequestFullscreen();
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// //
|
|
||||||
// // Exit Fullscreen
|
|
||||||
// if (doc.exitFullscreen) {
|
|
||||||
// await doc.exitFullscreen();
|
|
||||||
// } else if (doc.webkitExitFullscreen) {
|
|
||||||
// await doc.webkitExitFullscreen();
|
|
||||||
// } else if (doc.mozCancelFullScreen) {
|
|
||||||
// await doc.mozCancelFullScreen();
|
|
||||||
// } else if (doc.msExitFullscreen) {
|
|
||||||
// await doc.msExitFullscreen();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -725,8 +725,14 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
const type = await this.getValueAsync(this.type);
|
const type = await this.getValueAsync(this.type);
|
||||||
const chartId = await this.getValueAsync(this.uuid);
|
const chartId = await this.getValueAsync(this.uuid);
|
||||||
const series = await this.getValueAsync(this.series);
|
const series = await this.getValueAsync(this.series);
|
||||||
|
|
||||||
|
//
|
||||||
const cOptions = await this.getValueAsync(this.options);
|
const cOptions = await this.getValueAsync(this.options);
|
||||||
|
|
||||||
|
//
|
||||||
|
const colors: Array<string | ((opts: XChartColorFormatterOpts) => string)> =
|
||||||
|
[getXColorValue(XColorWithBrightness.PrimaryShade)];
|
||||||
|
|
||||||
//
|
//
|
||||||
const title = await this.getResourceValueAsync(this.title);
|
const title = await this.getResourceValueAsync(this.title);
|
||||||
const titleAlignProp = await this.getValueAsync(this.titleAlign);
|
const titleAlignProp = await this.getValueAsync(this.titleAlign);
|
||||||
@@ -760,6 +766,9 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
//
|
//
|
||||||
const primaryColorValue = getXColorValue(XColorWithBrightness.Primary);
|
const primaryColorValue = getXColorValue(XColorWithBrightness.Primary);
|
||||||
|
|
||||||
|
//
|
||||||
|
console.log('cOptions: ', cOptions);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Normalize Directional Properties ....
|
// Normalize Directional Properties ....
|
||||||
if (this.managerService.uiDirection == 'ltr') {
|
if (this.managerService.uiDirection == 'ltr') {
|
||||||
@@ -799,27 +808,27 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
//
|
//
|
||||||
this.CHART_OPTIONS = {
|
this.CHART_OPTIONS = {
|
||||||
...cOptions,
|
...cOptions,
|
||||||
series: series || cOptions.series,
|
series: series,
|
||||||
title: {
|
title: {
|
||||||
...cOptions.title,
|
...cOptions?.title,
|
||||||
text: title,
|
text: title,
|
||||||
align: titleAlign,
|
align: titleAlign,
|
||||||
style: {
|
style: {
|
||||||
...cOptions.title?.style,
|
...cOptions?.title?.style,
|
||||||
color: titleColorValue,
|
color: titleColorValue,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
subtitle: {
|
subtitle: {
|
||||||
...cOptions.subtitle,
|
...cOptions?.subtitle,
|
||||||
text: subTitle,
|
text: subTitle,
|
||||||
align: subTitleAlign,
|
align: subTitleAlign,
|
||||||
style: {
|
style: {
|
||||||
...cOptions.subtitle?.style,
|
...cOptions?.subtitle?.style,
|
||||||
color: subTitleColorValue,
|
color: subTitleColorValue,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
chart: {
|
chart: {
|
||||||
...cOptions.chart,
|
...cOptions?.chart,
|
||||||
id: chartId,
|
id: chartId,
|
||||||
type: type as any,
|
type: type as any,
|
||||||
foreColor: foregroundColorValue,
|
foreColor: foregroundColorValue,
|
||||||
@@ -829,7 +838,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
autoSelected: 'pan',
|
autoSelected: 'pan',
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
...cOptions.chart?.events,
|
...cOptions?.chart?.events,
|
||||||
//
|
//
|
||||||
//#region Attach Events ...
|
//#region Attach Events ...
|
||||||
//
|
//
|
||||||
@@ -840,7 +849,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.animationEnd?.(chart, options);
|
cOptions?.chart?.events?.animationEnd?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -851,7 +860,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.beforeMount?.(chart, options);
|
cOptions?.chart?.events?.beforeMount?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -862,7 +871,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.mounted?.(chart, options);
|
cOptions?.chart?.events?.mounted?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -873,7 +882,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.updated?.(chart, options);
|
cOptions?.chart?.events?.updated?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -888,7 +897,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.mouseMove?.(e, chart, options);
|
cOptions?.chart?.events?.mouseMove?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -903,7 +912,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.mouseLeave?.(e, chart, options);
|
cOptions?.chart?.events?.mouseLeave?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -918,7 +927,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.click?.(e, chart, options);
|
cOptions?.chart?.events?.click?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -933,7 +942,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.xAxisLabelClick?.(e, chart, options);
|
cOptions?.chart?.events?.xAxisLabelClick?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -951,7 +960,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.legendClick?.(chart, seriesIndex, options);
|
cOptions?.chart?.events?.legendClick?.(chart, seriesIndex, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -966,7 +975,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.markerClick?.(e, chart, options);
|
cOptions?.chart?.events?.markerClick?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -983,7 +992,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.selection?.(chart, options);
|
cOptions?.chart?.events?.selection?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -998,7 +1007,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.dataPointSelection?.(e, chart, options);
|
cOptions?.chart?.events?.dataPointSelection?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1013,7 +1022,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.dataPointMouseEnter?.(e, chart, options);
|
cOptions?.chart?.events?.dataPointMouseEnter?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1028,7 +1037,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.dataPointMouseLeave?.(e, chart, options);
|
cOptions?.chart?.events?.dataPointMouseLeave?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1042,7 +1051,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.beforeZoom?.(chart, options);
|
cOptions?.chart?.events?.beforeZoom?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1053,7 +1062,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.beforeResetZoom?.(chart, options);
|
cOptions?.chart?.events?.beforeResetZoom?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1070,7 +1079,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.zoomed?.(chart, options);
|
cOptions?.chart?.events?.zoomed?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1084,7 +1093,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.scrolled?.(chart, options);
|
cOptions?.chart?.events?.scrolled?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1101,7 +1110,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.brushScrolled?.(chart, options);
|
cOptions?.chart?.events?.brushScrolled?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1118,7 +1127,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.crossFilter?.(chart, options);
|
cOptions?.chart?.events?.crossFilter?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1138,7 +1147,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.filterChange?.(chart, options);
|
cOptions?.chart?.events?.filterChange?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1160,7 +1169,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.annotationDragged?.(chart, options);
|
cOptions?.chart?.events?.annotationDragged?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1179,7 +1188,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.annotationEdited?.(chart, options);
|
cOptions?.chart?.events?.annotationEdited?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1199,7 +1208,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.annotationCreated?.(chart, options);
|
cOptions?.chart?.events?.annotationCreated?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1219,7 +1228,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.annotationStyled?.(chart, options);
|
cOptions?.chart?.events?.annotationStyled?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1237,7 +1246,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.annotationDeleted?.(chart, options);
|
cOptions?.chart?.events?.annotationDeleted?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1258,7 +1267,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.measured?.(chart, options);
|
cOptions?.chart?.events?.measured?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1272,7 +1281,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.beatChange?.(chart, options);
|
cOptions?.chart?.events?.beatChange?.(chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1287,7 +1296,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.keyDown?.(e, chart, options);
|
cOptions?.chart?.events?.keyDown?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1302,7 +1311,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.keyUp?.(e, chart, options);
|
cOptions?.chart?.events?.keyUp?.(e, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1317,7 +1326,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.drillDownStart?.(info, chart, options);
|
cOptions?.chart?.events?.drillDownStart?.(info, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1332,7 +1341,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.drillDownEnd?.(info, chart, options);
|
cOptions?.chart?.events?.drillDownEnd?.(info, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1347,7 +1356,7 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.drillUp?.(info, chart, options);
|
cOptions?.chart?.events?.drillUp?.(info, chart, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1362,22 +1371,22 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
cOptions.chart?.events?.drillDownError?.(info, chart, options);
|
cOptions?.chart?.events?.drillDownError?.(info, chart, options);
|
||||||
},
|
},
|
||||||
//#endregion
|
//#endregion
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
...cOptions.theme,
|
...cOptions?.theme,
|
||||||
palette: cOptions.theme?.palette || 'palette1',
|
palette: cOptions?.theme?.palette || 'palette1',
|
||||||
},
|
},
|
||||||
colors: cOptions.colors || [primaryColorValue],
|
colors: colors,
|
||||||
grid: {
|
grid: {
|
||||||
...cOptions.grid,
|
...cOptions?.grid,
|
||||||
borderColor: gridColorValue,
|
borderColor: gridColorValue,
|
||||||
},
|
},
|
||||||
dataLabels: {
|
dataLabels: {
|
||||||
...cOptions.dataLabels,
|
...cOptions?.dataLabels,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1387,9 +1396,18 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
this.CHART_OPTIONS,
|
this.CHART_OPTIONS,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Storing Original Height ...
|
||||||
|
if (isNullOrEmptyString(this.ORIGINAL_HEIGHT)) {
|
||||||
|
this.ORIGINAL_HEIGHT = this.CHART_OPTIONS.chart?.height?.toString();
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
await this.prepareActionBar();
|
await this.prepareActionBar();
|
||||||
|
|
||||||
|
//
|
||||||
|
console.log('CHART_OPTIONS: ', this.CHART_OPTIONS);
|
||||||
|
|
||||||
//
|
//
|
||||||
await this.chartInstance.render();
|
await this.chartInstance.render();
|
||||||
}
|
}
|
||||||
@@ -2071,6 +2089,60 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
this.chartInstance = null;
|
this.chartInstance = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async handleFullscreenMode(isFullscreen: boolean) {
|
||||||
|
//
|
||||||
|
if (
|
||||||
|
isNullOrUndefined(this.chartCard) ||
|
||||||
|
isNullOrUndefined(this.chartInstance)
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
let height = this.ORIGINAL_HEIGHT;
|
||||||
|
if (isFullscreen) {
|
||||||
|
//
|
||||||
|
const cardImageElement = document.querySelector('.x-card .x-image');
|
||||||
|
const cardHeaderElement = document.querySelector('.x-card .x-header');
|
||||||
|
const cardFooterElement = document.querySelector('.x-card .x-footer');
|
||||||
|
const cardContentElement = document.querySelector('.x-card .x-content');
|
||||||
|
const cardActionsElement = document.querySelector('.x-card .x-actions');
|
||||||
|
const actionBarHeight =
|
||||||
|
(this.chartActionBar?.element?.nativeElement as HTMLElement)
|
||||||
|
?.offsetHeight || 0;
|
||||||
|
|
||||||
|
//
|
||||||
|
const offset = 24;
|
||||||
|
height = `${
|
||||||
|
window.innerHeight -
|
||||||
|
offset -
|
||||||
|
(actionBarHeight +
|
||||||
|
(cardImageElement?.clientHeight || 0) +
|
||||||
|
(cardHeaderElement?.clientHeight || 0) +
|
||||||
|
(cardActionsElement?.clientHeight || 0) +
|
||||||
|
(cardFooterElement?.clientHeight || 0))
|
||||||
|
}px`;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
this.CHART_OPTIONS = {
|
||||||
|
...this.CHART_OPTIONS,
|
||||||
|
chart: {
|
||||||
|
height: height,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
this.chartInstance.updateOptions(
|
||||||
|
this.CHART_OPTIONS,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
this.managerService.dispatchResizeEvent();
|
||||||
|
}
|
||||||
|
|
||||||
private registerActionProvider() {
|
private registerActionProvider() {
|
||||||
//
|
//
|
||||||
this.unregisterActionProvider();
|
this.unregisterActionProvider();
|
||||||
@@ -2141,5 +2213,43 @@ export class XChartComponent extends XChartContainerComponent {
|
|||||||
this.ACTION_PROVIDER_SUBSCRIPTION.unsubscribe();
|
this.ACTION_PROVIDER_SUBSCRIPTION.unsubscribe();
|
||||||
this.ACTION_PROVIDER_SUBSCRIPTION = null;
|
this.ACTION_PROVIDER_SUBSCRIPTION = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private registerCardActionProvider() {
|
||||||
|
//
|
||||||
|
if (!isNullOrUndefined(this.CARD_ACTION_PROVIDER_SUBSCRIPTION)) {
|
||||||
|
this.unregisterCardActionProvider();
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
this.CARD_ACTION_PROVIDER_SUBSCRIPTION = this.cardActionProvider
|
||||||
|
.asObservable()
|
||||||
|
.subscribe(async (model) => {
|
||||||
|
//
|
||||||
|
if (isNullOrUndefined(model) || isNullOrEmptyString(model.action)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Handle Full Screen Toggled ...
|
||||||
|
if (model.action == XCardAction.FullScreenToggled) {
|
||||||
|
//
|
||||||
|
const isFullscreen = isNullOrUndefined(model.payload)
|
||||||
|
? false
|
||||||
|
: (model.payload as boolean) || false;
|
||||||
|
await this.handleFullscreenMode(isFullscreen);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private unregisterCardActionProvider() {
|
||||||
|
//
|
||||||
|
if (isNullOrUndefined(this.CARD_ACTION_PROVIDER_SUBSCRIPTION)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
this.CARD_ACTION_PROVIDER_SUBSCRIPTION.unsubscribe();
|
||||||
|
this.CARD_ACTION_PROVIDER_SUBSCRIPTION = null;
|
||||||
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import {
|
|||||||
XColorIdentifier,
|
XColorIdentifier,
|
||||||
XResourceIdentifier,
|
XResourceIdentifier,
|
||||||
XColorWithBrightness,
|
XColorWithBrightness,
|
||||||
|
getXColorValue,
|
||||||
} from 'x-framework-core';
|
} from 'x-framework-core';
|
||||||
import {
|
import {
|
||||||
XCardActionModel,
|
XCardActionModel,
|
||||||
@@ -42,7 +43,6 @@ import { XBaseActionModel } from '../classes/x-base-action.model';
|
|||||||
import { X_FRAMEWORK_COMPONENTS_CONFIG } from '../tokens/x-injectable-tokens';
|
import { X_FRAMEWORK_COMPONENTS_CONFIG } from '../tokens/x-injectable-tokens';
|
||||||
import { XPopoverPresentOptions } from '../dialogs/x-popover/x-popover.typings';
|
import { XPopoverPresentOptions } from '../dialogs/x-popover/x-popover.typings';
|
||||||
import { XFrameworkComponentsConfig } from '../config/x-framework-components.config';
|
import { XFrameworkComponentsConfig } from '../config/x-framework-components.config';
|
||||||
import { XIconIdentifier } from '../x-icon/x-icon.typings';
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region Chart ...
|
//#region Chart ...
|
||||||
@@ -2694,19 +2694,19 @@ export type XChart = {
|
|||||||
): void;
|
): void;
|
||||||
/** Fired before a drill-down transition begins. Requires the Drilldown feature. */
|
/** Fired before a drill-down transition begins. Requires the Drilldown feature. */
|
||||||
drillDownStart?(
|
drillDownStart?(
|
||||||
info: XChartDrilldownEvent,
|
info: ApexCharts.ApexDrilldownEvent,
|
||||||
chart?: ApexCharts,
|
chart?: ApexCharts,
|
||||||
options?: XChartEventOpts,
|
options?: XChartEventOpts,
|
||||||
): void;
|
): void;
|
||||||
/** Fired after a drill-down transition completes. Requires the Drilldown feature. */
|
/** Fired after a drill-down transition completes. Requires the Drilldown feature. */
|
||||||
drillDownEnd?(
|
drillDownEnd?(
|
||||||
info: XChartDrilldownEvent,
|
info: ApexCharts.ApexDrilldownEvent,
|
||||||
chart?: ApexCharts,
|
chart?: ApexCharts,
|
||||||
options?: XChartEventOpts,
|
options?: XChartEventOpts,
|
||||||
): void;
|
): void;
|
||||||
/** Fired after navigating back up a drilldown level. Requires the Drilldown feature. */
|
/** Fired after navigating back up a drilldown level. Requires the Drilldown feature. */
|
||||||
drillUp?(
|
drillUp?(
|
||||||
info: XChartDrilldownEvent,
|
info: ApexCharts.ApexDrilldownEvent,
|
||||||
chart?: ApexCharts,
|
chart?: ApexCharts,
|
||||||
options?: XChartEventOpts,
|
options?: XChartEventOpts,
|
||||||
): void;
|
): void;
|
||||||
@@ -3263,7 +3263,7 @@ export enum XChartActionBarItem {
|
|||||||
|
|
||||||
export type XChartActionBarItemIdentifier = XChartActionBarItem | string;
|
export type XChartActionBarItemIdentifier = XChartActionBarItem | string;
|
||||||
|
|
||||||
export function isChartActionBar(value: XChartActionBarItemIdentifier) {
|
export function isChartActionBar(value: string) {
|
||||||
return isValueInEnum(value, Object.assign({}, XChartActionBarItem));
|
return isValueInEnum(value, Object.assign({}, XChartActionBarItem));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3324,6 +3324,9 @@ export interface IXChartContainer extends TXChartContainer {
|
|||||||
series: XStandardType<XChartSeriesType>;
|
series: XStandardType<XChartSeriesType>;
|
||||||
type: XStandardType<XChartTypeIdentifier>;
|
type: XStandardType<XChartTypeIdentifier>;
|
||||||
|
|
||||||
|
//
|
||||||
|
colors: Array<string | ((opts: XChartColorFormatterOpts) => string)>;
|
||||||
|
|
||||||
//
|
//
|
||||||
title: XStandardType<XResourceIdentifier>;
|
title: XStandardType<XResourceIdentifier>;
|
||||||
titleAlign: XStandardType<XChartTextAlignIdentifier>;
|
titleAlign: XStandardType<XChartTextAlignIdentifier>;
|
||||||
@@ -3464,8 +3467,8 @@ export class XChartContainer
|
|||||||
implements Readonly<IXChartContainer>
|
implements Readonly<IXChartContainer>
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
readonly cssClass: XStandardType<XOneOrManyType<string>>;
|
|
||||||
readonly actionProvider = new Subject<XChartActionModel>();
|
readonly actionProvider = new Subject<XChartActionModel>();
|
||||||
|
readonly cssClass: XStandardType<XOneOrManyType<string>>;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Chart Props ...
|
// Chart Props ...
|
||||||
@@ -3474,11 +3477,17 @@ export class XChartContainer
|
|||||||
readonly series: XStandardType<XChartSeriesType>;
|
readonly series: XStandardType<XChartSeriesType>;
|
||||||
readonly type: XStandardType<XChartTypeIdentifier> = XChartType.Line;
|
readonly type: XStandardType<XChartTypeIdentifier> = XChartType.Line;
|
||||||
|
|
||||||
|
//
|
||||||
|
readonly colors: Array<
|
||||||
|
string | ((opts: XChartColorFormatterOpts) => string)
|
||||||
|
> = [getXColorValue(XColorWithBrightness.PrimaryShade)];
|
||||||
|
|
||||||
//
|
//
|
||||||
readonly title: XStandardType<XResourceIdentifier>;
|
readonly title: XStandardType<XResourceIdentifier>;
|
||||||
readonly titleAlign: XStandardType<XChartTextAlignIdentifier> =
|
readonly titleAlign: XStandardType<XChartTextAlignIdentifier> =
|
||||||
XChartTextAlign.Center;
|
XChartTextAlign.Center;
|
||||||
|
|
||||||
|
//
|
||||||
readonly subTitle: XStandardType<XResourceIdentifier>;
|
readonly subTitle: XStandardType<XResourceIdentifier>;
|
||||||
readonly subTitleAlign: XStandardType<XChartTextAlignIdentifier> =
|
readonly subTitleAlign: XStandardType<XChartTextAlignIdentifier> =
|
||||||
XChartTextAlign.Center;
|
XChartTextAlign.Center;
|
||||||
@@ -3654,16 +3663,6 @@ export class XChartContainer
|
|||||||
this.cardPropertyProvider.cardShowFooter;
|
this.cardPropertyProvider.cardShowFooter;
|
||||||
readonly cardShowActions: XStandardType<boolean> =
|
readonly cardShowActions: XStandardType<boolean> =
|
||||||
this.cardPropertyProvider.cardShowActions;
|
this.cardPropertyProvider.cardShowActions;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -3708,6 +3707,9 @@ export abstract class XChartContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
zoomStep: XStandardType<number> = this.propertyProvider.zoomStep;
|
zoomStep: XStandardType<number> = this.propertyProvider.zoomStep;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
colors: Array<string | ((opts: XChartColorFormatterOpts) => string)> = this.propertyProvider.colors;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
defaultActionBarItemColor: XStandardType<XColorIdentifier> =
|
defaultActionBarItemColor: XStandardType<XColorIdentifier> =
|
||||||
this.propertyProvider.defaultActionBarItemColor;
|
this.propertyProvider.defaultActionBarItemColor;
|
||||||
@@ -3969,26 +3971,6 @@ export abstract class XChartContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardActionProvider: Subject<XCardActionModel> =
|
cardActionProvider: Subject<XCardActionModel> =
|
||||||
this.propertyProvider.cardActionProvider;
|
this.propertyProvider.cardActionProvider;
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -4044,7 +4026,7 @@ export abstract class XChartContainerComponent
|
|||||||
changeDetector,
|
changeDetector,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregionّ
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
@@ -4060,10 +4042,13 @@ export abstract class XChartContainerComponent
|
|||||||
|
|
||||||
//
|
//
|
||||||
type: this.getValue(container ? container.type : this.type),
|
type: this.getValue(container ? container.type : this.type),
|
||||||
options: this.getValue(container ? container.options : this.options),
|
|
||||||
series: this.getValue(container ? container.series : this.series),
|
series: this.getValue(container ? container.series : this.series),
|
||||||
|
options: this.getValue(container ? container.options : this.options),
|
||||||
zoomStep: this.getValue(container ? container.zoomStep : this.zoomStep),
|
zoomStep: this.getValue(container ? container.zoomStep : this.zoomStep),
|
||||||
|
|
||||||
|
//
|
||||||
|
colors: this.getValue(container ? container.colors : this.colors),
|
||||||
|
|
||||||
//
|
//
|
||||||
title: this.getValue(container ? container.title : this.title),
|
title: this.getValue(container ? container.title : this.title),
|
||||||
titleAlign: this.getValue(
|
titleAlign: this.getValue(
|
||||||
@@ -4133,31 +4118,6 @@ export abstract class XChartContainerComponent
|
|||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle,
|
||||||
),
|
),
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
+47
-104
@@ -45,7 +45,8 @@ export enum XFileDropAreaAction {
|
|||||||
|
|
||||||
export type XFileDropAreaActionIdentifier = XFileDropAreaAction | string;
|
export type XFileDropAreaActionIdentifier = XFileDropAreaAction | string;
|
||||||
|
|
||||||
export interface XFileDropAreaActionModel extends XBaseActionModel<XFileDropAreaActionIdentifier> {}
|
export interface XFileDropAreaActionModel
|
||||||
|
extends XBaseActionModel<XFileDropAreaActionIdentifier> {}
|
||||||
|
|
||||||
export enum XFileDropAreaCssVars {
|
export enum XFileDropAreaCssVars {
|
||||||
LabelColor = 'label-color',
|
LabelColor = 'label-color',
|
||||||
@@ -210,7 +211,7 @@ export abstract class XFileDropAreaContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XFileDropAreaContainer,
|
protected propertyProvider: XFileDropAreaContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -220,7 +221,7 @@ export abstract class XFileDropAreaContainerComponent
|
|||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector,
|
||||||
propertyProvider,
|
propertyProvider
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -228,7 +229,7 @@ export abstract class XFileDropAreaContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXFileDropAreaContainer,
|
container?: IXFileDropAreaContainer
|
||||||
): Observable<IXFileDropAreaContainer> {
|
): Observable<IXFileDropAreaContainer> {
|
||||||
return super
|
return super
|
||||||
.extractProps(container ? container : this)
|
.extractProps(container ? container : this)
|
||||||
@@ -237,40 +238,40 @@ export abstract class XFileDropAreaContainerComponent
|
|||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
cssClass: this.getArrayValue(
|
cssClass: this.getArrayValue(
|
||||||
container ? container.cssClass : this.cssClass,
|
container ? container.cssClass : this.cssClass
|
||||||
),
|
),
|
||||||
|
|
||||||
//
|
//
|
||||||
color: this.getValue(container ? container.color : this.color),
|
color: this.getValue(container ? container.color : this.color),
|
||||||
foregroundColor: this.getValue(
|
foregroundColor: this.getValue(
|
||||||
container ? container.foregroundColor : this.foregroundColor,
|
container ? container.foregroundColor : this.foregroundColor
|
||||||
),
|
),
|
||||||
icon: this.getValue(container ? container.icon : this.icon),
|
icon: this.getValue(container ? container.icon : this.icon),
|
||||||
message: this.getValue(
|
message: this.getValue(
|
||||||
container ? container.message : this.message,
|
container ? container.message : this.message
|
||||||
),
|
),
|
||||||
disableFileCheck: this.getValue(
|
disableFileCheck: this.getValue(
|
||||||
container ? container.disableFileCheck : this.disableFileCheck,
|
container ? container.disableFileCheck : this.disableFileCheck
|
||||||
),
|
),
|
||||||
supportsMultipleFiles: this.getValue(
|
supportsMultipleFiles: this.getValue(
|
||||||
container
|
container
|
||||||
? container.supportsMultipleFiles
|
? container.supportsMultipleFiles
|
||||||
: this.supportsMultipleFiles,
|
: this.supportsMultipleFiles
|
||||||
),
|
),
|
||||||
allowedExtensions: this.getValue(
|
allowedExtensions: this.getValue(
|
||||||
container ? container.allowedExtensions : this.allowedExtensions,
|
container ? container.allowedExtensions : this.allowedExtensions
|
||||||
),
|
),
|
||||||
dragDisabled: this.getValue(
|
dragDisabled: this.getValue(
|
||||||
container ? container.dragDisabled : this.dragDisabled,
|
container ? container.dragDisabled : this.dragDisabled
|
||||||
),
|
),
|
||||||
successColor: this.getValue(
|
successColor: this.getValue(
|
||||||
container ? container.successColor : this.successColor,
|
container ? container.successColor : this.successColor
|
||||||
),
|
),
|
||||||
errorColor: this.getValue(
|
errorColor: this.getValue(
|
||||||
container ? container.errorColor : this.errorColor,
|
container ? container.errorColor : this.errorColor
|
||||||
),
|
),
|
||||||
accentColor: this.getValue(
|
accentColor: this.getValue(
|
||||||
container ? container.accentColor : this.accentColor,
|
container ? container.accentColor : this.accentColor
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -278,9 +279,9 @@ export abstract class XFileDropAreaContainerComponent
|
|||||||
superData,
|
superData,
|
||||||
data,
|
data,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}),
|
})
|
||||||
)
|
)
|
||||||
.pipe(
|
.pipe(
|
||||||
map((info) => {
|
map((info) => {
|
||||||
@@ -304,7 +305,7 @@ export abstract class XFileDropAreaContainerComponent
|
|||||||
//
|
//
|
||||||
filesChangeEmiter: this.filesChangeEmiter,
|
filesChangeEmiter: this.filesChangeEmiter,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -320,7 +321,8 @@ type TXComponentFileDropAreaContainer = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export interface IXComponentFileDropAreaContainer
|
export interface IXComponentFileDropAreaContainer
|
||||||
extends TXComponentFileDropAreaContainer, IXBaseComponentContainer {
|
extends TXComponentFileDropAreaContainer,
|
||||||
|
IXBaseComponentContainer {
|
||||||
showFileDropArea: XStandardType<boolean>;
|
showFileDropArea: XStandardType<boolean>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -403,16 +405,6 @@ export class XComponentFileDropAreaContainer
|
|||||||
new Subject<XCardActionModel>();
|
new Subject<XCardActionModel>();
|
||||||
readonly fileDropAreaCardSubTitle: XStandardType<XResourceIdentifier>;
|
readonly fileDropAreaCardSubTitle: XStandardType<XResourceIdentifier>;
|
||||||
readonly fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>>;
|
readonly fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>>;
|
||||||
readonly fileDropAreaCardShowFullScreenButton: XStandardType<boolean> = false;
|
|
||||||
readonly fileDropAreaCardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
XIconNames.fullscreen;
|
|
||||||
readonly fileDropAreaCardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
XColorWithBrightness.Light;
|
|
||||||
readonly fileDropAreaCardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
XIconNames.close_fullscreen;
|
|
||||||
readonly fileDropAreaCardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
XColorWithBrightness.Light;
|
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -583,26 +575,6 @@ export abstract class XComponentFileDropAreaContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>> =
|
fileDropAreaCardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.fileDropAreaCardCssClass;
|
this.propertyProvider.fileDropAreaCardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.fileDropAreaCardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
fileDropAreaCardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.fileDropAreaCardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -617,7 +589,7 @@ export abstract class XComponentFileDropAreaContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XComponentFileDropAreaContainer,
|
protected propertyProvider: XComponentFileDropAreaContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -626,7 +598,7 @@ export abstract class XComponentFileDropAreaContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -634,137 +606,108 @@ export abstract class XComponentFileDropAreaContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXComponentFileDropAreaContainer,
|
container?: IXComponentFileDropAreaContainer
|
||||||
): Observable<IXComponentFileDropAreaContainer> {
|
): Observable<IXComponentFileDropAreaContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
fileDropAreaCssClass: this.getValue(
|
fileDropAreaCssClass: this.getValue(
|
||||||
container ? container.fileDropAreaCssClass : this.fileDropAreaCssClass,
|
container ? container.fileDropAreaCssClass : this.fileDropAreaCssClass
|
||||||
),
|
),
|
||||||
fileDropAreaColor: this.getValue(
|
fileDropAreaColor: this.getValue(
|
||||||
container ? container.fileDropAreaColor : this.fileDropAreaColor,
|
container ? container.fileDropAreaColor : this.fileDropAreaColor
|
||||||
),
|
),
|
||||||
fileDropAreaForegroundColor: this.getValue(
|
fileDropAreaForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaForegroundColor
|
? container.fileDropAreaForegroundColor
|
||||||
: this.fileDropAreaForegroundColor,
|
: this.fileDropAreaForegroundColor
|
||||||
),
|
),
|
||||||
fileDropAreaIcon: this.getValue(
|
fileDropAreaIcon: this.getValue(
|
||||||
container ? container.fileDropAreaIcon : this.fileDropAreaIcon,
|
container ? container.fileDropAreaIcon : this.fileDropAreaIcon
|
||||||
),
|
),
|
||||||
fileDropAreaMessage: this.getValue(
|
fileDropAreaMessage: this.getValue(
|
||||||
container ? container.fileDropAreaMessage : this.fileDropAreaMessage,
|
container ? container.fileDropAreaMessage : this.fileDropAreaMessage
|
||||||
),
|
),
|
||||||
fileDropAreaDisableFileCheck: this.getValue(
|
fileDropAreaDisableFileCheck: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaDisableFileCheck
|
? container.fileDropAreaDisableFileCheck
|
||||||
: this.fileDropAreaDisableFileCheck,
|
: this.fileDropAreaDisableFileCheck
|
||||||
),
|
),
|
||||||
fileDropAreaSupportsMultipleFiles: this.getValue(
|
fileDropAreaSupportsMultipleFiles: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaSupportsMultipleFiles
|
? container.fileDropAreaSupportsMultipleFiles
|
||||||
: this.fileDropAreaSupportsMultipleFiles,
|
: this.fileDropAreaSupportsMultipleFiles
|
||||||
),
|
),
|
||||||
fileDropAreaAllowedExtensions: this.getValue(
|
fileDropAreaAllowedExtensions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaAllowedExtensions
|
? container.fileDropAreaAllowedExtensions
|
||||||
: this.fileDropAreaAllowedExtensions,
|
: this.fileDropAreaAllowedExtensions
|
||||||
),
|
),
|
||||||
fileDropAreaDragDisabled: this.getValue(
|
fileDropAreaDragDisabled: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaDragDisabled
|
? container.fileDropAreaDragDisabled
|
||||||
: this.fileDropAreaDragDisabled,
|
: this.fileDropAreaDragDisabled
|
||||||
),
|
),
|
||||||
fileDropAreaContentTemplate: this.getValue(
|
fileDropAreaContentTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaContentTemplate
|
? container.fileDropAreaContentTemplate
|
||||||
: this.fileDropAreaContentTemplate,
|
: this.fileDropAreaContentTemplate
|
||||||
),
|
),
|
||||||
fileDropAreaSuccessColor: this.getValue(
|
fileDropAreaSuccessColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaSuccessColor
|
? container.fileDropAreaSuccessColor
|
||||||
: this.fileDropAreaSuccessColor,
|
: this.fileDropAreaSuccessColor
|
||||||
),
|
),
|
||||||
fileDropAreaErrorColor: this.getValue(
|
fileDropAreaErrorColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaErrorColor
|
? container.fileDropAreaErrorColor
|
||||||
: this.fileDropAreaErrorColor,
|
: this.fileDropAreaErrorColor
|
||||||
),
|
),
|
||||||
fileDropAreaAccentColor: this.getValue(
|
fileDropAreaAccentColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaAccentColor
|
? container.fileDropAreaAccentColor
|
||||||
: this.fileDropAreaAccentColor,
|
: this.fileDropAreaAccentColor
|
||||||
),
|
),
|
||||||
showFileDropArea: this.getValue(
|
showFileDropArea: this.getValue(
|
||||||
container ? container.showFileDropArea : this.showFileDropArea,
|
container ? container.showFileDropArea : this.showFileDropArea
|
||||||
),
|
),
|
||||||
fileDropAreaIsInPage: this.getValue(
|
fileDropAreaIsInPage: this.getValue(
|
||||||
container ? container.fileDropAreaIsInPage : this.fileDropAreaIsInPage,
|
container ? container.fileDropAreaIsInPage : this.fileDropAreaIsInPage
|
||||||
),
|
),
|
||||||
fileDropAreaWrapWithCard: this.getValue(
|
fileDropAreaWrapWithCard: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaWrapWithCard
|
? container.fileDropAreaWrapWithCard
|
||||||
: this.fileDropAreaWrapWithCard,
|
: this.fileDropAreaWrapWithCard
|
||||||
),
|
),
|
||||||
fileDropAreaCardShowFooter: this.getValue(
|
fileDropAreaCardShowFooter: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardShowFooter
|
? container.fileDropAreaCardShowFooter
|
||||||
: this.fileDropAreaCardShowFooter,
|
: this.fileDropAreaCardShowFooter
|
||||||
),
|
),
|
||||||
fileDropAreaCardShowActions: this.getValue(
|
fileDropAreaCardShowActions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardShowActions
|
? container.fileDropAreaCardShowActions
|
||||||
: this.fileDropAreaCardShowActions,
|
: this.fileDropAreaCardShowActions
|
||||||
),
|
),
|
||||||
fileDropAreaCardColor: this.getValue(
|
fileDropAreaCardColor: this.getValue(
|
||||||
container
|
container ? container.fileDropAreaCardColor : this.fileDropAreaCardColor
|
||||||
? container.fileDropAreaCardColor
|
|
||||||
: this.fileDropAreaCardColor,
|
|
||||||
),
|
),
|
||||||
fileDropAreaCardForegroundColor: this.getValue(
|
fileDropAreaCardForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardForegroundColor
|
? container.fileDropAreaCardForegroundColor
|
||||||
: this.fileDropAreaCardForegroundColor,
|
: this.fileDropAreaCardForegroundColor
|
||||||
),
|
),
|
||||||
fileDropAreaCardTitle: this.getValue(
|
fileDropAreaCardTitle: this.getValue(
|
||||||
container
|
container ? container.fileDropAreaCardTitle : this.fileDropAreaCardTitle
|
||||||
? container.fileDropAreaCardTitle
|
|
||||||
: this.fileDropAreaCardTitle,
|
|
||||||
),
|
),
|
||||||
fileDropAreaCardSubTitle: this.getValue(
|
fileDropAreaCardSubTitle: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardSubTitle
|
? container.fileDropAreaCardSubTitle
|
||||||
: this.fileDropAreaCardSubTitle,
|
: this.fileDropAreaCardSubTitle
|
||||||
),
|
),
|
||||||
fileDropAreaCardCssClass: this.getValue(
|
fileDropAreaCardCssClass: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaCardCssClass
|
? container.fileDropAreaCardCssClass
|
||||||
: this.fileDropAreaCardCssClass,
|
: this.fileDropAreaCardCssClass
|
||||||
),
|
|
||||||
fileDropAreaCardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardShowFullScreenButton
|
|
||||||
: this.fileDropAreaCardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
fileDropAreaCardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardEnterFullScreenButtonIcon
|
|
||||||
: this.fileDropAreaCardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
fileDropAreaCardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardEnterFullScreenButtonColor
|
|
||||||
: this.fileDropAreaCardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
fileDropAreaCardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardExitFullScreenButtonIcon
|
|
||||||
: this.fileDropAreaCardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
fileDropAreaCardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.fileDropAreaCardExitFullScreenButtonColor
|
|
||||||
: this.fileDropAreaCardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -785,7 +728,7 @@ export abstract class XComponentFileDropAreaContainerComponent
|
|||||||
//
|
//
|
||||||
fileDropAreaFilesChangeEmiter: this.fileDropAreaFilesChangeEmiter,
|
fileDropAreaFilesChangeEmiter: this.fileDropAreaFilesChangeEmiter,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -96,11 +96,12 @@ export enum XFileUploadAction {
|
|||||||
|
|
||||||
export type XFileUploadActionIdentifier = XFileUploadAction | string;
|
export type XFileUploadActionIdentifier = XFileUploadAction | string;
|
||||||
|
|
||||||
export interface XFileUploadActionModel extends XBaseActionModel<XFileUploadActionIdentifier> {}
|
export interface XFileUploadActionModel
|
||||||
|
extends XBaseActionModel<XFileUploadActionIdentifier> {}
|
||||||
|
|
||||||
export const defaultFileUploadListFilteringHandler: XListFilteringHandler = (
|
export const defaultFileUploadListFilteringHandler: XListFilteringHandler = (
|
||||||
query: string,
|
query: string,
|
||||||
items: XListItem<File>[],
|
items: XListItem<File>[]
|
||||||
) => {
|
) => {
|
||||||
//
|
//
|
||||||
if (!query || !hasChild(items)) {
|
if (!query || !hasChild(items)) {
|
||||||
@@ -109,7 +110,7 @@ export const defaultFileUploadListFilteringHandler: XListFilteringHandler = (
|
|||||||
|
|
||||||
//
|
//
|
||||||
return items.filter((i) =>
|
return items.filter((i) =>
|
||||||
toNormalString(fileToJsonString(i.data)).includes(toNormalString(query)),
|
toNormalString(fileToJsonString(i.data)).includes(toNormalString(query))
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,7 +130,8 @@ type TXFileUploadContainer = IXComponentCardContainer &
|
|||||||
IXFileContainer;
|
IXFileContainer;
|
||||||
|
|
||||||
export interface IXFileUploadContainer
|
export interface IXFileUploadContainer
|
||||||
extends IXBaseContainer, TXFileUploadContainer {
|
extends IXBaseContainer,
|
||||||
|
TXFileUploadContainer {
|
||||||
//
|
//
|
||||||
actionProvider: Subject<XFileUploadActionModel>;
|
actionProvider: Subject<XFileUploadActionModel>;
|
||||||
cssClass: XStandardType<XOneOrManyType<string>>;
|
cssClass: XStandardType<XOneOrManyType<string>>;
|
||||||
@@ -168,8 +170,9 @@ export class XFileUploadContainer
|
|||||||
readonly foregroundColor: XStandardType<boolean> = false;
|
readonly foregroundColor: XStandardType<boolean> = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
readonly fileChange: EventEmitter<XOneOrManyType<File | XFileBlob | any>> =
|
readonly fileChange: EventEmitter<XOneOrManyType<File | XFileBlob | any>> = new EventEmitter<
|
||||||
new EventEmitter<XOneOrManyType<File | XFileBlob>>();
|
XOneOrManyType<File | XFileBlob>
|
||||||
|
>();
|
||||||
|
|
||||||
readonly actionBarHideActions: XStandardType<
|
readonly actionBarHideActions: XStandardType<
|
||||||
XOneOrManyType<XActionBarActionIdentifier>
|
XOneOrManyType<XActionBarActionIdentifier>
|
||||||
@@ -250,16 +253,6 @@ export class XFileUploadContainer
|
|||||||
this.cardPropertyProvider.cardShowFooter;
|
this.cardPropertyProvider.cardShowFooter;
|
||||||
readonly cardShowActions: XStandardType<boolean> =
|
readonly cardShowActions: XStandardType<boolean> =
|
||||||
this.cardPropertyProvider.cardShowActions;
|
this.cardPropertyProvider.cardShowActions;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -445,7 +438,7 @@ export class XFileUploadContainer
|
|||||||
protected emptyPropertyProvider: XComponentEmptyContainer,
|
protected emptyPropertyProvider: XComponentEmptyContainer,
|
||||||
protected actionBarPropertyProvider: XComponentActionBarContainer,
|
protected actionBarPropertyProvider: XComponentActionBarContainer,
|
||||||
protected searchBarPropertyProvider: XComponentSearchBarContainer,
|
protected searchBarPropertyProvider: XComponentSearchBarContainer,
|
||||||
protected fileDropAreaPropertyProvider: XComponentFileDropAreaContainer,
|
protected fileDropAreaPropertyProvider: XComponentFileDropAreaContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -483,8 +476,7 @@ export abstract class XFileUploadContainerComponent
|
|||||||
|
|
||||||
//
|
//
|
||||||
@Output()
|
@Output()
|
||||||
fileChange: EventEmitter<XOneOrManyType<File | XFileBlob | any>> =
|
fileChange: EventEmitter<XOneOrManyType<File | XFileBlob | any>> = new EventEmitter();
|
||||||
new EventEmitter();
|
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
actionBarHideActions: XStandardType<
|
actionBarHideActions: XStandardType<
|
||||||
@@ -604,26 +596,6 @@ export abstract class XFileUploadContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardShowActions: XStandardType<boolean> =
|
cardShowActions: XStandardType<boolean> =
|
||||||
this.propertyProvider.cardShowActions;
|
this.propertyProvider.cardShowActions;
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -694,8 +666,7 @@ export abstract class XFileUploadContainerComponent
|
|||||||
|
|
||||||
//
|
//
|
||||||
@Output()
|
@Output()
|
||||||
actionBarActionFired: EventEmitter<XActionBarActionFiredModel> =
|
actionBarActionFired: EventEmitter<XActionBarActionFiredModel> = new EventEmitter<XActionBarActionFiredModel>();
|
||||||
new EventEmitter<XActionBarActionFiredModel>();
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -917,7 +888,7 @@ export abstract class XFileUploadContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XFileUploadContainer,
|
protected propertyProvider: XFileUploadContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -926,7 +897,7 @@ export abstract class XFileUploadContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -934,342 +905,313 @@ export abstract class XFileUploadContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXFileUploadContainer,
|
container?: IXFileUploadContainer
|
||||||
): Observable<IXFileUploadContainer> {
|
): Observable<IXFileUploadContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
cssClass: this.getValue(container ? container.cssClass : this.cssClass),
|
cssClass: this.getValue(container ? container.cssClass : this.cssClass),
|
||||||
color: this.getValue(container ? container.color : this.color),
|
color: this.getValue(container ? container.color : this.color),
|
||||||
foregroundColor: this.getValue(
|
foregroundColor: this.getValue(
|
||||||
container ? container.foregroundColor : this.foregroundColor,
|
container ? container.foregroundColor : this.foregroundColor
|
||||||
),
|
),
|
||||||
actionBarHideActions: this.getValue(
|
actionBarHideActions: this.getValue(
|
||||||
container ? container.actionBarHideActions : this.actionBarHideActions,
|
container ? container.actionBarHideActions : this.actionBarHideActions
|
||||||
),
|
),
|
||||||
showFileDropArea: this.getValue(
|
showFileDropArea: this.getValue(
|
||||||
container ? container.showFileDropArea : this.showFileDropArea,
|
container ? container.showFileDropArea : this.showFileDropArea
|
||||||
),
|
),
|
||||||
fileDropAreaCssClass: this.getValue(
|
fileDropAreaCssClass: this.getValue(
|
||||||
container ? container.fileDropAreaCssClass : this.fileDropAreaCssClass,
|
container ? container.fileDropAreaCssClass : this.fileDropAreaCssClass
|
||||||
),
|
),
|
||||||
fileDropAreaColor: this.getValue(
|
fileDropAreaColor: this.getValue(
|
||||||
container ? container.fileDropAreaColor : this.fileDropAreaColor,
|
container ? container.fileDropAreaColor : this.fileDropAreaColor
|
||||||
),
|
),
|
||||||
fileDropAreaForegroundColor: this.getValue(
|
fileDropAreaForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaForegroundColor
|
? container.fileDropAreaForegroundColor
|
||||||
: this.fileDropAreaForegroundColor,
|
: this.fileDropAreaForegroundColor
|
||||||
),
|
),
|
||||||
fileDropAreaIcon: this.getValue(
|
fileDropAreaIcon: this.getValue(
|
||||||
container ? container.fileDropAreaIcon : this.fileDropAreaIcon,
|
container ? container.fileDropAreaIcon : this.fileDropAreaIcon
|
||||||
),
|
),
|
||||||
fileDropAreaMessage: this.getValue(
|
fileDropAreaMessage: this.getValue(
|
||||||
container ? container.fileDropAreaMessage : this.fileDropAreaMessage,
|
container ? container.fileDropAreaMessage : this.fileDropAreaMessage
|
||||||
),
|
),
|
||||||
fileDropAreaDisableFileCheck: this.getValue(
|
fileDropAreaDisableFileCheck: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaDisableFileCheck
|
? container.fileDropAreaDisableFileCheck
|
||||||
: this.fileDropAreaDisableFileCheck,
|
: this.fileDropAreaDisableFileCheck
|
||||||
),
|
),
|
||||||
fileDropAreaSupportsMultipleFiles: this.getValue(
|
fileDropAreaSupportsMultipleFiles: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaSupportsMultipleFiles
|
? container.fileDropAreaSupportsMultipleFiles
|
||||||
: this.fileDropAreaSupportsMultipleFiles,
|
: this.fileDropAreaSupportsMultipleFiles
|
||||||
),
|
),
|
||||||
fileDropAreaAllowedExtensions: this.getValue(
|
fileDropAreaAllowedExtensions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaAllowedExtensions
|
? container.fileDropAreaAllowedExtensions
|
||||||
: this.fileDropAreaAllowedExtensions,
|
: this.fileDropAreaAllowedExtensions
|
||||||
),
|
),
|
||||||
fileDropAreaDragDisabled: this.getValue(
|
fileDropAreaDragDisabled: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaDragDisabled
|
? container.fileDropAreaDragDisabled
|
||||||
: this.fileDropAreaDragDisabled,
|
: this.fileDropAreaDragDisabled
|
||||||
),
|
),
|
||||||
fileDropAreaContentTemplate: this.getValue(
|
fileDropAreaContentTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaContentTemplate
|
? container.fileDropAreaContentTemplate
|
||||||
: this.fileDropAreaContentTemplate,
|
: this.fileDropAreaContentTemplate
|
||||||
),
|
),
|
||||||
fileDropAreaSuccessColor: this.getValue(
|
fileDropAreaSuccessColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaSuccessColor
|
? container.fileDropAreaSuccessColor
|
||||||
: this.fileDropAreaSuccessColor,
|
: this.fileDropAreaSuccessColor
|
||||||
),
|
),
|
||||||
fileDropAreaErrorColor: this.getValue(
|
fileDropAreaErrorColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaErrorColor
|
? container.fileDropAreaErrorColor
|
||||||
: this.fileDropAreaErrorColor,
|
: this.fileDropAreaErrorColor
|
||||||
),
|
),
|
||||||
fileDropAreaAccentColor: this.getValue(
|
fileDropAreaAccentColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.fileDropAreaAccentColor
|
? container.fileDropAreaAccentColor
|
||||||
: this.fileDropAreaAccentColor,
|
: this.fileDropAreaAccentColor
|
||||||
),
|
),
|
||||||
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
||||||
wrapWithCard: this.getValue(
|
wrapWithCard: this.getValue(
|
||||||
container ? container.wrapWithCard : this.wrapWithCard,
|
container ? container.wrapWithCard : this.wrapWithCard
|
||||||
),
|
),
|
||||||
cardCssClass: this.getValue(
|
cardCssClass: this.getValue(
|
||||||
container ? container.cardCssClass : this.cardCssClass,
|
container ? container.cardCssClass : this.cardCssClass
|
||||||
),
|
),
|
||||||
cardColor: this.getValue(
|
cardColor: this.getValue(
|
||||||
container ? container.cardColor : this.cardColor,
|
container ? container.cardColor : this.cardColor
|
||||||
),
|
),
|
||||||
cardForegroundColor: this.getValue(
|
cardForegroundColor: this.getValue(
|
||||||
container ? container.cardForegroundColor : this.cardForegroundColor,
|
container ? container.cardForegroundColor : this.cardForegroundColor
|
||||||
),
|
),
|
||||||
cardTitle: this.getValue(
|
cardTitle: this.getValue(
|
||||||
container ? container.cardTitle : this.cardTitle,
|
container ? container.cardTitle : this.cardTitle
|
||||||
),
|
),
|
||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
),
|
||||||
cardShowFooter: this.getValue(
|
cardShowFooter: this.getValue(
|
||||||
container ? container.cardShowFooter : this.cardShowFooter,
|
container ? container.cardShowFooter : this.cardShowFooter
|
||||||
),
|
),
|
||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions
|
||||||
),
|
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
showList: this.getValue(container ? container.showList : this.showList),
|
showList: this.getValue(container ? container.showList : this.showList),
|
||||||
listConfirmRemove: this.getValue(
|
listConfirmRemove: this.getValue(
|
||||||
container ? container.listConfirmRemove : this.listConfirmRemove,
|
container ? container.listConfirmRemove : this.listConfirmRemove
|
||||||
),
|
),
|
||||||
listCssClass: this.getValue(
|
listCssClass: this.getValue(
|
||||||
container ? container.listCssClass : this.listCssClass,
|
container ? container.listCssClass : this.listCssClass
|
||||||
),
|
),
|
||||||
listShowToolbar: this.getValue(
|
listShowToolbar: this.getValue(
|
||||||
container ? container.listShowToolbar : this.listShowToolbar,
|
container ? container.listShowToolbar : this.listShowToolbar
|
||||||
),
|
),
|
||||||
listStickyToolbar: this.getValue(
|
listStickyToolbar: this.getValue(
|
||||||
container ? container.listStickyToolbar : this.listStickyToolbar,
|
container ? container.listStickyToolbar : this.listStickyToolbar
|
||||||
),
|
),
|
||||||
listEnableReordering: this.getValue(
|
listEnableReordering: this.getValue(
|
||||||
container ? container.listEnableReordering : this.listEnableReordering,
|
container ? container.listEnableReordering : this.listEnableReordering
|
||||||
),
|
),
|
||||||
listShowDivider: this.getValue(
|
listShowDivider: this.getValue(
|
||||||
container ? container.listShowDivider : this.listShowDivider,
|
container ? container.listShowDivider : this.listShowDivider
|
||||||
),
|
),
|
||||||
listFilteringHandler: this.getValue(
|
listFilteringHandler: this.getValue(
|
||||||
container ? container.listFilteringHandler : this.listFilteringHandler,
|
container ? container.listFilteringHandler : this.listFilteringHandler
|
||||||
),
|
),
|
||||||
showActionBar: this.getValue(
|
showActionBar: this.getValue(
|
||||||
container ? container.showActionBar : this.showActionBar,
|
container ? container.showActionBar : this.showActionBar
|
||||||
),
|
),
|
||||||
actionBarCssClass: this.getValue(
|
actionBarCssClass: this.getValue(
|
||||||
container ? container.actionBarCssClass : this.actionBarCssClass,
|
container ? container.actionBarCssClass : this.actionBarCssClass
|
||||||
),
|
),
|
||||||
actionBarColor: this.getValue(
|
actionBarColor: this.getValue(
|
||||||
container ? container.actionBarColor : this.actionBarColor,
|
container ? container.actionBarColor : this.actionBarColor
|
||||||
),
|
),
|
||||||
actionBarForegroundColor: this.getValue(
|
actionBarForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.actionBarForegroundColor
|
? container.actionBarForegroundColor
|
||||||
: this.actionBarForegroundColor,
|
: this.actionBarForegroundColor
|
||||||
),
|
),
|
||||||
actionBarActions: this.getValue(
|
actionBarActions: this.getValue(
|
||||||
container ? container.actionBarActions : this.actionBarActions,
|
container ? container.actionBarActions : this.actionBarActions
|
||||||
),
|
),
|
||||||
showSearchBar: this.getValue(
|
showSearchBar: this.getValue(
|
||||||
container ? container.showSearchBar : this.showSearchBar,
|
container ? container.showSearchBar : this.showSearchBar
|
||||||
),
|
),
|
||||||
searchBarCssClass: this.getValue(
|
searchBarCssClass: this.getValue(
|
||||||
container ? container.searchBarCssClass : this.searchBarCssClass,
|
container ? container.searchBarCssClass : this.searchBarCssClass
|
||||||
),
|
),
|
||||||
searchBarColor: this.getValue(
|
searchBarColor: this.getValue(
|
||||||
container ? container.searchBarColor : this.searchBarColor,
|
container ? container.searchBarColor : this.searchBarColor
|
||||||
),
|
),
|
||||||
searchBarForegroundColor: this.getValue(
|
searchBarForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarForegroundColor
|
? container.searchBarForegroundColor
|
||||||
: this.searchBarForegroundColor,
|
: this.searchBarForegroundColor
|
||||||
),
|
),
|
||||||
searchBarSearchInputColor: this.getValue(
|
searchBarSearchInputColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarSearchInputColor
|
? container.searchBarSearchInputColor
|
||||||
: this.searchBarSearchInputColor,
|
: this.searchBarSearchInputColor
|
||||||
),
|
),
|
||||||
searchBarForegroundSearchInputColor: this.getValue(
|
searchBarForegroundSearchInputColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarForegroundSearchInputColor
|
? container.searchBarForegroundSearchInputColor
|
||||||
: this.searchBarForegroundSearchInputColor,
|
: this.searchBarForegroundSearchInputColor
|
||||||
),
|
),
|
||||||
searchBarType: this.getValue(
|
searchBarType: this.getValue(
|
||||||
container ? container.searchBarType : this.searchBarType,
|
container ? container.searchBarType : this.searchBarType
|
||||||
),
|
),
|
||||||
searchBarTitle: this.getValue(
|
searchBarTitle: this.getValue(
|
||||||
container ? container.searchBarTitle : this.searchBarTitle,
|
container ? container.searchBarTitle : this.searchBarTitle
|
||||||
),
|
),
|
||||||
searchBarValue: this.getValue(
|
searchBarValue: this.getValue(
|
||||||
container ? container.searchBarValue : this.searchBarValue,
|
container ? container.searchBarValue : this.searchBarValue
|
||||||
),
|
),
|
||||||
searchBarEnterKeyHint: this.getValue(
|
searchBarEnterKeyHint: this.getValue(
|
||||||
container
|
container ? container.searchBarEnterKeyHint : this.searchBarEnterKeyHint
|
||||||
? container.searchBarEnterKeyHint
|
|
||||||
: this.searchBarEnterKeyHint,
|
|
||||||
),
|
),
|
||||||
searchBarKeyboardType: this.getValue(
|
searchBarKeyboardType: this.getValue(
|
||||||
container
|
container ? container.searchBarKeyboardType : this.searchBarKeyboardType
|
||||||
? container.searchBarKeyboardType
|
|
||||||
: this.searchBarKeyboardType,
|
|
||||||
),
|
),
|
||||||
searchBarSpellcheck: this.getValue(
|
searchBarSpellcheck: this.getValue(
|
||||||
container ? container.searchBarSpellcheck : this.searchBarSpellcheck,
|
container ? container.searchBarSpellcheck : this.searchBarSpellcheck
|
||||||
),
|
),
|
||||||
searchBarDebounce: this.getValue(
|
searchBarDebounce: this.getValue(
|
||||||
container ? container.searchBarDebounce : this.searchBarDebounce,
|
container ? container.searchBarDebounce : this.searchBarDebounce
|
||||||
),
|
),
|
||||||
searchBarShowCancelButton: this.getValue(
|
searchBarShowCancelButton: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarShowCancelButton
|
? container.searchBarShowCancelButton
|
||||||
: this.searchBarShowCancelButton,
|
: this.searchBarShowCancelButton
|
||||||
),
|
),
|
||||||
searchBarCancelButtonIcon: this.getValue(
|
searchBarCancelButtonIcon: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarCancelButtonIcon
|
? container.searchBarCancelButtonIcon
|
||||||
: this.searchBarCancelButtonIcon,
|
: this.searchBarCancelButtonIcon
|
||||||
),
|
),
|
||||||
searchBarCancelButtonTitle: this.getValue(
|
searchBarCancelButtonTitle: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarCancelButtonTitle
|
? container.searchBarCancelButtonTitle
|
||||||
: this.searchBarCancelButtonTitle,
|
: this.searchBarCancelButtonTitle
|
||||||
),
|
),
|
||||||
searchBarCancelButtonIconColor: this.getValue(
|
searchBarCancelButtonIconColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarCancelButtonIconColor
|
? container.searchBarCancelButtonIconColor
|
||||||
: this.searchBarCancelButtonIconColor,
|
: this.searchBarCancelButtonIconColor
|
||||||
),
|
),
|
||||||
searchBarShowClearButton: this.getValue(
|
searchBarShowClearButton: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarShowClearButton
|
? container.searchBarShowClearButton
|
||||||
: this.searchBarShowClearButton,
|
: this.searchBarShowClearButton
|
||||||
),
|
),
|
||||||
searchBarClearButtonIcon: this.getValue(
|
searchBarClearButtonIcon: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarClearButtonIcon
|
? container.searchBarClearButtonIcon
|
||||||
: this.searchBarClearButtonIcon,
|
: this.searchBarClearButtonIcon
|
||||||
),
|
),
|
||||||
searchBarClearButtonIconColor: this.getValue(
|
searchBarClearButtonIconColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarClearButtonIconColor
|
? container.searchBarClearButtonIconColor
|
||||||
: this.searchBarClearButtonIconColor,
|
: this.searchBarClearButtonIconColor
|
||||||
),
|
),
|
||||||
searchBarSearchButtonIcon: this.getValue(
|
searchBarSearchButtonIcon: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarSearchButtonIcon
|
? container.searchBarSearchButtonIcon
|
||||||
: this.searchBarSearchButtonIcon,
|
: this.searchBarSearchButtonIcon
|
||||||
),
|
),
|
||||||
searchBarSearchButtonIconColor: this.getValue(
|
searchBarSearchButtonIconColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.searchBarSearchButtonIconColor
|
? container.searchBarSearchButtonIconColor
|
||||||
: this.searchBarSearchButtonIconColor,
|
: this.searchBarSearchButtonIconColor
|
||||||
),
|
),
|
||||||
showEmpty: this.getValue(
|
showEmpty: this.getValue(
|
||||||
container ? container.showEmpty : this.showEmpty,
|
container ? container.showEmpty : this.showEmpty
|
||||||
),
|
),
|
||||||
emptyCssClass: this.getValue(
|
emptyCssClass: this.getValue(
|
||||||
container ? container.emptyCssClass : this.emptyCssClass,
|
container ? container.emptyCssClass : this.emptyCssClass
|
||||||
),
|
),
|
||||||
emptyColor: this.getValue(
|
emptyColor: this.getValue(
|
||||||
container ? container.emptyColor : this.emptyColor,
|
container ? container.emptyColor : this.emptyColor
|
||||||
),
|
),
|
||||||
emptyForegroundColor: this.getValue(
|
emptyForegroundColor: this.getValue(
|
||||||
container ? container.emptyForegroundColor : this.emptyForegroundColor,
|
container ? container.emptyForegroundColor : this.emptyForegroundColor
|
||||||
),
|
),
|
||||||
emptyMessage: this.getValue(
|
emptyMessage: this.getValue(
|
||||||
container ? container.emptyMessage : this.emptyMessage,
|
container ? container.emptyMessage : this.emptyMessage
|
||||||
),
|
),
|
||||||
emptyMessageColor: this.getValue(
|
emptyMessageColor: this.getValue(
|
||||||
container ? container.emptyMessageColor : this.emptyMessageColor,
|
container ? container.emptyMessageColor : this.emptyMessageColor
|
||||||
),
|
),
|
||||||
emptyForegroundMessageColor: this.getValue(
|
emptyForegroundMessageColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.emptyForegroundMessageColor
|
? container.emptyForegroundMessageColor
|
||||||
: this.emptyForegroundMessageColor,
|
: this.emptyForegroundMessageColor
|
||||||
),
|
),
|
||||||
emptyHasRefresh: this.getValue(
|
emptyHasRefresh: this.getValue(
|
||||||
container ? container.emptyHasRefresh : this.emptyHasRefresh,
|
container ? container.emptyHasRefresh : this.emptyHasRefresh
|
||||||
),
|
),
|
||||||
emptyRefreshButtonColor: this.getValue(
|
emptyRefreshButtonColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.emptyRefreshButtonColor
|
? container.emptyRefreshButtonColor
|
||||||
: this.emptyRefreshButtonColor,
|
: this.emptyRefreshButtonColor
|
||||||
),
|
),
|
||||||
emptyForegroundRefreshButtonColor: this.getValue(
|
emptyForegroundRefreshButtonColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.emptyForegroundRefreshButtonColor
|
? container.emptyForegroundRefreshButtonColor
|
||||||
: this.emptyForegroundRefreshButtonColor,
|
: this.emptyForegroundRefreshButtonColor
|
||||||
),
|
),
|
||||||
emptyRefreshIcon: this.getValue(
|
emptyRefreshIcon: this.getValue(
|
||||||
container ? container.emptyRefreshIcon : this.emptyRefreshIcon,
|
container ? container.emptyRefreshIcon : this.emptyRefreshIcon
|
||||||
),
|
),
|
||||||
emptyFileException: this.getValue(
|
emptyFileException: this.getValue(
|
||||||
container ? container.emptyFileException : this.emptyFileException,
|
container ? container.emptyFileException : this.emptyFileException
|
||||||
),
|
),
|
||||||
notAllowedFileException: this.getValue(
|
notAllowedFileException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.notAllowedFileException
|
? container.notAllowedFileException
|
||||||
: this.notAllowedFileException,
|
: this.notAllowedFileException
|
||||||
),
|
),
|
||||||
allowedExtensions: this.getValue(
|
allowedExtensions: this.getValue(
|
||||||
container ? container.allowedExtensions : this.allowedExtensions,
|
container ? container.allowedExtensions : this.allowedExtensions
|
||||||
),
|
),
|
||||||
maxAllowedFiles: this.getValue(
|
maxAllowedFiles: this.getValue(
|
||||||
container ? container.maxAllowedFiles : this.maxAllowedFiles,
|
container ? container.maxAllowedFiles : this.maxAllowedFiles
|
||||||
),
|
),
|
||||||
maxAllowedFilesException: this.getValue(
|
maxAllowedFilesException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFilesException
|
? container.maxAllowedFilesException
|
||||||
: this.maxAllowedFilesException,
|
: this.maxAllowedFilesException
|
||||||
),
|
),
|
||||||
maxAllowedSize: this.getValue(
|
maxAllowedSize: this.getValue(
|
||||||
container ? container.maxAllowedSize : this.maxAllowedSize,
|
container ? container.maxAllowedSize : this.maxAllowedSize
|
||||||
),
|
),
|
||||||
maxAllowedSizeException: this.getValue(
|
maxAllowedSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedSizeException
|
? container.maxAllowedSizeException
|
||||||
: this.maxAllowedSizeException,
|
: this.maxAllowedSizeException
|
||||||
),
|
),
|
||||||
minAllowedFileSize: this.getValue(
|
minAllowedFileSize: this.getValue(
|
||||||
container ? container.minAllowedFileSize : this.minAllowedFileSize,
|
container ? container.minAllowedFileSize : this.minAllowedFileSize
|
||||||
),
|
),
|
||||||
minAllowedFileSizeException: this.getValue(
|
minAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.minAllowedFileSizeException
|
? container.minAllowedFileSizeException
|
||||||
: this.minAllowedFileSizeException,
|
: this.minAllowedFileSizeException
|
||||||
),
|
),
|
||||||
maxAllowedFileSize: this.getValue(
|
maxAllowedFileSize: this.getValue(
|
||||||
container ? container.maxAllowedFileSize : this.maxAllowedFileSize,
|
container ? container.maxAllowedFileSize : this.maxAllowedFileSize
|
||||||
),
|
),
|
||||||
maxAllowedFileSizeException: this.getValue(
|
maxAllowedFileSizeException: this.getValue(
|
||||||
container
|
container
|
||||||
? container.maxAllowedFileSizeException
|
? container.maxAllowedFileSizeException
|
||||||
: this.maxAllowedFileSizeException,
|
: this.maxAllowedFileSizeException
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -1328,7 +1270,7 @@ export abstract class XFileUploadContainerComponent
|
|||||||
//
|
//
|
||||||
emptyRefresh: this.emptyRefresh,
|
emptyRefresh: this.emptyRefresh,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
isDate,
|
isDate,
|
||||||
assign,
|
assign,
|
||||||
entries,
|
entries,
|
||||||
|
XUiEvent,
|
||||||
hasChild,
|
hasChild,
|
||||||
isFunction,
|
isFunction,
|
||||||
parseXColor,
|
parseXColor,
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ import {
|
|||||||
import { forkJoin, Observable, Subject } from 'rxjs';
|
import { forkJoin, Observable, Subject } from 'rxjs';
|
||||||
import { ViewportRuler } from '@angular/cdk/scrolling';
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
||||||
import { XManagerService } from 'x-framework-services';
|
import { XManagerService } from 'x-framework-services';
|
||||||
import { XIconIdentifier } from '../x-icon/x-icon.typings';
|
|
||||||
import { XBaseActionModel } from '../classes/x-base-action.model';
|
import { XBaseActionModel } from '../classes/x-base-action.model';
|
||||||
import { XPopoverService } from '../dialogs/x-popover/x-popover.service';
|
import { XPopoverService } from '../dialogs/x-popover/x-popover.service';
|
||||||
import { XTabAlign, XTabAlignIdentifier } from '../x-tabs/x-tabs.typings';
|
import { XTabAlign, XTabAlignIdentifier } from '../x-tabs/x-tabs.typings';
|
||||||
@@ -84,7 +83,8 @@ export enum XIDEAction {
|
|||||||
|
|
||||||
export type XIDEActionIdentifier = XIDEAction | string;
|
export type XIDEActionIdentifier = XIDEAction | string;
|
||||||
|
|
||||||
export interface XIDEActionModel extends XBaseActionModel<XIDEActionIdentifier> {}
|
export interface XIDEActionModel
|
||||||
|
extends XBaseActionModel<XIDEActionIdentifier> {}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -520,16 +520,6 @@ export class XIDEContainer extends XBaseContainer implements IXIDEContainer {
|
|||||||
this.cardPropertyProvider.cardShowFooter;
|
this.cardPropertyProvider.cardShowFooter;
|
||||||
readonly cardShowActions: XStandardType<boolean> =
|
readonly cardShowActions: XStandardType<boolean> =
|
||||||
this.cardPropertyProvider.cardShowActions;
|
this.cardPropertyProvider.cardShowActions;
|
||||||
readonly cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.cardPropertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.cardPropertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -555,7 +545,7 @@ export class XIDEContainer extends XBaseContainer implements IXIDEContainer {
|
|||||||
//#region Constructor ...
|
//#region Constructor ...
|
||||||
constructor(
|
constructor(
|
||||||
protected cardPropertyProvider: XComponentCardContainer,
|
protected cardPropertyProvider: XComponentCardContainer,
|
||||||
protected actionBarPropertyProvider: XComponentActionBarContainer,
|
protected actionBarPropertyProvider: XComponentActionBarContainer
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@@ -582,8 +572,7 @@ export class XIDEContainerComponent
|
|||||||
defaultTabName: XStandardType<string> = this.propertyProvider.defaultTabName;
|
defaultTabName: XStandardType<string> = this.propertyProvider.defaultTabName;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
hasCloseOnDefaultTab: XStandardType<boolean> =
|
hasCloseOnDefaultTab: XStandardType<boolean> = this.propertyProvider.hasCloseOnDefaultTab;
|
||||||
this.propertyProvider.hasCloseOnDefaultTab;
|
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
theme: XStandardType<XIDEThemeIdentifier> = this.propertyProvider.theme;
|
theme: XStandardType<XIDEThemeIdentifier> = this.propertyProvider.theme;
|
||||||
@@ -702,27 +691,6 @@ export class XIDEContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
cardActionProvider: Subject<XCardActionModel> =
|
cardActionProvider: Subject<XCardActionModel> =
|
||||||
this.propertyProvider.cardActionProvider;
|
this.propertyProvider.cardActionProvider;
|
||||||
|
|
||||||
//
|
|
||||||
@Input()
|
|
||||||
cardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
cardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -767,7 +735,7 @@ export class XIDEContainerComponent
|
|||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XIDEContainer,
|
protected propertyProvider: XIDEContainer,
|
||||||
protected popoverService: XPopoverService,
|
protected popoverService: XPopoverService
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -776,7 +744,7 @@ export class XIDEContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -795,43 +763,43 @@ export class XIDEContainerComponent
|
|||||||
mode: this.getValue(container ? container.mode : this.mode),
|
mode: this.getValue(container ? container.mode : this.mode),
|
||||||
theme: this.getValue(container ? container.theme : this.theme),
|
theme: this.getValue(container ? container.theme : this.theme),
|
||||||
highlightActiveLine: this.getValue(
|
highlightActiveLine: this.getValue(
|
||||||
container ? container.highlightActiveLine : this.highlightActiveLine,
|
container ? container.highlightActiveLine : this.highlightActiveLine
|
||||||
),
|
),
|
||||||
cssClass: this.getArrayValue(
|
cssClass: this.getArrayValue(
|
||||||
container ? container.cssClass : this.cssClass,
|
container ? container.cssClass : this.cssClass
|
||||||
),
|
),
|
||||||
basicAutocompletion: this.getValue(
|
basicAutocompletion: this.getValue(
|
||||||
container ? container.basicAutocompletion : this.basicAutocompletion,
|
container ? container.basicAutocompletion : this.basicAutocompletion
|
||||||
),
|
),
|
||||||
wordWrapping: this.getValue(
|
wordWrapping: this.getValue(
|
||||||
container ? container.wordWrapping : this.wordWrapping,
|
container ? container.wordWrapping : this.wordWrapping
|
||||||
),
|
),
|
||||||
showPrintMargin: this.getValue(
|
showPrintMargin: this.getValue(
|
||||||
container ? container.showPrintMargin : this.showPrintMargin,
|
container ? container.showPrintMargin : this.showPrintMargin
|
||||||
),
|
),
|
||||||
showLineNumbers: this.getValue(
|
showLineNumbers: this.getValue(
|
||||||
container ? container.showLineNumbers : this.showLineNumbers,
|
container ? container.showLineNumbers : this.showLineNumbers
|
||||||
),
|
),
|
||||||
showFoldWidgets: this.getValue(
|
showFoldWidgets: this.getValue(
|
||||||
container ? container.showFoldWidgets : this.showFoldWidgets,
|
container ? container.showFoldWidgets : this.showFoldWidgets
|
||||||
),
|
),
|
||||||
defaultTabName: this.getValue(
|
defaultTabName: this.getValue(
|
||||||
container ? container.defaultTabName : this.defaultTabName,
|
container ? container.defaultTabName : this.defaultTabName
|
||||||
),
|
),
|
||||||
hasCloseOnDefaultTab: this.getValue(
|
hasCloseOnDefaultTab: this.getValue(
|
||||||
container ? container.hasCloseOnDefaultTab : this.hasCloseOnDefaultTab,
|
container ? container.hasCloseOnDefaultTab : this.hasCloseOnDefaultTab
|
||||||
),
|
),
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region Tabs ...
|
//#region Tabs ...
|
||||||
alignTabs: this.getValue(
|
alignTabs: this.getValue(
|
||||||
container ? container.alignTabs : this.alignTabs,
|
container ? container.alignTabs : this.alignTabs
|
||||||
),
|
),
|
||||||
tabHeaderColor: this.getValue(
|
tabHeaderColor: this.getValue(
|
||||||
container ? container.tabHeaderColor : this.tabHeaderColor,
|
container ? container.tabHeaderColor : this.tabHeaderColor
|
||||||
),
|
),
|
||||||
activeTabColor: this.getValue(
|
activeTabColor: this.getValue(
|
||||||
container ? container.activeTabColor : this.activeTabColor,
|
container ? container.activeTabColor : this.activeTabColor
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
@@ -840,87 +808,62 @@ export class XIDEContainerComponent
|
|||||||
defaultActionBarItemColor: this.getValue(
|
defaultActionBarItemColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.defaultActionBarItemColor
|
? container.defaultActionBarItemColor
|
||||||
: this.defaultActionBarItemColor,
|
: this.defaultActionBarItemColor
|
||||||
),
|
),
|
||||||
availableActionBarItems: this.getArrayValue(
|
availableActionBarItems: this.getArrayValue(
|
||||||
container
|
container
|
||||||
? container.availableActionBarItems
|
? container.availableActionBarItems
|
||||||
: this.availableActionBarItems,
|
: this.availableActionBarItems
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region XComponentCard ...
|
//#region XComponentCard ...
|
||||||
cardCssClass: this.getArrayValue(
|
cardCssClass: this.getArrayValue(
|
||||||
container ? container.cardCssClass : this.cardCssClass,
|
container ? container.cardCssClass : this.cardCssClass
|
||||||
),
|
),
|
||||||
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
isInPage: this.getValue(container ? container.isInPage : this.isInPage),
|
||||||
wrapWithCard: this.getValue(
|
wrapWithCard: this.getValue(
|
||||||
container ? container.wrapWithCard : this.wrapWithCard,
|
container ? container.wrapWithCard : this.wrapWithCard
|
||||||
),
|
),
|
||||||
cardShowFooter: this.getValue(
|
cardShowFooter: this.getValue(
|
||||||
container ? container.cardShowFooter : this.cardShowFooter,
|
container ? container.cardShowFooter : this.cardShowFooter
|
||||||
),
|
),
|
||||||
cardShowActions: this.getValue(
|
cardShowActions: this.getValue(
|
||||||
container ? container.cardShowActions : this.cardShowActions,
|
container ? container.cardShowActions : this.cardShowActions
|
||||||
),
|
),
|
||||||
cardColor: this.getValue(
|
cardColor: this.getValue(
|
||||||
container ? container.cardColor : this.cardColor,
|
container ? container.cardColor : this.cardColor
|
||||||
),
|
),
|
||||||
cardForegroundColor: this.getValue(
|
cardForegroundColor: this.getValue(
|
||||||
container ? container.cardForegroundColor : this.cardForegroundColor,
|
container ? container.cardForegroundColor : this.cardForegroundColor
|
||||||
),
|
),
|
||||||
cardTitle: this.getValue(
|
cardTitle: this.getValue(
|
||||||
container ? container.cardTitle : this.cardTitle,
|
container ? container.cardTitle : this.cardTitle
|
||||||
),
|
),
|
||||||
cardSubTitle: this.getValue(
|
cardSubTitle: this.getValue(
|
||||||
container ? container.cardSubTitle : this.cardSubTitle,
|
container ? container.cardSubTitle : this.cardSubTitle
|
||||||
),
|
|
||||||
cardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardShowFullScreenButton
|
|
||||||
: this.cardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonIcon
|
|
||||||
: this.cardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardEnterFullScreenButtonColor
|
|
||||||
: this.cardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonIcon
|
|
||||||
: this.cardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
cardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.cardExitFullScreenButtonColor
|
|
||||||
: this.cardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
//#region XComponentActionBar ...
|
//#region XComponentActionBar ...
|
||||||
showActionBar: this.getValue(
|
showActionBar: this.getValue(
|
||||||
container ? container.showActionBar : this.showActionBar,
|
container ? container.showActionBar : this.showActionBar
|
||||||
),
|
),
|
||||||
actionBarCssClass: this.getValue(
|
actionBarCssClass: this.getValue(
|
||||||
container ? container.actionBarCssClass : this.actionBarCssClass,
|
container ? container.actionBarCssClass : this.actionBarCssClass
|
||||||
),
|
),
|
||||||
actionBarColor: this.getValue(
|
actionBarColor: this.getValue(
|
||||||
container ? container.actionBarColor : this.actionBarColor,
|
container ? container.actionBarColor : this.actionBarColor
|
||||||
),
|
),
|
||||||
actionBarForegroundColor: this.getValue(
|
actionBarForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.actionBarForegroundColor
|
? container.actionBarForegroundColor
|
||||||
: this.actionBarForegroundColor,
|
: this.actionBarForegroundColor
|
||||||
),
|
),
|
||||||
actionBarActions: this.getValue(
|
actionBarActions: this.getValue(
|
||||||
container ? container.actionBarActions : this.actionBarActions,
|
container ? container.actionBarActions : this.actionBarActions
|
||||||
),
|
),
|
||||||
//#endregion
|
//#endregion
|
||||||
}).pipe(
|
}).pipe(
|
||||||
@@ -948,7 +891,7 @@ export class XIDEContainerComponent
|
|||||||
contentChange: this.contentChange,
|
contentChange: this.contentChange,
|
||||||
actionBarActionFired: this.actionBarActionFired,
|
actionBarActionFired: this.actionBarActionFired,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -103,11 +103,12 @@ export enum XListAction {
|
|||||||
|
|
||||||
export type XListActionIdentifier = XListAction | string;
|
export type XListActionIdentifier = XListAction | string;
|
||||||
|
|
||||||
export interface XListActionModel extends XBaseActionModel<XListActionIdentifier> {}
|
export interface XListActionModel
|
||||||
|
extends XBaseActionModel<XListActionIdentifier> {}
|
||||||
|
|
||||||
export type XListFilteringHandler = (
|
export type XListFilteringHandler = (
|
||||||
query: string,
|
query: string,
|
||||||
source: XListItem<any>[],
|
source: XListItem<any>[]
|
||||||
) => XStandardType<XListItem<any>[]>;
|
) => XStandardType<XListItem<any>[]>;
|
||||||
|
|
||||||
export function itemToJson(item: any) {
|
export function itemToJson(item: any) {
|
||||||
@@ -116,7 +117,7 @@ export function itemToJson(item: any) {
|
|||||||
|
|
||||||
export const defaultListFilteringHandler: XListFilteringHandler = (
|
export const defaultListFilteringHandler: XListFilteringHandler = (
|
||||||
query: string,
|
query: string,
|
||||||
items: XListItem<any>[],
|
items: XListItem<any>[]
|
||||||
) => {
|
) => {
|
||||||
//
|
//
|
||||||
if (!query || !hasChild(items)) {
|
if (!query || !hasChild(items)) {
|
||||||
@@ -125,7 +126,7 @@ export const defaultListFilteringHandler: XListFilteringHandler = (
|
|||||||
|
|
||||||
//
|
//
|
||||||
const result = items.filter((i) =>
|
const result = items.filter((i) =>
|
||||||
toNormalString(itemToJson(i.data)).includes(toNormalString(query)),
|
toNormalString(itemToJson(i.data)).includes(toNormalString(query))
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -335,8 +336,7 @@ export abstract class XListContainerComponent
|
|||||||
itemSelected: EventEmitter<XListItem<any>> = new EventEmitter();
|
itemSelected: EventEmitter<XListItem<any>> = new EventEmitter();
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
optionSelected: EventEmitter<XListItemOptionSelectedEvent> =
|
optionSelected: EventEmitter<XListItemOptionSelectedEvent> = new EventEmitter();
|
||||||
new EventEmitter();
|
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
confirmRemove: XStandardType<boolean> = this.propertyProvider.confirmRemove;
|
confirmRemove: XStandardType<boolean> = this.propertyProvider.confirmRemove;
|
||||||
@@ -379,7 +379,7 @@ export abstract class XListContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XListContainer,
|
protected propertyProvider: XListContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -389,7 +389,7 @@ export abstract class XListContainerComponent
|
|||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector,
|
||||||
propertyProvider,
|
propertyProvider
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -397,7 +397,7 @@ export abstract class XListContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXListContainer,
|
container?: IXListContainer
|
||||||
): Observable<IXListContainer> {
|
): Observable<IXListContainer> {
|
||||||
return super
|
return super
|
||||||
.extractProps(container ? container : this)
|
.extractProps(container ? container : this)
|
||||||
@@ -405,73 +405,71 @@ export abstract class XListContainerComponent
|
|||||||
concatMap((superData) => {
|
concatMap((superData) => {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
cssClass: this.getValue(
|
cssClass: this.getValue(
|
||||||
container ? container.cssClass : this.cssClass,
|
container ? container.cssClass : this.cssClass
|
||||||
),
|
),
|
||||||
actionBarHideActions: this.getValue(
|
actionBarHideActions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.actionBarHideActions
|
? container.actionBarHideActions
|
||||||
: this.actionBarHideActions,
|
: this.actionBarHideActions
|
||||||
),
|
),
|
||||||
useDefaultActions: this.getValue(
|
useDefaultActions: this.getValue(
|
||||||
container ? container.useDefaultActions : this.useDefaultActions,
|
container ? container.useDefaultActions : this.useDefaultActions
|
||||||
),
|
),
|
||||||
showToolbar: this.getValue(
|
showToolbar: this.getValue(
|
||||||
container ? container.showToolbar : this.showToolbar,
|
container ? container.showToolbar : this.showToolbar
|
||||||
),
|
),
|
||||||
stickyToolbar: this.getValue(
|
stickyToolbar: this.getValue(
|
||||||
container ? container.stickyToolbar : this.stickyToolbar,
|
container ? container.stickyToolbar : this.stickyToolbar
|
||||||
),
|
),
|
||||||
color: this.getValue(container ? container.color : this.color),
|
color: this.getValue(container ? container.color : this.color),
|
||||||
foregroundColor: this.getValue(
|
foregroundColor: this.getValue(
|
||||||
container ? container.foregroundColor : this.foregroundColor,
|
container ? container.foregroundColor : this.foregroundColor
|
||||||
),
|
),
|
||||||
enableReordering: this.getValue(
|
enableReordering: this.getValue(
|
||||||
container ? container.enableReordering : this.enableReordering,
|
container ? container.enableReordering : this.enableReordering
|
||||||
),
|
),
|
||||||
showDivider: this.getValue(
|
showDivider: this.getValue(
|
||||||
container ? container.showDivider : this.showDivider,
|
container ? container.showDivider : this.showDivider
|
||||||
),
|
),
|
||||||
showOptionsAsSlide: this.getValue(
|
showOptionsAsSlide: this.getValue(
|
||||||
container
|
container ? container.showOptionsAsSlide : this.showOptionsAsSlide
|
||||||
? container.showOptionsAsSlide
|
|
||||||
: this.showOptionsAsSlide,
|
|
||||||
),
|
),
|
||||||
closeOptionsAfterSelect: this.getValue(
|
closeOptionsAfterSelect: this.getValue(
|
||||||
container
|
container
|
||||||
? container.closeOptionsAfterSelect
|
? container.closeOptionsAfterSelect
|
||||||
: this.closeOptionsAfterSelect,
|
: this.closeOptionsAfterSelect
|
||||||
),
|
),
|
||||||
showOptionsAsMenu: this.getValue(
|
showOptionsAsMenu: this.getValue(
|
||||||
container ? container.showOptionsAsMenu : this.showOptionsAsMenu,
|
container ? container.showOptionsAsMenu : this.showOptionsAsMenu
|
||||||
),
|
),
|
||||||
selectableItems: this.getValue(
|
selectableItems: this.getValue(
|
||||||
container ? container.selectableItems : this.selectableItems,
|
container ? container.selectableItems : this.selectableItems
|
||||||
),
|
),
|
||||||
clickableItems: this.getValue(
|
clickableItems: this.getValue(
|
||||||
container ? container.clickableItems : this.clickableItems,
|
container ? container.clickableItems : this.clickableItems
|
||||||
),
|
),
|
||||||
itemTemplate: this.getValue(
|
itemTemplate: this.getValue(
|
||||||
container ? container.itemTemplate : this.itemTemplate,
|
container ? container.itemTemplate : this.itemTemplate
|
||||||
),
|
),
|
||||||
slidingOptionTemplate: this.getValue(
|
slidingOptionTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.slidingOptionTemplate
|
? container.slidingOptionTemplate
|
||||||
: this.slidingOptionTemplate,
|
: this.slidingOptionTemplate
|
||||||
),
|
),
|
||||||
nonSlidingOptionTemplate: this.getValue(
|
nonSlidingOptionTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.nonSlidingOptionTemplate
|
? container.nonSlidingOptionTemplate
|
||||||
: this.nonSlidingOptionTemplate,
|
: this.nonSlidingOptionTemplate
|
||||||
),
|
),
|
||||||
confirmRemove: this.getValue(
|
confirmRemove: this.getValue(
|
||||||
container ? container.confirmRemove : this.confirmRemove,
|
container ? container.confirmRemove : this.confirmRemove
|
||||||
),
|
),
|
||||||
items: this.getValue(container ? container.items : this.items),
|
items: this.getValue(container ? container.items : this.items),
|
||||||
showItemOptions: this.getValue(
|
showItemOptions: this.getValue(
|
||||||
container ? container.showItemOptions : this.showItemOptions,
|
container ? container.showItemOptions : this.showItemOptions
|
||||||
),
|
),
|
||||||
filteringHandler: this.getValue(
|
filteringHandler: this.getValue(
|
||||||
container ? container.filteringHandler : this.filteringHandler,
|
container ? container.filteringHandler : this.filteringHandler
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -479,9 +477,9 @@ export abstract class XListContainerComponent
|
|||||||
superData,
|
superData,
|
||||||
data,
|
data,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}),
|
})
|
||||||
)
|
)
|
||||||
.pipe(
|
.pipe(
|
||||||
map((info) => {
|
map((info) => {
|
||||||
@@ -505,7 +503,7 @@ export abstract class XListContainerComponent
|
|||||||
selectionChanged: this.selectionChanged,
|
selectionChanged: this.selectionChanged,
|
||||||
orderChanged: this.orderChanged,
|
orderChanged: this.orderChanged,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -521,7 +519,8 @@ type TXComponentListContainer = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export interface IXComponentListContainer
|
export interface IXComponentListContainer
|
||||||
extends TXComponentListContainer, IXBaseComponentContainer {
|
extends TXComponentListContainer,
|
||||||
|
IXBaseComponentContainer {
|
||||||
showList: XStandardType<boolean>;
|
showList: XStandardType<boolean>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -633,16 +632,6 @@ export class XComponentListContainer
|
|||||||
this.propertyProvider.cardSubTitle;
|
this.propertyProvider.cardSubTitle;
|
||||||
readonly listCardCssClass: XStandardType<XOneOrManyType<string>> =
|
readonly listCardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.cardCssClass;
|
this.propertyProvider.cardCssClass;
|
||||||
readonly listCardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.cardShowFullScreenButton;
|
|
||||||
readonly listCardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonIcon;
|
|
||||||
readonly listCardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardEnterFullScreenButtonColor;
|
|
||||||
readonly listCardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonIcon;
|
|
||||||
readonly listCardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.cardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -880,8 +869,7 @@ export abstract class XComponentListContainerComponent
|
|||||||
listItemSelected: EventEmitter<XListItem<any>> = new EventEmitter();
|
listItemSelected: EventEmitter<XListItem<any>> = new EventEmitter();
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
listOptionSelected: EventEmitter<XListItemOptionSelectedEvent> =
|
listOptionSelected: EventEmitter<XListItemOptionSelectedEvent> = new EventEmitter();
|
||||||
new EventEmitter();
|
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
listConfirmRemove: XStandardType<boolean> =
|
listConfirmRemove: XStandardType<boolean> =
|
||||||
@@ -952,26 +940,6 @@ export abstract class XComponentListContainerComponent
|
|||||||
@Input()
|
@Input()
|
||||||
listCardCssClass: XStandardType<XOneOrManyType<string>> =
|
listCardCssClass: XStandardType<XOneOrManyType<string>> =
|
||||||
this.propertyProvider.listCardCssClass;
|
this.propertyProvider.listCardCssClass;
|
||||||
|
|
||||||
@Input()
|
|
||||||
listCardShowFullScreenButton: XStandardType<boolean> =
|
|
||||||
this.propertyProvider.listCardShowFullScreenButton;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
listCardEnterFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.listCardEnterFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
listCardEnterFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.listCardEnterFullScreenButtonColor;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
listCardExitFullScreenButtonIcon: XStandardType<XIconIdentifier> =
|
|
||||||
this.propertyProvider.listCardExitFullScreenButtonIcon;
|
|
||||||
|
|
||||||
@Input()
|
|
||||||
listCardExitFullScreenButtonColor: XStandardType<XColorIdentifier> =
|
|
||||||
this.propertyProvider.listCardExitFullScreenButtonColor;
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1060,8 +1028,7 @@ export abstract class XComponentListContainerComponent
|
|||||||
|
|
||||||
//
|
//
|
||||||
@Output()
|
@Output()
|
||||||
listActionBarActionFired: EventEmitter<XActionBarActionFiredModel> =
|
listActionBarActionFired: EventEmitter<XActionBarActionFiredModel> = new EventEmitter<XActionBarActionFiredModel>();
|
||||||
new EventEmitter<XActionBarActionFiredModel>();
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1186,7 +1153,7 @@ export abstract class XComponentListContainerComponent
|
|||||||
public ruler: ViewportRuler,
|
public ruler: ViewportRuler,
|
||||||
public zone: NgZone,
|
public zone: NgZone,
|
||||||
public changeDetector: ChangeDetectorRef,
|
public changeDetector: ChangeDetectorRef,
|
||||||
protected propertyProvider: XComponentListContainer,
|
protected propertyProvider: XComponentListContainer
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
config,
|
config,
|
||||||
@@ -1195,7 +1162,7 @@ export abstract class XComponentListContainerComponent
|
|||||||
renderer,
|
renderer,
|
||||||
ruler,
|
ruler,
|
||||||
zone,
|
zone,
|
||||||
changeDetector,
|
changeDetector
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -1203,303 +1170,266 @@ export abstract class XComponentListContainerComponent
|
|||||||
//
|
//
|
||||||
//#region Abstract ...
|
//#region Abstract ...
|
||||||
public extractProps(
|
public extractProps(
|
||||||
container?: IXComponentListContainer,
|
container?: IXComponentListContainer
|
||||||
): Observable<IXComponentListContainer> {
|
): Observable<IXComponentListContainer> {
|
||||||
return forkJoin({
|
return forkJoin({
|
||||||
//
|
//
|
||||||
showList: this.getValue(container ? container.showList : this.showList),
|
showList: this.getValue(container ? container.showList : this.showList),
|
||||||
listCssClass: this.getValue(
|
listCssClass: this.getValue(
|
||||||
container ? container.listCssClass : this.listCssClass,
|
container ? container.listCssClass : this.listCssClass
|
||||||
),
|
),
|
||||||
listActionBarHideActions: this.getValue(
|
listActionBarHideActions: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listActionBarHideActions
|
? container.listActionBarHideActions
|
||||||
: this.listActionBarHideActions,
|
: this.listActionBarHideActions
|
||||||
),
|
),
|
||||||
listUseDefaultActions: this.getValue(
|
listUseDefaultActions: this.getValue(
|
||||||
container
|
container ? container.listUseDefaultActions : this.listUseDefaultActions
|
||||||
? container.listUseDefaultActions
|
|
||||||
: this.listUseDefaultActions,
|
|
||||||
),
|
),
|
||||||
listShowToolbar: this.getValue(
|
listShowToolbar: this.getValue(
|
||||||
container ? container.listShowToolbar : this.listShowToolbar,
|
container ? container.listShowToolbar : this.listShowToolbar
|
||||||
),
|
),
|
||||||
listStickyToolbar: this.getValue(
|
listStickyToolbar: this.getValue(
|
||||||
container ? container.listStickyToolbar : this.listStickyToolbar,
|
container ? container.listStickyToolbar : this.listStickyToolbar
|
||||||
),
|
),
|
||||||
listColor: this.getValue(
|
listColor: this.getValue(
|
||||||
container ? container.listColor : this.listColor,
|
container ? container.listColor : this.listColor
|
||||||
),
|
),
|
||||||
listForegroundColor: this.getValue(
|
listForegroundColor: this.getValue(
|
||||||
container ? container.listForegroundColor : this.listForegroundColor,
|
container ? container.listForegroundColor : this.listForegroundColor
|
||||||
),
|
),
|
||||||
listEnableReordering: this.getValue(
|
listEnableReordering: this.getValue(
|
||||||
container ? container.listEnableReordering : this.listEnableReordering,
|
container ? container.listEnableReordering : this.listEnableReordering
|
||||||
),
|
),
|
||||||
listShowDivider: this.getValue(
|
listShowDivider: this.getValue(
|
||||||
container ? container.listShowDivider : this.listShowDivider,
|
container ? container.listShowDivider : this.listShowDivider
|
||||||
),
|
),
|
||||||
listShowOptionsAsSlide: this.getValue(
|
listShowOptionsAsSlide: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listShowOptionsAsSlide
|
? container.listShowOptionsAsSlide
|
||||||
: this.listShowOptionsAsSlide,
|
: this.listShowOptionsAsSlide
|
||||||
),
|
),
|
||||||
listCloseOptionsAfterSelect: this.getValue(
|
listCloseOptionsAfterSelect: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listCloseOptionsAfterSelect
|
? container.listCloseOptionsAfterSelect
|
||||||
: this.listCloseOptionsAfterSelect,
|
: this.listCloseOptionsAfterSelect
|
||||||
),
|
),
|
||||||
listShowOptionsAsMenu: this.getValue(
|
listShowOptionsAsMenu: this.getValue(
|
||||||
container
|
container ? container.listShowOptionsAsMenu : this.listShowOptionsAsMenu
|
||||||
? container.listShowOptionsAsMenu
|
|
||||||
: this.listShowOptionsAsMenu,
|
|
||||||
),
|
),
|
||||||
listSelectableItems: this.getValue(
|
listSelectableItems: this.getValue(
|
||||||
container ? container.listSelectableItems : this.listSelectableItems,
|
container ? container.listSelectableItems : this.listSelectableItems
|
||||||
),
|
),
|
||||||
listClickableItems: this.getValue(
|
listClickableItems: this.getValue(
|
||||||
container ? container.listClickableItems : this.listClickableItems,
|
container ? container.listClickableItems : this.listClickableItems
|
||||||
),
|
),
|
||||||
listItemTemplate: this.getValue(
|
listItemTemplate: this.getValue(
|
||||||
container ? container.listItemTemplate : this.listItemTemplate,
|
container ? container.listItemTemplate : this.listItemTemplate
|
||||||
),
|
),
|
||||||
listSlidingOptionTemplate: this.getValue(
|
listSlidingOptionTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSlidingOptionTemplate
|
? container.listSlidingOptionTemplate
|
||||||
: this.listSlidingOptionTemplate,
|
: this.listSlidingOptionTemplate
|
||||||
),
|
),
|
||||||
listNonSlidingOptionTemplate: this.getValue(
|
listNonSlidingOptionTemplate: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listNonSlidingOptionTemplate
|
? container.listNonSlidingOptionTemplate
|
||||||
: this.listNonSlidingOptionTemplate,
|
: this.listNonSlidingOptionTemplate
|
||||||
),
|
),
|
||||||
listConfirmRemove: this.getValue(
|
listConfirmRemove: this.getValue(
|
||||||
container ? container.listConfirmRemove : this.listConfirmRemove,
|
container ? container.listConfirmRemove : this.listConfirmRemove
|
||||||
),
|
),
|
||||||
listItems: this.getValue(
|
listItems: this.getValue(
|
||||||
container ? container.listItems : this.listItems,
|
container ? container.listItems : this.listItems
|
||||||
),
|
),
|
||||||
listShowItemOptions: this.getValue(
|
listShowItemOptions: this.getValue(
|
||||||
container ? container.listShowItemOptions : this.listShowItemOptions,
|
container ? container.listShowItemOptions : this.listShowItemOptions
|
||||||
),
|
),
|
||||||
listFilteringHandler: this.getValue(
|
listFilteringHandler: this.getValue(
|
||||||
container ? container.listFilteringHandler : this.listFilteringHandler,
|
container ? container.listFilteringHandler : this.listFilteringHandler
|
||||||
),
|
),
|
||||||
listIsInPage: this.getValue(
|
listIsInPage: this.getValue(
|
||||||
container ? container.listIsInPage : this.listIsInPage,
|
container ? container.listIsInPage : this.listIsInPage
|
||||||
),
|
),
|
||||||
listWrapWithCard: this.getValue(
|
listWrapWithCard: this.getValue(
|
||||||
container ? container.listWrapWithCard : this.listWrapWithCard,
|
container ? container.listWrapWithCard : this.listWrapWithCard
|
||||||
),
|
),
|
||||||
listCardShowFooter: this.getValue(
|
listCardShowFooter: this.getValue(
|
||||||
container ? container.listCardShowFooter : this.listCardShowFooter,
|
container ? container.listCardShowFooter : this.listCardShowFooter
|
||||||
),
|
),
|
||||||
listCardShowActions: this.getValue(
|
listCardShowActions: this.getValue(
|
||||||
container ? container.listCardShowActions : this.listCardShowActions,
|
container ? container.listCardShowActions : this.listCardShowActions
|
||||||
),
|
),
|
||||||
listCardColor: this.getValue(
|
listCardColor: this.getValue(
|
||||||
container ? container.listCardColor : this.listCardColor,
|
container ? container.listCardColor : this.listCardColor
|
||||||
),
|
),
|
||||||
listCardForegroundColor: this.getValue(
|
listCardForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listCardForegroundColor
|
? container.listCardForegroundColor
|
||||||
: this.listCardForegroundColor,
|
: this.listCardForegroundColor
|
||||||
),
|
),
|
||||||
listCardTitle: this.getValue(
|
listCardTitle: this.getValue(
|
||||||
container ? container.listCardTitle : this.listCardTitle,
|
container ? container.listCardTitle : this.listCardTitle
|
||||||
),
|
),
|
||||||
listCardSubTitle: this.getValue(
|
listCardSubTitle: this.getValue(
|
||||||
container ? container.listCardSubTitle : this.listCardSubTitle,
|
container ? container.listCardSubTitle : this.listCardSubTitle
|
||||||
),
|
),
|
||||||
listCardCssClass: this.getValue(
|
listCardCssClass: this.getValue(
|
||||||
container ? container.listCardCssClass : this.listCardCssClass,
|
container ? container.listCardCssClass : this.listCardCssClass
|
||||||
),
|
|
||||||
listCardShowFullScreenButton: this.getValue(
|
|
||||||
container
|
|
||||||
? container.listCardShowFullScreenButton
|
|
||||||
: this.listCardShowFullScreenButton,
|
|
||||||
),
|
|
||||||
listCardEnterFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.listCardEnterFullScreenButtonIcon
|
|
||||||
: this.listCardEnterFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
listCardEnterFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.listCardEnterFullScreenButtonColor
|
|
||||||
: this.listCardEnterFullScreenButtonColor,
|
|
||||||
),
|
|
||||||
listCardExitFullScreenButtonIcon: this.getValue(
|
|
||||||
container
|
|
||||||
? container.listCardExitFullScreenButtonIcon
|
|
||||||
: this.listCardExitFullScreenButtonIcon,
|
|
||||||
),
|
|
||||||
listCardExitFullScreenButtonColor: this.getValue(
|
|
||||||
container
|
|
||||||
? container.listCardExitFullScreenButtonColor
|
|
||||||
: this.listCardExitFullScreenButtonColor,
|
|
||||||
),
|
),
|
||||||
listShowEmpty: this.getValue(
|
listShowEmpty: this.getValue(
|
||||||
container ? container.listShowEmpty : this.listShowEmpty,
|
container ? container.listShowEmpty : this.listShowEmpty
|
||||||
),
|
),
|
||||||
listEmptyHasRefresh: this.getValue(
|
listEmptyHasRefresh: this.getValue(
|
||||||
container ? container.listEmptyHasRefresh : this.listEmptyHasRefresh,
|
container ? container.listEmptyHasRefresh : this.listEmptyHasRefresh
|
||||||
),
|
),
|
||||||
listEmptyCssClass: this.getValue(
|
listEmptyCssClass: this.getValue(
|
||||||
container ? container.listEmptyCssClass : this.listEmptyCssClass,
|
container ? container.listEmptyCssClass : this.listEmptyCssClass
|
||||||
),
|
),
|
||||||
listEmptyColor: this.getValue(
|
listEmptyColor: this.getValue(
|
||||||
container ? container.listEmptyColor : this.listEmptyColor,
|
container ? container.listEmptyColor : this.listEmptyColor
|
||||||
),
|
),
|
||||||
listEmptyForegroundColor: this.getValue(
|
listEmptyForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listEmptyForegroundColor
|
? container.listEmptyForegroundColor
|
||||||
: this.listEmptyForegroundColor,
|
: this.listEmptyForegroundColor
|
||||||
),
|
),
|
||||||
listEmptyMessageColor: this.getValue(
|
listEmptyMessageColor: this.getValue(
|
||||||
container
|
container ? container.listEmptyMessageColor : this.listEmptyMessageColor
|
||||||
? container.listEmptyMessageColor
|
|
||||||
: this.listEmptyMessageColor,
|
|
||||||
),
|
),
|
||||||
listEmptyForegroundMessageColor: this.getValue(
|
listEmptyForegroundMessageColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listEmptyForegroundMessageColor
|
? container.listEmptyForegroundMessageColor
|
||||||
: this.listEmptyForegroundMessageColor,
|
: this.listEmptyForegroundMessageColor
|
||||||
),
|
),
|
||||||
listEmptyRefreshButtonColor: this.getValue(
|
listEmptyRefreshButtonColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listEmptyRefreshButtonColor
|
? container.listEmptyRefreshButtonColor
|
||||||
: this.listEmptyRefreshButtonColor,
|
: this.listEmptyRefreshButtonColor
|
||||||
),
|
),
|
||||||
listEmptyForegroundRefreshButtonColor: this.getValue(
|
listEmptyForegroundRefreshButtonColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listEmptyForegroundRefreshButtonColor
|
? container.listEmptyForegroundRefreshButtonColor
|
||||||
: this.listEmptyForegroundRefreshButtonColor,
|
: this.listEmptyForegroundRefreshButtonColor
|
||||||
),
|
),
|
||||||
listEmptyMessage: this.getValue(
|
listEmptyMessage: this.getValue(
|
||||||
container ? container.listEmptyMessage : this.listEmptyMessage,
|
container ? container.listEmptyMessage : this.listEmptyMessage
|
||||||
),
|
),
|
||||||
listEmptyRefreshIcon: this.getValue(
|
listEmptyRefreshIcon: this.getValue(
|
||||||
container ? container.listEmptyRefreshIcon : this.listEmptyRefreshIcon,
|
container ? container.listEmptyRefreshIcon : this.listEmptyRefreshIcon
|
||||||
),
|
),
|
||||||
listShowActionBar: this.getValue(
|
listShowActionBar: this.getValue(
|
||||||
container ? container.listShowActionBar : this.listShowActionBar,
|
container ? container.listShowActionBar : this.listShowActionBar
|
||||||
),
|
),
|
||||||
listActionBarCssClass: this.getValue(
|
listActionBarCssClass: this.getValue(
|
||||||
container
|
container ? container.listActionBarCssClass : this.listActionBarCssClass
|
||||||
? container.listActionBarCssClass
|
|
||||||
: this.listActionBarCssClass,
|
|
||||||
),
|
),
|
||||||
listActionBarColor: this.getValue(
|
listActionBarColor: this.getValue(
|
||||||
container ? container.listActionBarColor : this.listActionBarColor,
|
container ? container.listActionBarColor : this.listActionBarColor
|
||||||
),
|
),
|
||||||
listActionBarForegroundColor: this.getValue(
|
listActionBarForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listActionBarForegroundColor
|
? container.listActionBarForegroundColor
|
||||||
: this.listActionBarForegroundColor,
|
: this.listActionBarForegroundColor
|
||||||
),
|
),
|
||||||
listActionBarActions: this.getValue(
|
listActionBarActions: this.getValue(
|
||||||
container ? container.listActionBarActions : this.listActionBarActions,
|
container ? container.listActionBarActions : this.listActionBarActions
|
||||||
),
|
),
|
||||||
listShowSearchBar: this.getValue(
|
listShowSearchBar: this.getValue(
|
||||||
container ? container.listShowSearchBar : this.listShowSearchBar,
|
container ? container.listShowSearchBar : this.listShowSearchBar
|
||||||
),
|
),
|
||||||
listSearchBarCssClass: this.getValue(
|
listSearchBarCssClass: this.getValue(
|
||||||
container
|
container ? container.listSearchBarCssClass : this.listSearchBarCssClass
|
||||||
? container.listSearchBarCssClass
|
|
||||||
: this.listSearchBarCssClass,
|
|
||||||
),
|
),
|
||||||
listSearchBarColor: this.getValue(
|
listSearchBarColor: this.getValue(
|
||||||
container ? container.listSearchBarColor : this.listSearchBarColor,
|
container ? container.listSearchBarColor : this.listSearchBarColor
|
||||||
),
|
),
|
||||||
listSearchBarForegroundColor: this.getValue(
|
listSearchBarForegroundColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarForegroundColor
|
? container.listSearchBarForegroundColor
|
||||||
: this.listSearchBarForegroundColor,
|
: this.listSearchBarForegroundColor
|
||||||
),
|
),
|
||||||
listSearchBarSearchInputColor: this.getValue(
|
listSearchBarSearchInputColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarSearchInputColor
|
? container.listSearchBarSearchInputColor
|
||||||
: this.listSearchBarSearchInputColor,
|
: this.listSearchBarSearchInputColor
|
||||||
),
|
),
|
||||||
listSearchBarForegroundSearchInputColor: this.getValue(
|
listSearchBarForegroundSearchInputColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarForegroundSearchInputColor
|
? container.listSearchBarForegroundSearchInputColor
|
||||||
: this.listSearchBarForegroundSearchInputColor,
|
: this.listSearchBarForegroundSearchInputColor
|
||||||
),
|
),
|
||||||
listSearchBarType: this.getValue(
|
listSearchBarType: this.getValue(
|
||||||
container ? container.listSearchBarType : this.listSearchBarType,
|
container ? container.listSearchBarType : this.listSearchBarType
|
||||||
),
|
),
|
||||||
listSearchBarTitle: this.getValue(
|
listSearchBarTitle: this.getValue(
|
||||||
container ? container.listSearchBarTitle : this.listSearchBarTitle,
|
container ? container.listSearchBarTitle : this.listSearchBarTitle
|
||||||
),
|
),
|
||||||
listSearchBarValue: this.getValue(
|
listSearchBarValue: this.getValue(
|
||||||
container ? container.listSearchBarValue : this.listSearchBarValue,
|
container ? container.listSearchBarValue : this.listSearchBarValue
|
||||||
),
|
),
|
||||||
listSearchBarEnterKeyHint: this.getValue(
|
listSearchBarEnterKeyHint: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarEnterKeyHint
|
? container.listSearchBarEnterKeyHint
|
||||||
: this.listSearchBarEnterKeyHint,
|
: this.listSearchBarEnterKeyHint
|
||||||
),
|
),
|
||||||
listSearchBarKeyboardType: this.getValue(
|
listSearchBarKeyboardType: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarKeyboardType
|
? container.listSearchBarKeyboardType
|
||||||
: this.listSearchBarKeyboardType,
|
: this.listSearchBarKeyboardType
|
||||||
),
|
),
|
||||||
listSearchBarSpellcheck: this.getValue(
|
listSearchBarSpellcheck: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarSpellcheck
|
? container.listSearchBarSpellcheck
|
||||||
: this.listSearchBarSpellcheck,
|
: this.listSearchBarSpellcheck
|
||||||
),
|
),
|
||||||
listSearchBarDebounce: this.getValue(
|
listSearchBarDebounce: this.getValue(
|
||||||
container
|
container ? container.listSearchBarDebounce : this.listSearchBarDebounce
|
||||||
? container.listSearchBarDebounce
|
|
||||||
: this.listSearchBarDebounce,
|
|
||||||
),
|
),
|
||||||
listSearchBarShowCancelButton: this.getValue(
|
listSearchBarShowCancelButton: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarShowCancelButton
|
? container.listSearchBarShowCancelButton
|
||||||
: this.listSearchBarShowCancelButton,
|
: this.listSearchBarShowCancelButton
|
||||||
),
|
),
|
||||||
listSearchBarCancelButtonIcon: this.getValue(
|
listSearchBarCancelButtonIcon: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarCancelButtonIcon
|
? container.listSearchBarCancelButtonIcon
|
||||||
: this.listSearchBarCancelButtonIcon,
|
: this.listSearchBarCancelButtonIcon
|
||||||
),
|
),
|
||||||
listSearchBarCancelButtonTitle: this.getValue(
|
listSearchBarCancelButtonTitle: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarCancelButtonTitle
|
? container.listSearchBarCancelButtonTitle
|
||||||
: this.listSearchBarCancelButtonTitle,
|
: this.listSearchBarCancelButtonTitle
|
||||||
),
|
),
|
||||||
listSearchBarCancelButtonIconColor: this.getValue(
|
listSearchBarCancelButtonIconColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarCancelButtonIconColor
|
? container.listSearchBarCancelButtonIconColor
|
||||||
: this.listSearchBarCancelButtonIconColor,
|
: this.listSearchBarCancelButtonIconColor
|
||||||
),
|
),
|
||||||
listSearchBarShowClearButton: this.getValue(
|
listSearchBarShowClearButton: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarShowClearButton
|
? container.listSearchBarShowClearButton
|
||||||
: this.listSearchBarShowClearButton,
|
: this.listSearchBarShowClearButton
|
||||||
),
|
),
|
||||||
listSearchBarClearButtonIcon: this.getValue(
|
listSearchBarClearButtonIcon: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarClearButtonIcon
|
? container.listSearchBarClearButtonIcon
|
||||||
: this.listSearchBarClearButtonIcon,
|
: this.listSearchBarClearButtonIcon
|
||||||
),
|
),
|
||||||
listSearchBarClearButtonIconColor: this.getValue(
|
listSearchBarClearButtonIconColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarClearButtonIconColor
|
? container.listSearchBarClearButtonIconColor
|
||||||
: this.listSearchBarClearButtonIconColor,
|
: this.listSearchBarClearButtonIconColor
|
||||||
),
|
),
|
||||||
listSearchBarSearchButtonIcon: this.getValue(
|
listSearchBarSearchButtonIcon: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarSearchButtonIcon
|
? container.listSearchBarSearchButtonIcon
|
||||||
: this.listSearchBarSearchButtonIcon,
|
: this.listSearchBarSearchButtonIcon
|
||||||
),
|
),
|
||||||
listSearchBarSearchButtonIconColor: this.getValue(
|
listSearchBarSearchButtonIconColor: this.getValue(
|
||||||
container
|
container
|
||||||
? container.listSearchBarSearchButtonIconColor
|
? container.listSearchBarSearchButtonIconColor
|
||||||
: this.listSearchBarSearchButtonIconColor,
|
: this.listSearchBarSearchButtonIconColor
|
||||||
),
|
),
|
||||||
}).pipe(
|
}).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
@@ -1548,7 +1478,7 @@ export abstract class XComponentListContainerComponent
|
|||||||
listSearchBarQueryChange: this.listSearchBarQueryChange,
|
listSearchBarQueryChange: this.listSearchBarQueryChange,
|
||||||
listSearchBarOnEvent: this.listSearchBarOnEvent,
|
listSearchBarOnEvent: this.listSearchBarOnEvent,
|
||||||
};
|
};
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user