@posiwise/shared-components 0.0.160 → 0.0.161
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/package.json
CHANGED
|
@@ -18,25 +18,25 @@ import * as i24 from '@angular/router';
|
|
|
18
18
|
import { Router } from '@angular/router';
|
|
19
19
|
import { AppState } from '@posiwise/app-store';
|
|
20
20
|
import { Store } from '@ngrx/store';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i5 from '@angular/forms';
|
|
22
22
|
import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ControlContainer } from '@angular/forms';
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
23
|
+
import * as i6 from '@posiwise/app-loader';
|
|
24
|
+
import * as i8 from '@posiwise/directives';
|
|
25
|
+
import * as i7 from '@posiwise/core-transloco';
|
|
26
26
|
import * as i26 from 'primeng/table';
|
|
27
27
|
import * as i27 from 'primeng/tabs';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i9 from 'primeng/button';
|
|
29
29
|
import * as i29 from 'primeng/select';
|
|
30
30
|
import * as i30 from 'primeng/multiselect';
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
31
|
+
import * as i12 from 'primeng/progressspinner';
|
|
32
|
+
import * as i13 from 'primeng/autocomplete';
|
|
33
33
|
import * as i33 from 'ngx-image-cropper';
|
|
34
34
|
import * as i34 from 'ngx-ui-switch';
|
|
35
35
|
import * as i36 from '@posiwise/pipes';
|
|
36
36
|
import * as i37 from '@angular/common';
|
|
37
|
-
import * as
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
37
|
+
import * as i15 from '@posiwise/utils';
|
|
38
|
+
import * as i11 from 'primeng/tooltip';
|
|
39
|
+
import * as i14 from '@angular/cdk/drag-drop';
|
|
40
40
|
|
|
41
41
|
interface SharedModalContext {
|
|
42
42
|
modal: {
|
|
@@ -725,9 +725,47 @@ declare class InputContainerComponent implements OnInit {
|
|
|
725
725
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputContainerComponent, "pw-input-container", never, { "name": { "alias": "name"; "required": false; }; "controlId": { "alias": "controlId"; "required": false; }; "useAriaLabelledbyOnly": { "alias": "useAriaLabelledbyOnly"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorMsg": { "alias": "errorMsg"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "showTriangle": { "alias": "showTriangle"; "required": false; }; "afterLabel": { "alias": "afterLabel"; "required": false; }; "showAfterLabel": { "alias": "showAfterLabel"; "required": false; }; "showTriangleText": { "alias": "showTriangleText"; "required": false; }; "isLeftTooltip": { "alias": "isLeftTooltip"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
726
726
|
}
|
|
727
727
|
|
|
728
|
+
type CompletionTier = 'low' | 'mid' | 'high';
|
|
729
|
+
/**
|
|
730
|
+
* Generic, presentational segmented completion/progress bar.
|
|
731
|
+
*
|
|
732
|
+
* Renders a row of discrete segments; the first `round(value/100 * segments)`
|
|
733
|
+
* are filled. The fill colour shifts by tier (low/mid/high) using the shared
|
|
734
|
+
* semantic token maps — never the tenant accent (design-system: accent-agnostic).
|
|
735
|
+
* Reusable anywhere via `@posiwise/shared-components`.
|
|
736
|
+
*/
|
|
737
|
+
declare class CompletionBarComponent {
|
|
738
|
+
segments: number;
|
|
739
|
+
showLabel: boolean;
|
|
740
|
+
/** Optional label override; defaults to the rounded percentage. */
|
|
741
|
+
label: string | null;
|
|
742
|
+
/** Optional aria-label override; defaults to the visible label. */
|
|
743
|
+
ariaLabel: string | null;
|
|
744
|
+
/**
|
|
745
|
+
* Optional explanatory tooltip (e.g. "what's missing to reach 100%").
|
|
746
|
+
* Rendered as a body-level portal (C18); no tooltip when null/empty.
|
|
747
|
+
*/
|
|
748
|
+
tooltip: string | null;
|
|
749
|
+
/** `value` below this is the low tier. */
|
|
750
|
+
lowThreshold: number;
|
|
751
|
+
/** `value` at/above this is the high tier. */
|
|
752
|
+
highThreshold: number;
|
|
753
|
+
private internalValue;
|
|
754
|
+
/** Completion as a 0–100 percentage. Out-of-range inputs are clamped. */
|
|
755
|
+
set value(v: number);
|
|
756
|
+
get value(): number;
|
|
757
|
+
get clampedValue(): number;
|
|
758
|
+
get filledCount(): number;
|
|
759
|
+
get segmentIndexes(): number[];
|
|
760
|
+
get tier(): CompletionTier;
|
|
761
|
+
get displayLabel(): string;
|
|
762
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompletionBarComponent, never>;
|
|
763
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompletionBarComponent, "pw-completion-bar", never, { "segments": { "alias": "segments"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "lowThreshold": { "alias": "lowThreshold"; "required": false; }; "highThreshold": { "alias": "highThreshold"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
764
|
+
}
|
|
765
|
+
|
|
728
766
|
declare class ResourceSharedComponentsModule {
|
|
729
767
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
|
|
730
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent], [typeof i37.CommonModule, typeof
|
|
768
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent], [typeof i37.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.AppLoaderModule, typeof i7.CoreTranslocoModule, typeof i8.DirectivesModule, typeof i9.ButtonModule, typeof i25.NgbTooltipModule, typeof i11.TooltipModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i14.DragDropModule, typeof i15.FieldErrorDisplayModule, typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule], [typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof i9.ButtonModule, typeof i14.DragDropModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i11.TooltipModule, typeof i15.FieldErrorDisplayModule]>;
|
|
731
769
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
|
|
732
770
|
}
|
|
733
771
|
|
|
@@ -765,7 +803,7 @@ declare class CollapsibleSidebarTriggerDirective {
|
|
|
765
803
|
|
|
766
804
|
declare class SharedComponentsModule {
|
|
767
805
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
768
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent], [typeof
|
|
806
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent], [typeof i5.FormsModule, typeof i6.AppLoaderModule, typeof i5.ReactiveFormsModule, typeof i8.DirectivesModule, typeof i7.CoreTranslocoModule, typeof i24.RouterModule, typeof i25.NgbTooltipModule, typeof i25.NgbNavModule, typeof i25.NgbModalModule, typeof i26.TableModule, typeof i27.TabsModule, typeof i9.ButtonModule, typeof i29.SelectModule, typeof i30.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i33.ImageCropperModule, typeof i34.UiSwitchModule, typeof i35.NgxDaterangepickerMd, typeof i36.PipesModule, typeof i37.CommonModule, typeof i37.NgIf, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i25.NgbTooltipModule, typeof i25.NgbNavModule, typeof i25.NgbModalModule, typeof i26.TableModule, typeof i27.TabsModule, typeof i9.ButtonModule, typeof i29.SelectModule, typeof i30.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i33.ImageCropperModule, typeof i34.UiSwitchModule, typeof i35.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
769
807
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
770
808
|
}
|
|
771
809
|
|
|
@@ -808,5 +846,5 @@ declare class CollapsibleSidebarSuperAdminGuard {
|
|
|
808
846
|
static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarSuperAdminGuard>;
|
|
809
847
|
}
|
|
810
848
|
|
|
811
|
-
export { AuthenticatorComponent, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, DateRangePickerComponent, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwTabsComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent };
|
|
812
|
-
export type { SidebarContent };
|
|
849
|
+
export { AuthenticatorComponent, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, DateRangePickerComponent, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwTabsComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent };
|
|
850
|
+
export type { CompletionTier, SidebarContent };
|