asap-feed-beta 12.7.8 → 12.8.0
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/asap-feed-beta.metadata.json +1 -1
- package/bundles/asap-feed-beta.umd.js +28 -12
- package/bundles/asap-feed-beta.umd.js.map +1 -1
- package/bundles/asap-feed-beta.umd.min.js +1 -1
- package/bundles/asap-feed-beta.umd.min.js.map +1 -1
- package/esm2015/lib/asap-feed-beta.component.js +11 -8
- package/esm2015/lib/asap-feed-beta.module.js +1 -2
- package/esm2015/lib/feed-item/feed-item.component.js +2 -2
- package/esm2015/lib/tab-feed/asap-tab-feed.component.js +15 -5
- package/esm5/lib/asap-feed-beta.component.js +15 -8
- package/esm5/lib/asap-feed-beta.module.js +1 -2
- package/esm5/lib/feed-item/feed-item.component.js +2 -2
- package/esm5/lib/tab-feed/asap-tab-feed.component.js +15 -5
- package/fesm2015/asap-feed-beta.js +25 -13
- package/fesm2015/asap-feed-beta.js.map +1 -1
- package/fesm5/asap-feed-beta.js +29 -13
- package/fesm5/asap-feed-beta.js.map +1 -1
- package/lib/asap-feed-beta.component.d.ts +1 -0
- package/lib/tab-feed/asap-tab-feed.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -605,13 +605,11 @@
|
|
|
605
605
|
this.publication = this.controlService.publication;
|
|
606
606
|
this.query = this.controlService.query;
|
|
607
607
|
}
|
|
608
|
-
console.log('Query ->', this.query);
|
|
609
608
|
this.route.params.subscribe((/**
|
|
610
609
|
* @param {?} param
|
|
611
610
|
* @return {?}
|
|
612
611
|
*/
|
|
613
612
|
function (param) {
|
|
614
|
-
console.log('Params ->', param);
|
|
615
613
|
if (param) {
|
|
616
614
|
if (param.feed_id) {
|
|
617
615
|
_this.feedID = param.feed_id;
|
|
@@ -669,7 +667,6 @@
|
|
|
669
667
|
function (feed_id) {
|
|
670
668
|
var _this = this;
|
|
671
669
|
if (feed_id === void 0) { feed_id = ''; }
|
|
672
|
-
console.log('[getFeed] Query', this.query, this.filterByMe);
|
|
673
670
|
this.feeds = null;
|
|
674
671
|
this.loading = true;
|
|
675
672
|
this.feedService.getFeed(feed_id, this.global.loggedUser(), this.query, this.filterByMe).subscribe((/**
|
|
@@ -678,7 +675,6 @@
|
|
|
678
675
|
*/
|
|
679
676
|
function (response) {
|
|
680
677
|
_this.feeds = response.data;
|
|
681
|
-
console.log('Feeds', _this.feeds);
|
|
682
678
|
_this.paginate = response.pagination;
|
|
683
679
|
_this.loading = false;
|
|
684
680
|
_this.hasFeed = (_this.feeds.length > 0);
|
|
@@ -692,7 +688,6 @@
|
|
|
692
688
|
*/
|
|
693
689
|
function () {
|
|
694
690
|
var _this = this;
|
|
695
|
-
console.log('[getMore]', this.paginate.next_document);
|
|
696
691
|
if (this.paginate.next_document) {
|
|
697
692
|
this.loading = true;
|
|
698
693
|
this.feedService.getMoreFeed(5, this.paginate.next_document, this.global.loggedUser(), this.query, this.filterByMe).subscribe((/**
|
|
@@ -700,7 +695,6 @@
|
|
|
700
695
|
* @return {?}
|
|
701
696
|
*/
|
|
702
697
|
function (response) {
|
|
703
|
-
console.log('[getMore] Got: ', response);
|
|
704
698
|
response.data.map((/**
|
|
705
699
|
* @param {?} item
|
|
706
700
|
* @return {?}
|
|
@@ -954,10 +948,23 @@
|
|
|
954
948
|
this.filterByMe = filterByMe;
|
|
955
949
|
this.getFeed();
|
|
956
950
|
};
|
|
951
|
+
Object.defineProperty(AsapFeedBetaComponent.prototype, "isScrollDisabled", {
|
|
952
|
+
get: /**
|
|
953
|
+
* @return {?}
|
|
954
|
+
*/
|
|
955
|
+
function () {
|
|
956
|
+
return this.loading ||
|
|
957
|
+
this.paginate.count >= this.paginate.limit ||
|
|
958
|
+
this.isSinglePost ||
|
|
959
|
+
this.paginate.last_document === this.paginate.next_document;
|
|
960
|
+
},
|
|
961
|
+
enumerable: true,
|
|
962
|
+
configurable: true
|
|
963
|
+
});
|
|
957
964
|
AsapFeedBetaComponent.decorators = [
|
|
958
965
|
{ type: core.Component, args: [{
|
|
959
966
|
selector: 'asap-feed-beta',
|
|
960
|
-
template: "<ng-container *ngIf=\"!settings?.channelsHidden\">\n <app-stories *ngIf=\"stories && !hasID && !isSinglePost\"></app-stories>\n</ng-container>\n\n<feed-publication [settings]=\"settings\" [announce]=\"announce\" (feedCreated)=\"onNewFeed($event)\" (filter)=\"reload($event)\" *ngIf=\"publication && !hasID && !isSinglePost\"></feed-publication>\n\n<!-- Este trecho do c\u00F3digo foi removido, pois ele fazia o Feed ficar flicando na tela. -->\n<ng-container *ngIf=\"!feeds\">\n <div [class.col-sm-8]=\"hasID\" [class.mx-auto]=\"hasID\"> \n <ng-container *ngFor=\"let item of [0,1]\">\n <div>\n <mat-card class=\"feed-card mb-4\">\n <mat-card-header class=\"feed-header\">\n <div class=\"mr-3\" mat-card-avatar>\n <ngx-skeleton-loader animation=\"progress\" appearance=\"circle\" [theme]=\"{height:'40px'}\">\n </ngx-skeleton-loader>\n </div>\n <mat-card-title>\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'25px','transform': 'initial', marginBottom: '0'}\">\n </ngx-skeleton-loader>\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'15px','transform': 'initial'}\">\n </ngx-skeleton-loader>\n </mat-card-title>\n\n </mat-card-header>\n\n <ng-container>\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'400px','transform': 'initial'}\">\n </ngx-skeleton-loader>\n </ng-container>\n\n </mat-card>\n </div>\n </ng-container>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"feeds\">\n <ng-container *ngFor=\"let item of feeds\">\n <div [class.focus-on-me]=\"item.focus\" [class.col-sm-8]=\"hasID\" [class.mx-auto]=\"hasID\">\n <app-feed-item [owner]=\"this\" [settings]=\"settings\" [item]=\"item\" (isVisible)=\"sendVisible($event)\"></app-feed-item>\n </div>\n </ng-container>\n</ng-container>\n\n<div *ngIf=\"loading\">\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'40px', width:'100%'}\"></ngx-skeleton-loader>\n</div>\n\n<div infiniteScroll [infiniteScrollDistance]=\"2\" [infiniteScrollThrottle]=\"2000\" [infiniteScrollDisabled]=\"\
|
|
967
|
+
template: "<ng-container *ngIf=\"!settings?.channelsHidden\">\n <app-stories *ngIf=\"stories && !hasID && !isSinglePost\"></app-stories>\n</ng-container>\n\n<feed-publication [settings]=\"settings\" [announce]=\"announce\" (feedCreated)=\"onNewFeed($event)\" (filter)=\"reload($event)\" *ngIf=\"publication && !hasID && !isSinglePost\"></feed-publication>\n\n<!-- Este trecho do c\u00F3digo foi removido, pois ele fazia o Feed ficar flicando na tela. -->\n<ng-container *ngIf=\"!feeds\">\n <div [class.col-sm-8]=\"hasID\" [class.mx-auto]=\"hasID\"> \n <ng-container *ngFor=\"let item of [0,1]\">\n <div>\n <mat-card class=\"feed-card mb-4\">\n <mat-card-header class=\"feed-header\">\n <div class=\"mr-3\" mat-card-avatar>\n <ngx-skeleton-loader animation=\"progress\" appearance=\"circle\" [theme]=\"{height:'40px'}\">\n </ngx-skeleton-loader>\n </div>\n <mat-card-title>\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'25px','transform': 'initial', marginBottom: '0'}\">\n </ngx-skeleton-loader>\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'15px','transform': 'initial'}\">\n </ngx-skeleton-loader>\n </mat-card-title>\n\n </mat-card-header>\n\n <ng-container>\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'400px','transform': 'initial'}\">\n </ngx-skeleton-loader>\n </ng-container>\n\n </mat-card>\n </div>\n </ng-container>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"feeds\">\n <ng-container *ngFor=\"let item of feeds\">\n <div [class.focus-on-me]=\"item.focus\" [class.col-sm-8]=\"hasID\" [class.mx-auto]=\"hasID\">\n <app-feed-item [owner]=\"this\" [settings]=\"settings\" [item]=\"item\" (isVisible)=\"sendVisible($event)\"></app-feed-item>\n </div>\n </ng-container>\n</ng-container>\n\n<div *ngIf=\"loading\">\n <ngx-skeleton-loader animation=\"progress\" [theme]=\"{height:'40px', width:'100%'}\"></ngx-skeleton-loader>\n</div>\n\n<div infiniteScroll \n [infiniteScrollDistance]=\"2\" \n [infiniteScrollThrottle]=\"2000\" \n [infiniteScrollDisabled]=\"isScrollDisabled\" \n (scrolled)=\"getMore()\">\n</div>\n\n<button \n *ngIf=\"showToTopButton\" \n (click)=\"gotoTop()\" \n style=\"position: fixed;\n bottom: 0;\n right: 0;\n color:#FFFF;\n font-size: 20px;\n margin-right: 10px;\n margin-bottom: 10px;\n height: 35px;\n width: 35px;\n border: none;\n text-align: center;\n border-radius: 50%;\n outline: none;\n transition: all 1s ease-in;\n background-color: var(--main-color);\n z-index: 99999;\"\n class=\"d-none d-sm-block\">\n <i class=\"fa fa-angle-up\"></i>\n</button>\n",
|
|
961
968
|
styles: ['./asap-feed.beta.componente.scss']
|
|
962
969
|
}] }
|
|
963
970
|
];
|
|
@@ -1159,11 +1166,21 @@
|
|
|
1159
1166
|
* @return {?}
|
|
1160
1167
|
*/
|
|
1161
1168
|
function (id) {
|
|
1169
|
+
console.log('Chegou evento feedCreated com ID:', id);
|
|
1170
|
+
if (this.feeds) {
|
|
1171
|
+
this.feeds.forEach((/**
|
|
1172
|
+
* @param {?} feed
|
|
1173
|
+
* @return {?}
|
|
1174
|
+
*/
|
|
1175
|
+
function (feed) {
|
|
1176
|
+
feed.getFeed();
|
|
1177
|
+
}));
|
|
1178
|
+
}
|
|
1162
1179
|
};
|
|
1163
1180
|
AsapTabFeedComponent.decorators = [
|
|
1164
1181
|
{ type: core.Component, args: [{
|
|
1165
1182
|
selector: 'asap-tab-feed',
|
|
1166
|
-
template: "<ng-container *ngIf=\"!settings?.channelsHidden\">\n <app-stories></app-stories>\n</ng-container>\n\n<feed-publication
|
|
1183
|
+
template: "<ng-container *ngIf=\"!settings?.channelsHidden\">\n <app-stories></app-stories>\n</ng-container>\n\n<feed-publication\n [settings]=\"settings\"\n [hideFilterByMe]=\"true\"\n [announce]=\"false\"\n (feedCreated)=\"onNewFeed($event)\">\n</feed-publication>\n\n<div *ngIf=\"settings?.tabs\" class=\"asap-tab-feed\">\n <mat-tab-group (selectedTabChange)=\"onChangeTab($event)\" dynamicHeight>\n \n <!-- \u2705 SE o cliente tem canal -->\n <ng-container *ngIf=\"settings.tabs.channel_list?.length; else semCanal\">\n <mat-tab [label]=\"settings.tabs.channel\">\n <ng-container *ngIf=\"canShow == 0\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n \n <mat-tab *ngIf=\"settings.tabs.allFeed\" [label]=\"settings.tabs.allFeed\">\n <ng-container *ngIf=\"canShow == 3\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n \n <mat-tab *ngIf=\"settings.tabs.feed\" [label]=\"settings.tabs.feed\">\n <ng-container *ngIf=\"canShow == 1\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n \n <mat-tab *ngIf=\"settings.tabs.feed_users\" [label]=\"settings.tabs.feed_users\">\n <ng-container *ngIf=\"canShow == 2\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n </ng-container>\n \n <!-- \uD83D\uDEAB SE o cliente N\u00C3O tem canal -->\n <ng-template #semCanal>\n <mat-tab *ngIf=\"settings.tabs.allFeed\" [label]=\"settings.tabs.allFeed\">\n <ng-container *ngIf=\"canShow == 3\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n \n <mat-tab *ngIf=\"settings.tabs.feed\" [label]=\"settings.tabs.feed\">\n <ng-container *ngIf=\"canShow == 1\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n \n <mat-tab *ngIf=\"settings.tabs.feed_users\" [label]=\"settings.tabs.feed_users\">\n <ng-container *ngIf=\"canShow == 2\">\n <asap-feed-beta [settings]=\"settings\"></asap-feed-beta>\n </ng-container>\n </mat-tab>\n </ng-template>\n </mat-tab-group>\n </div>\n ",
|
|
1167
1184
|
styles: [""]
|
|
1168
1185
|
}] }
|
|
1169
1186
|
];
|
|
@@ -1173,14 +1190,14 @@
|
|
|
1173
1190
|
{ type: AsapFeedBetaService }
|
|
1174
1191
|
]; };
|
|
1175
1192
|
AsapTabFeedComponent.propDecorators = {
|
|
1176
|
-
|
|
1193
|
+
feeds: [{ type: core.ViewChildren, args: [AsapFeedBetaComponent,] }],
|
|
1177
1194
|
settings: [{ type: core.Input }]
|
|
1178
1195
|
};
|
|
1179
1196
|
return AsapTabFeedComponent;
|
|
1180
1197
|
}());
|
|
1181
1198
|
if (false) {
|
|
1182
1199
|
/** @type {?} */
|
|
1183
|
-
AsapTabFeedComponent.prototype.
|
|
1200
|
+
AsapTabFeedComponent.prototype.feeds;
|
|
1184
1201
|
/** @type {?} */
|
|
1185
1202
|
AsapTabFeedComponent.prototype.settings;
|
|
1186
1203
|
/** @type {?} */
|
|
@@ -2591,8 +2608,8 @@
|
|
|
2591
2608
|
function () {
|
|
2592
2609
|
var _this = this;
|
|
2593
2610
|
this.loadVisibilityControls();
|
|
2611
|
+
this.item.linkifiedTitle = this.sanitizedLinkify(this.item.title);
|
|
2594
2612
|
if (this.item.files && this.item.files.length > 0) {
|
|
2595
|
-
this.item.linkifiedTitle = this.sanitizedLinkify(this.item.title);
|
|
2596
2613
|
this.item.files.map((/**
|
|
2597
2614
|
* @param {?} feed
|
|
2598
2615
|
* @return {?}
|
|
@@ -7200,7 +7217,6 @@
|
|
|
7200
7217
|
* Generated from: lib/asap-feed-beta.module.ts
|
|
7201
7218
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7202
7219
|
*/
|
|
7203
|
-
// import { NgAisModule } from 'angular-instantsearch';
|
|
7204
7220
|
var AsapFeedBetaModule = /** @class */ (function () {
|
|
7205
7221
|
function AsapFeedBetaModule(global) {
|
|
7206
7222
|
var _this = this;
|