@coreui/angular 5.7.26 → 5.7.28
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/fesm2022/coreui-angular.mjs +104 -63
- package/fesm2022/coreui-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/types/coreui-angular.d.ts +70 -53
|
@@ -118,7 +118,7 @@ class ThemeDirective {
|
|
|
118
118
|
#renderer = inject(Renderer2);
|
|
119
119
|
/**
|
|
120
120
|
* Sets the dark theme attribute on the host element.
|
|
121
|
-
* @returns 'dark' | 'light'
|
|
121
|
+
* @returns 'dark' | 'light'
|
|
122
122
|
*/
|
|
123
123
|
colorScheme = input(/* @ts-ignore */
|
|
124
124
|
...(ngDevMode ? [undefined, { debugName: "colorScheme" }] : /* istanbul ignore next */ []));
|
|
@@ -178,7 +178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
178
178
|
class AccordionButtonDirective {
|
|
179
179
|
/**
|
|
180
180
|
* Toggles an accordion button collapsed state. Use in accordionHeaderTemplate.
|
|
181
|
-
* @returns boolean
|
|
181
|
+
* @returns boolean | undefined
|
|
182
182
|
*/
|
|
183
183
|
collapsed = input(undefined, /* @ts-ignore */
|
|
184
184
|
...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
@@ -586,7 +586,7 @@ class ButtonDirective {
|
|
|
586
586
|
...(ngDevMode ? [undefined, { debugName: "shape" }] : /* istanbul ignore next */ []));
|
|
587
587
|
/**
|
|
588
588
|
* Size the component small or large.
|
|
589
|
-
* @returns '
|
|
589
|
+
* @returns '' | 'sm' | 'lg'
|
|
590
590
|
*/
|
|
591
591
|
size = input('', /* @ts-ignore */
|
|
592
592
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
@@ -743,8 +743,8 @@ class AlertComponent {
|
|
|
743
743
|
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
744
744
|
/**
|
|
745
745
|
* Set the alert variant to a solid.
|
|
746
|
-
* @returns
|
|
747
|
-
* @default
|
|
746
|
+
* @returns 'solid'
|
|
747
|
+
* @default undefined
|
|
748
748
|
*/
|
|
749
749
|
variant = input(/* @ts-ignore */
|
|
750
750
|
...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
@@ -876,7 +876,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
876
876
|
class AlignDirective {
|
|
877
877
|
/**
|
|
878
878
|
* Set vertical alignment of inline, inline-block, inline-table, and table cell elements
|
|
879
|
-
* @returns Alignment
|
|
879
|
+
* @returns Alignment | undefined
|
|
880
880
|
*/
|
|
881
881
|
align = input(undefined, { ...(ngDevMode ? { debugName: "align" } : /* istanbul ignore next */ {}), alias: 'cAlign' });
|
|
882
882
|
hostClasses = computed(() => {
|
|
@@ -1215,7 +1215,7 @@ class AvatarComponent {
|
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Size the component small, large, or extra large.
|
|
1217
1217
|
* @returns Omit<Sizes, 'xxl'>
|
|
1218
|
-
* @default '
|
|
1218
|
+
* @default ''
|
|
1219
1219
|
*/
|
|
1220
1220
|
size = input('', /* @ts-ignore */
|
|
1221
1221
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
@@ -1897,7 +1897,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
1897
1897
|
class CardImgDirective {
|
|
1898
1898
|
/**
|
|
1899
1899
|
* Optionally orientate the image to the top, bottom, or make it overlaid across the card.
|
|
1900
|
-
* @returns 'top' | 'bottom' | 'start' | 'end'
|
|
1900
|
+
* @returns 'top' | 'bottom' | 'start' | 'end' | undefined
|
|
1901
1901
|
*/
|
|
1902
1902
|
orientation = input(undefined, { ...(ngDevMode ? { debugName: "orientation" } : /* istanbul ignore next */ {}), alias: 'cCardImg' });
|
|
1903
1903
|
hostClasses = computed(() => {
|
|
@@ -2658,7 +2658,7 @@ class CarouselControlComponent {
|
|
|
2658
2658
|
#carouselService = inject(CarouselService);
|
|
2659
2659
|
/**
|
|
2660
2660
|
* Carousel control caption
|
|
2661
|
-
* @returns string
|
|
2661
|
+
* @returns string | undefined
|
|
2662
2662
|
*/
|
|
2663
2663
|
captionInput = input(undefined, { ...(ngDevMode ? { debugName: "captionInput" } : /* istanbul ignore next */ {}), alias: 'caption' });
|
|
2664
2664
|
caption = linkedSignal({ ...(ngDevMode ? { debugName: "caption" } : /* istanbul ignore next */ {}), source: this.captionInput,
|
|
@@ -2667,7 +2667,7 @@ class CarouselControlComponent {
|
|
|
2667
2667
|
} });
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Carousel control direction.
|
|
2670
|
-
* @returns '
|
|
2670
|
+
* @returns 'prev' | 'next'
|
|
2671
2671
|
*/
|
|
2672
2672
|
direction = input('next', /* @ts-ignore */
|
|
2673
2673
|
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
@@ -3169,7 +3169,7 @@ class DropdownToggleDirective {
|
|
|
3169
3169
|
dropdown = inject(DropdownToken, { optional: true });
|
|
3170
3170
|
/**
|
|
3171
3171
|
* Reference to dropdown component.
|
|
3172
|
-
* @returns DropdownComponent
|
|
3172
|
+
* @returns DropdownComponent
|
|
3173
3173
|
* @default undefined
|
|
3174
3174
|
*/
|
|
3175
3175
|
dropdownComponent = input(/* @ts-ignore */
|
|
@@ -3556,7 +3556,7 @@ class DropdownItemDirective {
|
|
|
3556
3556
|
/**
|
|
3557
3557
|
* Disables a dropdown-item.
|
|
3558
3558
|
* @returns boolean
|
|
3559
|
-
* @default
|
|
3559
|
+
* @default false
|
|
3560
3560
|
*/
|
|
3561
3561
|
disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'disabled' });
|
|
3562
3562
|
#disabled = linkedSignal(this.disabledInput, /* @ts-ignore */
|
|
@@ -3758,7 +3758,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
3758
3758
|
class FooterComponent {
|
|
3759
3759
|
/**
|
|
3760
3760
|
* Place footer in non-static positions
|
|
3761
|
-
* @returns Positions
|
|
3761
|
+
* @returns Positions | undefined
|
|
3762
3762
|
*/
|
|
3763
3763
|
position = input(/* @ts-ignore */
|
|
3764
3764
|
...(ngDevMode ? [undefined, { debugName: "position" }] : /* istanbul ignore next */ []));
|
|
@@ -4057,7 +4057,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4057
4057
|
class FormFloatingDirective {
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Enable floating labels
|
|
4060
|
-
* @
|
|
4060
|
+
* @returns boolean
|
|
4061
|
+
* @default true
|
|
4061
4062
|
*/
|
|
4062
4063
|
floating = input(true, { ...(ngDevMode ? { debugName: "floating" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'cFormFloating' });
|
|
4063
4064
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: FormFloatingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -4079,7 +4080,8 @@ class FormLabelDirective {
|
|
|
4079
4080
|
col = input('', { ...(ngDevMode ? { debugName: "col" } : /* istanbul ignore next */ {}), alias: 'cLabel' });
|
|
4080
4081
|
/**
|
|
4081
4082
|
* Size the label small or large.
|
|
4082
|
-
* @
|
|
4083
|
+
* @returns '' | 'sm' | 'lg'
|
|
4084
|
+
* @default undefined
|
|
4083
4085
|
*/
|
|
4084
4086
|
sizing = input(/* @ts-ignore */
|
|
4085
4087
|
...(ngDevMode ? [undefined, { debugName: "sizing" }] : /* istanbul ignore next */ []));
|
|
@@ -4253,7 +4255,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
4253
4255
|
class ContainerComponent {
|
|
4254
4256
|
/**
|
|
4255
4257
|
* Set container 100% wide until a breakpoint.
|
|
4256
|
-
* @returns
|
|
4258
|
+
* @returns Exclude<Breakpoints, 'xs'>
|
|
4259
|
+
* @values 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
|
|
4257
4260
|
* @default ''
|
|
4258
4261
|
*/
|
|
4259
4262
|
breakpoint = input('', /* @ts-ignore */
|
|
@@ -4920,7 +4923,7 @@ class ListGroupItemDirective {
|
|
|
4920
4923
|
active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4921
4924
|
/**
|
|
4922
4925
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
4923
|
-
* @returns Colors
|
|
4926
|
+
* @returns Colors | undefined
|
|
4924
4927
|
*/
|
|
4925
4928
|
color = input(/* @ts-ignore */
|
|
4926
4929
|
...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
|
|
@@ -5002,6 +5005,11 @@ class NavGroupService {
|
|
|
5002
5005
|
*/
|
|
5003
5006
|
activeId = signal(undefined, /* @ts-ignore */
|
|
5004
5007
|
...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
|
|
5008
|
+
/**
|
|
5009
|
+
* Whether an active nav link opens the branch it sits in. Inherited by nested levels.
|
|
5010
|
+
*/
|
|
5011
|
+
openOnActive = signal(true, /* @ts-ignore */
|
|
5012
|
+
...(ngDevMode ? [{ debugName: "openOnActive" }] : /* istanbul ignore next */ []));
|
|
5005
5013
|
/**
|
|
5006
5014
|
* Opens the level owner within its own parent and cascades up to the root.
|
|
5007
5015
|
* Replaced by the owning `c-nav-group`; stays a no-op for the root level.
|
|
@@ -5076,7 +5084,7 @@ class NavLinkDirective {
|
|
|
5076
5084
|
#activeEffect = effect(() => {
|
|
5077
5085
|
if (this.active()) {
|
|
5078
5086
|
untracked(() => {
|
|
5079
|
-
this.#
|
|
5087
|
+
this.#openBranch();
|
|
5080
5088
|
});
|
|
5081
5089
|
}
|
|
5082
5090
|
}, /* @ts-ignore */
|
|
@@ -5095,6 +5103,11 @@ class NavLinkDirective {
|
|
|
5095
5103
|
ngOnDestroy() {
|
|
5096
5104
|
this.#classObserver?.disconnect();
|
|
5097
5105
|
}
|
|
5106
|
+
#openBranch() {
|
|
5107
|
+
if (this.#navGroupService?.openOnActive()) {
|
|
5108
|
+
this.#navGroupService.openBranch();
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5098
5111
|
#observeActiveClass() {
|
|
5099
5112
|
const host = this.#hostElement.nativeElement;
|
|
5100
5113
|
if (!this.#navGroupService) {
|
|
@@ -5102,12 +5115,12 @@ class NavLinkDirective {
|
|
|
5102
5115
|
}
|
|
5103
5116
|
let wasActive = host.classList.contains('active');
|
|
5104
5117
|
if (wasActive) {
|
|
5105
|
-
this.#
|
|
5118
|
+
this.#openBranch();
|
|
5106
5119
|
}
|
|
5107
5120
|
this.#classObserver = new MutationObserver(() => {
|
|
5108
5121
|
const active = host.classList.contains('active');
|
|
5109
5122
|
if (active && !wasActive) {
|
|
5110
|
-
this.#
|
|
5123
|
+
this.#openBranch();
|
|
5111
5124
|
}
|
|
5112
5125
|
wasActive = active;
|
|
5113
5126
|
});
|
|
@@ -5179,13 +5192,13 @@ class NavGroupComponent {
|
|
|
5179
5192
|
...(ngDevMode ? [undefined, { debugName: "toggler" }] : /* istanbul ignore next */ []));
|
|
5180
5193
|
/**
|
|
5181
5194
|
* Template for the group toggler content, receives the visible state as `$implicit`.
|
|
5182
|
-
* @returns TemplateRef
|
|
5195
|
+
* @returns TemplateRef<{ $implicit: boolean; visible: boolean }>
|
|
5183
5196
|
*/
|
|
5184
5197
|
togglerTemplate = input(/* @ts-ignore */
|
|
5185
5198
|
...(ngDevMode ? [undefined, { debugName: "togglerTemplate" }] : /* istanbul ignore next */ []));
|
|
5186
5199
|
/**
|
|
5187
5200
|
* Show nav group items. Sets the initial state, and follows every later change.
|
|
5188
|
-
* @returns boolean
|
|
5201
|
+
* @returns boolean | undefined
|
|
5189
5202
|
*/
|
|
5190
5203
|
visible = input(undefined, { ...(ngDevMode ? { debugName: "visible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5191
5204
|
/**
|
|
@@ -5195,13 +5208,14 @@ class NavGroupComponent {
|
|
|
5195
5208
|
visibleChange = output();
|
|
5196
5209
|
#uncontrolledVisible = signal(false, /* @ts-ignore */
|
|
5197
5210
|
...(ngDevMode ? [{ debugName: "#uncontrolledVisible" }] : /* istanbul ignore next */ []));
|
|
5198
|
-
display = signal(null, /* @ts-ignore */
|
|
5199
|
-
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
5200
5211
|
visibleState = computed(() => {
|
|
5201
5212
|
const parent = this.#parentNavGroupService;
|
|
5202
5213
|
return parent ? parent.activeId() === this.#id : this.#uncontrolledVisible();
|
|
5203
5214
|
}, /* @ts-ignore */
|
|
5204
5215
|
...(ngDevMode ? [{ debugName: "visibleState" }] : /* istanbul ignore next */ []));
|
|
5216
|
+
// the group drops `show` in the same pass, hiding the items before cCollapse can measure them
|
|
5217
|
+
display = linkedSignal({ ...(ngDevMode ? { debugName: "display" } : /* istanbul ignore next */ {}), source: this.visibleState,
|
|
5218
|
+
computation: (visible, previous) => (previous?.source && !visible ? 'block' : null) });
|
|
5205
5219
|
hostClasses = computed(() => {
|
|
5206
5220
|
return {
|
|
5207
5221
|
'nav-group': true,
|
|
@@ -5219,6 +5233,13 @@ class NavGroupComponent {
|
|
|
5219
5233
|
});
|
|
5220
5234
|
}, /* @ts-ignore */
|
|
5221
5235
|
...(ngDevMode ? [{ debugName: "#visibleEffect" }] : /* istanbul ignore next */ []));
|
|
5236
|
+
#openOnActiveEffect = effect(() => {
|
|
5237
|
+
const openOnActive = this.#parentNavGroupService?.openOnActive() ?? true;
|
|
5238
|
+
untracked(() => {
|
|
5239
|
+
this.#navGroupService.openOnActive.set(openOnActive);
|
|
5240
|
+
});
|
|
5241
|
+
}, /* @ts-ignore */
|
|
5242
|
+
...(ngDevMode ? [{ debugName: "#openOnActiveEffect" }] : /* istanbul ignore next */ []));
|
|
5222
5243
|
toggleGroup(event) {
|
|
5223
5244
|
event.preventDefault();
|
|
5224
5245
|
const next = !this.visibleState();
|
|
@@ -5265,7 +5286,7 @@ class NavItemComponent {
|
|
|
5265
5286
|
static ngAcceptInputType_tabindex;
|
|
5266
5287
|
/**
|
|
5267
5288
|
* Toggle the active state for the nav link rendered for `href`.
|
|
5268
|
-
* @returns boolean
|
|
5289
|
+
* @returns boolean | undefined
|
|
5269
5290
|
* @default undefined
|
|
5270
5291
|
*/
|
|
5271
5292
|
active = input(undefined, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -5553,7 +5574,7 @@ class NavbarTogglerDirective {
|
|
|
5553
5574
|
}
|
|
5554
5575
|
/**
|
|
5555
5576
|
* Reference to navbar collapse element (via # template variable)
|
|
5556
|
-
* @returns CollapseDirective
|
|
5577
|
+
* @returns CollapseDirective | undefined
|
|
5557
5578
|
*/
|
|
5558
5579
|
collapseRef = input(undefined, { ...(ngDevMode ? { debugName: "collapseRef" } : /* istanbul ignore next */ {}), alias: 'cNavbarToggler' });
|
|
5559
5580
|
/**
|
|
@@ -5859,7 +5880,7 @@ class ModalComponent {
|
|
|
5859
5880
|
/**
|
|
5860
5881
|
* Set aria-modal html attr for modal
|
|
5861
5882
|
* @returns boolean
|
|
5862
|
-
* @default
|
|
5883
|
+
* @default false
|
|
5863
5884
|
*/
|
|
5864
5885
|
ariaModalInput = input(false, { ...(ngDevMode ? { debugName: "ariaModalInput" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'ariaModal' });
|
|
5865
5886
|
ariaModal = computed(() => {
|
|
@@ -6220,7 +6241,7 @@ class OffcanvasComponent {
|
|
|
6220
6241
|
portal = input(false, { ...(ngDevMode ? { debugName: "portal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
6221
6242
|
/**
|
|
6222
6243
|
* Responsive offcanvas property hides content outside the viewport from a specified breakpoint and down.
|
|
6223
|
-
* @returns boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
|
|
6244
|
+
* @returns (boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl') | undefined
|
|
6224
6245
|
* @default true
|
|
6225
6246
|
* @since 4.3.10
|
|
6226
6247
|
*/
|
|
@@ -6836,7 +6857,7 @@ class PopoverComponent {
|
|
|
6836
6857
|
renderer = inject(Renderer2);
|
|
6837
6858
|
/**
|
|
6838
6859
|
* Content of popover
|
|
6839
|
-
* @returns
|
|
6860
|
+
* @returns string | TemplateRef<any>
|
|
6840
6861
|
*/
|
|
6841
6862
|
content = input('', /* @ts-ignore */
|
|
6842
6863
|
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
@@ -6925,7 +6946,7 @@ class PopoverDirective {
|
|
|
6925
6946
|
#timerId2;
|
|
6926
6947
|
/**
|
|
6927
6948
|
* Content of popover
|
|
6928
|
-
* @returns
|
|
6949
|
+
* @returns string | TemplateRef<any> | undefined
|
|
6929
6950
|
*/
|
|
6930
6951
|
content = input(undefined, { ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), alias: 'cPopover' });
|
|
6931
6952
|
#contentEffect = effect(() => {
|
|
@@ -6953,21 +6974,22 @@ class PopoverDirective {
|
|
|
6953
6974
|
...(ngDevMode ? [{ debugName: "popperOptionsComputed" }] : /* istanbul ignore next */ []));
|
|
6954
6975
|
/**
|
|
6955
6976
|
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
|
|
6956
|
-
* @
|
|
6957
|
-
* @default
|
|
6977
|
+
* @returns 'top' | 'bottom' | 'left' | 'right'
|
|
6978
|
+
* @default 'top'
|
|
6958
6979
|
*/
|
|
6959
6980
|
placement = input('top', { ...(ngDevMode ? { debugName: "placement" } : /* istanbul ignore next */ {}), alias: 'cPopoverPlacement' });
|
|
6960
6981
|
/**
|
|
6961
6982
|
* ElementRefDirective for positioning the tooltip on reference element
|
|
6962
|
-
* @
|
|
6963
|
-
* @default
|
|
6983
|
+
* @returns ElementRefDirective | undefined
|
|
6984
|
+
* @default undefined
|
|
6985
|
+
* @since 5.7.27
|
|
6964
6986
|
*/
|
|
6965
|
-
reference = input(undefined, { ...(ngDevMode ? { debugName: "reference" } : /* istanbul ignore next */ {}), alias: '
|
|
6987
|
+
reference = input(undefined, { ...(ngDevMode ? { debugName: "reference" } : /* istanbul ignore next */ {}), alias: 'cPopoverRef' });
|
|
6966
6988
|
referenceRef = computed(() => this.reference()?.elementRef ?? this.#hostElement, /* @ts-ignore */
|
|
6967
6989
|
...(ngDevMode ? [{ debugName: "referenceRef" }] : /* istanbul ignore next */ []));
|
|
6968
6990
|
/**
|
|
6969
6991
|
* Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
|
|
6970
|
-
* @
|
|
6992
|
+
* @returns Triggers | Triggers[]
|
|
6971
6993
|
*/
|
|
6972
6994
|
trigger = input('hover', { ...(ngDevMode ? { debugName: "trigger" } : /* istanbul ignore next */ {}), alias: 'cPopoverTrigger' });
|
|
6973
6995
|
/**
|
|
@@ -7128,7 +7150,7 @@ class PopoverDirective {
|
|
|
7128
7150
|
this.#changeDetectorRef.markForCheck();
|
|
7129
7151
|
}
|
|
7130
7152
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: PopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7131
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: PopoverDirective, isStandalone: true, selector: "[cPopover]", inputs: { content: { classPropertyName: "content", publicName: "cPopover", isSignal: true, isRequired: false, transformFunction: null }, popperOptions: { classPropertyName: "popperOptions", publicName: "cPopoverOptions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "cPopoverPlacement", isSignal: true, isRequired: false, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "
|
|
7153
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: PopoverDirective, isStandalone: true, selector: "[cPopover]", inputs: { content: { classPropertyName: "content", publicName: "cPopover", isSignal: true, isRequired: false, transformFunction: null }, popperOptions: { classPropertyName: "popperOptions", publicName: "cPopoverOptions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "cPopoverPlacement", isSignal: true, isRequired: false, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "cPopoverRef", isSignal: true, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "cPopoverTrigger", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "cPopoverVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "cPopoverVisibleChange" }, host: { properties: { "aria-describedby": "ariaDescribedBy" } }, providers: [ListenersService, IntersectionService], exportAs: ["cPopover"], ngImport: i0 });
|
|
7132
7154
|
}
|
|
7133
7155
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: PopoverDirective, decorators: [{
|
|
7134
7156
|
type: Directive,
|
|
@@ -7138,7 +7160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
7138
7160
|
providers: [ListenersService, IntersectionService],
|
|
7139
7161
|
host: { '[aria-describedby]': 'ariaDescribedBy' }
|
|
7140
7162
|
}]
|
|
7141
|
-
}], propDecorators: { content: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopover", required: false }] }], popperOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverOptions", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverPlacement", required: false }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "
|
|
7163
|
+
}], propDecorators: { content: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopover", required: false }] }], popperOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverOptions", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverPlacement", required: false }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverRef", required: false }] }], trigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverTrigger", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "cPopoverVisible", required: false }] }, { type: i0.Output, args: ["cPopoverVisibleChange"] }] } });
|
|
7142
7164
|
|
|
7143
7165
|
class PopoverModule {
|
|
7144
7166
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: PopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -7220,7 +7242,7 @@ class ProgressBarDirective {
|
|
|
7220
7242
|
animated = input(undefined, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
7221
7243
|
/**
|
|
7222
7244
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
7223
|
-
* @
|
|
7245
|
+
* @returns Colors
|
|
7224
7246
|
*/
|
|
7225
7247
|
color = input(/* @ts-ignore */
|
|
7226
7248
|
...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
|
|
@@ -8470,7 +8492,8 @@ class SidebarNavGroupComponent {
|
|
|
8470
8492
|
* Determines when an inactive `c-sidebar-nav-group` closes.
|
|
8471
8493
|
* - `path`: on an active route change only
|
|
8472
8494
|
* - `close`: when another group is clicked
|
|
8473
|
-
* - `none`: never, the group stays open
|
|
8495
|
+
* - `none`: never, the group stays open — it stops reacting to the route altogether,
|
|
8496
|
+
* so a matching route neither opens it on init nor on a later navigation
|
|
8474
8497
|
*/
|
|
8475
8498
|
dropdownMode = input('path', /* @ts-ignore */
|
|
8476
8499
|
...(ngDevMode ? [{ debugName: "dropdownMode" }] : /* istanbul ignore next */ []));
|
|
@@ -8509,7 +8532,7 @@ class SidebarNavGroupComponent {
|
|
|
8509
8532
|
this.openGroup(samePath);
|
|
8510
8533
|
}
|
|
8511
8534
|
});
|
|
8512
|
-
if (this.samePath(this.#router.routerState.snapshot.url)) {
|
|
8535
|
+
if (this.dropdownMode() !== 'none' && this.samePath(this.#router.routerState.snapshot.url)) {
|
|
8513
8536
|
this.openGroup(true);
|
|
8514
8537
|
}
|
|
8515
8538
|
this.navGroupSubscription = this.#sidebarNavGroupService.sidebarNavGroupState$.subscribe((next) => {
|
|
@@ -8554,7 +8577,7 @@ class SidebarNavGroupComponent {
|
|
|
8554
8577
|
this.display.set(state === 'collapsed' || state === 'open' ? null : 'block');
|
|
8555
8578
|
}
|
|
8556
8579
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8557
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavGroupComponent, isStandalone: true, selector: "c-sidebar-nav-group", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [SidebarNavHelper], ngImport: i0, template: "@let grpItem = item();\n<a\n (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"$safeNavigationMigration(grpItem?.attributes)\"\n class=\"nav-link nav-group-toggle\"\n href\n>\n <ng-container *ngTemplateOutlet=\"iconTemplate; context: { $implicit: grpItem }\" />\n <ng-container>{{ grpItem?.name }}</ng-container>\n @if (grpItem?.badge) {\n <span [class]=\"grpItem | cSidebarNavBadge\">{{ grpItem?.badge?.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (collapseChange)=\"onCollapseChange($event)\"\n [compact]=\"compact()\"\n [dropdownMode]=\"dropdownMode()\"\n [groupItems]=\"true\"\n [navItems]=\"navItems()\"\n [style.display]=\"display()\"\n [visible]=\"!!open()\"\n cCollapse\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [class]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [class]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"$safeNavigationMigration(item.iconComponent?.content)\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"$safeNavigationMigration(item.iconComponent?.name)\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [class]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-items{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => CollapseDirective), selector: "[cCollapse]", inputs: ["animate", "horizontal", "visible", "navbar"], outputs: ["visibleChange", "collapseChange"], exportAs: ["cCollapse"] }, { kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "directive", type: i0.forwardRef(() => IconDirective), selector: "svg[cIcon]", inputs: ["cIcon", "customClasses", "size", "title", "height", "width", "name", "viewBox", "xmlns", "pointer-events", "role"], exportAs: ["cIcon"] }, { kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavComponent), selector: "c-sidebar-nav", inputs: ["navItems", "dropdownMode", "groupItems", "compact", "role"] }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavIconPipe), name: "cSidebarNavIcon" }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavBadgePipe), name: "cSidebarNavBadge" }] });
|
|
8580
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavGroupComponent, isStandalone: true, selector: "c-sidebar-nav-group", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [SidebarNavHelper], ngImport: i0, template: "@let grpItem = item();\n<a\n (click)=\"toggleGroup($event)\"\n [cHtmlAttr]=\"$safeNavigationMigration(grpItem?.attributes)\"\n class=\"nav-link nav-group-toggle\"\n href\n>\n <ng-container *ngTemplateOutlet=\"iconTemplate; context: { $implicit: grpItem }\" />\n <ng-container>{{ grpItem?.name }}</ng-container>\n @if (grpItem?.badge) {\n <span [class]=\"grpItem | cSidebarNavBadge\">{{ grpItem?.badge?.text }}</span>\n }\n</a>\n<c-sidebar-nav\n (collapseChange)=\"onCollapseChange($event)\"\n [compact]=\"compact()\"\n [dropdownMode]=\"dropdownMode()\"\n [groupItems]=\"true\"\n [navItems]=\"navItems()\"\n [style.display]=\"display()\"\n [visible]=\"!!open()\"\n cCollapse\n/>\n\n<ng-template #iconTemplate let-item>\n <!-- <i *ngIf=\"item?.icon\" [class]=\"item | cSidebarNavIcon\"></i>-->\n @if (item?.icon) {\n <span class=\"nav-icon\">\n <span [class]=\"item.icon ?? ''\"></span>\n </span>\n }\n @if (item?.iconComponent) {\n <svg\n [cIcon]=\"$safeNavigationMigration(item.iconComponent?.content)\"\n [customClasses]=\"item | cSidebarNavIcon\"\n [name]=\"$safeNavigationMigration(item.iconComponent?.name)\"\n />\n }\n @if (!item?.icon && !item?.iconComponent) {\n <span [class]=\"item | cSidebarNavIcon\"></span>\n }\n</ng-template>\n", styles: [".nav-group-items{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => CollapseDirective), selector: "[cCollapse]", inputs: ["animate", "horizontal", "visible", "navbar"], outputs: ["visibleChange", "collapseChange"], exportAs: ["cCollapse"] }, { kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "directive", type: i0.forwardRef(() => IconDirective), selector: "svg[cIcon]", inputs: ["cIcon", "customClasses", "size", "title", "height", "width", "name", "viewBox", "xmlns", "pointer-events", "role"], exportAs: ["cIcon"] }, { kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavComponent), selector: "c-sidebar-nav", inputs: ["navItems", "dropdownMode", "groupItems", "compact", "role", "variant"] }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavIconPipe), name: "cSidebarNavIcon" }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavBadgePipe), name: "cSidebarNavBadge" }] });
|
|
8558
8581
|
}
|
|
8559
8582
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavGroupComponent, decorators: [{
|
|
8560
8583
|
type: Component,
|
|
@@ -8577,9 +8600,10 @@ class SidebarNavComponent {
|
|
|
8577
8600
|
#renderer = inject(Renderer2);
|
|
8578
8601
|
#hostElement = inject(ElementRef);
|
|
8579
8602
|
#sidebarService = inject(SidebarService);
|
|
8603
|
+
#navGroupService = inject(NavGroupService);
|
|
8580
8604
|
/**
|
|
8581
8605
|
* Configuration object for sidebar-nav.
|
|
8582
|
-
* @returns INavData[]
|
|
8606
|
+
* @returns INavData[] | undefined
|
|
8583
8607
|
* @default []
|
|
8584
8608
|
*/
|
|
8585
8609
|
navItems = input([], /* @ts-ignore */
|
|
@@ -8588,7 +8612,8 @@ class SidebarNavComponent {
|
|
|
8588
8612
|
* Determines when an inactive `c-sidebar-nav-group` closes.
|
|
8589
8613
|
* - `path`: on an active route change only
|
|
8590
8614
|
* - `close`: when another group is clicked
|
|
8591
|
-
* - `none`: never, the group stays open
|
|
8615
|
+
* - `none`: never, the group stays open — it stops reacting to the route altogether,
|
|
8616
|
+
* so a matching route neither opens it on init nor on a later navigation
|
|
8592
8617
|
*/
|
|
8593
8618
|
dropdownMode = input('path', /* @ts-ignore */
|
|
8594
8619
|
...(ngDevMode ? [{ debugName: "dropdownMode" }] : /* istanbul ignore next */ []));
|
|
@@ -8609,15 +8634,31 @@ class SidebarNavComponent {
|
|
|
8609
8634
|
*/
|
|
8610
8635
|
role = input('navigation', /* @ts-ignore */
|
|
8611
8636
|
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
8637
|
+
/**
|
|
8638
|
+
* Set the sidebar nav variant to tree.
|
|
8639
|
+
* @default undefined
|
|
8640
|
+
* @since 5.7.28
|
|
8641
|
+
*/
|
|
8642
|
+
variant = input(/* @ts-ignore */
|
|
8643
|
+
...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
8612
8644
|
hostClasses = computed(() => {
|
|
8613
8645
|
const groupItems = this.groupItems();
|
|
8646
|
+
const variant = this.variant();
|
|
8614
8647
|
return {
|
|
8615
8648
|
'sidebar-nav': !groupItems,
|
|
8616
8649
|
'nav-group-items': groupItems,
|
|
8617
|
-
|
|
8650
|
+
[`sidebar-nav-${variant}`]: !groupItems && !!variant,
|
|
8651
|
+
compact: this.compact()
|
|
8618
8652
|
};
|
|
8619
8653
|
}, /* @ts-ignore */
|
|
8620
8654
|
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
8655
|
+
#dropdownModeEffect = effect(() => {
|
|
8656
|
+
const openOnActive = this.dropdownMode() !== 'none';
|
|
8657
|
+
untracked(() => {
|
|
8658
|
+
this.#navGroupService.openOnActive.set(openOnActive);
|
|
8659
|
+
});
|
|
8660
|
+
}, /* @ts-ignore */
|
|
8661
|
+
...(ngDevMode ? [{ debugName: "#dropdownModeEffect" }] : /* istanbul ignore next */ []));
|
|
8621
8662
|
// @HostBinding('class.nav-group-items')
|
|
8622
8663
|
// get sidebarNavGroupItemsClass(): boolean {
|
|
8623
8664
|
// return !!this.groupItems;
|
|
@@ -8635,7 +8676,7 @@ class SidebarNavComponent {
|
|
|
8635
8676
|
}
|
|
8636
8677
|
}
|
|
8637
8678
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8638
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavComponent, isStandalone: true, selector: "c-sidebar-nav", inputs: { navItems: { classPropertyName: "navItems", publicName: "navItems", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, groupItems: { classPropertyName: "groupItems", publicName: "groupItems", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "role()" } }, providers: [NavGroupService, SidebarNavGroupService], usesOnChanges: true, ngImport: i0, template: "@for (nItem of navItemsArray(); track nItem) {\n @switch (helper.itemType(nItem)) {\n @case ('group') {\n <c-sidebar-nav-group\n [dropdownMode]=\"dropdownMode()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n [compact]=\"compact()\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", styles: [":host .nav-item{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLinkComponent), selector: "c-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLabelComponent), selector: "c-sidebar-nav-label", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavTitleComponent), selector: "c-sidebar-nav-title", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavDividerComponent), selector: "c-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavGroupComponent), selector: "c-sidebar-nav-group", inputs: ["item", "dropdownMode", "show", "compact"] }, { kind: "ngmodule", type: i0.forwardRef(() => RouterModule) }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavItemClassPipe), name: "cSidebarNavItemClass" }] });
|
|
8679
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SidebarNavComponent, isStandalone: true, selector: "c-sidebar-nav", inputs: { navItems: { classPropertyName: "navItems", publicName: "navItems", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, groupItems: { classPropertyName: "groupItems", publicName: "groupItems", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "role()" } }, providers: [NavGroupService, SidebarNavGroupService], usesOnChanges: true, ngImport: i0, template: "@for (nItem of navItemsArray(); track nItem) {\n @switch (helper.itemType(nItem)) {\n @case ('group') {\n <c-sidebar-nav-group\n [dropdownMode]=\"dropdownMode()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n [compact]=\"compact()\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", styles: [":host .nav-item{display:block}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => HtmlAttributesDirective), selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLinkComponent), selector: "c-sidebar-nav-link", inputs: ["item"], outputs: ["linkClick"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavLabelComponent), selector: "c-sidebar-nav-label", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavTitleComponent), selector: "c-sidebar-nav-title", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavDividerComponent), selector: "c-sidebar-nav-divider", inputs: ["item"] }, { kind: "component", type: i0.forwardRef(() => SidebarNavGroupComponent), selector: "c-sidebar-nav-group", inputs: ["item", "dropdownMode", "show", "compact"] }, { kind: "ngmodule", type: i0.forwardRef(() => RouterModule) }, { kind: "pipe", type: i0.forwardRef(() => SidebarNavItemClassPipe), name: "cSidebarNavItemClass" }] });
|
|
8639
8680
|
}
|
|
8640
8681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarNavComponent, decorators: [{
|
|
8641
8682
|
type: Component,
|
|
@@ -8652,7 +8693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
8652
8693
|
'[class]': 'hostClasses()',
|
|
8653
8694
|
'[attr.role]': 'role()'
|
|
8654
8695
|
}, providers: [NavGroupService, SidebarNavGroupService], template: "@for (nItem of navItemsArray(); track nItem) {\n @switch (helper.itemType(nItem)) {\n @case ('group') {\n <c-sidebar-nav-group\n [dropdownMode]=\"dropdownMode()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n [compact]=\"compact()\"\n />\n }\n @case ('divider') {\n <c-sidebar-nav-divider\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('title') {\n <c-sidebar-nav-title\n [cHtmlAttr]=\"nItem.attributes ?? {}\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('label') {\n <c-sidebar-nav-label\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n @case ('empty') {\n <ng-container />\n }\n @default {\n <c-sidebar-nav-link\n (linkClick)=\"hideMobile()\"\n [item]=\"nItem\"\n [class]=\"nItem | cSidebarNavItemClass\"\n />\n }\n }\n}\n<ng-content />\n", styles: [":host .nav-item{display:block}\n"] }]
|
|
8655
|
-
}], propDecorators: { navItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "navItems", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], groupItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupItems", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }] } });
|
|
8696
|
+
}], propDecorators: { navItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "navItems", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], groupItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupItems", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
8656
8697
|
|
|
8657
8698
|
class SidebarModule {
|
|
8658
8699
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -8742,8 +8783,7 @@ class SpinnerComponent {
|
|
|
8742
8783
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
8743
8784
|
/**
|
|
8744
8785
|
* Size the component small.
|
|
8745
|
-
* @returns
|
|
8746
|
-
* @values 'sm'
|
|
8786
|
+
* @returns 'sm'
|
|
8747
8787
|
*/
|
|
8748
8788
|
size = input(/* @ts-ignore */
|
|
8749
8789
|
...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
|
|
@@ -8803,7 +8843,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
|
|
|
8803
8843
|
class TableColorDirective {
|
|
8804
8844
|
/**
|
|
8805
8845
|
* Use contextual color for tables, table rows or individual cells.
|
|
8806
|
-
* @returns Colors
|
|
8846
|
+
* @returns Colors | undefined
|
|
8807
8847
|
*/
|
|
8808
8848
|
color = input(undefined, { ...(ngDevMode ? { debugName: "color" } : /* istanbul ignore next */ {}), alias: 'cTableColor' });
|
|
8809
8849
|
hostClasses = computed(() => {
|
|
@@ -8858,8 +8898,7 @@ class TableDirective {
|
|
|
8858
8898
|
#hostElement = inject(ElementRef);
|
|
8859
8899
|
/**
|
|
8860
8900
|
* Set the vertical alignment.
|
|
8861
|
-
* @returns
|
|
8862
|
-
* @values 'bottom' | 'middle' | 'top'
|
|
8901
|
+
* @returns 'bottom' | 'middle' | 'top'
|
|
8863
8902
|
*/
|
|
8864
8903
|
align = input(/* @ts-ignore */
|
|
8865
8904
|
...(ngDevMode ? [undefined, { debugName: "align" }] : /* istanbul ignore next */ []));
|
|
@@ -8899,7 +8938,8 @@ class TableDirective {
|
|
|
8899
8938
|
hover = input(false, { ...(ngDevMode ? { debugName: "hover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8900
8939
|
/**
|
|
8901
8940
|
* Make table responsive across all viewports or pick a maximum breakpoint with which to have a responsive table up to.
|
|
8902
|
-
* @
|
|
8941
|
+
* @returns boolean | Omit<Breakpoints, 'xs'>
|
|
8942
|
+
* @values true | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
|
|
8903
8943
|
*/
|
|
8904
8944
|
responsive = input(/* @ts-ignore */
|
|
8905
8945
|
...(ngDevMode ? [undefined, { debugName: "responsive" }] : /* istanbul ignore next */ []));
|
|
@@ -9636,7 +9676,7 @@ class TabPanelComponent {
|
|
|
9636
9676
|
#elementRef = inject(ElementRef);
|
|
9637
9677
|
/**
|
|
9638
9678
|
* aria-labelledby attribute
|
|
9639
|
-
* @returns string
|
|
9679
|
+
* @returns string | undefined
|
|
9640
9680
|
* @default undefined
|
|
9641
9681
|
*/
|
|
9642
9682
|
ariaLabelledBy = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
|
|
@@ -10089,7 +10129,7 @@ class ToasterComponent {
|
|
|
10089
10129
|
}
|
|
10090
10130
|
/**
|
|
10091
10131
|
* Toaster position
|
|
10092
|
-
* @returns
|
|
10132
|
+
* @returns string | 'absolute' | 'fixed' | 'static'
|
|
10093
10133
|
*/
|
|
10094
10134
|
position = input('absolute', /* @ts-ignore */
|
|
10095
10135
|
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
@@ -10229,7 +10269,7 @@ class TooltipComponent {
|
|
|
10229
10269
|
renderer = inject(Renderer2);
|
|
10230
10270
|
/**
|
|
10231
10271
|
* Content of tooltip
|
|
10232
|
-
* @returns
|
|
10272
|
+
* @returns string | TemplateRef<any>
|
|
10233
10273
|
*/
|
|
10234
10274
|
content = input('', /* @ts-ignore */
|
|
10235
10275
|
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
@@ -10315,7 +10355,7 @@ class TooltipDirective {
|
|
|
10315
10355
|
#timerId2;
|
|
10316
10356
|
/**
|
|
10317
10357
|
* Content of tooltip
|
|
10318
|
-
* @returns
|
|
10358
|
+
* @returns string | TemplateRef<any> | undefined
|
|
10319
10359
|
*/
|
|
10320
10360
|
content = input(undefined, { ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), alias: 'cTooltip' });
|
|
10321
10361
|
#contentEffect = effect(() => {
|
|
@@ -10343,21 +10383,22 @@ class TooltipDirective {
|
|
|
10343
10383
|
...(ngDevMode ? [{ debugName: "popperOptionsComputed" }] : /* istanbul ignore next */ []));
|
|
10344
10384
|
/**
|
|
10345
10385
|
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
|
|
10346
|
-
* @
|
|
10347
|
-
* @default
|
|
10386
|
+
* @returns 'top' | 'bottom' | 'left' | 'right'
|
|
10387
|
+
* @default 'top'
|
|
10348
10388
|
*/
|
|
10349
10389
|
placement = input('top', { ...(ngDevMode ? { debugName: "placement" } : /* istanbul ignore next */ {}), alias: 'cTooltipPlacement' });
|
|
10350
10390
|
/**
|
|
10351
10391
|
* ElementRefDirective for positioning the tooltip on reference element
|
|
10352
|
-
* @
|
|
10353
|
-
* @default
|
|
10392
|
+
* @returns ElementRefDirective | undefined
|
|
10393
|
+
* @default undefined
|
|
10394
|
+
* @since 5.1.0
|
|
10354
10395
|
*/
|
|
10355
10396
|
reference = input(undefined, { ...(ngDevMode ? { debugName: "reference" } : /* istanbul ignore next */ {}), alias: 'cTooltipRef' });
|
|
10356
10397
|
referenceRef = computed(() => this.reference()?.elementRef ?? this.#hostElement, /* @ts-ignore */
|
|
10357
10398
|
...(ngDevMode ? [{ debugName: "referenceRef" }] : /* istanbul ignore next */ []));
|
|
10358
10399
|
/**
|
|
10359
10400
|
* Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
|
|
10360
|
-
* @
|
|
10401
|
+
* @returns Triggers | Triggers[]
|
|
10361
10402
|
*/
|
|
10362
10403
|
trigger = input('hover', { ...(ngDevMode ? { debugName: "trigger" } : /* istanbul ignore next */ {}), alias: 'cTooltipTrigger' });
|
|
10363
10404
|
/**
|
|
@@ -10739,7 +10780,7 @@ class WidgetStatDComponent extends CardComponent {
|
|
|
10739
10780
|
// override readonly color = input<Colors>();
|
|
10740
10781
|
/**
|
|
10741
10782
|
* Values and subtitles for your component.
|
|
10742
|
-
* @returns WidgetStatDValue
|
|
10783
|
+
* @returns WidgetStatDValue[]
|
|
10743
10784
|
*/
|
|
10744
10785
|
values = input(/* @ts-ignore */
|
|
10745
10786
|
...(ngDevMode ? [undefined, { debugName: "values" }] : /* istanbul ignore next */ []));
|