@posiwise/dashboard-module 0.0.36 → 0.0.38

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.
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Component, NgModule, Input, ViewChild, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
4
+ import { Component, Input, ViewChild, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
5
5
  import * as i3 from '@angular/forms';
6
6
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
7
  import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
@@ -12,18 +12,17 @@ import * as i3$1 from 'primeng/progressspinner';
12
12
  import { ProgressSpinnerModule } from 'primeng/progressspinner';
13
13
  import * as i8 from '@posiwise/directives';
14
14
  import { DirectivesModule } from '@posiwise/directives';
15
- import * as i1$1 from '@angular/router';
16
- import { RouterModule, NavigationEnd } from '@angular/router';
17
15
  import groupBy from 'lodash/groupBy';
18
16
  import { AppBaseComponent } from '@posiwise/app-base-component';
19
17
  import * as i1 from '@posiwise/common-services';
20
18
  import { PermissionService, SubscriptionService } from '@posiwise/common-services';
21
19
  import sortBy from 'lodash/sortBy';
22
20
  import * as i4 from '@posiwise/shared-components';
23
- import { PrivacyAndTosComponent, SharedComponentsModule } from '@posiwise/shared-components';
21
+ import { SharedComponentsModule } from '@posiwise/shared-components';
24
22
  import * as i4$1 from '@posiwise/pipes';
25
23
  import { PipesModule } from '@posiwise/pipes';
26
- import { UserProfilePageComponent, UserModuleModule } from '@posiwise/user-module';
24
+ import * as i1$1 from '@angular/router';
25
+ import { NavigationEnd } from '@angular/router';
27
26
  import moment from 'moment';
28
27
  import * as i5 from '@ngneat/transloco';
29
28
  import * as i3$2 from '@ngrx/store';
@@ -32,6 +31,7 @@ import { orderBy } from 'lodash';
32
31
  import * as i6 from 'primeng/tooltip';
33
32
  import { HelperService } from '@posiwise/helper-service';
34
33
  import { Subject, takeUntil, filter } from 'rxjs';
34
+ import { UserModuleModule } from '@posiwise/user-module';
35
35
  import { CoreTranslocoModule } from '@posiwise/core-transloco';
36
36
 
37
37
  class CustomizerComponent {
@@ -144,56 +144,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
144
144
  args: [{ selector: 'pw-faq', template: "<div class=\"container-fluid overflow-hidden\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <button *ngIf=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <!-- Non Product FAQ -->\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <!-- Product based FAQ -->\n <div *ngFor=\"let product of objectKeys(productFaq); let idx2 = index\">\n <ng-container *ngIf=\"productFaq[product]?.length\">\n <h6 class=\"text-uppercase p-1\">{{ product }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of productFaq[product];\n let idx = index;\n trackBy: trackByNonProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle\"\n data-bs-toggle=\"collapse\"\n [href]=\"'#collapse1' + idx + idx2\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse1' + idx + idx2\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer |safe:'html'\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"totalRecords === 0 || allFaqFalse\">\n <pw-no-data message=\"No faqs present\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:rgb(255,255,255)}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}.ql-container{resize:none!important}\n"] }]
145
145
  }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }]; } });
146
146
 
147
- const SIDEBAR_MENU = [
148
- {
149
- path: ':slug/faq',
150
- component: FaqComponent,
151
- data: {
152
- title: 'FAQ Page'
153
- }
154
- }
155
- ];
156
- const ACCOUNT_MENU = [
157
- {
158
- path: 'members/:user-slug',
159
- component: UserProfilePageComponent,
160
- data: {
161
- title: 'User Profile Page'
162
- },
163
- runGuardsAndResolvers: 'always'
164
- }
165
- ];
166
- const routes = [
167
- {
168
- path: '',
169
- children: [
170
- // Sidebar
171
- ...SIDEBAR_MENU,
172
- // Account
173
- ...ACCOUNT_MENU,
174
- {
175
- path: 'privacy-and-tos',
176
- component: PrivacyAndTosComponent,
177
- data: {
178
- title: 'Privacy Policy and Tos Page'
179
- }
180
- }
181
- ]
182
- }
183
- ];
184
- class DashboardRoutingModule {
185
- }
186
- DashboardRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
187
- DashboardRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
188
- DashboardRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardRoutingModule, decorators: [{
190
- type: NgModule,
191
- args: [{
192
- imports: [RouterModule.forChild(routes)],
193
- exports: [RouterModule]
194
- }]
195
- }] });
196
-
197
147
  class FooterComponent extends AppBaseComponent {
198
148
  constructor() {
199
149
  super(...arguments);
@@ -732,10 +682,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
732
682
  }], ctorParameters: function () { return [{ type: i1.CommonService }, { type: i0.Injector }]; } });
733
683
 
734
684
  // Core Angular modules
735
- class DashboardModule {
685
+ class DashboardLibModule {
736
686
  }
737
- DashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
738
- DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, declarations: [HomeComponent,
687
+ DashboardLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
688
+ DashboardLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, declarations: [HomeComponent,
739
689
  UserFeedbackComponent,
740
690
  NotificationsPageComponent,
741
691
  FooterComponent,
@@ -748,7 +698,6 @@ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
748
698
  DismissedNotificationsComponent,
749
699
  FaqDetailsComponent], imports: [CommonModule,
750
700
  SharedComponentsModule,
751
- DashboardRoutingModule,
752
701
  FormsModule,
753
702
  PipesModule,
754
703
  DirectivesModule,
@@ -759,9 +708,8 @@ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
759
708
  UserModuleModule,
760
709
  RadioButtonModule,
761
710
  ProgressSpinnerModule], exports: [FooterComponent, NavbarComponent, UserNotificationsComponent, CustomizerComponent] });
762
- DashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, providers: [SubscriptionService], imports: [CommonModule,
711
+ DashboardLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, providers: [SubscriptionService], imports: [CommonModule,
763
712
  SharedComponentsModule,
764
- DashboardRoutingModule,
765
713
  FormsModule,
766
714
  PipesModule,
767
715
  DirectivesModule,
@@ -772,13 +720,12 @@ DashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
772
720
  UserModuleModule,
773
721
  RadioButtonModule,
774
722
  ProgressSpinnerModule] });
775
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardModule, decorators: [{
723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DashboardLibModule, decorators: [{
776
724
  type: NgModule,
777
725
  args: [{
778
726
  imports: [
779
727
  CommonModule,
780
728
  SharedComponentsModule,
781
- DashboardRoutingModule,
782
729
  FormsModule,
783
730
  PipesModule,
784
731
  DirectivesModule,
@@ -1152,5 +1099,5 @@ const BLOG_MENU = {
1152
1099
  * Generated bundle index. Do not edit.
1153
1100
  */
1154
1101
 
1155
- export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, CustomizerComponent, DashboardModule, DismissedNotificationsComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
1102
+ export { BLOG_MENU, CHAT_MENU, CurrentNotificationsComponent, CustomizerComponent, DashboardLibModule, DismissedNotificationsComponent, ENTERPRISE_MENU, FAQ_Menu, FaqComponent, FaqDetailsComponent, FooterComponent, HomeComponent, NavbarComponent, NotificationsPageComponent, ROUTES, SearchComponent, UserFeedbackComponent, UserNotificationsComponent };
1156
1103
  //# sourceMappingURL=posiwise-dashboard-module.mjs.map