@posiwise/shared-components 0.0.233 → 0.0.234
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.
|
@@ -18,21 +18,21 @@ import { FieldErrorDisplayModule, ProfileImageCropperModule, ResourceHeaderModul
|
|
|
18
18
|
import * as i2 from "ngx-daterangepicker-material";
|
|
19
19
|
import { DaterangepickerDirective, NgxDaterangepickerMd } from "ngx-daterangepicker-material";
|
|
20
20
|
import { ImageCropperComponent } from "ngx-image-cropper";
|
|
21
|
-
import * as
|
|
21
|
+
import * as i7$1 from "ngx-ui-switch";
|
|
22
22
|
import { UiSwitchModule } from "ngx-ui-switch";
|
|
23
23
|
import * as i9 from "primeng/autocomplete";
|
|
24
24
|
import { AutoCompleteModule } from "primeng/autocomplete";
|
|
25
25
|
import { ButtonModule } from "primeng/button";
|
|
26
|
-
import * as i5
|
|
26
|
+
import * as i5 from "primeng/iconfield";
|
|
27
27
|
import { IconFieldModule } from "primeng/iconfield";
|
|
28
|
-
import * as i6$
|
|
28
|
+
import * as i6$1 from "primeng/inputicon";
|
|
29
29
|
import { InputIconModule } from "primeng/inputicon";
|
|
30
|
-
import * as i7 from "primeng/inputtext";
|
|
30
|
+
import * as i7$2 from "primeng/inputtext";
|
|
31
31
|
import { InputTextModule } from "primeng/inputtext";
|
|
32
32
|
import { MultiSelectModule } from "primeng/multiselect";
|
|
33
|
-
import * as
|
|
33
|
+
import * as i6 from "primeng/progressspinner";
|
|
34
34
|
import { ProgressSpinnerModule } from "primeng/progressspinner";
|
|
35
|
-
import * as
|
|
35
|
+
import * as i7 from "primeng/select";
|
|
36
36
|
import { SelectModule } from "primeng/select";
|
|
37
37
|
import * as i11 from "primeng/table";
|
|
38
38
|
import { TableModule } from "primeng/table";
|
|
@@ -594,19 +594,19 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
596
|
kind: "component",
|
|
597
|
-
type: i5
|
|
597
|
+
type: i5.IconField,
|
|
598
598
|
selector: "p-iconfield, p-icon-field",
|
|
599
599
|
inputs: ["hostName", "iconPosition"]
|
|
600
600
|
},
|
|
601
601
|
{
|
|
602
602
|
kind: "component",
|
|
603
|
-
type: i6$
|
|
603
|
+
type: i6$1.InputIcon,
|
|
604
604
|
selector: "p-inputicon",
|
|
605
605
|
inputs: ["hostName"]
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
608
|
kind: "directive",
|
|
609
|
-
type: i7.InputText,
|
|
609
|
+
type: i7$2.InputText,
|
|
610
610
|
selector: "[pInputText]",
|
|
611
611
|
inputs: [
|
|
612
612
|
"hostName",
|
|
@@ -5822,6 +5822,60 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5822
5822
|
args: ["content", { static: true }]
|
|
5823
5823
|
}] }
|
|
5824
5824
|
});
|
|
5825
|
+
var PwStickyActionsComponent = class PwStickyActionsComponent {
|
|
5826
|
+
constructor() {
|
|
5827
|
+
this.el = inject(ElementRef);
|
|
5828
|
+
this.destroyRef = inject(DestroyRef);
|
|
5829
|
+
this.floating = signal(false, ...ngDevMode ? [{ debugName: "floating" }] : /* istanbul ignore next */ []);
|
|
5830
|
+
}
|
|
5831
|
+
ngAfterViewInit() {
|
|
5832
|
+
if (typeof IntersectionObserver === "undefined") return;
|
|
5833
|
+
const observer = new IntersectionObserver(([entry]) => this.floating.set(entry.intersectionRatio < 1 && entry.boundingClientRect.bottom > (entry.rootBounds?.bottom ?? innerHeight)), { threshold: [1] });
|
|
5834
|
+
observer.observe(this.el.nativeElement);
|
|
5835
|
+
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
5836
|
+
}
|
|
5837
|
+
static {
|
|
5838
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
5839
|
+
minVersion: "12.0.0",
|
|
5840
|
+
version: "22.2.3",
|
|
5841
|
+
ngImport: i0,
|
|
5842
|
+
type: PwStickyActionsComponent,
|
|
5843
|
+
deps: [],
|
|
5844
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
5845
|
+
});
|
|
5846
|
+
}
|
|
5847
|
+
static {
|
|
5848
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
5849
|
+
minVersion: "14.0.0",
|
|
5850
|
+
version: "22.2.3",
|
|
5851
|
+
type: PwStickyActionsComponent,
|
|
5852
|
+
isStandalone: true,
|
|
5853
|
+
selector: "pw-sticky-actions",
|
|
5854
|
+
host: { properties: { "class.is-floating": "floating()" } },
|
|
5855
|
+
ngImport: i0,
|
|
5856
|
+
template: "<div class=\"pw-sticky-actions\">\n <ng-content />\n</div>\n",
|
|
5857
|
+
styles: [":host{position:sticky;bottom:-1px;z-index:5;display:block;margin-top:1.5rem}.pw-sticky-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem 0;padding:.75rem 0}:host(.is-floating) .pw-sticky-actions{border-top:1px solid var(--pw-hairline, #e2e5ea);background-color:var(--dashboard_bg)}\n"],
|
|
5858
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5859
|
+
});
|
|
5860
|
+
}
|
|
5861
|
+
};
|
|
5862
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
5863
|
+
minVersion: "12.0.0",
|
|
5864
|
+
version: "22.2.3",
|
|
5865
|
+
ngImport: i0,
|
|
5866
|
+
type: PwStickyActionsComponent,
|
|
5867
|
+
decorators: [{
|
|
5868
|
+
type: Component,
|
|
5869
|
+
args: [{
|
|
5870
|
+
selector: "pw-sticky-actions",
|
|
5871
|
+
standalone: true,
|
|
5872
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5873
|
+
host: { "[class.is-floating]": "floating()" },
|
|
5874
|
+
template: "<div class=\"pw-sticky-actions\">\n <ng-content />\n</div>\n",
|
|
5875
|
+
styles: [":host{position:sticky;bottom:-1px;z-index:5;display:block;margin-top:1.5rem}.pw-sticky-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem 0;padding:.75rem 0}:host(.is-floating) .pw-sticky-actions{border-top:1px solid var(--pw-hairline, #e2e5ea);background-color:var(--dashboard_bg)}\n"]
|
|
5876
|
+
}]
|
|
5877
|
+
}]
|
|
5878
|
+
});
|
|
5825
5879
|
var InputContainerComponent = class InputContainerComponent {
|
|
5826
5880
|
constructor(controlContainer) {
|
|
5827
5881
|
this.controlContainer = controlContainer;
|
|
@@ -6161,9 +6215,14 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6161
6215
|
selector: "pw-group-definition",
|
|
6162
6216
|
usesInheritance: true,
|
|
6163
6217
|
ngImport: i0,
|
|
6164
|
-
template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <
|
|
6218
|
+
template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n",
|
|
6165
6219
|
styles: [".mb-last-3{margin-bottom:3rem}\n"],
|
|
6166
6220
|
dependencies: [
|
|
6221
|
+
{
|
|
6222
|
+
kind: "component",
|
|
6223
|
+
type: PwStickyActionsComponent,
|
|
6224
|
+
selector: "pw-sticky-actions"
|
|
6225
|
+
},
|
|
6167
6226
|
{
|
|
6168
6227
|
kind: "directive",
|
|
6169
6228
|
type: i4$1.ɵNgNoValidate,
|
|
@@ -6211,7 +6270,7 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6211
6270
|
},
|
|
6212
6271
|
{
|
|
6213
6272
|
kind: "component",
|
|
6214
|
-
type:
|
|
6273
|
+
type: i6.ProgressSpinner,
|
|
6215
6274
|
selector: "p-progress-spinner, p-progressspinner",
|
|
6216
6275
|
inputs: [
|
|
6217
6276
|
"value",
|
|
@@ -6225,7 +6284,7 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6225
6284
|
},
|
|
6226
6285
|
{
|
|
6227
6286
|
kind: "component",
|
|
6228
|
-
type:
|
|
6287
|
+
type: i7$1.UiSwitchComponent,
|
|
6229
6288
|
selector: "ui-switch",
|
|
6230
6289
|
inputs: [
|
|
6231
6290
|
"size",
|
|
@@ -6314,7 +6373,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6314
6373
|
args: [{
|
|
6315
6374
|
selector: "pw-group-definition",
|
|
6316
6375
|
standalone: false,
|
|
6317
|
-
template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <
|
|
6376
|
+
template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n",
|
|
6318
6377
|
styles: [".mb-last-3{margin-bottom:3rem}\n"]
|
|
6319
6378
|
}]
|
|
6320
6379
|
}],
|
|
@@ -6549,9 +6608,14 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6549
6608
|
selector: "pw-groups",
|
|
6550
6609
|
usesInheritance: true,
|
|
6551
6610
|
ngImport: i0,
|
|
6552
|
-
template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select class=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n",
|
|
6611
|
+
template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select class=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n",
|
|
6553
6612
|
styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"],
|
|
6554
6613
|
dependencies: [
|
|
6614
|
+
{
|
|
6615
|
+
kind: "component",
|
|
6616
|
+
type: PwStickyActionsComponent,
|
|
6617
|
+
selector: "pw-sticky-actions"
|
|
6618
|
+
},
|
|
6555
6619
|
{
|
|
6556
6620
|
kind: "directive",
|
|
6557
6621
|
type: i4$1.ɵNgNoValidate,
|
|
@@ -6637,7 +6701,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6637
6701
|
},
|
|
6638
6702
|
{
|
|
6639
6703
|
kind: "component",
|
|
6640
|
-
type:
|
|
6704
|
+
type: i7.Select,
|
|
6641
6705
|
selector: "p-select",
|
|
6642
6706
|
inputs: [
|
|
6643
6707
|
"id",
|
|
@@ -6707,7 +6771,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6707
6771
|
},
|
|
6708
6772
|
{
|
|
6709
6773
|
kind: "component",
|
|
6710
|
-
type:
|
|
6774
|
+
type: i6.ProgressSpinner,
|
|
6711
6775
|
selector: "p-progress-spinner, p-progressspinner",
|
|
6712
6776
|
inputs: [
|
|
6713
6777
|
"value",
|
|
@@ -6788,7 +6852,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6788
6852
|
args: [{
|
|
6789
6853
|
selector: "pw-groups",
|
|
6790
6854
|
standalone: false,
|
|
6791
|
-
template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select class=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n",
|
|
6855
|
+
template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </pw-sticky-actions>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select class=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n",
|
|
6792
6856
|
styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"]
|
|
6793
6857
|
}]
|
|
6794
6858
|
}],
|
|
@@ -8924,6 +8988,7 @@ var SharedComponentsModule = class SharedComponentsModule {
|
|
|
8924
8988
|
ChartBlockComponent
|
|
8925
8989
|
],
|
|
8926
8990
|
imports: [
|
|
8991
|
+
PwStickyActionsComponent,
|
|
8927
8992
|
FormsModule,
|
|
8928
8993
|
IconFieldModule,
|
|
8929
8994
|
InputIconModule,
|
|
@@ -9084,6 +9149,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9084
9149
|
ChartBlockComponent
|
|
9085
9150
|
],
|
|
9086
9151
|
imports: [
|
|
9152
|
+
PwStickyActionsComponent,
|
|
9087
9153
|
FormsModule,
|
|
9088
9154
|
IconFieldModule,
|
|
9089
9155
|
InputIconModule,
|
|
@@ -9449,60 +9515,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9449
9515
|
}]
|
|
9450
9516
|
}
|
|
9451
9517
|
});
|
|
9452
|
-
var PwStickyActionsComponent = class PwStickyActionsComponent {
|
|
9453
|
-
constructor() {
|
|
9454
|
-
this.el = inject(ElementRef);
|
|
9455
|
-
this.destroyRef = inject(DestroyRef);
|
|
9456
|
-
this.floating = signal(false, ...ngDevMode ? [{ debugName: "floating" }] : /* istanbul ignore next */ []);
|
|
9457
|
-
}
|
|
9458
|
-
ngAfterViewInit() {
|
|
9459
|
-
if (typeof IntersectionObserver === "undefined") return;
|
|
9460
|
-
const observer = new IntersectionObserver(([entry]) => this.floating.set(entry.intersectionRatio < 1 && entry.boundingClientRect.bottom > (entry.rootBounds?.bottom ?? innerHeight)), { threshold: [1] });
|
|
9461
|
-
observer.observe(this.el.nativeElement);
|
|
9462
|
-
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
9463
|
-
}
|
|
9464
|
-
static {
|
|
9465
|
-
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
9466
|
-
minVersion: "12.0.0",
|
|
9467
|
-
version: "22.2.3",
|
|
9468
|
-
ngImport: i0,
|
|
9469
|
-
type: PwStickyActionsComponent,
|
|
9470
|
-
deps: [],
|
|
9471
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
9472
|
-
});
|
|
9473
|
-
}
|
|
9474
|
-
static {
|
|
9475
|
-
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9476
|
-
minVersion: "14.0.0",
|
|
9477
|
-
version: "22.2.3",
|
|
9478
|
-
type: PwStickyActionsComponent,
|
|
9479
|
-
isStandalone: true,
|
|
9480
|
-
selector: "pw-sticky-actions",
|
|
9481
|
-
host: { properties: { "class.is-floating": "floating()" } },
|
|
9482
|
-
ngImport: i0,
|
|
9483
|
-
template: "<div class=\"pw-sticky-actions\">\n <ng-content />\n</div>\n",
|
|
9484
|
-
styles: [":host{position:sticky;bottom:-1px;z-index:5;display:block;margin-top:1.5rem}.pw-sticky-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem 0;padding:.75rem 0}:host(.is-floating) .pw-sticky-actions{border-top:1px solid var(--pw-hairline, #e2e5ea);background-color:var(--dashboard_bg)}\n"],
|
|
9485
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
9486
|
-
});
|
|
9487
|
-
}
|
|
9488
|
-
};
|
|
9489
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
9490
|
-
minVersion: "12.0.0",
|
|
9491
|
-
version: "22.2.3",
|
|
9492
|
-
ngImport: i0,
|
|
9493
|
-
type: PwStickyActionsComponent,
|
|
9494
|
-
decorators: [{
|
|
9495
|
-
type: Component,
|
|
9496
|
-
args: [{
|
|
9497
|
-
selector: "pw-sticky-actions",
|
|
9498
|
-
standalone: true,
|
|
9499
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9500
|
-
host: { "[class.is-floating]": "floating()" },
|
|
9501
|
-
template: "<div class=\"pw-sticky-actions\">\n <ng-content />\n</div>\n",
|
|
9502
|
-
styles: [":host{position:sticky;bottom:-1px;z-index:5;display:block;margin-top:1.5rem}.pw-sticky-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem 0;padding:.75rem 0}:host(.is-floating) .pw-sticky-actions{border-top:1px solid var(--pw-hairline, #e2e5ea);background-color:var(--dashboard_bg)}\n"]
|
|
9503
|
-
}]
|
|
9504
|
-
}]
|
|
9505
|
-
});
|
|
9506
9518
|
export { AiKnowledgeComponent, AuthenticatorComponent, BRAIN_CHAT_PRODUCT_PROMPTS, BRAIN_CHAT_UPLOAD_APIS, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, OnboardingChecklistComponent, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwEditCardComponent, PwNoticeComponent, PwStickyActionsComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, UI_BUILDER_FLAG, UiLayoutService, dashboardLegalPageRoutes, hasOpenMandatorySteps, publicLegalPageRoutes, registeredType, registeredTypeNames, visibleProductPrompts };
|
|
9507
9519
|
|
|
9508
9520
|
//# sourceMappingURL=posiwise-shared-components.mjs.map
|