raise-common-lib 0.0.82 → 0.0.84
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/raise-common-lib.umd.js +44 -16
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/dialog/common-dialog/index.component.js +2 -2
- package/esm2015/lib/layout/drawer/index.component.js +27 -8
- package/esm2015/lib/layout/grid-box/index.component.js +5 -5
- package/esm2015/lib/layout/page-list/index.component.js +5 -5
- package/esm5/lib/dialog/common-dialog/index.component.js +2 -2
- package/esm5/lib/layout/drawer/index.component.js +36 -8
- package/esm5/lib/layout/grid-box/index.component.js +5 -5
- package/esm5/lib/layout/page-list/index.component.js +5 -5
- package/fesm2015/raise-common-lib.js +35 -16
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +44 -16
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/drawer/index.component.d.ts +3 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -1200,10 +1200,10 @@ RsPageListComponent.decorators = [
|
|
|
1200
1200
|
}] }
|
|
1201
1201
|
];
|
|
1202
1202
|
RsPageListComponent.propDecorators = {
|
|
1203
|
-
gridContent: [{ type: ContentChild, args: [CommonGridComponent, { static:
|
|
1204
|
-
orignGrid: [{ type: ContentChild, args: [GridComponent, { static:
|
|
1205
|
-
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static:
|
|
1206
|
-
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static:
|
|
1203
|
+
gridContent: [{ type: ContentChild, args: [CommonGridComponent, { static: false },] }],
|
|
1204
|
+
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
1205
|
+
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
1206
|
+
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
1207
1207
|
pageTitle: [{ type: Input }],
|
|
1208
1208
|
customPageTitle: [{ type: Input }],
|
|
1209
1209
|
hideSearch: [{ type: Input }],
|
|
@@ -1383,10 +1383,10 @@ GridBoxComponent.decorators = [
|
|
|
1383
1383
|
}] }
|
|
1384
1384
|
];
|
|
1385
1385
|
GridBoxComponent.propDecorators = {
|
|
1386
|
-
gridContent: [{ type: ContentChild, args: [CommonGridComponent, { static:
|
|
1387
|
-
orignGrid: [{ type: ContentChild, args: [GridComponent, { static:
|
|
1388
|
-
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static:
|
|
1389
|
-
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static:
|
|
1386
|
+
gridContent: [{ type: ContentChild, args: [CommonGridComponent, { static: false },] }],
|
|
1387
|
+
orignGrid: [{ type: ContentChild, args: [GridComponent, { static: false },] }],
|
|
1388
|
+
treeGrid: [{ type: ContentChild, args: [TreeGridComponent, { static: false },] }],
|
|
1389
|
+
wholeToolbarSlot: [{ type: ContentChild, args: ["wholeToolbarSlot", { static: false },] }],
|
|
1390
1390
|
hideSearch: [{ type: Input }],
|
|
1391
1391
|
isInner: [{ type: Input }]
|
|
1392
1392
|
};
|
|
@@ -2190,6 +2190,7 @@ class DrawerComponent {
|
|
|
2190
2190
|
this.config = DefaultDrawerConfig;
|
|
2191
2191
|
this.useTransition = "yes";
|
|
2192
2192
|
this.$isOpened = new BehaviorSubject(false);
|
|
2193
|
+
this.hiddenDrawer = true;
|
|
2193
2194
|
this.componentRefMap = new Map();
|
|
2194
2195
|
}
|
|
2195
2196
|
/**
|
|
@@ -2306,8 +2307,7 @@ class DrawerComponent {
|
|
|
2306
2307
|
this.componentRefMap.set(this.service.cacheKey, cache);
|
|
2307
2308
|
this.setCache(cache);
|
|
2308
2309
|
this.config = showConfig;
|
|
2309
|
-
this
|
|
2310
|
-
this.useTransition = "yes";
|
|
2310
|
+
this.toggleOpenStatus(true, true);
|
|
2311
2311
|
return componentRef.instance;
|
|
2312
2312
|
}
|
|
2313
2313
|
/**
|
|
@@ -2321,8 +2321,7 @@ class DrawerComponent {
|
|
|
2321
2321
|
*/
|
|
2322
2322
|
back() {
|
|
2323
2323
|
this.deleteCache(this.service.cacheKey);
|
|
2324
|
-
this
|
|
2325
|
-
this.useTransition = "yes";
|
|
2324
|
+
this.toggleOpenStatus(false, true);
|
|
2326
2325
|
}
|
|
2327
2326
|
/**
|
|
2328
2327
|
* @param {?} cacheKey
|
|
@@ -2353,18 +2352,36 @@ class DrawerComponent {
|
|
|
2353
2352
|
cache.ref.location.nativeElement.style.display = "";
|
|
2354
2353
|
this.config = cache.config;
|
|
2355
2354
|
this.setCache(cache);
|
|
2356
|
-
this
|
|
2355
|
+
this.toggleOpenStatus(true);
|
|
2357
2356
|
}
|
|
2358
2357
|
else {
|
|
2359
|
-
this
|
|
2358
|
+
this.toggleOpenStatus(false);
|
|
2360
2359
|
}
|
|
2361
2360
|
this.useTransition = "no";
|
|
2362
2361
|
}
|
|
2362
|
+
/**
|
|
2363
|
+
* @param {?} isOpen
|
|
2364
|
+
* @param {?=} useTransition
|
|
2365
|
+
* @return {?}
|
|
2366
|
+
*/
|
|
2367
|
+
toggleOpenStatus(isOpen, useTransition = false) {
|
|
2368
|
+
this.$isOpened.next(isOpen);
|
|
2369
|
+
this.useTransition = useTransition ? "yes" : "no";
|
|
2370
|
+
this.hiddenDrawer = !isOpen && !useTransition;
|
|
2371
|
+
}
|
|
2372
|
+
/**
|
|
2373
|
+
* @return {?}
|
|
2374
|
+
*/
|
|
2375
|
+
onTransitionEnd() {
|
|
2376
|
+
if (!this.$isOpened.getValue()) {
|
|
2377
|
+
this.hiddenDrawer = true;
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2363
2380
|
}
|
|
2364
2381
|
DrawerComponent.decorators = [
|
|
2365
2382
|
{ type: Component, args: [{
|
|
2366
2383
|
selector: "rs-drawer",
|
|
2367
|
-
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"($isOpened | async) ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n >\r\n <div class=\"drawer-header\" #header>\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #headerSlot></div>\r\n </div>\r\n <div class=\"drawer-top-slot\" #topSlot></div>\r\n <div class=\"drawer-content-box\">\r\n <div class=\"drawer-content\" #content>\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"drawer-toolbar-slot\" #toolbarSlot></div>\r\n </div>\r\n</div>\r\n",
|
|
2384
|
+
template: "<div #element id=\"rs-drawer-container\" class=\"rs-drawer-container\">\r\n <div class=\"rs-drawer-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div\r\n #drawer\r\n class=\"rs-drawer\"\r\n [attr.data-mode]=\"config.mode\"\r\n [attr.data-opened]=\"($isOpened | async) ? 'yes' : 'no'\"\r\n [attr.data-transition]=\"useTransition\"\r\n [hidden]=\"hiddenDrawer\"\r\n (transitionend)=\"onTransitionEnd()\"\r\n >\r\n <div class=\"drawer-header\" #header>\r\n <button class=\"drawer-return-button\" (click)=\"hide()\">\r\n <span class=\"drawer-sub-title\" *ngIf=\"config.subTitle\">\r\n {{ config.subTitle }}\r\n </span>\r\n </button>\r\n <div class=\"drawer-title\">{{ config.title }}</div>\r\n <div class=\"drawer-header-slot\" #headerSlot></div>\r\n </div>\r\n <div class=\"drawer-top-slot\" #topSlot></div>\r\n <div class=\"drawer-content-box\">\r\n <div class=\"drawer-content\" #content>\r\n <div class=\"drawer-content-container\">\r\n <ng-template #dynamicComponentContainer></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"drawer-toolbar-slot\" #toolbarSlot></div>\r\n </div>\r\n</div>\r\n",
|
|
2368
2385
|
styles: [":host{display:block;height:100%}#rs-drawer-container{height:100%}.rs-drawer-container{height:100%;background-color:transparent;overflow:hidden;position:relative}.rs-drawer-container .rs-drawer-content{width:100%;height:100%;overflow:auto;margin-right:0!important}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.rs-drawer-container .rs-drawer-content::-webkit-scrollbar-thumb{background:#eaedf0}.rs-drawer-container .rs-drawer{width:100%;height:100%;border-left:none;background-color:transparent;overflow:visible;pointer-events:none;opacity:0;display:flex;flex-flow:column nowrap;position:absolute;z-index:2;top:0;left:100%}.rs-drawer-container .rs-drawer[data-opened=yes]{left:0;opacity:1}.rs-drawer-container .rs-drawer[data-transition=yes]{transition:opacity .5s ease-in-out,left .5s ease-in-out}.rs-drawer-container .rs-drawer .drawer-header{flex:none;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;box-sizing:content-box;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button{flex:none;display:flex;flex-flow:row nowrap;align-items:center;padding:0;border:none;background-color:transparent;cursor:pointer}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button::before{content:url(../../assets/img/drawer-back.svg);width:24px;height:24px;margin-right:8px;transition:transform 125ms ease-in-out}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button:hover::before{transform:translateX(-2px)}.rs-drawer-container .rs-drawer .drawer-header .drawer-return-button .drawer-sub-title{margin-right:12px;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title{flex:none;min-height:14px;padding:0 12px;border-left:1px solid #bdc4ca;font-family:Arial;font-style:normal;font-weight:400}.rs-drawer-container .rs-drawer .drawer-header .drawer-title:empty{padding:0}.rs-drawer-container .rs-drawer .drawer-content-box{flex:auto;height:0;background-color:#f7fafb;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-content{height:100%;padding:0 20px;border:1px solid #ebedf0;border-radius:15px;background-color:#fff;display:flex;flex-flow:column nowrap}.rs-drawer-container .rs-drawer .drawer-content .drawer-content-container{flex:auto;overflow:hidden auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot{flex:none;height:32px;margin-left:auto;display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-toolbar-slot:empty{display:none}.rs-drawer-container .rs-drawer .drawer-top-slot{flex:none;pointer-events:auto}.rs-drawer-container .rs-drawer .drawer-top-slot:empty{height:var(--drawer-top,0);pointer-events:none}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header{height:46px;padding:0 0 0 8px;background-color:#f7fafb}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-header .drawer-title{color:#1f3f5c;font-size:15px;font-weight:700;line-height:18px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content{padding-bottom:20px}.rs-drawer-container .rs-drawer[data-mode=outer] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-top-slot:empty+.drawer-content-box{padding-top:calc((var(--drawer-top,0) + 1) * 16px)}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header{height:24px;padding:6px 0;border-bottom:1px solid #eaedf0}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-sub-title,.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{color:#44566c;font-size:12px;line-height:14px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-header .drawer-title{font-weight:700}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-content .drawer-content-container{margin-right:-20px;padding-right:20px}.rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot{width:100%;padding:16px 0;box-sizing:content-box;border-top:1px solid #eaedf0}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar]{display:flex;flex-flow:row nowrap;justify-content:flex-end;align-items:center;gap:12px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;gap:6px;min-width:80px;height:32px;padding:0 12px;border:1px solid #adb5bd;border-radius:4px;background-color:#fff;cursor:pointer;color:#44566c;font-size:13px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:hover{border-color:#6c7c90}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button:disabled{opacity:1!important;border-color:#6c7c9066;color:#44566c66;cursor:unset}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary{border:none;background-color:#1364b3;color:#fff}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:hover{background-color:#176bca}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button.primary:disabled{background-color:#1364b366}::ng-deep .rs-drawer-container .rs-drawer .drawer-toolbar-slot [drawer-toolbar] button img{width:16px;height:16px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=outer] .drawer-toolbar-slot [drawer-toolbar] button{height:26px;font-size:12px;line-height:14px}::ng-deep .rs-drawer-container .rs-drawer[data-mode=inner] .drawer-toolbar-slot [drawer-toolbar] button img{display:none}"]
|
|
2369
2386
|
}] }
|
|
2370
2387
|
];
|
|
@@ -2412,6 +2429,8 @@ if (false) {
|
|
|
2412
2429
|
DrawerComponent.prototype.useTransition;
|
|
2413
2430
|
/** @type {?} */
|
|
2414
2431
|
DrawerComponent.prototype.$isOpened;
|
|
2432
|
+
/** @type {?} */
|
|
2433
|
+
DrawerComponent.prototype.hiddenDrawer;
|
|
2415
2434
|
/**
|
|
2416
2435
|
* @type {?}
|
|
2417
2436
|
* @private
|
|
@@ -21079,7 +21098,7 @@ CommonDialogComponent.propDecorators = {
|
|
|
21079
21098
|
loading: [{ type: Input }],
|
|
21080
21099
|
saveEmit: [{ type: Output }],
|
|
21081
21100
|
closeEmit: [{ type: Output }],
|
|
21082
|
-
footerContent: [{ type: ContentChild, args: ["footerSlot", { static:
|
|
21101
|
+
footerContent: [{ type: ContentChild, args: ["footerSlot", { static: false },] }]
|
|
21083
21102
|
};
|
|
21084
21103
|
if (false) {
|
|
21085
21104
|
/** @type {?} */
|