@seniorsistemas/angular-components 17.3.20 → 17.4.1
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/seniorsistemas-angular-components.umd.js +410 -100
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/ia-insight/components/ia-insight-card/components/ia-insight-card-loader/ia-insight-card-loader.component.d.ts +2 -0
- package/components/ia-insight/components/ia-insight-card/ia-insight-card.component.d.ts +22 -0
- package/components/ia-insight/components/ia-insight-sidebar/ia-insight-sidebar.component.d.ts +16 -0
- package/components/ia-insight/ia-insight.component.d.ts +24 -0
- package/components/ia-insight/ia-insight.module.d.ts +2 -0
- package/components/ia-insight/index.d.ts +3 -0
- package/components/ia-insight/models/ia-insight-item.d.ts +9 -0
- package/components/ia-insight/models/ia-insight-template-types.d.ts +5 -0
- package/components/ia-insight/models/index.d.ts +2 -0
- package/components/index.d.ts +2 -1
- package/components/kanban/index.d.ts +1 -2
- package/components/kanban/kanban.component.d.ts +3 -3
- package/components/template/template.module.d.ts +2 -0
- package/esm2015/components/badge/badge.component.js +1 -1
- package/esm2015/components/ia-insight/components/ia-insight-card/components/ia-insight-card-loader/ia-insight-card-loader.component.js +13 -0
- package/esm2015/components/ia-insight/components/ia-insight-card/ia-insight-card.component.js +81 -0
- package/esm2015/components/ia-insight/components/ia-insight-sidebar/ia-insight-sidebar.component.js +50 -0
- package/esm2015/components/ia-insight/ia-insight.component.js +68 -0
- package/esm2015/components/ia-insight/ia-insight.module.js +40 -0
- package/esm2015/components/ia-insight/index.js +4 -0
- package/esm2015/components/ia-insight/models/ia-insight-item.js +1 -0
- package/esm2015/components/ia-insight/models/ia-insight-template-types.js +7 -0
- package/esm2015/components/ia-insight/models/index.js +2 -0
- package/esm2015/components/index.js +3 -2
- package/esm2015/components/kanban/index.js +2 -3
- package/esm2015/components/kanban/kanban.component.js +5 -5
- package/esm2015/components/kanban/kanban.module.js +10 -10
- package/esm2015/components/template/template.directive.js +20 -0
- package/esm2015/components/template/template.module.js +15 -0
- package/esm2015/locale/fallback.js +6 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/seniorsistemas-angular-components.js +35 -29
- package/esm2015/utils/index.js +2 -0
- package/esm2015/utils/svg-factory/components/iassist-icon/iassist-icon.component.js +11 -0
- package/esm2015/utils/svg-factory/index.js +3 -0
- package/esm2015/utils/svg-factory/svg-factory.directive.js +23 -0
- package/esm2015/utils/svg-factory/svg-factory.module.js +19 -0
- package/esm5/components/badge/badge.component.js +1 -1
- package/esm5/components/ia-insight/components/ia-insight-card/components/ia-insight-card-loader/ia-insight-card-loader.component.js +16 -0
- package/esm5/components/ia-insight/components/ia-insight-card/ia-insight-card.component.js +83 -0
- package/esm5/components/ia-insight/components/ia-insight-sidebar/ia-insight-sidebar.component.js +51 -0
- package/esm5/components/ia-insight/ia-insight.component.js +69 -0
- package/esm5/components/ia-insight/ia-insight.module.js +43 -0
- package/esm5/components/ia-insight/index.js +4 -0
- package/esm5/components/ia-insight/models/ia-insight-item.js +1 -0
- package/esm5/components/ia-insight/models/ia-insight-template-types.js +7 -0
- package/esm5/components/ia-insight/models/index.js +2 -0
- package/esm5/components/index.js +3 -2
- package/esm5/components/kanban/index.js +2 -3
- package/esm5/components/kanban/kanban.component.js +5 -5
- package/esm5/components/kanban/kanban.module.js +10 -10
- package/esm5/components/template/template.directive.js +21 -0
- package/esm5/components/template/template.module.js +18 -0
- package/esm5/locale/fallback.js +6 -1
- package/esm5/public-api.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +35 -29
- package/esm5/utils/index.js +2 -0
- package/esm5/utils/svg-factory/components/iassist-icon/iassist-icon.component.js +14 -0
- package/esm5/utils/svg-factory/index.js +3 -0
- package/esm5/utils/svg-factory/svg-factory.directive.js +24 -0
- package/esm5/utils/svg-factory/svg-factory.module.js +22 -0
- package/fesm2015/seniorsistemas-angular-components.js +351 -70
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +373 -72
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/seniorsistemas-angular-components.d.ts +34 -28
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/svg-factory/components/iassist-icon/iassist-icon.component.d.ts +2 -0
- package/utils/svg-factory/index.d.ts +2 -0
- package/utils/svg-factory/svg-factory.directive.d.ts +6 -0
- package/utils/svg-factory/svg-factory.module.d.ts +2 -0
- package/esm2015/components/kanban/template.directive.js +0 -20
- package/esm5/components/kanban/template.directive.js +0 -21
- /package/components/{kanban → template}/template.directive.d.ts +0 -0
|
@@ -840,7 +840,7 @@ var BadgeComponent = /** @class */ (function () {
|
|
|
840
840
|
Component({
|
|
841
841
|
selector: "s-badge",
|
|
842
842
|
template: "<span\n class=\"badge\"\n [ngClass]=\"{\n 'badge--pill': type === 'pill',\n 'badge--chip': type === 'chip', \n 'badge--red': color === 'red',\n 'badge--orange': color === 'orange',\n 'badge--yellow': color === 'yellow',\n 'badge--blue': color === 'blue',\n 'badge--green': color === 'green',\n 'badge--gray': color === 'gray',\n 'badge--selectable': selectable\n }\">\n <span\n *ngIf=\"iconClass\"\n [class]=\"'badge-icon ' + iconClass\"\n [ngClass]=\"{\n 'badge-icon--left': iconPosition === 'left' && text,\n 'badge-icon--right': iconPosition === 'right' && text\n }\">\n </span>\n <span *ngIf=\"title\" class=\"badge-title\">{{ title }}:</span>\n <span class=\"badge-text\">{{ text }}</span>\n</span>",
|
|
843
|
-
styles: [".badge{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;height:1.25rem;-ms-flex-pack:center;justify-content:center;min-width:20px;padding:0 .5rem}.badge--chip{border-radius:4px}.badge--pill{border-radius:12px}.badge .badge-title{color:#212533;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:700;line-height:150%;margin-right:.125rem}.badge .badge-text{color:#212533;font-family:\"Open Sans\",sans-serif;font-size:.75rem;font-weight:400;line-height:150%}.badge .badge-icon{color:#212533;font-size:10px}.badge .badge-icon--left{margin-right:8px}.badge .badge-icon--right{margin-left:8px;-ms-flex-order:2;order:2}.badge--red{background-color:#fcd2d2;border:1px solid #c13018}.badge--orange{background-color:#fce3ba;border:1px solid #f8931f}.badge--yellow{background-color:#fef4e3;border:1px solid #fcbf10}.badge--blue{background-color:#d5e8ec;border:1px solid #428bca}.badge--green{background-color:#e6ffb3;border:1px solid #0c9348}.badge--gray{background-color:#e5eaea;border:1px solid #697882}.badge--selectable{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}"]
|
|
843
|
+
styles: [".badge{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;min-height:1.25rem;-ms-flex-pack:center;justify-content:center;min-width:20px;padding:0 .5rem}.badge--chip{border-radius:4px}.badge--pill{border-radius:12px}.badge .badge-title{color:#212533;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:700;line-height:150%;margin-right:.125rem}.badge .badge-text{color:#212533;font-family:\"Open Sans\",sans-serif;font-size:.75rem;font-weight:400;line-height:150%}.badge .badge-icon{color:#212533;font-size:10px}.badge .badge-icon--left{margin-right:8px}.badge .badge-icon--right{margin-left:8px;-ms-flex-order:2;order:2}.badge--red{background-color:#fcd2d2;border:1px solid #c13018}.badge--orange{background-color:#fce3ba;border:1px solid #f8931f}.badge--yellow{background-color:#fef4e3;border:1px solid #fcbf10}.badge--blue{background-color:#d5e8ec;border:1px solid #428bca}.badge--green{background-color:#e6ffb3;border:1px solid #0c9348}.badge--gray{background-color:#e5eaea;border:1px solid #697882}.badge--selectable{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}"]
|
|
844
844
|
})
|
|
845
845
|
], BadgeComponent);
|
|
846
846
|
return BadgeComponent;
|
|
@@ -12950,6 +12950,320 @@ var GlobalSearchModule = /** @class */ (function () {
|
|
|
12950
12950
|
return GlobalSearchModule;
|
|
12951
12951
|
}());
|
|
12952
12952
|
|
|
12953
|
+
var IAssistIconComponent = /** @class */ (function () {
|
|
12954
|
+
function IAssistIconComponent() {
|
|
12955
|
+
}
|
|
12956
|
+
IAssistIconComponent = __decorate([
|
|
12957
|
+
Component({
|
|
12958
|
+
template: "<svg style=\"width: 100%; height: 100%;\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\" fill=\"#0FA389\"/>\n <path d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\" fill=\"#0FA389\"/>\n <path d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\" fill=\"#F3F3F5\"/>\n <path d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\" fill=\"#0C847B\"/>\n <path d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\" fill=\"#0C847B\"/>\n</svg>"
|
|
12959
|
+
})
|
|
12960
|
+
], IAssistIconComponent);
|
|
12961
|
+
return IAssistIconComponent;
|
|
12962
|
+
}());
|
|
12963
|
+
|
|
12964
|
+
var SVGFactoryDirective = /** @class */ (function () {
|
|
12965
|
+
function SVGFactoryDirective(viewContainerRef, componentFactoryResolver) {
|
|
12966
|
+
this.viewContainerRef = viewContainerRef;
|
|
12967
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
12968
|
+
var factory = this.componentFactoryResolver.resolveComponentFactory(IAssistIconComponent);
|
|
12969
|
+
this.viewContainerRef.clear();
|
|
12970
|
+
this.viewContainerRef.createComponent(factory);
|
|
12971
|
+
}
|
|
12972
|
+
SVGFactoryDirective.ctorParameters = function () { return [
|
|
12973
|
+
{ type: ViewContainerRef },
|
|
12974
|
+
{ type: ComponentFactoryResolver }
|
|
12975
|
+
]; };
|
|
12976
|
+
SVGFactoryDirective = __decorate([
|
|
12977
|
+
Directive({
|
|
12978
|
+
selector: "[sSVGFactory]",
|
|
12979
|
+
})
|
|
12980
|
+
], SVGFactoryDirective);
|
|
12981
|
+
return SVGFactoryDirective;
|
|
12982
|
+
}());
|
|
12983
|
+
|
|
12984
|
+
var SVGFactoryModule = /** @class */ (function () {
|
|
12985
|
+
function SVGFactoryModule() {
|
|
12986
|
+
}
|
|
12987
|
+
SVGFactoryModule = __decorate([
|
|
12988
|
+
NgModule({
|
|
12989
|
+
imports: [CommonModule],
|
|
12990
|
+
declarations: [
|
|
12991
|
+
SVGFactoryDirective,
|
|
12992
|
+
IAssistIconComponent,
|
|
12993
|
+
],
|
|
12994
|
+
exports: [SVGFactoryDirective],
|
|
12995
|
+
})
|
|
12996
|
+
], SVGFactoryModule);
|
|
12997
|
+
return SVGFactoryModule;
|
|
12998
|
+
}());
|
|
12999
|
+
|
|
13000
|
+
var TemplateDirective = /** @class */ (function () {
|
|
13001
|
+
function TemplateDirective(template) {
|
|
13002
|
+
this.template = template;
|
|
13003
|
+
}
|
|
13004
|
+
TemplateDirective.ctorParameters = function () { return [
|
|
13005
|
+
{ type: TemplateRef }
|
|
13006
|
+
]; };
|
|
13007
|
+
__decorate([
|
|
13008
|
+
Input("sTemplate")
|
|
13009
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
13010
|
+
TemplateDirective = __decorate([
|
|
13011
|
+
Directive({
|
|
13012
|
+
selector: "[sTemplate]",
|
|
13013
|
+
})
|
|
13014
|
+
], TemplateDirective);
|
|
13015
|
+
return TemplateDirective;
|
|
13016
|
+
}());
|
|
13017
|
+
|
|
13018
|
+
var TemplateModule = /** @class */ (function () {
|
|
13019
|
+
function TemplateModule() {
|
|
13020
|
+
}
|
|
13021
|
+
TemplateModule = __decorate([
|
|
13022
|
+
NgModule({
|
|
13023
|
+
imports: [CommonModule],
|
|
13024
|
+
declarations: [TemplateDirective],
|
|
13025
|
+
exports: [TemplateDirective],
|
|
13026
|
+
})
|
|
13027
|
+
], TemplateModule);
|
|
13028
|
+
return TemplateModule;
|
|
13029
|
+
}());
|
|
13030
|
+
|
|
13031
|
+
var IAInsightCardComponent = /** @class */ (function () {
|
|
13032
|
+
function IAInsightCardComponent(clipboard, messageService, translateService) {
|
|
13033
|
+
this.clipboard = clipboard;
|
|
13034
|
+
this.messageService = messageService;
|
|
13035
|
+
this.translateService = translateService;
|
|
13036
|
+
this.open = false;
|
|
13037
|
+
this.isLoading = false;
|
|
13038
|
+
this.likeSelected = false;
|
|
13039
|
+
this.dislikeSelected = false;
|
|
13040
|
+
}
|
|
13041
|
+
IAInsightCardComponent.prototype.toggle = function () {
|
|
13042
|
+
this.open = !this.open;
|
|
13043
|
+
this._requestInsight();
|
|
13044
|
+
};
|
|
13045
|
+
IAInsightCardComponent.prototype.onLikeSelected = function () {
|
|
13046
|
+
var _a, _b;
|
|
13047
|
+
if (this.likeSelected) {
|
|
13048
|
+
this.likeSelected = false;
|
|
13049
|
+
}
|
|
13050
|
+
else {
|
|
13051
|
+
this.likeSelected = true;
|
|
13052
|
+
this.dislikeSelected = false;
|
|
13053
|
+
(_b = (_a = this.insight).onLikeSelected) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
13054
|
+
}
|
|
13055
|
+
};
|
|
13056
|
+
IAInsightCardComponent.prototype.onDislikeSelected = function () {
|
|
13057
|
+
var _a, _b;
|
|
13058
|
+
if (this.dislikeSelected) {
|
|
13059
|
+
this.dislikeSelected = false;
|
|
13060
|
+
}
|
|
13061
|
+
else {
|
|
13062
|
+
this.dislikeSelected = true;
|
|
13063
|
+
this.likeSelected = false;
|
|
13064
|
+
(_b = (_a = this.insight).onDislikeSelected) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
13065
|
+
}
|
|
13066
|
+
};
|
|
13067
|
+
IAInsightCardComponent.prototype.copyContent = function () {
|
|
13068
|
+
var _a, _b;
|
|
13069
|
+
(_b = (_a = this.insight).onCopy) === null || _b === void 0 ? void 0 : _b.call(_a, this.content);
|
|
13070
|
+
if (this.clipboard.copy(this.content)) {
|
|
13071
|
+
this.messageService.add({
|
|
13072
|
+
severity: "info",
|
|
13073
|
+
summary: this.translateService.instant("platform.angular_components.copied_to_clipboard"),
|
|
13074
|
+
});
|
|
13075
|
+
}
|
|
13076
|
+
};
|
|
13077
|
+
IAInsightCardComponent.prototype.reloadContent = function () {
|
|
13078
|
+
this._requestInsight();
|
|
13079
|
+
};
|
|
13080
|
+
IAInsightCardComponent.prototype._requestInsight = function () {
|
|
13081
|
+
var _this = this;
|
|
13082
|
+
this.isLoading = true;
|
|
13083
|
+
this.insight.request$
|
|
13084
|
+
.pipe(first(), finalize(function () { return (_this.isLoading = false); }))
|
|
13085
|
+
.subscribe(function (content) {
|
|
13086
|
+
_this.content = content;
|
|
13087
|
+
});
|
|
13088
|
+
};
|
|
13089
|
+
IAInsightCardComponent.ctorParameters = function () { return [
|
|
13090
|
+
{ type: Clipboard },
|
|
13091
|
+
{ type: MessageService },
|
|
13092
|
+
{ type: TranslateService }
|
|
13093
|
+
]; };
|
|
13094
|
+
__decorate([
|
|
13095
|
+
Input()
|
|
13096
|
+
], IAInsightCardComponent.prototype, "insight", void 0);
|
|
13097
|
+
IAInsightCardComponent = __decorate([
|
|
13098
|
+
Component({
|
|
13099
|
+
selector: "s-ia-insight-card",
|
|
13100
|
+
template: "<div class=\"ia-insight-card\" [ngClass]=\"{ 'ia-insight-card--close': !open }\">\n <div class=\"header\" (click)=\"toggle()\">\n <s-badge text=\"Insight\" iconClass=\"fal fa-lightbulb\"></s-badge>\n <span class=\"insight-title\">{{ insight.title }}</span>\n <span\n class=\"toggle-icon fas\"\n [ngClass]=\"{\n 'fa-angle-down': !open,\n 'fa-angle-up': open\n }\"\n >\n </span>\n </div>\n <div class=\"content\">\n <ng-container *ngIf=\"isLoading; then loadingBlock; else contentBlock\"></ng-container>\n <ng-template #loadingBlock>\n <s-ia-insight-card-loader></s-ia-insight-card-loader>\n </ng-template>\n <ng-template #contentBlock>\n <ng-container *ngIf=\"content; then successBlock; else errorBlock\"></ng-container>\n\n <ng-template #successBlock>\n <span class=\"text\" [innerHTML]=\"content\"></span>\n </ng-template>\n <ng-template #errorBlock>\n <span class=\"text text--error\">{{ \"platform.angular_components.error_loading_insight_alt\" | translate }}</span>\n </ng-template>\n\n <div class=\"options\">\n <button [disabled]=\"!content\" (click)=\"copyContent()\" class=\"option fal fa-copy\"></button>\n <button (click)=\"reloadContent()\" class=\"option fal fa-redo\"></button>\n <button\n *ngIf=\"insight.onLikeSelected\"\n [disabled]=\"!content\"\n (click)=\"onLikeSelected()\"\n class=\"option\"\n [ngClass]=\"{\n 'fal': !likeSelected,\n 'fas': likeSelected,\n 'fa-thumbs-up': true\n }\">\n </button>\n <button\n *ngIf=\"insight.onDislikeSelected\"\n [disabled]=\"!content\"\n (click)=\"onDislikeSelected()\"\n class=\"option\"\n [ngClass]=\"{\n 'fal': !dislikeSelected,\n 'fas': dislikeSelected,\n 'fa-thumbs-down': true\n }\">\n </button>\n </div>\n </ng-template>\n </div>\n</div>\n",
|
|
13101
|
+
styles: [".ia-insight-card{background-color:#fff;border:1px solid #9ecad4;border-radius:4px;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.ia-insight-card .header{-ms-flex-align:center;align-items:center;background-color:#f1f7f8;border-bottom:1px solid #9ecad4;display:-ms-flexbox;display:flex;gap:8px;min-height:60px;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ia-insight-card .header .insight-title{color:#428bca;-ms-flex-positive:1;flex-grow:1;font-family:\"Open Sans\",sans-serif;font-size:14px;line-height:150%}.ia-insight-card .header .toggle-icon{color:#888b99;font-size:20px}.ia-insight-card .content{-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;cursor:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px;min-height:160px;padding:24px}.ia-insight-card .content .text{color:#212533;font-family:\"Open Sans\",sans-serif;font-size:14px;width:100%}.ia-insight-card .content .text--error{text-align:center}.ia-insight-card .content .options{display:-ms-flexbox;display:flex;gap:8px}.ia-insight-card .content .options .option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-size:12px}.ia-insight-card .content .options .option:disabled{color:#c1c1cc;cursor:auto}.ia-insight-card--close{border-color:#dedce5}.ia-insight-card--close .header{background-color:#fbfafc;border:#dedce5}.ia-insight-card--close .header .insight-title{color:#888b99}.ia-insight-card--close .content{display:none}"]
|
|
13102
|
+
})
|
|
13103
|
+
], IAInsightCardComponent);
|
|
13104
|
+
return IAInsightCardComponent;
|
|
13105
|
+
}());
|
|
13106
|
+
|
|
13107
|
+
var IAInsightSidebarComponent = /** @class */ (function () {
|
|
13108
|
+
function IAInsightSidebarComponent() {
|
|
13109
|
+
this.insights = [];
|
|
13110
|
+
this.opened = false;
|
|
13111
|
+
}
|
|
13112
|
+
IAInsightSidebarComponent.prototype.toggle = function () {
|
|
13113
|
+
this.opened = !this.opened;
|
|
13114
|
+
};
|
|
13115
|
+
IAInsightSidebarComponent.prototype.open = function () {
|
|
13116
|
+
this.opened = true;
|
|
13117
|
+
};
|
|
13118
|
+
IAInsightSidebarComponent.prototype.close = function () {
|
|
13119
|
+
this.opened = false;
|
|
13120
|
+
};
|
|
13121
|
+
__decorate([
|
|
13122
|
+
Input()
|
|
13123
|
+
], IAInsightSidebarComponent.prototype, "insights", void 0);
|
|
13124
|
+
__decorate([
|
|
13125
|
+
Input()
|
|
13126
|
+
], IAInsightSidebarComponent.prototype, "hasPermission", void 0);
|
|
13127
|
+
__decorate([
|
|
13128
|
+
Input()
|
|
13129
|
+
], IAInsightSidebarComponent.prototype, "introText", void 0);
|
|
13130
|
+
__decorate([
|
|
13131
|
+
Input()
|
|
13132
|
+
], IAInsightSidebarComponent.prototype, "introTemplate", void 0);
|
|
13133
|
+
__decorate([
|
|
13134
|
+
Input()
|
|
13135
|
+
], IAInsightSidebarComponent.prototype, "emptyText", void 0);
|
|
13136
|
+
__decorate([
|
|
13137
|
+
Input()
|
|
13138
|
+
], IAInsightSidebarComponent.prototype, "emptyTemplate", void 0);
|
|
13139
|
+
__decorate([
|
|
13140
|
+
Input()
|
|
13141
|
+
], IAInsightSidebarComponent.prototype, "noPermissionText", void 0);
|
|
13142
|
+
__decorate([
|
|
13143
|
+
Input()
|
|
13144
|
+
], IAInsightSidebarComponent.prototype, "noPermissionTemplate", void 0);
|
|
13145
|
+
IAInsightSidebarComponent = __decorate([
|
|
13146
|
+
Component({
|
|
13147
|
+
selector: "s-ia-insight-sidebar",
|
|
13148
|
+
template: "<div\n class=\"sidebar\"\n [class.opened]=\"opened\">\n <div class=\"header\">\n <button (click)=\"close()\" class=\"option\">\n <span class=\"far fa-chevron-double-right\"></span>\n </button>\n <div class=\"title\">\n <span><ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container></span>\n <span>Insight</span>\n </div>\n </div>\n <div class=\"intro\">\n <ng-container *ngIf=\"hasPermission; then permissionBlock; else noPermissionBlock\"></ng-container>\n\n <ng-template #permissionBlock>\n <ng-container *ngIf=\"insights?.length; then introBlock; else emptyBlock\"></ng-container>\n \n <ng-template #introBlock>\n <ng-container *ngIf=\"introTemplate; then introCustomBlock; else introTextBlock\"></ng-container>\n\n <ng-template #introCustomBlock>\n <ng-container *ngTemplateOutlet=\"introTemplate\"></ng-container>\n </ng-template>\n\n <ng-template #introTextBlock>\n <span class=\"text\">{{ introText || \"platform.angular_components.insight_intro\" | translate }}</span>\n </ng-template>\n </ng-template>\n \n <ng-template #emptyBlock>\n <ng-container *ngIf=\"emptyTemplate; then emptyCustomBlock; else emptyTextBlock\"></ng-container>\n\n <ng-template #emptyCustomBlock>\n <ng-container *ngTemplateOutlet=\"emptyTemplate\"></ng-container>\n </ng-template>\n\n <ng-template #emptyTextBlock>\n <span class=\"text\">{{ emptyText || \"platform.angular_components.insight_empty\" | translate }}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n \n <ng-template #noPermissionBlock>\n <ng-container *ngIf=\"noPermissionTemplate; then noPermissionCustomBlock; else noPermissionTextBlock\"></ng-container>\n\n <ng-template #noPermissionCustomBlock>\n <ng-container *ngTemplateOutlet=\"noPermissionTemplate\"></ng-container>\n </ng-template>\n\n <ng-template #noPermissionTextBlock>\n <span>{{ noPermissionText || \"platform.angular_components.insight_no_permission\" | translate }}</span>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"insights\">\n <ng-container *ngIf=\"insights?.length\">\n <s-ia-insight-card\n *ngFor=\"let insight of insights\"\n [insight]=\"insight\">\n </s-ia-insight-card>\n </ng-container>\n </div>\n</div>\n\n<ng-template #iassistIcon>\n <div style=\"width: 28px; height: 28px;\">\n <span sSVGFactory></span>\n </div>\n</ng-template>\n",
|
|
13149
|
+
styles: [".sidebar{background-color:#fff;border-left:1px solid #dedce5;height:100%;overflow-x:hidden;position:fixed;right:-25%;transition:.5s;top:0;width:25%;z-index:1002}.sidebar .header{border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;gap:16px;padding:12px 20px}.sidebar .header .option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-size:16px;padding:12px}.sidebar .header .title{-ms-flex-align:center;align-items:center;color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:16px;gap:16px;line-height:1;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sidebar .intro{margin:8px 40px}.sidebar .intro .text{color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;-ms-flex-pack:center;justify-content:center;line-height:1.5;text-align:center;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sidebar.opened{right:0}.sidebar.opened .insights{padding:12px}.insights{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}@media (max-width:1366px){.sidebar{right:-50%;width:50%}}@media (max-width:768px){.sidebar{right:-75%;width:75%}}@media (max-width:600px){.sidebar{right:-100%;width:100%}}"]
|
|
13150
|
+
})
|
|
13151
|
+
], IAInsightSidebarComponent);
|
|
13152
|
+
return IAInsightSidebarComponent;
|
|
13153
|
+
}());
|
|
13154
|
+
|
|
13155
|
+
var IAInsightCardLoaderComponent = /** @class */ (function () {
|
|
13156
|
+
function IAInsightCardLoaderComponent() {
|
|
13157
|
+
}
|
|
13158
|
+
IAInsightCardLoaderComponent = __decorate([
|
|
13159
|
+
Component({
|
|
13160
|
+
selector: "s-ia-insight-card-loader",
|
|
13161
|
+
template: "<div class=\"ia-insight-card-loader\">\n <div class=\"loader\">\n <div class=\"loader-icon\">\n <div sSVGFactory></div>\n </div>\n </div>\n \n <span class=\"loader-label\">{{ \"platform.angular_components.loading_insight\" | translate }}</span>\n</div>\n",
|
|
13162
|
+
styles: [".ia-insight-card-loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.ia-insight-card-loader .loader{-ms-flex-align:center;align-items:center;animation:2s linear infinite spin;border:2px solid #f1f7f8;border-top:2px solid #0fa389;border-radius:50%;display:-ms-flexbox;display:flex;height:48px;-ms-flex-pack:center;justify-content:center;width:48px}.ia-insight-card-loader .loader .loader-icon{animation:2s linear infinite reverse spin;height:64px;transform:translate(-50%,-50%);width:64px}.ia-insight-card-loader .loader-label{color:#888b99;font-family:\"Open Sans\",sans-serif;font-size:16px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]
|
|
13163
|
+
})
|
|
13164
|
+
], IAInsightCardLoaderComponent);
|
|
13165
|
+
return IAInsightCardLoaderComponent;
|
|
13166
|
+
}());
|
|
13167
|
+
|
|
13168
|
+
var IAInsightTemplateTypes;
|
|
13169
|
+
(function (IAInsightTemplateTypes) {
|
|
13170
|
+
IAInsightTemplateTypes["Empty"] = "empty";
|
|
13171
|
+
IAInsightTemplateTypes["Intro"] = "intro";
|
|
13172
|
+
IAInsightTemplateTypes["NoPermission"] = "noPermission";
|
|
13173
|
+
})(IAInsightTemplateTypes || (IAInsightTemplateTypes = {}));
|
|
13174
|
+
|
|
13175
|
+
var IAInsightComponent = /** @class */ (function () {
|
|
13176
|
+
function IAInsightComponent() {
|
|
13177
|
+
this.insights = [];
|
|
13178
|
+
this.hasPermission = true;
|
|
13179
|
+
}
|
|
13180
|
+
IAInsightComponent.prototype.ngAfterContentInit = function () {
|
|
13181
|
+
this._getTemplates();
|
|
13182
|
+
};
|
|
13183
|
+
IAInsightComponent.prototype.open = function () {
|
|
13184
|
+
this.sidebar.open();
|
|
13185
|
+
};
|
|
13186
|
+
IAInsightComponent.prototype.close = function () {
|
|
13187
|
+
this.sidebar.close();
|
|
13188
|
+
};
|
|
13189
|
+
IAInsightComponent.prototype.getIntroTemplate = function () {
|
|
13190
|
+
return this._getCustomTemplate(IAInsightTemplateTypes.Intro);
|
|
13191
|
+
};
|
|
13192
|
+
IAInsightComponent.prototype.getNoPermissionTemplate = function () {
|
|
13193
|
+
return this._getCustomTemplate(IAInsightTemplateTypes.NoPermission);
|
|
13194
|
+
};
|
|
13195
|
+
IAInsightComponent.prototype.getEmptyTemplate = function () {
|
|
13196
|
+
return this._getCustomTemplate(IAInsightTemplateTypes.Empty);
|
|
13197
|
+
};
|
|
13198
|
+
IAInsightComponent.prototype._getCustomTemplate = function (type) {
|
|
13199
|
+
var _a;
|
|
13200
|
+
return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
|
|
13201
|
+
};
|
|
13202
|
+
IAInsightComponent.prototype._getTemplates = function () {
|
|
13203
|
+
this.introTemplate = this.getIntroTemplate();
|
|
13204
|
+
this.emptyTemplate = this.getEmptyTemplate();
|
|
13205
|
+
this.noPermissionTemplate = this.getNoPermissionTemplate();
|
|
13206
|
+
};
|
|
13207
|
+
__decorate([
|
|
13208
|
+
Input()
|
|
13209
|
+
], IAInsightComponent.prototype, "insights", void 0);
|
|
13210
|
+
__decorate([
|
|
13211
|
+
Input()
|
|
13212
|
+
], IAInsightComponent.prototype, "hasPermission", void 0);
|
|
13213
|
+
__decorate([
|
|
13214
|
+
Input()
|
|
13215
|
+
], IAInsightComponent.prototype, "introText", void 0);
|
|
13216
|
+
__decorate([
|
|
13217
|
+
Input()
|
|
13218
|
+
], IAInsightComponent.prototype, "emptyText", void 0);
|
|
13219
|
+
__decorate([
|
|
13220
|
+
Input()
|
|
13221
|
+
], IAInsightComponent.prototype, "noPermissionText", void 0);
|
|
13222
|
+
__decorate([
|
|
13223
|
+
ViewChild(IAInsightSidebarComponent)
|
|
13224
|
+
], IAInsightComponent.prototype, "sidebar", void 0);
|
|
13225
|
+
__decorate([
|
|
13226
|
+
ContentChildren(TemplateDirective)
|
|
13227
|
+
], IAInsightComponent.prototype, "templates", void 0);
|
|
13228
|
+
IAInsightComponent = __decorate([
|
|
13229
|
+
Component({
|
|
13230
|
+
selector: "s-ia-insight",
|
|
13231
|
+
template: "<s-ia-insight-sidebar\n #sidebar\n [insights]=\"insights\"\n [hasPermission]=\"hasPermission\"\n [introText]=\"introText\"\n [introTemplate]=\"introTemplate\"\n [emptyText]=\"emptyText\"\n [emptyTemplate]=\"emptyTemplate\"\n [noPermissionText]=\"noPermissionText\"\n [noPermissionTemplate]=\"noPermissionTemplate\">\n</s-ia-insight-sidebar>",
|
|
13232
|
+
styles: [""]
|
|
13233
|
+
})
|
|
13234
|
+
], IAInsightComponent);
|
|
13235
|
+
return IAInsightComponent;
|
|
13236
|
+
}());
|
|
13237
|
+
|
|
13238
|
+
var IAInsightModule = /** @class */ (function () {
|
|
13239
|
+
function IAInsightModule() {
|
|
13240
|
+
}
|
|
13241
|
+
IAInsightModule = __decorate([
|
|
13242
|
+
NgModule({
|
|
13243
|
+
imports: [
|
|
13244
|
+
CommonModule,
|
|
13245
|
+
TranslateModule,
|
|
13246
|
+
BadgeModule,
|
|
13247
|
+
ButtonModule,
|
|
13248
|
+
TooltipModule,
|
|
13249
|
+
TemplateModule,
|
|
13250
|
+
SVGFactoryModule,
|
|
13251
|
+
],
|
|
13252
|
+
declarations: [
|
|
13253
|
+
IAInsightComponent,
|
|
13254
|
+
IAInsightCardComponent,
|
|
13255
|
+
IAInsightSidebarComponent,
|
|
13256
|
+
IAInsightCardLoaderComponent,
|
|
13257
|
+
],
|
|
13258
|
+
exports: [
|
|
13259
|
+
IAInsightComponent,
|
|
13260
|
+
TemplateModule,
|
|
13261
|
+
],
|
|
13262
|
+
})
|
|
13263
|
+
], IAInsightModule);
|
|
13264
|
+
return IAInsightModule;
|
|
13265
|
+
}());
|
|
13266
|
+
|
|
12953
13267
|
var HeaderComponent = /** @class */ (function () {
|
|
12954
13268
|
function HeaderComponent() {
|
|
12955
13269
|
}
|
|
@@ -13244,33 +13558,6 @@ var ImageCropperService = /** @class */ (function () {
|
|
|
13244
13558
|
return ImageCropperService;
|
|
13245
13559
|
}());
|
|
13246
13560
|
|
|
13247
|
-
var KanbanTemplateTypes;
|
|
13248
|
-
(function (KanbanTemplateTypes) {
|
|
13249
|
-
KanbanTemplateTypes["ColumnHeader"] = "column-header";
|
|
13250
|
-
KanbanTemplateTypes["ColumnEmptyMessage"] = "column-empty-message";
|
|
13251
|
-
KanbanTemplateTypes["ItemHeader"] = "item-header";
|
|
13252
|
-
KanbanTemplateTypes["ItemBody"] = "item-body";
|
|
13253
|
-
KanbanTemplateTypes["ItemFooter"] = "item-footer";
|
|
13254
|
-
})(KanbanTemplateTypes || (KanbanTemplateTypes = {}));
|
|
13255
|
-
|
|
13256
|
-
var TemplateDirective = /** @class */ (function () {
|
|
13257
|
-
function TemplateDirective(template) {
|
|
13258
|
-
this.template = template;
|
|
13259
|
-
}
|
|
13260
|
-
TemplateDirective.ctorParameters = function () { return [
|
|
13261
|
-
{ type: TemplateRef }
|
|
13262
|
-
]; };
|
|
13263
|
-
__decorate([
|
|
13264
|
-
Input("sTemplate")
|
|
13265
|
-
], TemplateDirective.prototype, "type", void 0);
|
|
13266
|
-
TemplateDirective = __decorate([
|
|
13267
|
-
Directive({
|
|
13268
|
-
selector: "[sTemplate]",
|
|
13269
|
-
})
|
|
13270
|
-
], TemplateDirective);
|
|
13271
|
-
return TemplateDirective;
|
|
13272
|
-
}());
|
|
13273
|
-
|
|
13274
13561
|
var KanbanEventService = /** @class */ (function () {
|
|
13275
13562
|
function KanbanEventService() {
|
|
13276
13563
|
this.selectAllColumnItemsEvent = new EventEmitter();
|
|
@@ -13296,6 +13583,15 @@ var KanbanEventService = /** @class */ (function () {
|
|
|
13296
13583
|
return KanbanEventService;
|
|
13297
13584
|
}());
|
|
13298
13585
|
|
|
13586
|
+
var KanbanTemplateTypes;
|
|
13587
|
+
(function (KanbanTemplateTypes) {
|
|
13588
|
+
KanbanTemplateTypes["ColumnHeader"] = "column-header";
|
|
13589
|
+
KanbanTemplateTypes["ColumnEmptyMessage"] = "column-empty-message";
|
|
13590
|
+
KanbanTemplateTypes["ItemHeader"] = "item-header";
|
|
13591
|
+
KanbanTemplateTypes["ItemBody"] = "item-body";
|
|
13592
|
+
KanbanTemplateTypes["ItemFooter"] = "item-footer";
|
|
13593
|
+
})(KanbanTemplateTypes || (KanbanTemplateTypes = {}));
|
|
13594
|
+
|
|
13299
13595
|
var KanbanComponent = /** @class */ (function () {
|
|
13300
13596
|
function KanbanComponent(kanbanEventService) {
|
|
13301
13597
|
this.kanbanEventService = kanbanEventService;
|
|
@@ -13500,47 +13796,6 @@ var KanbanComponent = /** @class */ (function () {
|
|
|
13500
13796
|
return KanbanComponent;
|
|
13501
13797
|
}());
|
|
13502
13798
|
|
|
13503
|
-
var KanbanItemComponent = /** @class */ (function () {
|
|
13504
|
-
function KanbanItemComponent(_kanbanEventService) {
|
|
13505
|
-
this._kanbanEventService = _kanbanEventService;
|
|
13506
|
-
this.selected = false;
|
|
13507
|
-
}
|
|
13508
|
-
KanbanItemComponent.prototype.onSelectedChange = function (value) {
|
|
13509
|
-
if (value) {
|
|
13510
|
-
this._kanbanEventService.emitSelectItemEvent(this.item);
|
|
13511
|
-
}
|
|
13512
|
-
else {
|
|
13513
|
-
this._kanbanEventService.emitUnselectItemEvent(this.item);
|
|
13514
|
-
}
|
|
13515
|
-
};
|
|
13516
|
-
KanbanItemComponent.ctorParameters = function () { return [
|
|
13517
|
-
{ type: KanbanEventService }
|
|
13518
|
-
]; };
|
|
13519
|
-
__decorate([
|
|
13520
|
-
Input()
|
|
13521
|
-
], KanbanItemComponent.prototype, "item", void 0);
|
|
13522
|
-
__decorate([
|
|
13523
|
-
Input()
|
|
13524
|
-
], KanbanItemComponent.prototype, "selected", void 0);
|
|
13525
|
-
__decorate([
|
|
13526
|
-
Input()
|
|
13527
|
-
], KanbanItemComponent.prototype, "headerTemplate", void 0);
|
|
13528
|
-
__decorate([
|
|
13529
|
-
Input()
|
|
13530
|
-
], KanbanItemComponent.prototype, "bodyTemplate", void 0);
|
|
13531
|
-
__decorate([
|
|
13532
|
-
Input()
|
|
13533
|
-
], KanbanItemComponent.prototype, "footerTemplate", void 0);
|
|
13534
|
-
KanbanItemComponent = __decorate([
|
|
13535
|
-
Component({
|
|
13536
|
-
selector: 's-kanban-item',
|
|
13537
|
-
template: "<p-tieredMenu\n #optionsMenu\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"9999\"\n [model]=\"item.options\">\n</p-tieredMenu>\n\n<div\n class=\"kanban-item\"\n [ngClass]=\"{\n 'kanban-item--selected': selected && !item.disabled,\n 'kanban-item--disabled': item.disabled\n }\">\n <div class=\"kanban-item__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"!item.disabled\"\n type=\"checkbox\"\n name=\"checkbox\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"onSelectedChange($event)\"\n (click)=\"$event.stopPropagation()\">\n </form>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <button\n *ngIf=\"item.options && !item.disabled\"\n class=\"options-button\"\n (click)=\"optionsMenu.toggle($event); $event.stopPropagation();\">\n <i class=\"fas fa-ellipsis-v\"></i>\n </button>\n </div>\n <div class=\"kanban-item__body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"kanban-item__footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: { $implicit: item }\"></ng-container> \n </div>\n</div>",
|
|
13538
|
-
styles: [".kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}"]
|
|
13539
|
-
})
|
|
13540
|
-
], KanbanItemComponent);
|
|
13541
|
-
return KanbanItemComponent;
|
|
13542
|
-
}());
|
|
13543
|
-
|
|
13544
13799
|
var KanbanColumnComponent = /** @class */ (function () {
|
|
13545
13800
|
function KanbanColumnComponent(kanbanEventService) {
|
|
13546
13801
|
this.kanbanEventService = kanbanEventService;
|
|
@@ -13635,6 +13890,47 @@ var KanbanItemDraggingComponent = /** @class */ (function () {
|
|
|
13635
13890
|
return KanbanItemDraggingComponent;
|
|
13636
13891
|
}());
|
|
13637
13892
|
|
|
13893
|
+
var KanbanItemComponent = /** @class */ (function () {
|
|
13894
|
+
function KanbanItemComponent(_kanbanEventService) {
|
|
13895
|
+
this._kanbanEventService = _kanbanEventService;
|
|
13896
|
+
this.selected = false;
|
|
13897
|
+
}
|
|
13898
|
+
KanbanItemComponent.prototype.onSelectedChange = function (value) {
|
|
13899
|
+
if (value) {
|
|
13900
|
+
this._kanbanEventService.emitSelectItemEvent(this.item);
|
|
13901
|
+
}
|
|
13902
|
+
else {
|
|
13903
|
+
this._kanbanEventService.emitUnselectItemEvent(this.item);
|
|
13904
|
+
}
|
|
13905
|
+
};
|
|
13906
|
+
KanbanItemComponent.ctorParameters = function () { return [
|
|
13907
|
+
{ type: KanbanEventService }
|
|
13908
|
+
]; };
|
|
13909
|
+
__decorate([
|
|
13910
|
+
Input()
|
|
13911
|
+
], KanbanItemComponent.prototype, "item", void 0);
|
|
13912
|
+
__decorate([
|
|
13913
|
+
Input()
|
|
13914
|
+
], KanbanItemComponent.prototype, "selected", void 0);
|
|
13915
|
+
__decorate([
|
|
13916
|
+
Input()
|
|
13917
|
+
], KanbanItemComponent.prototype, "headerTemplate", void 0);
|
|
13918
|
+
__decorate([
|
|
13919
|
+
Input()
|
|
13920
|
+
], KanbanItemComponent.prototype, "bodyTemplate", void 0);
|
|
13921
|
+
__decorate([
|
|
13922
|
+
Input()
|
|
13923
|
+
], KanbanItemComponent.prototype, "footerTemplate", void 0);
|
|
13924
|
+
KanbanItemComponent = __decorate([
|
|
13925
|
+
Component({
|
|
13926
|
+
selector: 's-kanban-item',
|
|
13927
|
+
template: "<p-tieredMenu\n #optionsMenu\n [popup]=\"true\"\n appendTo=\"body\"\n [baseZIndex]=\"9999\"\n [model]=\"item.options\">\n</p-tieredMenu>\n\n<div\n class=\"kanban-item\"\n [ngClass]=\"{\n 'kanban-item--selected': selected && !item.disabled,\n 'kanban-item--disabled': item.disabled\n }\">\n <div class=\"kanban-item__header\">\n <div class=\"content\">\n <form>\n <input\n *ngIf=\"!item.disabled\"\n type=\"checkbox\"\n name=\"checkbox\"\n [(ngModel)]=\"selected\"\n (ngModelChange)=\"onSelectedChange($event)\"\n (click)=\"$event.stopPropagation()\">\n </form>\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <button\n *ngIf=\"item.options && !item.disabled\"\n class=\"options-button\"\n (click)=\"optionsMenu.toggle($event); $event.stopPropagation();\">\n <i class=\"fas fa-ellipsis-v\"></i>\n </button>\n </div>\n <div class=\"kanban-item__body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate; context: { $implicit: item }\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"kanban-item__footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: { $implicit: item }\"></ng-container> \n </div>\n</div>",
|
|
13928
|
+
styles: [".kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:\"Open Sans\" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}"]
|
|
13929
|
+
})
|
|
13930
|
+
], KanbanItemComponent);
|
|
13931
|
+
return KanbanItemComponent;
|
|
13932
|
+
}());
|
|
13933
|
+
|
|
13638
13934
|
var KanbanModule = /** @class */ (function () {
|
|
13639
13935
|
function KanbanModule() {
|
|
13640
13936
|
}
|
|
@@ -13649,17 +13945,17 @@ var KanbanModule = /** @class */ (function () {
|
|
|
13649
13945
|
BadgeModule,
|
|
13650
13946
|
ButtonModule,
|
|
13651
13947
|
TieredMenuModule$1,
|
|
13948
|
+
TemplateModule,
|
|
13652
13949
|
],
|
|
13653
13950
|
declarations: [
|
|
13654
13951
|
KanbanComponent,
|
|
13655
13952
|
KanbanItemComponent,
|
|
13656
13953
|
KanbanColumnComponent,
|
|
13657
13954
|
KanbanItemDraggingComponent,
|
|
13658
|
-
TemplateDirective,
|
|
13659
13955
|
],
|
|
13660
13956
|
exports: [
|
|
13661
13957
|
KanbanComponent,
|
|
13662
|
-
|
|
13958
|
+
TemplateModule,
|
|
13663
13959
|
],
|
|
13664
13960
|
providers: [KanbanEventService],
|
|
13665
13961
|
})
|
|
@@ -16514,6 +16810,11 @@ var WorkspaceSwitchModule = /** @class */ (function () {
|
|
|
16514
16810
|
}());
|
|
16515
16811
|
|
|
16516
16812
|
var fallback = {
|
|
16813
|
+
"platform.angular_components.insight_intro": "Olá! Aqui você encontrará insights valiosos a partir dos seus dados",
|
|
16814
|
+
"platform.angular_components.insight_empty": "Ainda não há Insights na página",
|
|
16815
|
+
"platform.angular_components.error_loading_insight_alt": "Não foi possível carregar o insight no momento. Por favor, verifique sua conexão com a internet e tente novamente.",
|
|
16816
|
+
"platform.angular_components.loading_insight": "Carregando insight valioso...",
|
|
16817
|
+
"platform.angular_components.insight_no_permission": "Olá! Você não possui acesso à página de insights. Entre em contato com o administrador para saber mais",
|
|
16517
16818
|
"platform.angular_components.count_items_in_target": "{{ count }} itens em {{ target }}",
|
|
16518
16819
|
"platform.angular_components.count_items_selected": "{{ count }} itens selecionados",
|
|
16519
16820
|
"platform.angular_components.january": "Janeiro",
|
|
@@ -16816,5 +17117,5 @@ var fallback = {
|
|
|
16816
17117
|
* Generated bundle index. Do not edit.
|
|
16817
17118
|
*/
|
|
16818
17119
|
|
|
16819
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs,
|
|
17120
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, CurrencyFieldComponent as ɵba, DynamicFieldComponent as ɵbb, DynamicFormDirective as ɵbc, FieldsetComponent as ɵbd, FileUploadComponent$1 as ɵbe, LookupFieldComponent as ɵbf, NumberFieldComponent as ɵbg, PasswordFieldComponent as ɵbh, RadioButtonComponent as ɵbi, RowComponent as ɵbj, SectionComponent as ɵbk, SelectFieldComponent as ɵbl, SliderFieldComponent as ɵbm, TextAreaFieldComponent as ɵbn, TextAreaIAFieldComponent as ɵbo, IAssistService as ɵbp, TextFieldComponent as ɵbq, DecimalField as ɵbs, SideTableComponent as ɵbt, ThumbnailService as ɵbu, InfiniteScrollModule as ɵbv, InfiniteScrollDirective as ɵbw, TemplateModule as ɵbx, TemplateDirective as ɵby, IAssistIconComponent as ɵbz, CustomTranslationsModule as ɵc, IAInsightSidebarComponent as ɵca, IAInsightCardComponent as ɵcb, IAInsightCardLoaderComponent as ɵcc, StructureModule as ɵcd, HeaderComponent as ɵce, FooterComponent as ɵcf, KanbanEventService as ɵcg, KanbanItemComponent as ɵch, KanbanColumnComponent as ɵci, KanbanItemDraggingComponent as ɵcj, NumberLocaleOptions as ɵck, BorderButtonModule as ɵcl, BorderButtonComponent as ɵcm, SelectButtonItemComponent as ɵcn, SlidePanelService as ɵco, TieredMenuEventService as ɵcp, TieredMenuService as ɵcq, TieredMenuComponent as ɵcr, TieredMenuNestedComponent as ɵcs, TieredMenuItemComponent as ɵct, TieredMenuDividerComponent as ɵcu, TimelineItemModule as ɵcv, TimelineIconItemComponent as ɵcw, HorizontalTimelineModule as ɵcx, HorizontalTimelineComponent as ɵcy, VerticalTimelineModule as ɵcz, CodeEditorComponent as ɵd, VerticalTimelineComponent as ɵda, RangeLineComponent as ɵdb, CollapseOptionComponent as ɵdc, CollapsedItemsComponent as ɵdd, VerticalItemsComponent as ɵde, CoreFacade as ɵe, CodeMirror6Core as ɵf, CountryPhonePickerService as ɵg, LocalizedCurrencyImpurePipe as ɵh, LocalizedBignumberPipe as ɵi, LocalizedBignumberImpurePipe as ɵj, EmptyStateGoBackComponent as ɵk, ProgressBarDeterminateComponent as ɵl, ProgressBarIndeterminateComponent as ɵm, FileUploadService as ɵn, FileItemComponent as ɵo, LocaleService as ɵp, InfoSignComponent as ɵq, TableColumnsComponent as ɵr, TablePagingComponent as ɵs, AutocompleteFieldComponent as ɵt, BignumberFieldComponent as ɵu, BooleanFieldComponent as ɵv, BooleanSwitchFieldComponent as ɵw, CalendarFieldComponent as ɵx, ChipsFieldComponent as ɵy, CountryPhonePickerFieldComponent as ɵz };
|
|
16820
17121
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|