raise-common-lib 0.0.60 → 0.0.61
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 +55 -2
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +2 -2
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/form/toolbar-item/index.component.js +46 -0
- package/esm2015/lib/layout/grid-box/index.component.js +1 -1
- package/esm2015/lib/layout/page-list/index.component.js +1 -1
- package/esm2015/lib/raise-common-lib.module.js +4 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/form/toolbar-item/index.component.js +52 -0
- package/esm5/lib/layout/grid-box/index.component.js +1 -1
- package/esm5/lib/layout/page-list/index.component.js +1 -1
- package/esm5/lib/raise-common-lib.module.js +4 -1
- package/esm5/public-api.js +2 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +50 -3
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +55 -3
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/form/toolbar-item/index.component.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/drawer-back.svg +4 -4
- package/src/assets/img/toolbar-action-add.svg +4 -0
- package/src/assets/style/reset/grid.scss +4 -1
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
{ type: core.Component, args: [{
|
|
1558
1558
|
selector: "rs-page-list",
|
|
1559
1559
|
template: "<div class=\"rs-page-list-wrap\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <ng-container *ngIf=\"customPageTitle; else defaultTitle\">\r\n <ng-content select=\"[titleSlot]\"></ng-content>\r\n </ng-container>\r\n <ng-template #defaultTitle>\r\n <div class=\"rs-page-title\" *ngIf=\"pageTitle\">{{ pageTitle }}</div>\r\n </ng-template>\r\n <div class=\"rs-sub-section\">\r\n <ng-content select=\"[subSectionSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-content-wrap\">\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput()\"\r\n placeholder=\"Search all fields\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
1560
|
-
styles: [".rs-page-list-wrap{height:100%;display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1885px}.rs-page-list-wrap .rs-page-title{font-family:var(--rs-font-family);font-size:var(--rs-page-title-font-size);font-weight:700;text-align:left;color:var(--rs-page-title-color);display:flex;align-items:center;padding:16px 8px 12px 20px}.rs-page-list-wrap .rs-sub-section{width:100%}.rs-page-list-wrap .rs-content-wrap{display:flex;flex-direction:column;flex:1;height:0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{display:flex;gap:
|
|
1560
|
+
styles: [".rs-page-list-wrap{height:100%;display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1885px}.rs-page-list-wrap .rs-page-title{font-family:var(--rs-font-family);font-size:var(--rs-page-title-font-size);font-weight:700;text-align:left;color:var(--rs-page-title-color);display:flex;align-items:center;padding:16px 8px 12px 20px}.rs-page-list-wrap .rs-sub-section{width:100%}.rs-page-list-wrap .rs-content-wrap{display:flex;flex-direction:column;flex:1;height:0}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{display:flex;gap:4px}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:24px}.rs-page-list-wrap .rs-content-wrap .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-page-list-wrap .rs-content-wrap .rs-grid-wrap{flex:1;height:0}.rs-page-list-wrap.is-not-inner .rs-content-wrap{border-radius:15px;padding:12px 20px;background:#fff;border:1px solid var(--rs-border-color);box-shadow:0 0 4px 0 rgba(0,0,0,.1)}.rs-page-list-wrap .rs-search-input{width:240px}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:26px}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-page-list-wrap .rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:6px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
1561
1561
|
}] }
|
|
1562
1562
|
];
|
|
1563
1563
|
RsPageListComponent.propDecorators = {
|
|
@@ -1713,7 +1713,7 @@
|
|
|
1713
1713
|
{ type: core.Component, args: [{
|
|
1714
1714
|
selector: "rs-grid-box",
|
|
1715
1715
|
template: "<div class=\"rs-grid-box\" [ngClass]=\"{ 'is-not-inner': !isInner }\">\r\n <div class=\"rs-toolbar-wrap\">\r\n <div class=\"rs-whole-bar\" *ngIf=\"hasWholeToolbarSlot\">\r\n <ng-content select=\"[wholeToolbarSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-left-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[leftToolbarBtnSlot]\"></ng-content>\r\n </div>\r\n <div class=\"rs-right-col\" *ngIf=\"!hasWholeToolbarSlot\">\r\n <ng-content select=\"[rightToolbarBtnSlot]\"></ng-content>\r\n <div class=\"rs-search-input\">\r\n <ejs-textbox\r\n type=\"text\"\r\n class=\"e-input\"\r\n [(ngModel)]=\"searchValue\"\r\n (input)=\"onInput()\"\r\n placeholder=\"Search all fields\"\r\n [showClearButton]=\"true\"\r\n autocomplete=\"off\"\r\n ></ejs-textbox>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rs-grid-wrap\">\r\n <ng-content select=\"[gridSlot]\"></ng-content>\r\n </div>\r\n</div>\r\n",
|
|
1716
|
-
styles: [":host{height:100%}.rs-grid-box{display:flex;flex-direction:column;height:100%}.rs-grid-box.is-not-inner{border-radius:15px;padding:12px 20px;background:#fff;border:1px solid var(--rs-border-color);box-shadow:0 0 4px 0 rgba(0,0,0,.1)}.rs-grid-box .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.rs-grid-box .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-grid-box .rs-toolbar-wrap .rs-left-col,.rs-grid-box .rs-toolbar-wrap .rs-right-col{display:flex;gap:
|
|
1716
|
+
styles: [":host{height:100%}.rs-grid-box{display:flex;flex-direction:column;height:100%}.rs-grid-box.is-not-inner{border-radius:15px;padding:12px 20px;background:#fff;border:1px solid var(--rs-border-color);box-shadow:0 0 4px 0 rgba(0,0,0,.1)}.rs-grid-box .rs-toolbar-wrap{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.rs-grid-box .rs-toolbar-wrap .rs-whole-bar{width:100%}.rs-grid-box .rs-toolbar-wrap .rs-left-col,.rs-grid-box .rs-toolbar-wrap .rs-right-col{display:flex;gap:4px}.rs-grid-box .rs-toolbar-wrap .rs-left-col ::ng-deep .e-btn,.rs-grid-box .rs-toolbar-wrap .rs-right-col ::ng-deep .e-btn{height:24px}.rs-grid-box .rs-toolbar-wrap .rs-right-col{gap:12px}.rs-grid-box .rs-grid-wrap{flex:1;height:0}.rs-grid-box .rs-search-input{width:240px}.rs-grid-box .rs-search-input ::ng-deep .e-input-group{border-radius:14px!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group.e-input-focus,.rs-grid-box .rs-search-input ::ng-deep .e-input-group:hover{box-shadow:0 0 3px 0 rgba(31,123,255,.4)!important;border-color:var(--rs-input-hover-border-color)!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group.e-input-focus input.e-input,.rs-grid-box .rs-search-input ::ng-deep .e-input-group:hover input.e-input{box-shadow:none!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group input.e-input{width:calc(100% - 50px);height:26px}.rs-grid-box .rs-search-input ::ng-deep .e-input-group input.e-input:hover{box-shadow:none!important}.rs-grid-box .rs-search-input ::ng-deep .e-input-group::before{content:\"\"!important;margin:6px 0 0 8px;display:block;width:16px;height:16px;background-image:url(/assets/img/search.svg);background-size:cover;background-position:center}"]
|
|
1717
1717
|
}] }
|
|
1718
1718
|
];
|
|
1719
1719
|
GridBoxComponent.propDecorators = {
|
|
@@ -21051,6 +21051,56 @@
|
|
|
21051
21051
|
DrawerFormComponent.prototype.ref;
|
|
21052
21052
|
}
|
|
21053
21053
|
|
|
21054
|
+
/**
|
|
21055
|
+
* @fileoverview added by tsickle
|
|
21056
|
+
* Generated from: lib/form/toolbar-item/index.component.ts
|
|
21057
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
21058
|
+
*/
|
|
21059
|
+
var ToolbarItemComponent = /** @class */ (function () {
|
|
21060
|
+
function ToolbarItemComponent() {
|
|
21061
|
+
this.ImageType = [
|
|
21062
|
+
"Add",
|
|
21063
|
+
"Delete",
|
|
21064
|
+
"Download",
|
|
21065
|
+
"Export",
|
|
21066
|
+
];
|
|
21067
|
+
}
|
|
21068
|
+
Object.defineProperty(ToolbarItemComponent.prototype, "hostDisabled", {
|
|
21069
|
+
get: /**
|
|
21070
|
+
* @return {?}
|
|
21071
|
+
*/
|
|
21072
|
+
function () {
|
|
21073
|
+
return !!this.disabled;
|
|
21074
|
+
},
|
|
21075
|
+
enumerable: true,
|
|
21076
|
+
configurable: true
|
|
21077
|
+
});
|
|
21078
|
+
ToolbarItemComponent.decorators = [
|
|
21079
|
+
{ type: core.Component, args: [{
|
|
21080
|
+
selector: "rs-toolbar-item",
|
|
21081
|
+
template: "<button class=\"toolbar-action-item e-btn text\" [disabled]=\"!!disabled\">\r\n <span class=\"toolbar-action-image\" [attr.data-type]=\"image\">\r\n <img *ngIf=\"!ImageType.includes(image)\" [src]=\"image\" />\r\n </span>\r\n <span>{{ text }}</span>\r\n</button>\r\n",
|
|
21082
|
+
styles: ["rs-toolbar-item.disabled{pointer-events:none}.toolbar-action-item{min-width:auto;padding:4px 8px}.toolbar-action-item .toolbar-action-image{height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}.toolbar-action-item .toolbar-action-image::before{display:block;width:16px;height:16px;line-height:16px}.toolbar-action-item .toolbar-action-image[data-type=Add]::before{content:url(/assets/img/toolbar-action-add.svg)}.toolbar-action-item .toolbar-action-image[data-type=Detail]::before{content:url(/assets/img/grid-action-detail.svg)}.toolbar-action-item .toolbar-action-image[data-type=Delete]::before{content:url(/assets/img/grid-action-delete.svg)}.toolbar-action-item .toolbar-action-image[data-type=Send]::before{content:url(/assets/img/grid-action-send.svg)}.toolbar-action-item .toolbar-action-image[data-type=Copy]::before{content:url(/assets/img/grid-action-copy.svg)}.toolbar-action-item .toolbar-action-image[data-type=Edit]::before{content:url(/assets/img/grid-action-edit.svg)}.toolbar-action-item .toolbar-action-image[data-type=Note]::before{content:url(/assets/img/grid-action-note.svg)}.toolbar-action-item .toolbar-action-image[data-type=Settle]::before{content:url(/assets/img/grid-action-settle.svg)}.toolbar-action-item .toolbar-action-image[data-type=Download]::before{content:url(/assets/img/grid-action-download.svg)}.toolbar-action-item .toolbar-action-image[data-type=Preview]::before{content:url(/assets/img/grid-action-detail.svg)}.toolbar-action-item .toolbar-action-image[data-type=Export]::before{content:url(/assets/img/grid-action-export.svg)}.toolbar-action-item .toolbar-action-image[data-type=Move]::before{content:url(/assets/img/grid-action-move.svg)}.toolbar-action-item .toolbar-action-image img{height:16px;display:block}"]
|
|
21083
|
+
}] }
|
|
21084
|
+
];
|
|
21085
|
+
ToolbarItemComponent.propDecorators = {
|
|
21086
|
+
image: [{ type: core.Input, args: ["image",] }],
|
|
21087
|
+
text: [{ type: core.Input, args: ["text",] }],
|
|
21088
|
+
disabled: [{ type: core.Input, args: ["disabled",] }],
|
|
21089
|
+
hostDisabled: [{ type: core.HostBinding, args: ["class.disabled",] }]
|
|
21090
|
+
};
|
|
21091
|
+
return ToolbarItemComponent;
|
|
21092
|
+
}());
|
|
21093
|
+
if (false) {
|
|
21094
|
+
/** @type {?} */
|
|
21095
|
+
ToolbarItemComponent.prototype.image;
|
|
21096
|
+
/** @type {?} */
|
|
21097
|
+
ToolbarItemComponent.prototype.text;
|
|
21098
|
+
/** @type {?} */
|
|
21099
|
+
ToolbarItemComponent.prototype.disabled;
|
|
21100
|
+
/** @type {?} */
|
|
21101
|
+
ToolbarItemComponent.prototype.ImageType;
|
|
21102
|
+
}
|
|
21103
|
+
|
|
21054
21104
|
/**
|
|
21055
21105
|
* @fileoverview added by tsickle
|
|
21056
21106
|
* Generated from: lib/service/icon-loader.service.ts
|
|
@@ -21913,6 +21963,7 @@
|
|
|
21913
21963
|
CommonDeleteComponent,
|
|
21914
21964
|
DrawerComponent,
|
|
21915
21965
|
DrawerFormComponent,
|
|
21966
|
+
ToolbarItemComponent
|
|
21916
21967
|
],
|
|
21917
21968
|
imports: [
|
|
21918
21969
|
common.CommonModule,
|
|
@@ -22059,6 +22110,7 @@
|
|
|
22059
22110
|
SwitchInputComponent,
|
|
22060
22111
|
DrawerComponent,
|
|
22061
22112
|
DrawerFormComponent,
|
|
22113
|
+
ToolbarItemComponent,
|
|
22062
22114
|
],
|
|
22063
22115
|
entryComponents: [
|
|
22064
22116
|
NewActionNotificationComponent,
|
|
@@ -22098,6 +22150,7 @@
|
|
|
22098
22150
|
exports.RsPageTabComponent = RsPageTabComponent;
|
|
22099
22151
|
exports.SwitchInputComponent = SwitchInputComponent;
|
|
22100
22152
|
exports.TagInputComponent = TagInputComponent;
|
|
22153
|
+
exports.ToolbarItemComponent = ToolbarItemComponent;
|
|
22101
22154
|
exports.TranslationService = TranslationService;
|
|
22102
22155
|
exports.filterShowSection = filterShowSection;
|
|
22103
22156
|
exports.ɵa = NewActionNotificationComponent;
|