@posiwise/shared-components 0.0.225 → 0.0.226
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 i1$3 from "@angular/common";
|
|
2
2
|
import { CommonModule, DOCUMENT, NgIf } from "@angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DOCUMENT as DOCUMENT$1, DestroyRef, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, booleanAttribute, inject, isDevMode } from "@angular/core";
|
|
4
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DOCUMENT as DOCUMENT$1, DestroyRef, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, ViewEncapsulation, booleanAttribute, computed, inject, input, isDevMode } from "@angular/core";
|
|
5
5
|
import * as i4$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
|
|
7
7
|
import * as i9$1 from "@angular/router";
|
|
@@ -9229,6 +9229,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9229
9229
|
}]
|
|
9230
9230
|
}]
|
|
9231
9231
|
});
|
|
9232
|
+
function hasOpenMandatorySteps(status) {
|
|
9233
|
+
const progress = status?.progress;
|
|
9234
|
+
return status?.status === "ok" && !!progress?.total && progress.done < progress.total;
|
|
9235
|
+
}
|
|
9232
9236
|
var CollapsibleSidebarSuperAdminGuard = class CollapsibleSidebarSuperAdminGuard {
|
|
9233
9237
|
constructor(userService, permissionService) {
|
|
9234
9238
|
this.userService = userService;
|
|
@@ -9312,6 +9316,188 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9312
9316
|
}],
|
|
9313
9317
|
ctorParameters: () => [{ type: i1$2.MainApiHttpService }]
|
|
9314
9318
|
});
|
|
9315
|
-
|
|
9319
|
+
const ICONS = {
|
|
9320
|
+
warning: "fa-triangle-exclamation",
|
|
9321
|
+
error: "fa-circle-exclamation",
|
|
9322
|
+
info: "fa-circle-info"
|
|
9323
|
+
};
|
|
9324
|
+
var PwNoticeComponent = class PwNoticeComponent {
|
|
9325
|
+
constructor() {
|
|
9326
|
+
this.tone = input("warning", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
9327
|
+
this.heading = input(null, ...ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []);
|
|
9328
|
+
this.icon = computed(() => ICONS[this.tone()], ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
9329
|
+
}
|
|
9330
|
+
static {
|
|
9331
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
9332
|
+
minVersion: "12.0.0",
|
|
9333
|
+
version: "22.2.0",
|
|
9334
|
+
ngImport: i0,
|
|
9335
|
+
type: PwNoticeComponent,
|
|
9336
|
+
deps: [],
|
|
9337
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
9338
|
+
});
|
|
9339
|
+
}
|
|
9340
|
+
static {
|
|
9341
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9342
|
+
minVersion: "17.0.0",
|
|
9343
|
+
version: "22.2.0",
|
|
9344
|
+
type: PwNoticeComponent,
|
|
9345
|
+
isStandalone: true,
|
|
9346
|
+
selector: "pw-notice",
|
|
9347
|
+
inputs: {
|
|
9348
|
+
tone: {
|
|
9349
|
+
classPropertyName: "tone",
|
|
9350
|
+
publicName: "tone",
|
|
9351
|
+
isSignal: true,
|
|
9352
|
+
isRequired: false,
|
|
9353
|
+
transformFunction: null
|
|
9354
|
+
},
|
|
9355
|
+
heading: {
|
|
9356
|
+
classPropertyName: "heading",
|
|
9357
|
+
publicName: "heading",
|
|
9358
|
+
isSignal: true,
|
|
9359
|
+
isRequired: false,
|
|
9360
|
+
transformFunction: null
|
|
9361
|
+
}
|
|
9362
|
+
},
|
|
9363
|
+
host: {
|
|
9364
|
+
properties: {
|
|
9365
|
+
"class.pw-notice--warning": "tone() === 'warning'",
|
|
9366
|
+
"class.pw-notice--error": "tone() === 'error'",
|
|
9367
|
+
"class.pw-notice--info": "tone() === 'info'",
|
|
9368
|
+
"attr.role": "tone() === 'error' ? 'alert' : 'status'"
|
|
9369
|
+
},
|
|
9370
|
+
classAttribute: "pw-notice"
|
|
9371
|
+
},
|
|
9372
|
+
ngImport: i0,
|
|
9373
|
+
template: "<i class=\"fas pw-notice__icon\"\n [class]=\"icon()\"\n aria-hidden=\"true\"></i>\n<div class=\"pw-notice__body\">\n @if (heading()) {\n <div class=\"pw-notice__heading\">{{ heading() }}</div>\n }\n <div class=\"pw-notice__text\">\n <ng-content />\n </div>\n</div>\n",
|
|
9374
|
+
styles: [".pw-notice{--pw-notice-accent: var(--pw-notice-warning, #b7791f);display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:10px 14px;border:1px solid color-mix(in srgb,var(--pw-notice-accent) 32%,transparent);border-radius:8px;background:color-mix(in srgb,var(--pw-notice-accent) 7%,transparent);color:#3d4654;font-size:13px;line-height:1.5;text-align:start}.pw-notice--error{--pw-notice-accent: var(--pw-notice-error, #c0392b)}.pw-notice--info{--pw-notice-accent: var(--pw-notice-info, #5a6473);border-color:#e2e5ea;background:#fff}.pw-notice__icon{flex:none;color:var(--pw-notice-accent);font-size:14px;line-height:19.5px}.pw-notice__body{flex:1;min-width:0}.pw-notice__heading{margin-bottom:2px;color:#1a1d21;font-weight:600}.pw-notice__text{white-space:pre-line;overflow-wrap:anywhere}.pw-notice__list{margin:4px 0 0;padding-left:18px;white-space:normal}\n"],
|
|
9375
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
9376
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9377
|
+
});
|
|
9378
|
+
}
|
|
9379
|
+
};
|
|
9380
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
9381
|
+
minVersion: "12.0.0",
|
|
9382
|
+
version: "22.2.0",
|
|
9383
|
+
ngImport: i0,
|
|
9384
|
+
type: PwNoticeComponent,
|
|
9385
|
+
decorators: [{
|
|
9386
|
+
type: Component,
|
|
9387
|
+
args: [{
|
|
9388
|
+
selector: "pw-notice",
|
|
9389
|
+
standalone: true,
|
|
9390
|
+
encapsulation: ViewEncapsulation.None,
|
|
9391
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9392
|
+
host: {
|
|
9393
|
+
class: "pw-notice",
|
|
9394
|
+
"[class.pw-notice--warning]": "tone() === 'warning'",
|
|
9395
|
+
"[class.pw-notice--error]": "tone() === 'error'",
|
|
9396
|
+
"[class.pw-notice--info]": "tone() === 'info'",
|
|
9397
|
+
"[attr.role]": "tone() === 'error' ? 'alert' : 'status'"
|
|
9398
|
+
},
|
|
9399
|
+
template: "<i class=\"fas pw-notice__icon\"\n [class]=\"icon()\"\n aria-hidden=\"true\"></i>\n<div class=\"pw-notice__body\">\n @if (heading()) {\n <div class=\"pw-notice__heading\">{{ heading() }}</div>\n }\n <div class=\"pw-notice__text\">\n <ng-content />\n </div>\n</div>\n",
|
|
9400
|
+
styles: [".pw-notice{--pw-notice-accent: var(--pw-notice-warning, #b7791f);display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:10px 14px;border:1px solid color-mix(in srgb,var(--pw-notice-accent) 32%,transparent);border-radius:8px;background:color-mix(in srgb,var(--pw-notice-accent) 7%,transparent);color:#3d4654;font-size:13px;line-height:1.5;text-align:start}.pw-notice--error{--pw-notice-accent: var(--pw-notice-error, #c0392b)}.pw-notice--info{--pw-notice-accent: var(--pw-notice-info, #5a6473);border-color:#e2e5ea;background:#fff}.pw-notice__icon{flex:none;color:var(--pw-notice-accent);font-size:14px;line-height:19.5px}.pw-notice__body{flex:1;min-width:0}.pw-notice__heading{margin-bottom:2px;color:#1a1d21;font-weight:600}.pw-notice__text{white-space:pre-line;overflow-wrap:anywhere}.pw-notice__list{margin:4px 0 0;padding-left:18px;white-space:normal}\n"]
|
|
9401
|
+
}]
|
|
9402
|
+
}],
|
|
9403
|
+
propDecorators: {
|
|
9404
|
+
tone: [{
|
|
9405
|
+
type: i0.Input,
|
|
9406
|
+
args: [{
|
|
9407
|
+
isSignal: true,
|
|
9408
|
+
alias: "tone",
|
|
9409
|
+
required: false
|
|
9410
|
+
}]
|
|
9411
|
+
}],
|
|
9412
|
+
heading: [{
|
|
9413
|
+
type: i0.Input,
|
|
9414
|
+
args: [{
|
|
9415
|
+
isSignal: true,
|
|
9416
|
+
alias: "heading",
|
|
9417
|
+
required: false
|
|
9418
|
+
}]
|
|
9419
|
+
}]
|
|
9420
|
+
}
|
|
9421
|
+
});
|
|
9422
|
+
var PwEditCardComponent = class PwEditCardComponent {
|
|
9423
|
+
constructor() {
|
|
9424
|
+
this.icon = input.required(...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
9425
|
+
this.title = input.required(...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
9426
|
+
}
|
|
9427
|
+
static {
|
|
9428
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
9429
|
+
minVersion: "12.0.0",
|
|
9430
|
+
version: "22.2.0",
|
|
9431
|
+
ngImport: i0,
|
|
9432
|
+
type: PwEditCardComponent,
|
|
9433
|
+
deps: [],
|
|
9434
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
9435
|
+
});
|
|
9436
|
+
}
|
|
9437
|
+
static {
|
|
9438
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
9439
|
+
minVersion: "17.1.0",
|
|
9440
|
+
version: "22.2.0",
|
|
9441
|
+
type: PwEditCardComponent,
|
|
9442
|
+
isStandalone: true,
|
|
9443
|
+
selector: "pw-edit-card",
|
|
9444
|
+
inputs: {
|
|
9445
|
+
icon: {
|
|
9446
|
+
classPropertyName: "icon",
|
|
9447
|
+
publicName: "icon",
|
|
9448
|
+
isSignal: true,
|
|
9449
|
+
isRequired: true,
|
|
9450
|
+
transformFunction: null
|
|
9451
|
+
},
|
|
9452
|
+
title: {
|
|
9453
|
+
classPropertyName: "title",
|
|
9454
|
+
publicName: "title",
|
|
9455
|
+
isSignal: true,
|
|
9456
|
+
isRequired: true,
|
|
9457
|
+
transformFunction: null
|
|
9458
|
+
}
|
|
9459
|
+
},
|
|
9460
|
+
ngImport: i0,
|
|
9461
|
+
template: "<div class=\"card pw-edit-card\">\n <div class=\"card-body\">\n <div class=\"pw-edit-card__head\">\n <span class=\"pw-edit-card__icon\"\n aria-hidden=\"true\"><i class=\"fa-regular {{ icon() }}\"></i></span>\n <h3>{{ title() }}</h3>\n </div>\n <ng-content />\n </div>\n</div>\n",
|
|
9462
|
+
styles: [".pw-edit-card{margin-bottom:1rem;padding-bottom:0;border:1px solid #e2e5ea;border-radius:.5rem;box-shadow:none}.pw-edit-card>.card-body{padding:16px 24px}.pw-edit-card__head{display:flex;align-items:baseline;gap:.75rem}.pw-edit-card__icon{display:inline-grid;flex-shrink:0;place-items:center;width:2.25rem;height:2.25rem;border-radius:.5rem;background-color:color-mix(in srgb,var(--first) 12%,transparent);color:var(--first);font-size:1rem}\n"],
|
|
9463
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
9464
|
+
});
|
|
9465
|
+
}
|
|
9466
|
+
};
|
|
9467
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
9468
|
+
minVersion: "12.0.0",
|
|
9469
|
+
version: "22.2.0",
|
|
9470
|
+
ngImport: i0,
|
|
9471
|
+
type: PwEditCardComponent,
|
|
9472
|
+
decorators: [{
|
|
9473
|
+
type: Component,
|
|
9474
|
+
args: [{
|
|
9475
|
+
selector: "pw-edit-card",
|
|
9476
|
+
standalone: true,
|
|
9477
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9478
|
+
template: "<div class=\"card pw-edit-card\">\n <div class=\"card-body\">\n <div class=\"pw-edit-card__head\">\n <span class=\"pw-edit-card__icon\"\n aria-hidden=\"true\"><i class=\"fa-regular {{ icon() }}\"></i></span>\n <h3>{{ title() }}</h3>\n </div>\n <ng-content />\n </div>\n</div>\n",
|
|
9479
|
+
styles: [".pw-edit-card{margin-bottom:1rem;padding-bottom:0;border:1px solid #e2e5ea;border-radius:.5rem;box-shadow:none}.pw-edit-card>.card-body{padding:16px 24px}.pw-edit-card__head{display:flex;align-items:baseline;gap:.75rem}.pw-edit-card__icon{display:inline-grid;flex-shrink:0;place-items:center;width:2.25rem;height:2.25rem;border-radius:.5rem;background-color:color-mix(in srgb,var(--first) 12%,transparent);color:var(--first);font-size:1rem}\n"]
|
|
9480
|
+
}]
|
|
9481
|
+
}],
|
|
9482
|
+
propDecorators: {
|
|
9483
|
+
icon: [{
|
|
9484
|
+
type: i0.Input,
|
|
9485
|
+
args: [{
|
|
9486
|
+
isSignal: true,
|
|
9487
|
+
alias: "icon",
|
|
9488
|
+
required: true
|
|
9489
|
+
}]
|
|
9490
|
+
}],
|
|
9491
|
+
title: [{
|
|
9492
|
+
type: i0.Input,
|
|
9493
|
+
args: [{
|
|
9494
|
+
isSignal: true,
|
|
9495
|
+
alias: "title",
|
|
9496
|
+
required: true
|
|
9497
|
+
}]
|
|
9498
|
+
}]
|
|
9499
|
+
}
|
|
9500
|
+
});
|
|
9501
|
+
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, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwEditCardComponent, PwNoticeComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, hasOpenMandatorySteps, registeredType, registeredTypeNames, visibleProductPrompts };
|
|
9316
9502
|
|
|
9317
9503
|
//# sourceMappingURL=posiwise-shared-components.mjs.map
|