@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
|
@@ -803,7 +803,7 @@ BadgeComponent = __decorate([
|
|
|
803
803
|
Component({
|
|
804
804
|
selector: "s-badge",
|
|
805
805
|
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>",
|
|
806
|
-
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}"]
|
|
806
|
+
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}"]
|
|
807
807
|
})
|
|
808
808
|
], BadgeComponent);
|
|
809
809
|
|
|
@@ -12132,6 +12132,299 @@ GlobalSearchModule = __decorate([
|
|
|
12132
12132
|
})
|
|
12133
12133
|
], GlobalSearchModule);
|
|
12134
12134
|
|
|
12135
|
+
let IAssistIconComponent = class IAssistIconComponent {
|
|
12136
|
+
};
|
|
12137
|
+
IAssistIconComponent = __decorate([
|
|
12138
|
+
Component({
|
|
12139
|
+
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>"
|
|
12140
|
+
})
|
|
12141
|
+
], IAssistIconComponent);
|
|
12142
|
+
|
|
12143
|
+
let SVGFactoryDirective = class SVGFactoryDirective {
|
|
12144
|
+
constructor(viewContainerRef, componentFactoryResolver) {
|
|
12145
|
+
this.viewContainerRef = viewContainerRef;
|
|
12146
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
12147
|
+
const factory = this.componentFactoryResolver.resolveComponentFactory(IAssistIconComponent);
|
|
12148
|
+
this.viewContainerRef.clear();
|
|
12149
|
+
this.viewContainerRef.createComponent(factory);
|
|
12150
|
+
}
|
|
12151
|
+
};
|
|
12152
|
+
SVGFactoryDirective.ctorParameters = () => [
|
|
12153
|
+
{ type: ViewContainerRef },
|
|
12154
|
+
{ type: ComponentFactoryResolver }
|
|
12155
|
+
];
|
|
12156
|
+
SVGFactoryDirective = __decorate([
|
|
12157
|
+
Directive({
|
|
12158
|
+
selector: "[sSVGFactory]",
|
|
12159
|
+
})
|
|
12160
|
+
], SVGFactoryDirective);
|
|
12161
|
+
|
|
12162
|
+
let SVGFactoryModule = class SVGFactoryModule {
|
|
12163
|
+
};
|
|
12164
|
+
SVGFactoryModule = __decorate([
|
|
12165
|
+
NgModule({
|
|
12166
|
+
imports: [CommonModule],
|
|
12167
|
+
declarations: [
|
|
12168
|
+
SVGFactoryDirective,
|
|
12169
|
+
IAssistIconComponent,
|
|
12170
|
+
],
|
|
12171
|
+
exports: [SVGFactoryDirective],
|
|
12172
|
+
})
|
|
12173
|
+
], SVGFactoryModule);
|
|
12174
|
+
|
|
12175
|
+
let TemplateDirective = class TemplateDirective {
|
|
12176
|
+
constructor(template) {
|
|
12177
|
+
this.template = template;
|
|
12178
|
+
}
|
|
12179
|
+
};
|
|
12180
|
+
TemplateDirective.ctorParameters = () => [
|
|
12181
|
+
{ type: TemplateRef }
|
|
12182
|
+
];
|
|
12183
|
+
__decorate([
|
|
12184
|
+
Input("sTemplate")
|
|
12185
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
12186
|
+
TemplateDirective = __decorate([
|
|
12187
|
+
Directive({
|
|
12188
|
+
selector: "[sTemplate]",
|
|
12189
|
+
})
|
|
12190
|
+
], TemplateDirective);
|
|
12191
|
+
|
|
12192
|
+
let TemplateModule = class TemplateModule {
|
|
12193
|
+
};
|
|
12194
|
+
TemplateModule = __decorate([
|
|
12195
|
+
NgModule({
|
|
12196
|
+
imports: [CommonModule],
|
|
12197
|
+
declarations: [TemplateDirective],
|
|
12198
|
+
exports: [TemplateDirective],
|
|
12199
|
+
})
|
|
12200
|
+
], TemplateModule);
|
|
12201
|
+
|
|
12202
|
+
let IAInsightCardComponent = class IAInsightCardComponent {
|
|
12203
|
+
constructor(clipboard, messageService, translateService) {
|
|
12204
|
+
this.clipboard = clipboard;
|
|
12205
|
+
this.messageService = messageService;
|
|
12206
|
+
this.translateService = translateService;
|
|
12207
|
+
this.open = false;
|
|
12208
|
+
this.isLoading = false;
|
|
12209
|
+
this.likeSelected = false;
|
|
12210
|
+
this.dislikeSelected = false;
|
|
12211
|
+
}
|
|
12212
|
+
toggle() {
|
|
12213
|
+
this.open = !this.open;
|
|
12214
|
+
this._requestInsight();
|
|
12215
|
+
}
|
|
12216
|
+
onLikeSelected() {
|
|
12217
|
+
var _a, _b;
|
|
12218
|
+
if (this.likeSelected) {
|
|
12219
|
+
this.likeSelected = false;
|
|
12220
|
+
}
|
|
12221
|
+
else {
|
|
12222
|
+
this.likeSelected = true;
|
|
12223
|
+
this.dislikeSelected = false;
|
|
12224
|
+
(_b = (_a = this.insight).onLikeSelected) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12225
|
+
}
|
|
12226
|
+
}
|
|
12227
|
+
onDislikeSelected() {
|
|
12228
|
+
var _a, _b;
|
|
12229
|
+
if (this.dislikeSelected) {
|
|
12230
|
+
this.dislikeSelected = false;
|
|
12231
|
+
}
|
|
12232
|
+
else {
|
|
12233
|
+
this.dislikeSelected = true;
|
|
12234
|
+
this.likeSelected = false;
|
|
12235
|
+
(_b = (_a = this.insight).onDislikeSelected) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12236
|
+
}
|
|
12237
|
+
}
|
|
12238
|
+
copyContent() {
|
|
12239
|
+
var _a, _b;
|
|
12240
|
+
(_b = (_a = this.insight).onCopy) === null || _b === void 0 ? void 0 : _b.call(_a, this.content);
|
|
12241
|
+
if (this.clipboard.copy(this.content)) {
|
|
12242
|
+
this.messageService.add({
|
|
12243
|
+
severity: "info",
|
|
12244
|
+
summary: this.translateService.instant("platform.angular_components.copied_to_clipboard"),
|
|
12245
|
+
});
|
|
12246
|
+
}
|
|
12247
|
+
}
|
|
12248
|
+
reloadContent() {
|
|
12249
|
+
this._requestInsight();
|
|
12250
|
+
}
|
|
12251
|
+
_requestInsight() {
|
|
12252
|
+
this.isLoading = true;
|
|
12253
|
+
this.insight.request$
|
|
12254
|
+
.pipe(first(), finalize(() => (this.isLoading = false)))
|
|
12255
|
+
.subscribe((content) => {
|
|
12256
|
+
this.content = content;
|
|
12257
|
+
});
|
|
12258
|
+
}
|
|
12259
|
+
};
|
|
12260
|
+
IAInsightCardComponent.ctorParameters = () => [
|
|
12261
|
+
{ type: Clipboard },
|
|
12262
|
+
{ type: MessageService },
|
|
12263
|
+
{ type: TranslateService }
|
|
12264
|
+
];
|
|
12265
|
+
__decorate([
|
|
12266
|
+
Input()
|
|
12267
|
+
], IAInsightCardComponent.prototype, "insight", void 0);
|
|
12268
|
+
IAInsightCardComponent = __decorate([
|
|
12269
|
+
Component({
|
|
12270
|
+
selector: "s-ia-insight-card",
|
|
12271
|
+
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",
|
|
12272
|
+
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}"]
|
|
12273
|
+
})
|
|
12274
|
+
], IAInsightCardComponent);
|
|
12275
|
+
|
|
12276
|
+
let IAInsightSidebarComponent = class IAInsightSidebarComponent {
|
|
12277
|
+
constructor() {
|
|
12278
|
+
this.insights = [];
|
|
12279
|
+
this.opened = false;
|
|
12280
|
+
}
|
|
12281
|
+
toggle() {
|
|
12282
|
+
this.opened = !this.opened;
|
|
12283
|
+
}
|
|
12284
|
+
open() {
|
|
12285
|
+
this.opened = true;
|
|
12286
|
+
}
|
|
12287
|
+
close() {
|
|
12288
|
+
this.opened = false;
|
|
12289
|
+
}
|
|
12290
|
+
};
|
|
12291
|
+
__decorate([
|
|
12292
|
+
Input()
|
|
12293
|
+
], IAInsightSidebarComponent.prototype, "insights", void 0);
|
|
12294
|
+
__decorate([
|
|
12295
|
+
Input()
|
|
12296
|
+
], IAInsightSidebarComponent.prototype, "hasPermission", void 0);
|
|
12297
|
+
__decorate([
|
|
12298
|
+
Input()
|
|
12299
|
+
], IAInsightSidebarComponent.prototype, "introText", void 0);
|
|
12300
|
+
__decorate([
|
|
12301
|
+
Input()
|
|
12302
|
+
], IAInsightSidebarComponent.prototype, "introTemplate", void 0);
|
|
12303
|
+
__decorate([
|
|
12304
|
+
Input()
|
|
12305
|
+
], IAInsightSidebarComponent.prototype, "emptyText", void 0);
|
|
12306
|
+
__decorate([
|
|
12307
|
+
Input()
|
|
12308
|
+
], IAInsightSidebarComponent.prototype, "emptyTemplate", void 0);
|
|
12309
|
+
__decorate([
|
|
12310
|
+
Input()
|
|
12311
|
+
], IAInsightSidebarComponent.prototype, "noPermissionText", void 0);
|
|
12312
|
+
__decorate([
|
|
12313
|
+
Input()
|
|
12314
|
+
], IAInsightSidebarComponent.prototype, "noPermissionTemplate", void 0);
|
|
12315
|
+
IAInsightSidebarComponent = __decorate([
|
|
12316
|
+
Component({
|
|
12317
|
+
selector: "s-ia-insight-sidebar",
|
|
12318
|
+
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",
|
|
12319
|
+
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%}}"]
|
|
12320
|
+
})
|
|
12321
|
+
], IAInsightSidebarComponent);
|
|
12322
|
+
|
|
12323
|
+
let IAInsightCardLoaderComponent = class IAInsightCardLoaderComponent {
|
|
12324
|
+
};
|
|
12325
|
+
IAInsightCardLoaderComponent = __decorate([
|
|
12326
|
+
Component({
|
|
12327
|
+
selector: "s-ia-insight-card-loader",
|
|
12328
|
+
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",
|
|
12329
|
+
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)}}"]
|
|
12330
|
+
})
|
|
12331
|
+
], IAInsightCardLoaderComponent);
|
|
12332
|
+
|
|
12333
|
+
var IAInsightTemplateTypes;
|
|
12334
|
+
(function (IAInsightTemplateTypes) {
|
|
12335
|
+
IAInsightTemplateTypes["Empty"] = "empty";
|
|
12336
|
+
IAInsightTemplateTypes["Intro"] = "intro";
|
|
12337
|
+
IAInsightTemplateTypes["NoPermission"] = "noPermission";
|
|
12338
|
+
})(IAInsightTemplateTypes || (IAInsightTemplateTypes = {}));
|
|
12339
|
+
|
|
12340
|
+
let IAInsightComponent = class IAInsightComponent {
|
|
12341
|
+
constructor() {
|
|
12342
|
+
this.insights = [];
|
|
12343
|
+
this.hasPermission = true;
|
|
12344
|
+
}
|
|
12345
|
+
ngAfterContentInit() {
|
|
12346
|
+
this._getTemplates();
|
|
12347
|
+
}
|
|
12348
|
+
open() {
|
|
12349
|
+
this.sidebar.open();
|
|
12350
|
+
}
|
|
12351
|
+
close() {
|
|
12352
|
+
this.sidebar.close();
|
|
12353
|
+
}
|
|
12354
|
+
getIntroTemplate() {
|
|
12355
|
+
return this._getCustomTemplate(IAInsightTemplateTypes.Intro);
|
|
12356
|
+
}
|
|
12357
|
+
getNoPermissionTemplate() {
|
|
12358
|
+
return this._getCustomTemplate(IAInsightTemplateTypes.NoPermission);
|
|
12359
|
+
}
|
|
12360
|
+
getEmptyTemplate() {
|
|
12361
|
+
return this._getCustomTemplate(IAInsightTemplateTypes.Empty);
|
|
12362
|
+
}
|
|
12363
|
+
_getCustomTemplate(type) {
|
|
12364
|
+
var _a;
|
|
12365
|
+
return (_a = this.templates.find((template) => template.type === type)) === null || _a === void 0 ? void 0 : _a.template;
|
|
12366
|
+
}
|
|
12367
|
+
_getTemplates() {
|
|
12368
|
+
this.introTemplate = this.getIntroTemplate();
|
|
12369
|
+
this.emptyTemplate = this.getEmptyTemplate();
|
|
12370
|
+
this.noPermissionTemplate = this.getNoPermissionTemplate();
|
|
12371
|
+
}
|
|
12372
|
+
};
|
|
12373
|
+
__decorate([
|
|
12374
|
+
Input()
|
|
12375
|
+
], IAInsightComponent.prototype, "insights", void 0);
|
|
12376
|
+
__decorate([
|
|
12377
|
+
Input()
|
|
12378
|
+
], IAInsightComponent.prototype, "hasPermission", void 0);
|
|
12379
|
+
__decorate([
|
|
12380
|
+
Input()
|
|
12381
|
+
], IAInsightComponent.prototype, "introText", void 0);
|
|
12382
|
+
__decorate([
|
|
12383
|
+
Input()
|
|
12384
|
+
], IAInsightComponent.prototype, "emptyText", void 0);
|
|
12385
|
+
__decorate([
|
|
12386
|
+
Input()
|
|
12387
|
+
], IAInsightComponent.prototype, "noPermissionText", void 0);
|
|
12388
|
+
__decorate([
|
|
12389
|
+
ViewChild(IAInsightSidebarComponent)
|
|
12390
|
+
], IAInsightComponent.prototype, "sidebar", void 0);
|
|
12391
|
+
__decorate([
|
|
12392
|
+
ContentChildren(TemplateDirective)
|
|
12393
|
+
], IAInsightComponent.prototype, "templates", void 0);
|
|
12394
|
+
IAInsightComponent = __decorate([
|
|
12395
|
+
Component({
|
|
12396
|
+
selector: "s-ia-insight",
|
|
12397
|
+
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>",
|
|
12398
|
+
styles: [""]
|
|
12399
|
+
})
|
|
12400
|
+
], IAInsightComponent);
|
|
12401
|
+
|
|
12402
|
+
let IAInsightModule = class IAInsightModule {
|
|
12403
|
+
};
|
|
12404
|
+
IAInsightModule = __decorate([
|
|
12405
|
+
NgModule({
|
|
12406
|
+
imports: [
|
|
12407
|
+
CommonModule,
|
|
12408
|
+
TranslateModule,
|
|
12409
|
+
BadgeModule,
|
|
12410
|
+
ButtonModule,
|
|
12411
|
+
TooltipModule,
|
|
12412
|
+
TemplateModule,
|
|
12413
|
+
SVGFactoryModule,
|
|
12414
|
+
],
|
|
12415
|
+
declarations: [
|
|
12416
|
+
IAInsightComponent,
|
|
12417
|
+
IAInsightCardComponent,
|
|
12418
|
+
IAInsightSidebarComponent,
|
|
12419
|
+
IAInsightCardLoaderComponent,
|
|
12420
|
+
],
|
|
12421
|
+
exports: [
|
|
12422
|
+
IAInsightComponent,
|
|
12423
|
+
TemplateModule,
|
|
12424
|
+
],
|
|
12425
|
+
})
|
|
12426
|
+
], IAInsightModule);
|
|
12427
|
+
|
|
12135
12428
|
let HeaderComponent = class HeaderComponent {
|
|
12136
12429
|
};
|
|
12137
12430
|
HeaderComponent = __decorate([
|
|
@@ -12404,32 +12697,6 @@ ImageCropperService = __decorate([
|
|
|
12404
12697
|
Injectable()
|
|
12405
12698
|
], ImageCropperService);
|
|
12406
12699
|
|
|
12407
|
-
var KanbanTemplateTypes;
|
|
12408
|
-
(function (KanbanTemplateTypes) {
|
|
12409
|
-
KanbanTemplateTypes["ColumnHeader"] = "column-header";
|
|
12410
|
-
KanbanTemplateTypes["ColumnEmptyMessage"] = "column-empty-message";
|
|
12411
|
-
KanbanTemplateTypes["ItemHeader"] = "item-header";
|
|
12412
|
-
KanbanTemplateTypes["ItemBody"] = "item-body";
|
|
12413
|
-
KanbanTemplateTypes["ItemFooter"] = "item-footer";
|
|
12414
|
-
})(KanbanTemplateTypes || (KanbanTemplateTypes = {}));
|
|
12415
|
-
|
|
12416
|
-
let TemplateDirective = class TemplateDirective {
|
|
12417
|
-
constructor(template) {
|
|
12418
|
-
this.template = template;
|
|
12419
|
-
}
|
|
12420
|
-
};
|
|
12421
|
-
TemplateDirective.ctorParameters = () => [
|
|
12422
|
-
{ type: TemplateRef }
|
|
12423
|
-
];
|
|
12424
|
-
__decorate([
|
|
12425
|
-
Input("sTemplate")
|
|
12426
|
-
], TemplateDirective.prototype, "type", void 0);
|
|
12427
|
-
TemplateDirective = __decorate([
|
|
12428
|
-
Directive({
|
|
12429
|
-
selector: "[sTemplate]",
|
|
12430
|
-
})
|
|
12431
|
-
], TemplateDirective);
|
|
12432
|
-
|
|
12433
12700
|
let KanbanEventService = class KanbanEventService {
|
|
12434
12701
|
constructor() {
|
|
12435
12702
|
this.selectAllColumnItemsEvent = new EventEmitter();
|
|
@@ -12454,6 +12721,15 @@ KanbanEventService = __decorate([
|
|
|
12454
12721
|
Injectable()
|
|
12455
12722
|
], KanbanEventService);
|
|
12456
12723
|
|
|
12724
|
+
var KanbanTemplateTypes;
|
|
12725
|
+
(function (KanbanTemplateTypes) {
|
|
12726
|
+
KanbanTemplateTypes["ColumnHeader"] = "column-header";
|
|
12727
|
+
KanbanTemplateTypes["ColumnEmptyMessage"] = "column-empty-message";
|
|
12728
|
+
KanbanTemplateTypes["ItemHeader"] = "item-header";
|
|
12729
|
+
KanbanTemplateTypes["ItemBody"] = "item-body";
|
|
12730
|
+
KanbanTemplateTypes["ItemFooter"] = "item-footer";
|
|
12731
|
+
})(KanbanTemplateTypes || (KanbanTemplateTypes = {}));
|
|
12732
|
+
|
|
12457
12733
|
let KanbanComponent = class KanbanComponent {
|
|
12458
12734
|
constructor(kanbanEventService) {
|
|
12459
12735
|
this.kanbanEventService = kanbanEventService;
|
|
@@ -12654,46 +12930,6 @@ KanbanComponent = __decorate([
|
|
|
12654
12930
|
})
|
|
12655
12931
|
], KanbanComponent);
|
|
12656
12932
|
|
|
12657
|
-
let KanbanItemComponent = class KanbanItemComponent {
|
|
12658
|
-
constructor(_kanbanEventService) {
|
|
12659
|
-
this._kanbanEventService = _kanbanEventService;
|
|
12660
|
-
this.selected = false;
|
|
12661
|
-
}
|
|
12662
|
-
onSelectedChange(value) {
|
|
12663
|
-
if (value) {
|
|
12664
|
-
this._kanbanEventService.emitSelectItemEvent(this.item);
|
|
12665
|
-
}
|
|
12666
|
-
else {
|
|
12667
|
-
this._kanbanEventService.emitUnselectItemEvent(this.item);
|
|
12668
|
-
}
|
|
12669
|
-
}
|
|
12670
|
-
};
|
|
12671
|
-
KanbanItemComponent.ctorParameters = () => [
|
|
12672
|
-
{ type: KanbanEventService }
|
|
12673
|
-
];
|
|
12674
|
-
__decorate([
|
|
12675
|
-
Input()
|
|
12676
|
-
], KanbanItemComponent.prototype, "item", void 0);
|
|
12677
|
-
__decorate([
|
|
12678
|
-
Input()
|
|
12679
|
-
], KanbanItemComponent.prototype, "selected", void 0);
|
|
12680
|
-
__decorate([
|
|
12681
|
-
Input()
|
|
12682
|
-
], KanbanItemComponent.prototype, "headerTemplate", void 0);
|
|
12683
|
-
__decorate([
|
|
12684
|
-
Input()
|
|
12685
|
-
], KanbanItemComponent.prototype, "bodyTemplate", void 0);
|
|
12686
|
-
__decorate([
|
|
12687
|
-
Input()
|
|
12688
|
-
], KanbanItemComponent.prototype, "footerTemplate", void 0);
|
|
12689
|
-
KanbanItemComponent = __decorate([
|
|
12690
|
-
Component({
|
|
12691
|
-
selector: 's-kanban-item',
|
|
12692
|
-
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>",
|
|
12693
|
-
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%}"]
|
|
12694
|
-
})
|
|
12695
|
-
], KanbanItemComponent);
|
|
12696
|
-
|
|
12697
12933
|
let KanbanColumnComponent = class KanbanColumnComponent {
|
|
12698
12934
|
constructor(kanbanEventService) {
|
|
12699
12935
|
this.kanbanEventService = kanbanEventService;
|
|
@@ -12785,6 +13021,46 @@ KanbanItemDraggingComponent = __decorate([
|
|
|
12785
13021
|
})
|
|
12786
13022
|
], KanbanItemDraggingComponent);
|
|
12787
13023
|
|
|
13024
|
+
let KanbanItemComponent = class KanbanItemComponent {
|
|
13025
|
+
constructor(_kanbanEventService) {
|
|
13026
|
+
this._kanbanEventService = _kanbanEventService;
|
|
13027
|
+
this.selected = false;
|
|
13028
|
+
}
|
|
13029
|
+
onSelectedChange(value) {
|
|
13030
|
+
if (value) {
|
|
13031
|
+
this._kanbanEventService.emitSelectItemEvent(this.item);
|
|
13032
|
+
}
|
|
13033
|
+
else {
|
|
13034
|
+
this._kanbanEventService.emitUnselectItemEvent(this.item);
|
|
13035
|
+
}
|
|
13036
|
+
}
|
|
13037
|
+
};
|
|
13038
|
+
KanbanItemComponent.ctorParameters = () => [
|
|
13039
|
+
{ type: KanbanEventService }
|
|
13040
|
+
];
|
|
13041
|
+
__decorate([
|
|
13042
|
+
Input()
|
|
13043
|
+
], KanbanItemComponent.prototype, "item", void 0);
|
|
13044
|
+
__decorate([
|
|
13045
|
+
Input()
|
|
13046
|
+
], KanbanItemComponent.prototype, "selected", void 0);
|
|
13047
|
+
__decorate([
|
|
13048
|
+
Input()
|
|
13049
|
+
], KanbanItemComponent.prototype, "headerTemplate", void 0);
|
|
13050
|
+
__decorate([
|
|
13051
|
+
Input()
|
|
13052
|
+
], KanbanItemComponent.prototype, "bodyTemplate", void 0);
|
|
13053
|
+
__decorate([
|
|
13054
|
+
Input()
|
|
13055
|
+
], KanbanItemComponent.prototype, "footerTemplate", void 0);
|
|
13056
|
+
KanbanItemComponent = __decorate([
|
|
13057
|
+
Component({
|
|
13058
|
+
selector: 's-kanban-item',
|
|
13059
|
+
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>",
|
|
13060
|
+
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%}"]
|
|
13061
|
+
})
|
|
13062
|
+
], KanbanItemComponent);
|
|
13063
|
+
|
|
12788
13064
|
let KanbanModule = class KanbanModule {
|
|
12789
13065
|
};
|
|
12790
13066
|
KanbanModule = __decorate([
|
|
@@ -12798,17 +13074,17 @@ KanbanModule = __decorate([
|
|
|
12798
13074
|
BadgeModule,
|
|
12799
13075
|
ButtonModule,
|
|
12800
13076
|
TieredMenuModule$1,
|
|
13077
|
+
TemplateModule,
|
|
12801
13078
|
],
|
|
12802
13079
|
declarations: [
|
|
12803
13080
|
KanbanComponent,
|
|
12804
13081
|
KanbanItemComponent,
|
|
12805
13082
|
KanbanColumnComponent,
|
|
12806
13083
|
KanbanItemDraggingComponent,
|
|
12807
|
-
TemplateDirective,
|
|
12808
13084
|
],
|
|
12809
13085
|
exports: [
|
|
12810
13086
|
KanbanComponent,
|
|
12811
|
-
|
|
13087
|
+
TemplateModule,
|
|
12812
13088
|
],
|
|
12813
13089
|
providers: [KanbanEventService],
|
|
12814
13090
|
})
|
|
@@ -15491,6 +15767,11 @@ WorkspaceSwitchModule = __decorate([
|
|
|
15491
15767
|
], WorkspaceSwitchModule);
|
|
15492
15768
|
|
|
15493
15769
|
const fallback = {
|
|
15770
|
+
"platform.angular_components.insight_intro": "Olá! Aqui você encontrará insights valiosos a partir dos seus dados",
|
|
15771
|
+
"platform.angular_components.insight_empty": "Ainda não há Insights na página",
|
|
15772
|
+
"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.",
|
|
15773
|
+
"platform.angular_components.loading_insight": "Carregando insight valioso...",
|
|
15774
|
+
"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",
|
|
15494
15775
|
"platform.angular_components.count_items_in_target": "{{ count }} itens em {{ target }}",
|
|
15495
15776
|
"platform.angular_components.count_items_selected": "{{ count }} itens selecionados",
|
|
15496
15777
|
"platform.angular_components.january": "Janeiro",
|
|
@@ -15793,5 +16074,5 @@ const fallback = {
|
|
|
15793
16074
|
* Generated bundle index. Do not edit.
|
|
15794
16075
|
*/
|
|
15795
16076
|
|
|
15796
|
-
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,
|
|
16077
|
+
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 };
|
|
15797
16078
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|