@sd-angular/core 0.0.963 → 0.0.964
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sd-angular-core-grid-material.umd.js +230 -87
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-side-drawer.umd.js +5 -1
- package/bundles/sd-angular-core-side-drawer.umd.js.map +1 -1
- package/bundles/sd-angular-core-side-drawer.umd.min.js +1 -1
- package/bundles/sd-angular-core-side-drawer.umd.min.js.map +1 -1
- package/esm2015/grid-material/sd-angular-core-grid-material.js +8 -7
- package/esm2015/grid-material/src/lib/grid-material.component.js +2 -2
- package/esm2015/grid-material/src/lib/grid-material.module.js +3 -1
- package/esm2015/grid-material/src/lib/models/grid-action.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-selection.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/selection-action-filter.pipe.js +16 -44
- package/esm2015/grid-material/src/lib/pipes/selection-disable-select-all.pipe.js +16 -7
- package/esm2015/grid-material/src/lib/pipes/selection-disable.pipe.js +35 -15
- package/esm2015/grid-material/src/lib/pipes/selection-visible.pipe.js +54 -0
- package/esm2015/side-drawer/src/lib/side-drawer/side-drawer.component.js +7 -3
- package/fesm2015/sd-angular-core-grid-material.js +116 -65
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-side-drawer.js +6 -2
- package/fesm2015/sd-angular-core-side-drawer.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +7 -6
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/models/grid-action.model.d.ts +1 -6
- package/grid-material/src/lib/models/grid-selection.model.d.ts +0 -2
- package/grid-material/src/lib/models/grid.model.d.ts +1 -0
- package/grid-material/src/lib/pipes/selection-action-filter.pipe.d.ts +2 -1
- package/grid-material/src/lib/pipes/selection-disable-select-all.pipe.d.ts +2 -1
- package/grid-material/src/lib/pipes/selection-disable.pipe.d.ts +2 -1
- package/grid-material/src/lib/pipes/selection-visible.pipe.d.ts +6 -0
- package/package.json +1 -1
- package/{sd-angular-core-0.0.963.tgz → sd-angular-core-0.0.964.tgz} +0 -0
- package/side-drawer/sd-angular-core-side-drawer.metadata.json +1 -1
- package/side-drawer/src/lib/side-drawer/side-drawer.component.d.ts +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, ComponentFactoryResolver, ApplicationRef, Injector, ViewChild, Input, Output, NgModule } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, ComponentFactoryResolver, ApplicationRef, Injector, ChangeDetectorRef, ViewChild, Input, Output, NgModule } from '@angular/core';
|
|
3
3
|
import { DomPortalOutlet, CdkPortal, PortalModule } from '@angular/cdk/portal';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
import { SdLoadingService } from '@sd-angular/core/loading';
|
|
@@ -12,10 +12,11 @@ import { SdButtonModule } from '@sd-angular/core/button';
|
|
|
12
12
|
|
|
13
13
|
var _embeddedViewRef;
|
|
14
14
|
class SdSideDrawer {
|
|
15
|
-
constructor(cfr, ar, injector, loadingService) {
|
|
15
|
+
constructor(cfr, ar, injector, ref, loadingService) {
|
|
16
16
|
this.cfr = cfr;
|
|
17
17
|
this.ar = ar;
|
|
18
18
|
this.injector = injector;
|
|
19
|
+
this.ref = ref;
|
|
19
20
|
this.loadingService = loadingService;
|
|
20
21
|
this.id = `I${v4()}`;
|
|
21
22
|
this.width = '480px';
|
|
@@ -26,9 +27,11 @@ class SdSideDrawer {
|
|
|
26
27
|
this.isHover = false;
|
|
27
28
|
this.isLoading = false;
|
|
28
29
|
this.open = () => {
|
|
30
|
+
this.ref.markForCheck();
|
|
29
31
|
this.isOpened = true;
|
|
30
32
|
};
|
|
31
33
|
this.close = () => {
|
|
34
|
+
this.ref.markForCheck();
|
|
32
35
|
this.isOpened = false;
|
|
33
36
|
this.stopLoading();
|
|
34
37
|
};
|
|
@@ -66,6 +69,7 @@ SdSideDrawer.ctorParameters = () => [
|
|
|
66
69
|
{ type: ComponentFactoryResolver },
|
|
67
70
|
{ type: ApplicationRef },
|
|
68
71
|
{ type: Injector },
|
|
72
|
+
{ type: ChangeDetectorRef },
|
|
69
73
|
{ type: SdLoadingService }
|
|
70
74
|
];
|
|
71
75
|
SdSideDrawer.propDecorators = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-side-drawer.js","sources":["../../../../projects/sd-core/side-drawer/src/lib/side-drawer/side-drawer.component.ts","../../../../projects/sd-core/side-drawer/src/lib/side-drawer.module.ts","../../../../projects/sd-core/side-drawer/src/public-api.ts","../../../../projects/sd-core/side-drawer/sd-angular-core-side-drawer.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewChild,\r\n ComponentFactoryResolver,\r\n ApplicationRef,\r\n Injector,\r\n EmbeddedViewRef,\r\n AfterViewInit,\r\n OnDestroy,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ChangeDetectionStrategy,\r\n} from '@angular/core';\r\nimport { CdkPortal, DomPortalOutlet } from '@angular/cdk/portal';\r\nimport * as uuid from 'uuid';\r\nimport { SdLoadingService } from '@sd-angular/core/loading';\r\n\r\n@Component({\r\n selector: 'sd-side-drawer',\r\n templateUrl: './side-drawer.component.html',\r\n styleUrls: ['./side-drawer.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SdSideDrawer implements AfterViewInit, OnDestroy {\r\n id = `I${uuid.v4()}`;\r\n @ViewChild(CdkPortal) portal: CdkPortal;\r\n @Input() title: string;\r\n @Input() editable: boolean;\r\n @Input() width = '480px';\r\n @Output() editingChanged = new EventEmitter<boolean>();\r\n #embeddedViewRef: EmbeddedViewRef<any>;\r\n isEditing: boolean = false;\r\n isOpened = false;\r\n isHover = false;\r\n isLoading = false;\r\n\r\n constructor(\r\n private cfr: ComponentFactoryResolver,\r\n private ar: ApplicationRef,\r\n private injector: Injector,\r\n private loadingService: SdLoadingService\r\n ) { }\r\n\r\n ngAfterViewInit() {\r\n this.#embeddedViewRef = new DomPortalOutlet(\r\n document.body,\r\n this.cfr,\r\n this.ar,\r\n this.injector\r\n ).attachTemplatePortal(this.portal);\r\n }\r\n\r\n open = () => {\r\n this.isOpened = true;\r\n }\r\n\r\n close = () => {\r\n this.isOpened = false;\r\n this.stopLoading();\r\n }\r\n\r\n startLoading = () => {\r\n this.isLoading = true;\r\n this.loadingService.stop();\r\n this.loadingService.start(`#${this.id}`);\r\n }\r\n\r\n stopLoading = () => {\r\n this.isLoading = false;\r\n this.loadingService.stop();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.#embeddedViewRef.destroy();\r\n }\r\n\r\n toggleEditable() {\r\n this.isEditing = !this.isEditing;\r\n this.editingChanged.emit(this.isEditing);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport '@sd-angular/core/typing';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { SdButtonModule } from '@sd-angular/core/button';\r\nimport { SdSideDrawer } from './side-drawer/side-drawer.component';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatDialogModule,\r\n MatButtonModule,\r\n SdButtonModule,\r\n PortalModule\r\n ],\r\n declarations: [\r\n SdSideDrawer\r\n ],\r\n exports: [\r\n SdSideDrawer\r\n ],\r\n providers: [\r\n ]\r\n})\r\nexport class SdSideDrawerModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/side-drawer/side-drawer.component';\r\n\r\nexport * from './lib/side-drawer.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"sd-angular-core-side-drawer.js","sources":["../../../../projects/sd-core/side-drawer/src/lib/side-drawer/side-drawer.component.ts","../../../../projects/sd-core/side-drawer/src/lib/side-drawer.module.ts","../../../../projects/sd-core/side-drawer/src/public-api.ts","../../../../projects/sd-core/side-drawer/sd-angular-core-side-drawer.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewChild,\r\n ComponentFactoryResolver,\r\n ApplicationRef,\r\n Injector,\r\n EmbeddedViewRef,\r\n AfterViewInit,\r\n OnDestroy,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport { CdkPortal, DomPortalOutlet } from '@angular/cdk/portal';\r\nimport * as uuid from 'uuid';\r\nimport { SdLoadingService } from '@sd-angular/core/loading';\r\n\r\n@Component({\r\n selector: 'sd-side-drawer',\r\n templateUrl: './side-drawer.component.html',\r\n styleUrls: ['./side-drawer.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SdSideDrawer implements AfterViewInit, OnDestroy {\r\n id = `I${uuid.v4()}`;\r\n @ViewChild(CdkPortal) portal: CdkPortal;\r\n @Input() title: string;\r\n @Input() editable: boolean;\r\n @Input() width = '480px';\r\n @Output() editingChanged = new EventEmitter<boolean>();\r\n #embeddedViewRef: EmbeddedViewRef<any>;\r\n isEditing: boolean = false;\r\n isOpened = false;\r\n isHover = false;\r\n isLoading = false;\r\n\r\n constructor(\r\n private cfr: ComponentFactoryResolver,\r\n private ar: ApplicationRef,\r\n private injector: Injector,\r\n private ref: ChangeDetectorRef,\r\n private loadingService: SdLoadingService\r\n ) { }\r\n\r\n ngAfterViewInit() {\r\n this.#embeddedViewRef = new DomPortalOutlet(\r\n document.body,\r\n this.cfr,\r\n this.ar,\r\n this.injector\r\n ).attachTemplatePortal(this.portal);\r\n }\r\n\r\n open = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = true;\r\n }\r\n\r\n close = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = false;\r\n this.stopLoading();\r\n }\r\n\r\n startLoading = () => {\r\n this.isLoading = true;\r\n this.loadingService.stop();\r\n this.loadingService.start(`#${this.id}`);\r\n }\r\n\r\n stopLoading = () => {\r\n this.isLoading = false;\r\n this.loadingService.stop();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.#embeddedViewRef.destroy();\r\n }\r\n\r\n toggleEditable() {\r\n this.isEditing = !this.isEditing;\r\n this.editingChanged.emit(this.isEditing);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport '@sd-angular/core/typing';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { SdButtonModule } from '@sd-angular/core/button';\r\nimport { SdSideDrawer } from './side-drawer/side-drawer.component';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatDialogModule,\r\n MatButtonModule,\r\n SdButtonModule,\r\n PortalModule\r\n ],\r\n declarations: [\r\n SdSideDrawer\r\n ],\r\n exports: [\r\n SdSideDrawer\r\n ],\r\n providers: [\r\n ]\r\n})\r\nexport class SdSideDrawerModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/side-drawer/side-drawer.component';\r\n\r\nexport * from './lib/side-drawer.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4"],"mappings":";;;;;;;;;;;;;MAyBa,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AE,EACP,IAAI,CAAC,QAAQ,CACd,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAC;KACrC;IAwBD,WAAW;QACT,+CAAsB,OAAO,EAAE,CAAC;KACjC;IAED,cAAc;QACZ,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC1C;;;;YAjEF,SAAS,SAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,+2CAA2C;gBAE3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YArBC,wBAAwB;YACxB,cAAc;YACd,QAAQ;YAQR,iBAAiB;YAIV,gBAAgB;;;qBAUtB,SAAS,SAAC,SAAS;oBACnB,KAAK;uBACL,KAAK;oBACL,KAAK;6BACL,MAAM;;;MCFI,kBAAkB;;;YAlB9B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,aAAa;oBACb,eAAe;oBACf,eAAe;oBACf,cAAc;oBACd,YAAY;iBACb;gBACD,YAAY,EAAE;oBACZ,YAAY;iBACb;gBACD,OAAO,EAAE;oBACP,YAAY;iBACb;gBACD,SAAS,EAAE,EACV;aACF;;;AC5BD;;;;ACAA;;;;;;"}
|
|
@@ -28,16 +28,17 @@ export { SdCommandDisablePipe as ɵy } from './src/lib/pipes/command-disable.pip
|
|
|
28
28
|
export { SdCommandFilterPipe as ɵx } from './src/lib/pipes/command-filter.pipe';
|
|
29
29
|
export { SdCommandIconPipe as ɵz } from './src/lib/pipes/command-icon.pipe';
|
|
30
30
|
export { SdCommandTitlePipe as ɵba } from './src/lib/pipes/command-title.pipe';
|
|
31
|
-
export { SdEditorHandlerColumnPipe as
|
|
32
|
-
export { SdEditorHandlerRowPipe as
|
|
33
|
-
export { SdEditorValidatePipe as
|
|
31
|
+
export { SdEditorHandlerColumnPipe as ɵbn } from './src/lib/pipes/editor-handler-column.pipe';
|
|
32
|
+
export { SdEditorHandlerRowPipe as ɵbm } from './src/lib/pipes/editor-handler-row.pipe';
|
|
33
|
+
export { SdEditorValidatePipe as ɵbo } from './src/lib/pipes/editor-validate.pipe';
|
|
34
34
|
export { SdFilterColumnPipe as ɵbg } from './src/lib/pipes/filter-column.pipe';
|
|
35
35
|
export { SdFilterExternalPipe as ɵbh } from './src/lib/pipes/filter-external.pipe';
|
|
36
36
|
export { SdGridConfigurationResultPipe as ɵu } from './src/lib/pipes/grid-configuration-result.pipe';
|
|
37
37
|
export { SdSelectionActionFilterPipe as ɵbi } from './src/lib/pipes/selection-action-filter.pipe';
|
|
38
|
-
export { SdSelectionDisableSelectAllPipe as
|
|
39
|
-
export { SdSelectionDisablePipe as
|
|
40
|
-
export {
|
|
38
|
+
export { SdSelectionDisableSelectAllPipe as ɵbl } from './src/lib/pipes/selection-disable-select-all.pipe';
|
|
39
|
+
export { SdSelectionDisablePipe as ɵbk } from './src/lib/pipes/selection-disable.pipe';
|
|
40
|
+
export { SdSelectionVisiblePipe as ɵbj } from './src/lib/pipes/selection-visible.pipe';
|
|
41
|
+
export { SdStyleRowCss as ɵbp } from './src/lib/pipes/style-row-css.pipe';
|
|
41
42
|
export { SdGeneratedColumnService as ɵt } from './src/lib/services/generated-column/generated-column.service';
|
|
42
43
|
export { SdGridConfigurationService as ɵh } from './src/lib/services/grid-configuration.service';
|
|
43
44
|
export { SdGridFilterService as ɵd } from './src/lib/services/grid-filter.service';
|