ngx-core-components 0.0.8 → 0.1.1
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/README.md +193 -13
- package/barcodes/barcode/barcode.component.d.ts +19 -0
- package/barcodes/index.d.ts +5 -0
- package/barcodes/public-api.d.ts +2 -0
- package/barcodes/qr-code/qr-code.component.d.ts +17 -0
- package/buttons/button/button.component.d.ts +17 -0
- package/buttons/button-group/button-group.component.d.ts +8 -0
- package/buttons/chip/chip.component.d.ts +19 -0
- package/buttons/dropdown-button/dropdown-button.component.d.ts +21 -0
- package/buttons/index.d.ts +5 -0
- package/buttons/public-api.d.ts +9 -0
- package/buttons/split-button/split-button.component.d.ts +22 -0
- package/feedback/badge/badge.component.d.ts +13 -0
- package/feedback/index.d.ts +5 -0
- package/feedback/notification/notification.service.d.ts +39 -0
- package/feedback/progress-bar/progress-bar.component.d.ts +15 -0
- package/feedback/public-api.d.ts +8 -0
- package/feedback/skeleton/skeleton.component.d.ts +11 -0
- package/fesm2022/ngx-core-components-barcodes.mjs +222 -0
- package/fesm2022/ngx-core-components-barcodes.mjs.map +1 -0
- package/fesm2022/ngx-core-components-buttons.mjs +255 -0
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -0
- package/fesm2022/ngx-core-components-feedback.mjs +286 -0
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -0
- package/fesm2022/ngx-core-components-inputs.mjs +634 -1
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +407 -0
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -0
- package/fesm2022/ngx-core-components-navigation.mjs +184 -0
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -0
- package/fesm2022/ngx-core-components.mjs +6 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/color-picker/color-picker.component.d.ts +14 -0
- package/inputs/date-range-picker/date-range-picker.component.d.ts +24 -0
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +19 -0
- package/inputs/public-api.d.ts +8 -0
- package/inputs/rating/rating.component.d.ts +14 -0
- package/inputs/slider/slider.component.d.ts +26 -0
- package/inputs/switch/switch.component.d.ts +12 -0
- package/inputs/textarea/textarea.component.d.ts +18 -0
- package/inputs/time-picker/time-picker.component.d.ts +20 -0
- package/layout/accordion/accordion.component.d.ts +17 -0
- package/layout/card/card.component.d.ts +16 -0
- package/layout/index.d.ts +5 -0
- package/layout/public-api.d.ts +8 -0
- package/layout/splitter/splitter.component.d.ts +14 -0
- package/layout/stepper/stepper.component.d.ts +20 -0
- package/layout/tab-strip/tab-strip.component.d.ts +22 -0
- package/navigation/breadcrumb/breadcrumb.component.d.ts +14 -0
- package/navigation/index.d.ts +5 -0
- package/navigation/menu/menu.component.d.ts +20 -0
- package/navigation/public-api.d.ts +4 -0
- package/package.json +21 -1
- package/public-api.d.ts +10 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, Component, signal, HostListener } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class BreadcrumbComponent {
|
|
5
|
+
items = input([]);
|
|
6
|
+
separator = input('/');
|
|
7
|
+
itemClick = output();
|
|
8
|
+
onNav(event, item) { event.preventDefault(); this.itemClick.emit(item); }
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: BreadcrumbComponent, isStandalone: true, selector: "ngx-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: `
|
|
11
|
+
<nav class="ngx-breadcrumb" aria-label="breadcrumb">
|
|
12
|
+
@for (item of items(); track item.label; let i = $index; let last = $last) {
|
|
13
|
+
@if (i > 0) { <span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span> }
|
|
14
|
+
@if (last) {
|
|
15
|
+
<span class="breadcrumb-item active" aria-current="page">
|
|
16
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
17
|
+
{{ item.label }}
|
|
18
|
+
</span>
|
|
19
|
+
} @else if (item.url) {
|
|
20
|
+
<a class="breadcrumb-item" [href]="item.url" (click)="onNav($event, item)">
|
|
21
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
22
|
+
{{ item.label }}
|
|
23
|
+
</a>
|
|
24
|
+
} @else {
|
|
25
|
+
<button class="breadcrumb-item breadcrumb-btn" (click)="itemClick.emit(item)">
|
|
26
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
27
|
+
{{ item.label }}
|
|
28
|
+
</button>
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</nav>
|
|
32
|
+
`, isInline: true, styles: [":host{display:block}.ngx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.breadcrumb-separator{color:var(--ngx-breadcrumb-separator, #adb5bd);padding:0 2px}.breadcrumb-item{display:inline-flex;align-items:center;gap:4px;color:var(--ngx-breadcrumb-link, #1a73e8);text-decoration:none;transition:color .15s}.breadcrumb-item:hover:not(.active){text-decoration:underline;color:var(--ngx-breadcrumb-link-hover, #1557b0)}.breadcrumb-item.active{color:var(--ngx-breadcrumb-active, #495057);cursor:default;font-weight:500}.breadcrumb-btn{background:none;border:none;cursor:pointer;font-family:inherit;font-size:inherit;padding:0}.breadcrumb-icon{font-size:14px}\n"] });
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'ngx-breadcrumb', standalone: true, template: `
|
|
37
|
+
<nav class="ngx-breadcrumb" aria-label="breadcrumb">
|
|
38
|
+
@for (item of items(); track item.label; let i = $index; let last = $last) {
|
|
39
|
+
@if (i > 0) { <span class="breadcrumb-separator" aria-hidden="true">{{ separator() }}</span> }
|
|
40
|
+
@if (last) {
|
|
41
|
+
<span class="breadcrumb-item active" aria-current="page">
|
|
42
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
43
|
+
{{ item.label }}
|
|
44
|
+
</span>
|
|
45
|
+
} @else if (item.url) {
|
|
46
|
+
<a class="breadcrumb-item" [href]="item.url" (click)="onNav($event, item)">
|
|
47
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
48
|
+
{{ item.label }}
|
|
49
|
+
</a>
|
|
50
|
+
} @else {
|
|
51
|
+
<button class="breadcrumb-item breadcrumb-btn" (click)="itemClick.emit(item)">
|
|
52
|
+
@if (item.icon) { <span class="breadcrumb-icon">{{ item.icon }}</span> }
|
|
53
|
+
{{ item.label }}
|
|
54
|
+
</button>
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</nav>
|
|
58
|
+
`, styles: [":host{display:block}.ngx-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px}.breadcrumb-separator{color:var(--ngx-breadcrumb-separator, #adb5bd);padding:0 2px}.breadcrumb-item{display:inline-flex;align-items:center;gap:4px;color:var(--ngx-breadcrumb-link, #1a73e8);text-decoration:none;transition:color .15s}.breadcrumb-item:hover:not(.active){text-decoration:underline;color:var(--ngx-breadcrumb-link-hover, #1557b0)}.breadcrumb-item.active{color:var(--ngx-breadcrumb-active, #495057);cursor:default;font-weight:500}.breadcrumb-btn{background:none;border:none;cursor:pointer;font-family:inherit;font-size:inherit;padding:0}.breadcrumb-icon{font-size:14px}\n"] }]
|
|
59
|
+
}] });
|
|
60
|
+
|
|
61
|
+
class MenuComponent {
|
|
62
|
+
items = input([]);
|
|
63
|
+
orientation = input('horizontal');
|
|
64
|
+
openIndex = signal(null);
|
|
65
|
+
itemClick = output();
|
|
66
|
+
handleClick(event, item, i) {
|
|
67
|
+
if (item.disabled)
|
|
68
|
+
return;
|
|
69
|
+
event.stopPropagation();
|
|
70
|
+
if (item.children && item.children.length) {
|
|
71
|
+
this.openIndex.set(this.openIndex() === i ? null : i);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
this.itemClick.emit(item);
|
|
75
|
+
this.openIndex.set(null);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
handleSubClick(event, child) {
|
|
79
|
+
if (child.disabled)
|
|
80
|
+
return;
|
|
81
|
+
event.stopPropagation();
|
|
82
|
+
this.itemClick.emit(child);
|
|
83
|
+
this.openIndex.set(null);
|
|
84
|
+
}
|
|
85
|
+
closeAll() { this.openIndex.set(null); }
|
|
86
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: MenuComponent, isStandalone: true, selector: "ngx-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { listeners: { "document:click": "closeAll()" } }, ngImport: i0, template: `
|
|
88
|
+
<nav class="ngx-menu" [class.menu-vertical]="orientation() === 'vertical'" role="menubar">
|
|
89
|
+
@for (item of items(); track $index; let i = $index) {
|
|
90
|
+
@if (item.separator) {
|
|
91
|
+
<hr class="menu-separator" />
|
|
92
|
+
} @else {
|
|
93
|
+
<div
|
|
94
|
+
class="menu-item"
|
|
95
|
+
[class.has-children]="item.children && item.children.length > 0"
|
|
96
|
+
[class.open]="openIndex() === i"
|
|
97
|
+
[class.disabled]="item.disabled"
|
|
98
|
+
role="menuitem"
|
|
99
|
+
[attr.tabindex]="item.disabled ? -1 : 0"
|
|
100
|
+
(click)="handleClick($event, item, i)"
|
|
101
|
+
(keydown.enter)="handleClick($event, item, i)"
|
|
102
|
+
>
|
|
103
|
+
@if (item.icon) { <span class="menu-icon">{{ item.icon }}</span> }
|
|
104
|
+
{{ item.label }}
|
|
105
|
+
@if (item.children && item.children.length) {
|
|
106
|
+
<span class="menu-arrow">{{ orientation() === 'vertical' ? '›' : '▾' }}</span>
|
|
107
|
+
}
|
|
108
|
+
@if (item.children && item.children.length && openIndex() === i) {
|
|
109
|
+
<div class="menu-submenu" role="menu">
|
|
110
|
+
@for (child of item.children; track $index) {
|
|
111
|
+
@if (child.separator) {
|
|
112
|
+
<hr class="menu-separator" />
|
|
113
|
+
} @else {
|
|
114
|
+
<div class="menu-subitem" [class.disabled]="child.disabled" role="menuitem" [attr.tabindex]="child.disabled ? -1 : 0" (click)="handleSubClick($event, child)">
|
|
115
|
+
@if (child.icon) { <span class="menu-icon">{{ child.icon }}</span> }
|
|
116
|
+
{{ child.label }}
|
|
117
|
+
</div>
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</div>
|
|
121
|
+
}
|
|
122
|
+
</div>
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
</nav>
|
|
126
|
+
`, isInline: true, styles: [":host{display:block}.ngx-menu{display:flex;align-items:stretch;background:var(--ngx-menu-bg, #fff);border:1px solid var(--ngx-menu-border, #dee2e6);border-radius:var(--ngx-menu-radius, 6px);overflow:visible}.menu-vertical{flex-direction:column}.menu-item{position:relative;display:flex;align-items:center;gap:7px;padding:8px 16px;font-size:13px;font-weight:500;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .12s;white-space:nowrap;-webkit-user-select:none;user-select:none}.menu-item:hover:not(.disabled),.menu-item.open{background:var(--ngx-menu-hover-bg, #f1f3f5);color:var(--ngx-menu-active-color, #1a73e8)}.menu-item.disabled{opacity:.5;cursor:not-allowed}.menu-icon{font-size:15px;flex-shrink:0}.menu-arrow{margin-left:auto;padding-left:8px;font-size:11px}.menu-separator{border:none;border-top:1px solid var(--ngx-menu-separator, #dee2e6);margin:4px 0}.menu-submenu{position:absolute;top:100%;left:0;min-width:200px;background:var(--ngx-menu-bg, #fff);border:1px solid var(--ngx-menu-border, #dee2e6);border-radius:6px;box-shadow:0 6px 24px #0000001f;z-index:1000}.menu-vertical .menu-submenu{top:0;left:100%}.menu-subitem{display:flex;align-items:center;gap:7px;padding:8px 16px;font-size:13px;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .12s;white-space:nowrap}.menu-subitem:hover:not(.disabled){background:var(--ngx-menu-hover-bg, #f1f3f5);color:var(--ngx-menu-active-color, #1a73e8)}.menu-subitem.disabled{opacity:.5;cursor:not-allowed}\n"] });
|
|
127
|
+
}
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MenuComponent, decorators: [{
|
|
129
|
+
type: Component,
|
|
130
|
+
args: [{ selector: 'ngx-menu', standalone: true, template: `
|
|
131
|
+
<nav class="ngx-menu" [class.menu-vertical]="orientation() === 'vertical'" role="menubar">
|
|
132
|
+
@for (item of items(); track $index; let i = $index) {
|
|
133
|
+
@if (item.separator) {
|
|
134
|
+
<hr class="menu-separator" />
|
|
135
|
+
} @else {
|
|
136
|
+
<div
|
|
137
|
+
class="menu-item"
|
|
138
|
+
[class.has-children]="item.children && item.children.length > 0"
|
|
139
|
+
[class.open]="openIndex() === i"
|
|
140
|
+
[class.disabled]="item.disabled"
|
|
141
|
+
role="menuitem"
|
|
142
|
+
[attr.tabindex]="item.disabled ? -1 : 0"
|
|
143
|
+
(click)="handleClick($event, item, i)"
|
|
144
|
+
(keydown.enter)="handleClick($event, item, i)"
|
|
145
|
+
>
|
|
146
|
+
@if (item.icon) { <span class="menu-icon">{{ item.icon }}</span> }
|
|
147
|
+
{{ item.label }}
|
|
148
|
+
@if (item.children && item.children.length) {
|
|
149
|
+
<span class="menu-arrow">{{ orientation() === 'vertical' ? '›' : '▾' }}</span>
|
|
150
|
+
}
|
|
151
|
+
@if (item.children && item.children.length && openIndex() === i) {
|
|
152
|
+
<div class="menu-submenu" role="menu">
|
|
153
|
+
@for (child of item.children; track $index) {
|
|
154
|
+
@if (child.separator) {
|
|
155
|
+
<hr class="menu-separator" />
|
|
156
|
+
} @else {
|
|
157
|
+
<div class="menu-subitem" [class.disabled]="child.disabled" role="menuitem" [attr.tabindex]="child.disabled ? -1 : 0" (click)="handleSubClick($event, child)">
|
|
158
|
+
@if (child.icon) { <span class="menu-icon">{{ child.icon }}</span> }
|
|
159
|
+
{{ child.label }}
|
|
160
|
+
</div>
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
</div>
|
|
164
|
+
}
|
|
165
|
+
</div>
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</nav>
|
|
169
|
+
`, styles: [":host{display:block}.ngx-menu{display:flex;align-items:stretch;background:var(--ngx-menu-bg, #fff);border:1px solid var(--ngx-menu-border, #dee2e6);border-radius:var(--ngx-menu-radius, 6px);overflow:visible}.menu-vertical{flex-direction:column}.menu-item{position:relative;display:flex;align-items:center;gap:7px;padding:8px 16px;font-size:13px;font-weight:500;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .12s;white-space:nowrap;-webkit-user-select:none;user-select:none}.menu-item:hover:not(.disabled),.menu-item.open{background:var(--ngx-menu-hover-bg, #f1f3f5);color:var(--ngx-menu-active-color, #1a73e8)}.menu-item.disabled{opacity:.5;cursor:not-allowed}.menu-icon{font-size:15px;flex-shrink:0}.menu-arrow{margin-left:auto;padding-left:8px;font-size:11px}.menu-separator{border:none;border-top:1px solid var(--ngx-menu-separator, #dee2e6);margin:4px 0}.menu-submenu{position:absolute;top:100%;left:0;min-width:200px;background:var(--ngx-menu-bg, #fff);border:1px solid var(--ngx-menu-border, #dee2e6);border-radius:6px;box-shadow:0 6px 24px #0000001f;z-index:1000}.menu-vertical .menu-submenu{top:0;left:100%}.menu-subitem{display:flex;align-items:center;gap:7px;padding:8px 16px;font-size:13px;cursor:pointer;color:var(--ngx-menu-color, #212529);transition:background .12s;white-space:nowrap}.menu-subitem:hover:not(.disabled){background:var(--ngx-menu-hover-bg, #f1f3f5);color:var(--ngx-menu-active-color, #1a73e8)}.menu-subitem.disabled{opacity:.5;cursor:not-allowed}\n"] }]
|
|
170
|
+
}], propDecorators: { closeAll: [{
|
|
171
|
+
type: HostListener,
|
|
172
|
+
args: ['document:click']
|
|
173
|
+
}] } });
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* Public API Surface — secondary entry point: ngx-core-components/navigation
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Generated bundle index. Do not edit.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
export { BreadcrumbComponent, MenuComponent };
|
|
184
|
+
//# sourceMappingURL=ngx-core-components-navigation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-core-components-navigation.mjs","sources":["../../../projects/ngx-core-components/navigation/breadcrumb/breadcrumb.component.ts","../../../projects/ngx-core-components/navigation/menu/menu.component.ts","../../../projects/ngx-core-components/navigation/public-api.ts","../../../projects/ngx-core-components/navigation/ngx-core-components-navigation.ts"],"sourcesContent":["import { Component, input, output } from '@angular/core';\n\nexport interface BreadcrumbItem {\n label: string;\n url?: string;\n icon?: string;\n}\n\n@Component({\n selector: 'ngx-breadcrumb',\n standalone: true,\n template: `\n <nav class=\"ngx-breadcrumb\" aria-label=\"breadcrumb\">\n @for (item of items(); track item.label; let i = $index; let last = $last) {\n @if (i > 0) { <span class=\"breadcrumb-separator\" aria-hidden=\"true\">{{ separator() }}</span> }\n @if (last) {\n <span class=\"breadcrumb-item active\" aria-current=\"page\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </span>\n } @else if (item.url) {\n <a class=\"breadcrumb-item\" [href]=\"item.url\" (click)=\"onNav($event, item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </a>\n } @else {\n <button class=\"breadcrumb-item breadcrumb-btn\" (click)=\"itemClick.emit(item)\">\n @if (item.icon) { <span class=\"breadcrumb-icon\">{{ item.icon }}</span> }\n {{ item.label }}\n </button>\n }\n }\n </nav>\n `,\n styles: [`\n :host { display: block; }\n .ngx-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }\n .breadcrumb-separator { color: var(--ngx-breadcrumb-separator, #adb5bd); padding: 0 2px; }\n .breadcrumb-item { display: inline-flex; align-items: center; gap: 4px; color: var(--ngx-breadcrumb-link, #1a73e8); text-decoration: none; transition: color 0.15s; }\n .breadcrumb-item:hover:not(.active) { text-decoration: underline; color: var(--ngx-breadcrumb-link-hover, #1557b0); }\n .breadcrumb-item.active { color: var(--ngx-breadcrumb-active, #495057); cursor: default; font-weight: 500; }\n .breadcrumb-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; }\n .breadcrumb-icon { font-size: 14px; }\n `]\n})\nexport class BreadcrumbComponent {\n items = input<BreadcrumbItem[]>([]);\n separator = input('/');\n itemClick = output<BreadcrumbItem>();\n\n onNav(event: MouseEvent, item: BreadcrumbItem): void { event.preventDefault(); this.itemClick.emit(item); }\n}\n","import { Component, input, output, signal, HostListener } from '@angular/core';\n\nexport interface MenuItem {\n\tlabel?: string;\n\ticon?: string;\n\turl?: string;\n\tdisabled?: boolean;\n\tseparator?: boolean;\n\tchildren?: MenuItem[];\n}\n\n@Component({\n\tselector: 'ngx-menu',\n\tstandalone: true,\n\ttemplate: `\n\t\t<nav class=\"ngx-menu\" [class.menu-vertical]=\"orientation() === 'vertical'\" role=\"menubar\">\n\t\t\t@for (item of items(); track $index; let i = $index) {\n\t\t\t\t@if (item.separator) {\n\t\t\t\t\t<hr class=\"menu-separator\" />\n\t\t\t\t} @else {\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"menu-item\"\n\t\t\t\t\t\t[class.has-children]=\"item.children && item.children.length > 0\"\n\t\t\t\t\t\t[class.open]=\"openIndex() === i\"\n\t\t\t\t\t\t[class.disabled]=\"item.disabled\"\n\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t[attr.tabindex]=\"item.disabled ? -1 : 0\"\n\t\t\t\t\t\t(click)=\"handleClick($event, item, i)\"\n\t\t\t\t\t\t(keydown.enter)=\"handleClick($event, item, i)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (item.icon) { <span class=\"menu-icon\">{{ item.icon }}</span> }\n\t\t\t\t\t\t{{ item.label }}\n\t\t\t\t\t\t@if (item.children && item.children.length) {\n\t\t\t\t\t\t\t<span class=\"menu-arrow\">{{ orientation() === 'vertical' ? '›' : '▾' }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (item.children && item.children.length && openIndex() === i) {\n\t\t\t\t\t\t\t<div class=\"menu-submenu\" role=\"menu\">\n\t\t\t\t\t\t\t\t@for (child of item.children; track $index) {\n\t\t\t\t\t\t\t\t\t@if (child.separator) {\n\t\t\t\t\t\t\t\t\t\t<hr class=\"menu-separator\" />\n\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t<div class=\"menu-subitem\" [class.disabled]=\"child.disabled\" role=\"menuitem\" [attr.tabindex]=\"child.disabled ? -1 : 0\" (click)=\"handleSubClick($event, child)\">\n\t\t\t\t\t\t\t\t\t\t\t@if (child.icon) { <span class=\"menu-icon\">{{ child.icon }}</span> }\n\t\t\t\t\t\t\t\t\t\t\t{{ child.label }}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t}\n\t\t</nav>\n\t`,\n\tstyles: [`\n\t\t:host { display: block; }\n\t\t.ngx-menu { display: flex; align-items: stretch; background: var(--ngx-menu-bg, #fff); border: 1px solid var(--ngx-menu-border, #dee2e6); border-radius: var(--ngx-menu-radius, 6px); overflow: visible; }\n\t\t.menu-vertical { flex-direction: column; }\n\t\t.menu-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.12s; white-space: nowrap; user-select: none; }\n\t\t.menu-item:hover:not(.disabled), .menu-item.open { background: var(--ngx-menu-hover-bg, #f1f3f5); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-item.disabled { opacity: 0.5; cursor: not-allowed; }\n\t\t.menu-icon { font-size: 15px; flex-shrink: 0; }\n\t\t.menu-arrow { margin-left: auto; padding-left: 8px; font-size: 11px; }\n\t\t.menu-separator { border: none; border-top: 1px solid var(--ngx-menu-separator, #dee2e6); margin: 4px 0; }\n\t\t.menu-submenu { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--ngx-menu-bg, #fff); border: 1px solid var(--ngx-menu-border, #dee2e6); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); z-index: 1000; }\n\t\t.menu-vertical .menu-submenu { top: 0; left: 100%; }\n\t\t.menu-subitem { display: flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--ngx-menu-color, #212529); transition: background 0.12s; white-space: nowrap; }\n\t\t.menu-subitem:hover:not(.disabled) { background: var(--ngx-menu-hover-bg, #f1f3f5); color: var(--ngx-menu-active-color, #1a73e8); }\n\t\t.menu-subitem.disabled { opacity: 0.5; cursor: not-allowed; }\n\t`]\n})\nexport class MenuComponent {\n\titems = input<MenuItem[]>([]);\n\torientation = input<'horizontal' | 'vertical'>('horizontal');\n\topenIndex = signal<number | null>(null);\n\titemClick = output<MenuItem>();\n\n\thandleClick(event: Event, item: MenuItem, i: number): void {\n\t\tif (item.disabled) return;\n\t\tevent.stopPropagation();\n\t\tif (item.children && item.children.length) { this.openIndex.set(this.openIndex() === i ? null : i); }\n\t\telse { this.itemClick.emit(item); this.openIndex.set(null); }\n\t}\n\n\thandleSubClick(event: Event, child: MenuItem): void {\n\t\tif (child.disabled) return;\n\t\tevent.stopPropagation();\n\t\tthis.itemClick.emit(child);\n\t\tthis.openIndex.set(null);\n\t}\n\n\t@HostListener('document:click')\n\tcloseAll(): void { this.openIndex.set(null); }\n}\n","/*\n * Public API Surface — secondary entry point: ngx-core-components/navigation\n */\n\nexport { BreadcrumbComponent } from './breadcrumb/breadcrumb.component';\nexport type { BreadcrumbItem } from './breadcrumb/breadcrumb.component';\n\nexport { MenuComponent } from './menu/menu.component';\nexport type { MenuItem } from './menu/menu.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MA6Ca,mBAAmB,CAAA;AAC9B,IAAA,KAAK,GAAG,KAAK,CAAmB,EAAE,CAAC;AACnC,IAAA,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC;IACtB,SAAS,GAAG,MAAM,EAAkB;IAEpC,KAAK,CAAC,KAAiB,EAAE,IAAoB,IAAU,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;wGAL/F,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA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;;;;;AAuCT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,o+CAAA,CAAA,EAAA,CAAA;;4FAkBW,aAAa,EAAA,UAAA,EAAA,CAAA;kBA5DzB,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,QAAA,EACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCT,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,o+CAAA,CAAA,EAAA;8BAuCD,QAAQ,EAAA,CAAA;sBADP,YAAY;uBAAC,gBAAgB;;;AC3F/B;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, inject, ElementRef, Renderer2, HostListener, Directive, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
export { AutocompleteComponent, CheckboxComponent, DatePickerComponent, DropdownComponent, MultiSelectComponent, RadioGroupComponent, TextBoxComponent } from 'ngx-core-components/inputs';
|
|
3
|
+
export { AutocompleteComponent, CheckboxComponent, ColorPickerComponent, DatePickerComponent, DateRangePickerComponent, DropdownComponent, MultiSelectComponent, NumericTextBoxComponent, RadioGroupComponent, RatingComponent, SliderComponent, SwitchComponent, TextBoxComponent, TextareaComponent, TimePickerComponent } from 'ngx-core-components/inputs';
|
|
4
4
|
export { BarChartComponent, CHART_COLORS, DependencyType, GanttChartComponent, GanttScaleService, LineChartComponent, PieChartComponent, SparklineComponent, ZoomLevel } from 'ngx-core-components/charts';
|
|
5
5
|
export { DataGridComponent } from 'ngx-core-components/grid';
|
|
6
6
|
export { ListViewComponent, TreeViewComponent } from 'ngx-core-components/views';
|
|
7
7
|
export { DialogContainerComponent, DialogService } from 'ngx-core-components/dialog';
|
|
8
|
+
export { ButtonComponent, ButtonGroupComponent, ChipComponent, ChipListComponent, DropDownButtonComponent, SplitButtonComponent } from 'ngx-core-components/buttons';
|
|
9
|
+
export { AccordionComponent, CardComponent, SplitterComponent, StepperComponent, TabComponent, TabStripComponent } from 'ngx-core-components/layout';
|
|
10
|
+
export { BadgeComponent, NotificationContainerComponent, NotificationService, ProgressBarComponent, SkeletonComponent } from 'ngx-core-components/feedback';
|
|
11
|
+
export { BreadcrumbComponent, MenuComponent } from 'ngx-core-components/navigation';
|
|
12
|
+
export { BarcodeComponent, QrCodeComponent } from 'ngx-core-components/barcodes';
|
|
8
13
|
|
|
9
14
|
class TooltipDirective {
|
|
10
15
|
ngxTooltip = input('');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-core-components.mjs","sources":["../../../projects/ngx-core-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-core-components/src/lib/tooltip/popover.component.ts","../../../projects/ngx-core-components/src/public-api.ts","../../../projects/ngx-core-components/src/ngx-core-components.ts"],"sourcesContent":["import {\n Directive, input, signal, ElementRef, HostListener, inject,\n computed, effect, Renderer2\n} from '@angular/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n@Directive({\n selector: '[ngxTooltip]',\n standalone: true,\n})\nexport class TooltipDirective {\n ngxTooltip = input<string>('');\n tooltipPosition = input<TooltipPosition>('top');\n\n private el = inject(ElementRef);\n private renderer = inject(Renderer2);\n private tooltipEl: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n const text = this.ngxTooltip();\n if (!text) return;\n this.showTooltip(text);\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.hideTooltip();\n }\n\n private showTooltip(text: string): void {\n this.hideTooltip();\n const tip = this.renderer.createElement('div') as HTMLElement;\n tip.className = 'ngx-tooltip';\n tip.setAttribute('role', 'tooltip');\n tip.textContent = text;\n document.body.appendChild(tip);\n this.tooltipEl = tip;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const tipRect = tip.getBoundingClientRect();\n const pos = this.tooltipPosition();\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n const OFFSET = 8;\n let top = 0, left = 0;\n\n switch (pos) {\n case 'top':\n top = rect.top + scrollY - tipRect.height - OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'bottom':\n top = rect.bottom + scrollY + OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'left':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.left + scrollX - tipRect.width - OFFSET;\n break;\n case 'right':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.right + scrollX + OFFSET;\n break;\n }\n\n // Auto-flip if outside viewport\n if (top < 0) top = rect.bottom + scrollY + OFFSET;\n if (left < 0) left = 4;\n if (left + tipRect.width > window.innerWidth) left = window.innerWidth - tipRect.width - 4;\n\n tip.style.top = top + 'px';\n tip.style.left = left + 'px';\n tip.style.setProperty('--pos', pos);\n requestAnimationFrame(() => { if (tip) tip.classList.add('visible'); });\n }\n\n private hideTooltip(): void {\n if (this.tooltipEl) {\n this.tooltipEl.remove();\n this.tooltipEl = null;\n }\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal,\n HostListener, ElementRef, inject\n} from '@angular/core';\n\n@Component({\n selector: 'ngx-popover',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-popover-wrapper\">\n <!-- Trigger slot -->\n <div class=\"popover-trigger\" (click)=\"toggle()\">\n <ng-content select=\"[popoverTrigger]\"/>\n </div>\n\n <!-- Popup -->\n @if (isOpen()) {\n <div class=\"popover-panel\" [class]=\"'popover-' + position()\">\n @if (title()) {\n <div class=\"popover-header\">\n <span class=\"popover-title\">{{ title() }}</span>\n <button class=\"popover-close\" (click)=\"close()\">✕</button>\n </div>\n }\n <div class=\"popover-body\">\n <ng-content select=\"[popoverBody]\"/>\n </div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: inline-block;\n }\n .ngx-popover-wrapper { position: relative; display: inline-block; }\n .popover-trigger { cursor: pointer; }\n .popover-panel {\n position: absolute; z-index: 1000; min-width: 200px; max-width: 320px;\n background: var(--ngx-popover-bg, #fff); border: 1px solid var(--ngx-popover-border, #dee2e6);\n border-radius: var(--ngx-popover-radius, 6px); box-shadow: var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,0.12));\n animation: fadeIn 0.12s ease;\n }\n @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }\n .popover-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 14px 8px; border-bottom: 1px solid var(--ngx-popover-border, #dee2e6);\n }\n .popover-title { font-size: 14px; font-weight: 600; color: #212529; }\n .popover-close {\n background: none; border: none; cursor: pointer; font-size: 12px;\n color: #6c757d; padding: 2px 4px; border-radius: 3px;\n }\n .popover-close:hover { background: #f1f3f5; }\n .popover-body { padding: 12px 14px; font-size: 13px; color: #495057; }\n `]\n})\nexport class PopoverComponent {\n title = input<string>('');\n position = input<'top' | 'bottom' | 'left' | 'right'>('bottom');\n\n isOpen = signal(false);\n toggle(): void { this.isOpen.update(v => !v); }\n close(): void { this.isOpen.set(false); }\n\n private el = inject(ElementRef);\n\n @HostListener('document:click', ['$event'])\n onDocClick(e: MouseEvent): void {\n if (!this.el.nativeElement.contains(e.target)) this.isOpen.set(false);\n }\n}\n","/*\n * Public API Surface of ngx-core-components\n *\n * Components are organized into secondary entry points.\n * All exports are re-exported here for convenience/backward compatibility.\n */\n\n// ===== Tooltip & Popover (primary entry only) =====\nexport { TooltipDirective } from './lib/tooltip/tooltip.directive';\nexport type { TooltipPosition } from './lib/tooltip/tooltip.directive';\nexport { PopoverComponent } from './lib/tooltip/popover.component';\n\n// ===== Input Components (also available via ngx-core-components/inputs) =====\nexport { TextBoxComponent } from 'ngx-core-components/inputs';\nexport { CheckboxComponent } from 'ngx-core-components/inputs';\nexport { RadioGroupComponent } from 'ngx-core-components/inputs';\nexport type { RadioOption } from 'ngx-core-components/inputs';\nexport { DropdownComponent } from 'ngx-core-components/inputs';\nexport type { DropdownOption } from 'ngx-core-components/inputs';\nexport { MultiSelectComponent } from 'ngx-core-components/inputs';\nexport { AutocompleteComponent } from 'ngx-core-components/inputs';\nexport { DatePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Charts & Gantt (also available via ngx-core-components/charts) =====\nexport { BarChartComponent } from 'ngx-core-components/charts';\nexport { LineChartComponent } from 'ngx-core-components/charts';\nexport { PieChartComponent } from 'ngx-core-components/charts';\nexport { SparklineComponent } from 'ngx-core-components/charts';\nexport type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } from 'ngx-core-components/charts';\nexport { GanttChartComponent } from 'ngx-core-components/charts';\nexport type { FlatRow } from 'ngx-core-components/charts';\nexport { GanttScaleService } from 'ngx-core-components/charts';\n// Gantt model types\nexport type {\n GanttTask,\n GanttDependency,\n GanttConfig,\n GanttColumnDef,\n GanttTaskChangeEvent,\n GanttTaskClickEvent,\n GanttDependencyClickEvent,\n GanttScrollEvent,\n} from 'ngx-core-components/charts';\nexport { ZoomLevel, DependencyType } from 'ngx-core-components/charts';\n\n// ===== Data Grid (also available via ngx-core-components/grid) =====\nexport { DataGridComponent } from 'ngx-core-components/grid';\nexport type {\n GridColumnDef,\n GridSortState,\n GridPageChangeEvent,\n GridSortChangeEvent,\n GridRowClickEvent,\n} from 'ngx-core-components/grid';\n\n// ===== Hierarchical Views (also available via ngx-core-components/views) =====\nexport { TreeViewComponent } from 'ngx-core-components/views';\nexport type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';\nexport { ListViewComponent } from 'ngx-core-components/views';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n} from 'ngx-core-components/views';\n\n// ===== Dialog (also available via ngx-core-components/dialog) =====\nexport { DialogService } from 'ngx-core-components/dialog';\nexport type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';\nexport { DialogContainerComponent } from 'ngx-core-components/dialog';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAWa,gBAAgB,CAAA;AAC3B,IAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAkB,KAAK,CAAC;AAEvC,IAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AACvB,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,SAAS,GAAuB,IAAI;IAG5C,YAAY,GAAA;AACV,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;AAC9B,QAAA,IAAI,CAAC,IAAI;YAAE;AACX,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACxB;IAGA,YAAY,GAAA;QACV,IAAI,CAAC,WAAW,EAAE;IACpB;AAEQ,IAAA,WAAW,CAAC,IAAY,EAAA;QAC9B,IAAI,CAAC,WAAW,EAAE;QAClB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAgB;AAC7D,QAAA,GAAG,CAAC,SAAS,GAAG,aAAa;AAC7B,QAAA,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC;AACnC,QAAA,GAAG,CAAC,WAAW,GAAG,IAAI;AACtB,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,GAAG;QAEpB,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,qBAAqB,EAAE;AAC1D,QAAA,MAAM,OAAO,GAAG,GAAG,CAAC,qBAAqB,E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EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,gBAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EArDjB;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA+BU,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAzD5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,cACX,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA;8BA0CD,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;;ACxE5C;;;;;AAKG;AAEH;;ACPA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-core-components.mjs","sources":["../../../projects/ngx-core-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-core-components/src/lib/tooltip/popover.component.ts","../../../projects/ngx-core-components/src/public-api.ts","../../../projects/ngx-core-components/src/ngx-core-components.ts"],"sourcesContent":["import {\n Directive, input, signal, ElementRef, HostListener, inject,\n computed, effect, Renderer2\n} from '@angular/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n@Directive({\n selector: '[ngxTooltip]',\n standalone: true,\n})\nexport class TooltipDirective {\n ngxTooltip = input<string>('');\n tooltipPosition = input<TooltipPosition>('top');\n\n private el = inject(ElementRef);\n private renderer = inject(Renderer2);\n private tooltipEl: HTMLElement | null = null;\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n const text = this.ngxTooltip();\n if (!text) return;\n this.showTooltip(text);\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.hideTooltip();\n }\n\n private showTooltip(text: string): void {\n this.hideTooltip();\n const tip = this.renderer.createElement('div') as HTMLElement;\n tip.className = 'ngx-tooltip';\n tip.setAttribute('role', 'tooltip');\n tip.textContent = text;\n document.body.appendChild(tip);\n this.tooltipEl = tip;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const tipRect = tip.getBoundingClientRect();\n const pos = this.tooltipPosition();\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n const OFFSET = 8;\n let top = 0, left = 0;\n\n switch (pos) {\n case 'top':\n top = rect.top + scrollY - tipRect.height - OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'bottom':\n top = rect.bottom + scrollY + OFFSET;\n left = rect.left + scrollX + rect.width / 2 - tipRect.width / 2;\n break;\n case 'left':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.left + scrollX - tipRect.width - OFFSET;\n break;\n case 'right':\n top = rect.top + scrollY + rect.height / 2 - tipRect.height / 2;\n left = rect.right + scrollX + OFFSET;\n break;\n }\n\n // Auto-flip if outside viewport\n if (top < 0) top = rect.bottom + scrollY + OFFSET;\n if (left < 0) left = 4;\n if (left + tipRect.width > window.innerWidth) left = window.innerWidth - tipRect.width - 4;\n\n tip.style.top = top + 'px';\n tip.style.left = left + 'px';\n tip.style.setProperty('--pos', pos);\n requestAnimationFrame(() => { if (tip) tip.classList.add('visible'); });\n }\n\n private hideTooltip(): void {\n if (this.tooltipEl) {\n this.tooltipEl.remove();\n this.tooltipEl = null;\n }\n }\n}\n","import {\n Component, ChangeDetectionStrategy, input, output, signal,\n HostListener, ElementRef, inject\n} from '@angular/core';\n\n@Component({\n selector: 'ngx-popover',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ngx-popover-wrapper\">\n <!-- Trigger slot -->\n <div class=\"popover-trigger\" (click)=\"toggle()\">\n <ng-content select=\"[popoverTrigger]\"/>\n </div>\n\n <!-- Popup -->\n @if (isOpen()) {\n <div class=\"popover-panel\" [class]=\"'popover-' + position()\">\n @if (title()) {\n <div class=\"popover-header\">\n <span class=\"popover-title\">{{ title() }}</span>\n <button class=\"popover-close\" (click)=\"close()\">✕</button>\n </div>\n }\n <div class=\"popover-body\">\n <ng-content select=\"[popoverBody]\"/>\n </div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host {\n display: inline-block;\n }\n .ngx-popover-wrapper { position: relative; display: inline-block; }\n .popover-trigger { cursor: pointer; }\n .popover-panel {\n position: absolute; z-index: 1000; min-width: 200px; max-width: 320px;\n background: var(--ngx-popover-bg, #fff); border: 1px solid var(--ngx-popover-border, #dee2e6);\n border-radius: var(--ngx-popover-radius, 6px); box-shadow: var(--ngx-popover-shadow, 0 4px 16px rgba(0,0,0,0.12));\n animation: fadeIn 0.12s ease;\n }\n @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }\n .popover-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }\n .popover-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }\n .popover-header {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 14px 8px; border-bottom: 1px solid var(--ngx-popover-border, #dee2e6);\n }\n .popover-title { font-size: 14px; font-weight: 600; color: #212529; }\n .popover-close {\n background: none; border: none; cursor: pointer; font-size: 12px;\n color: #6c757d; padding: 2px 4px; border-radius: 3px;\n }\n .popover-close:hover { background: #f1f3f5; }\n .popover-body { padding: 12px 14px; font-size: 13px; color: #495057; }\n `]\n})\nexport class PopoverComponent {\n title = input<string>('');\n position = input<'top' | 'bottom' | 'left' | 'right'>('bottom');\n\n isOpen = signal(false);\n toggle(): void { this.isOpen.update(v => !v); }\n close(): void { this.isOpen.set(false); }\n\n private el = inject(ElementRef);\n\n @HostListener('document:click', ['$event'])\n onDocClick(e: MouseEvent): void {\n if (!this.el.nativeElement.contains(e.target)) this.isOpen.set(false);\n }\n}\n","/*\n * Public API Surface of ngx-core-components\n *\n * Components are organized into secondary entry points.\n * All exports are re-exported here for convenience/backward compatibility.\n */\n\n// ===== Tooltip & Popover (primary entry only) =====\nexport { TooltipDirective } from './lib/tooltip/tooltip.directive';\nexport type { TooltipPosition } from './lib/tooltip/tooltip.directive';\nexport { PopoverComponent } from './lib/tooltip/popover.component';\n\n// ===== Input Components (also available via ngx-core-components/inputs) =====\nexport { TextBoxComponent } from 'ngx-core-components/inputs';\nexport { CheckboxComponent } from 'ngx-core-components/inputs';\nexport { RadioGroupComponent } from 'ngx-core-components/inputs';\nexport type { RadioOption } from 'ngx-core-components/inputs';\nexport { DropdownComponent } from 'ngx-core-components/inputs';\nexport type { DropdownOption } from 'ngx-core-components/inputs';\nexport { MultiSelectComponent } from 'ngx-core-components/inputs';\nexport { AutocompleteComponent } from 'ngx-core-components/inputs';\nexport { DatePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Charts & Gantt (also available via ngx-core-components/charts) =====\nexport { BarChartComponent } from 'ngx-core-components/charts';\nexport { LineChartComponent } from 'ngx-core-components/charts';\nexport { PieChartComponent } from 'ngx-core-components/charts';\nexport { SparklineComponent } from 'ngx-core-components/charts';\nexport type { ChartSeries, ChartDataPoint } from 'ngx-core-components/charts';\nexport { CHART_COLORS } from 'ngx-core-components/charts';\nexport { GanttChartComponent } from 'ngx-core-components/charts';\nexport type { FlatRow } from 'ngx-core-components/charts';\nexport { GanttScaleService } from 'ngx-core-components/charts';\n// Gantt model types\nexport type {\n GanttTask,\n GanttDependency,\n GanttConfig,\n GanttColumnDef,\n GanttTaskChangeEvent,\n GanttTaskClickEvent,\n GanttDependencyClickEvent,\n GanttScrollEvent,\n} from 'ngx-core-components/charts';\nexport { ZoomLevel, DependencyType } from 'ngx-core-components/charts';\n\n// ===== Data Grid (also available via ngx-core-components/grid) =====\nexport { DataGridComponent } from 'ngx-core-components/grid';\nexport type {\n GridColumnDef,\n GridSortState,\n GridPageChangeEvent,\n GridSortChangeEvent,\n GridRowClickEvent,\n} from 'ngx-core-components/grid';\n\n// ===== Hierarchical Views (also available via ngx-core-components/views) =====\nexport { TreeViewComponent } from 'ngx-core-components/views';\nexport type { TreeNode, TreeNodeEvent } from 'ngx-core-components/views';\nexport { ListViewComponent } from 'ngx-core-components/views';\nexport type {\n ListViewItemClickEvent,\n ListViewSelectionEvent,\n} from 'ngx-core-components/views';\n\n// ===== Dialog (also available via ngx-core-components/dialog) =====\nexport { DialogService } from 'ngx-core-components/dialog';\nexport type { DialogRef, DialogConfig } from 'ngx-core-components/dialog';\nexport { DialogContainerComponent } from 'ngx-core-components/dialog';\n\n// ===== Buttons (also available via ngx-core-components/buttons) =====\nexport { ButtonComponent, ButtonGroupComponent, ChipComponent, ChipListComponent, SplitButtonComponent, DropDownButtonComponent } from 'ngx-core-components/buttons';\nexport type { ButtonVariant, ButtonSize, ButtonShape, ChipVariant, SplitButtonItem, DropDownButtonItem } from 'ngx-core-components/buttons';\n\n// ===== Layout (also available via ngx-core-components/layout) =====\nexport { CardComponent, TabStripComponent, TabComponent, AccordionComponent, StepperComponent, SplitterComponent } from 'ngx-core-components/layout';\nexport type { CardVariant, AccordionItem, StepperStep } from 'ngx-core-components/layout';\n\n// ===== Feedback (also available via ngx-core-components/feedback) =====\nexport { BadgeComponent, ProgressBarComponent, SkeletonComponent, NotificationService, NotificationContainerComponent } from 'ngx-core-components/feedback';\nexport type { BadgeVariant, BadgePosition, ProgressVariant, SkeletonShape, NotificationOptions, NotificationType, NotificationPosition } from 'ngx-core-components/feedback';\n\n// ===== Navigation (also available via ngx-core-components/navigation) =====\nexport { BreadcrumbComponent, MenuComponent } from 'ngx-core-components/navigation';\nexport type { BreadcrumbItem, MenuItem } from 'ngx-core-components/navigation';\n\n// ===== Additional Inputs (also available via ngx-core-components/inputs) =====\nexport { SliderComponent, SwitchComponent, RatingComponent, NumericTextBoxComponent, TextareaComponent, ColorPickerComponent, TimePickerComponent, DateRangePickerComponent } from 'ngx-core-components/inputs';\n\n// ===== Barcodes (also available via ngx-core-components/barcodes) =====\nexport { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAWa,gBAAgB,CAAA;AAC3B,IAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC;AAC9B,IAAA,eAAe,GAAG,KAAK,CAAkB,KAAK,CAAC;AAEvC,IAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AACvB,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,SAAS,GAAuB,IAAI;IAG5C,YAAY,GAAA;AACV,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE;AAC9B,QAAA,IAAI,CAAC,IAAI;YAAE;AACX,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACxB;IAGA,YAAY,GAAA;QACV,IAAI,CAAC,WAAW,EAAE;IACpB;AAEQ,IAAA,WAAW,CAAC,IAAY,EAAA;QAC9B,IAAI,CAAC,WAAW,EAAE;QAClB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC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EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,2tCAAA,CAAA,EAAA;8BA0CD,UAAU,EAAA,CAAA;sBADT,YAAY;uBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;;ACxE5C;;;;;AAKG;AAEH;;ACPA;;AAEG;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ColorPickerComponent {
|
|
3
|
+
label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
value: import("@angular/core").WritableSignal<string>;
|
|
5
|
+
open: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
+
colorChange: import("@angular/core").OutputEmitterRef<string>;
|
|
7
|
+
colors: string[];
|
|
8
|
+
pick(color: string): void;
|
|
9
|
+
onHexInput(e: Event): void;
|
|
10
|
+
toggleOpen(): void;
|
|
11
|
+
onNativeInput(e: Event): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "ngx-color-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "colorChange": "colorChange"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DateRangePickerComponent {
|
|
3
|
+
label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
startDate: import("@angular/core").WritableSignal<string>;
|
|
5
|
+
endDate: import("@angular/core").WritableSignal<string>;
|
|
6
|
+
open: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
private picking;
|
|
8
|
+
viewMonth: import("@angular/core").WritableSignal<number>;
|
|
9
|
+
viewYear: import("@angular/core").WritableSignal<number>;
|
|
10
|
+
rangeChange: import("@angular/core").OutputEmitterRef<{
|
|
11
|
+
start: string;
|
|
12
|
+
end: string;
|
|
13
|
+
}>;
|
|
14
|
+
weekDays: string[];
|
|
15
|
+
monthNames: string[];
|
|
16
|
+
monthName(m: number): string;
|
|
17
|
+
toggleOpen(): void;
|
|
18
|
+
prevMonth(e: Event): void;
|
|
19
|
+
nextMonth(e: Event): void;
|
|
20
|
+
calendarDays: import("@angular/core").Signal<any[]>;
|
|
21
|
+
selectDay(date: Date, e: Event): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "ngx-date-range-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "rangeChange": "rangeChange"; }, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NumericTextBoxComponent {
|
|
3
|
+
label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
min: import("@angular/core").InputSignal<number>;
|
|
5
|
+
max: import("@angular/core").InputSignal<number>;
|
|
6
|
+
step: import("@angular/core").InputSignal<number>;
|
|
7
|
+
value: import("@angular/core").WritableSignal<number>;
|
|
8
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
10
|
+
prefix: import("@angular/core").InputSignal<string>;
|
|
11
|
+
suffix: import("@angular/core").InputSignal<string>;
|
|
12
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
valueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
14
|
+
onChange(e: Event): void;
|
|
15
|
+
spin(dir: 1 | -1): void;
|
|
16
|
+
setValue(v: number): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericTextBoxComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericTextBoxComponent, "ngx-numeric-textbox", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
19
|
+
}
|
package/inputs/public-api.d.ts
CHANGED
|
@@ -7,3 +7,11 @@ export type { DropdownOption } from './dropdown/dropdown.component';
|
|
|
7
7
|
export { MultiSelectComponent } from './multi-select/multi-select.component';
|
|
8
8
|
export { AutocompleteComponent } from './autocomplete/autocomplete.component';
|
|
9
9
|
export { DatePickerComponent } from './date-picker/date-picker.component';
|
|
10
|
+
export { SliderComponent } from './slider/slider.component';
|
|
11
|
+
export { SwitchComponent } from './switch/switch.component';
|
|
12
|
+
export { RatingComponent } from './rating/rating.component';
|
|
13
|
+
export { NumericTextBoxComponent } from './numeric-textbox/numeric-textbox.component';
|
|
14
|
+
export { TextareaComponent } from './textarea/textarea.component';
|
|
15
|
+
export { ColorPickerComponent } from './color-picker/color-picker.component';
|
|
16
|
+
export { TimePickerComponent } from './time-picker/time-picker.component';
|
|
17
|
+
export { DateRangePickerComponent } from './date-range-picker/date-range-picker.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RatingComponent {
|
|
3
|
+
max: import("@angular/core").InputSignal<number>;
|
|
4
|
+
label: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
showValue: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
current: import("@angular/core").WritableSignal<number>;
|
|
8
|
+
hovered: import("@angular/core").WritableSignal<number>;
|
|
9
|
+
ratingChange: import("@angular/core").OutputEmitterRef<number>;
|
|
10
|
+
stars: () => number[];
|
|
11
|
+
setRating(star: number): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RatingComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RatingComponent, "ngx-rating", never, { "max": { "alias": "max"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; }, { "ratingChange": "ratingChange"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SliderComponent {
|
|
3
|
+
label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
min: import("@angular/core").InputSignal<number>;
|
|
5
|
+
max: import("@angular/core").InputSignal<number>;
|
|
6
|
+
step: import("@angular/core").InputSignal<number>;
|
|
7
|
+
value: import("@angular/core").WritableSignal<number>;
|
|
8
|
+
low: import("@angular/core").WritableSignal<number>;
|
|
9
|
+
high: import("@angular/core").WritableSignal<number>;
|
|
10
|
+
range: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
showValue: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
showTicks: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
valueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
15
|
+
rangeChange: import("@angular/core").OutputEmitterRef<[number, number]>;
|
|
16
|
+
pct: import("@angular/core").Signal<number>;
|
|
17
|
+
lowPct: import("@angular/core").Signal<number>;
|
|
18
|
+
highPct: import("@angular/core").Signal<number>;
|
|
19
|
+
private clamp;
|
|
20
|
+
private stepSize;
|
|
21
|
+
onInput(e: Event): void;
|
|
22
|
+
onLow(e: Event): void;
|
|
23
|
+
onHigh(e: Event): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "ngx-slider", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "rangeChange": "rangeChange"; }, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SwitchComponent {
|
|
3
|
+
checked: import("@angular/core").WritableSignal<boolean>;
|
|
4
|
+
onLabel: import("@angular/core").InputSignal<string>;
|
|
5
|
+
offLabel: import("@angular/core").InputSignal<string>;
|
|
6
|
+
size: import("@angular/core").InputSignal<"sm" | "md" | "lg">;
|
|
7
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
9
|
+
toggle(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "ngx-switch", never, { "onLabel": { "alias": "onLabel"; "required": false; "isSignal": true; }; "offLabel": { "alias": "offLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TextareaComponent {
|
|
3
|
+
label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
5
|
+
rows: import("@angular/core").InputSignal<number>;
|
|
6
|
+
maxlength: import("@angular/core").InputSignal<number>;
|
|
7
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
autoResize: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
hint: import("@angular/core").InputSignal<string>;
|
|
10
|
+
error: import("@angular/core").InputSignal<string>;
|
|
11
|
+
value: import("@angular/core").WritableSignal<string>;
|
|
12
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
charCount: import("@angular/core").Signal<number>;
|
|
14
|
+
valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
15
|
+
onInput(e: Event): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "ngx-textarea", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoResize": { "alias": "autoResize"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TimePickerComponent {
|
|
3
|
+
label: import("@angular/core").InputSignal<string>;
|
|
4
|
+
use12h: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
hour: import("@angular/core").WritableSignal<number>;
|
|
6
|
+
min: import("@angular/core").WritableSignal<number>;
|
|
7
|
+
ampm: import("@angular/core").WritableSignal<"AM" | "PM">;
|
|
8
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
timeChange: import("@angular/core").OutputEmitterRef<string>;
|
|
10
|
+
hours: number[];
|
|
11
|
+
minutes: number[];
|
|
12
|
+
displayHour: () => number;
|
|
13
|
+
pad: (n: number) => string;
|
|
14
|
+
onHour(e: Event): void;
|
|
15
|
+
onMin(e: Event): void;
|
|
16
|
+
onAmPm(e: Event): void;
|
|
17
|
+
emit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "ngx-time-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "use12h": { "alias": "use12h"; "required": false; "isSignal": true; }; }, { "timeChange": "timeChange"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface AccordionItem {
|
|
3
|
+
title: string;
|
|
4
|
+
content: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class AccordionComponent {
|
|
10
|
+
items: import("@angular/core").InputSignal<AccordionItem[]>;
|
|
11
|
+
multi: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
private expanded;
|
|
13
|
+
isExpanded(i: number): boolean;
|
|
14
|
+
toggle(i: number): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ngx-accordion", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type CardVariant = 'default' | 'outlined' | 'elevated' | 'filled';
|
|
3
|
+
export declare class CardComponent {
|
|
4
|
+
title: import("@angular/core").InputSignal<string>;
|
|
5
|
+
subtitle: import("@angular/core").InputSignal<string>;
|
|
6
|
+
headerIcon: import("@angular/core").InputSignal<string>;
|
|
7
|
+
imageUrl: import("@angular/core").InputSignal<string>;
|
|
8
|
+
imageAlt: import("@angular/core").InputSignal<string>;
|
|
9
|
+
variant: import("@angular/core").InputSignal<CardVariant>;
|
|
10
|
+
hoverable: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
selectable: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
selected: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
get hasHeader(): () => string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ngx-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "headerIcon": { "alias": "headerIcon"; "required": false; "isSignal": true; }; "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; "imageAlt": { "alias": "imageAlt"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "hoverable": { "alias": "hoverable"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, ["[cardActions]", "*", "[cardFooter]"], true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CardComponent } from './card/card.component';
|
|
2
|
+
export type { CardVariant } from './card/card.component';
|
|
3
|
+
export { TabStripComponent, TabComponent } from './tab-strip/tab-strip.component';
|
|
4
|
+
export { AccordionComponent } from './accordion/accordion.component';
|
|
5
|
+
export type { AccordionItem } from './accordion/accordion.component';
|
|
6
|
+
export { StepperComponent } from './stepper/stepper.component';
|
|
7
|
+
export type { StepperStep } from './stepper/stepper.component';
|
|
8
|
+
export { SplitterComponent } from './splitter/splitter.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SplitterComponent {
|
|
3
|
+
orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
4
|
+
initialSize: import("@angular/core").InputSignal<string>;
|
|
5
|
+
firstSize: import("@angular/core").WritableSignal<string>;
|
|
6
|
+
dragging: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
private startX;
|
|
8
|
+
private startSize;
|
|
9
|
+
private containerSize;
|
|
10
|
+
hostStyle(): "width:100%;height:100%" | "width:100%;height:100%;flex-direction:column";
|
|
11
|
+
startDrag(e: MouseEvent): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitterComponent, "ngx-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "initialSize": { "alias": "initialSize"; "required": false; "isSignal": true; }; }, {}, never, ["[pane1]", "[pane2]"], true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface StepperStep {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
optional?: boolean;
|
|
7
|
+
state?: 'pending' | 'current' | 'complete' | 'error';
|
|
8
|
+
}
|
|
9
|
+
export declare class StepperComponent {
|
|
10
|
+
steps: import("@angular/core").InputSignal<StepperStep[]>;
|
|
11
|
+
currentStep: import("@angular/core").WritableSignal<number>;
|
|
12
|
+
orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
13
|
+
showContent: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
showActions: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
stepChange: import("@angular/core").OutputEmitterRef<number>;
|
|
16
|
+
next(): void;
|
|
17
|
+
back(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "ngx-stepper", never, { "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "showContent": { "alias": "showContent"; "required": false; "isSignal": true; }; "showActions": { "alias": "showActions"; "required": false; "isSignal": true; }; }, { "stepChange": "stepChange"; }, never, ["*"], true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TabComponent {
|
|
4
|
+
title: import("@angular/core").InputSignal<string>;
|
|
5
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
6
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
badge: import("@angular/core").InputSignal<string | number>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ngx-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
export declare class TabStripComponent implements AfterContentInit {
|
|
12
|
+
position: import("@angular/core").InputSignal<"top" | "bottom" | "left" | "right">;
|
|
13
|
+
activeIndex: import("@angular/core").WritableSignal<number>;
|
|
14
|
+
indicatorLeft: import("@angular/core").WritableSignal<number>;
|
|
15
|
+
indicatorWidth: import("@angular/core").WritableSignal<number>;
|
|
16
|
+
tabs: import("@angular/core").Signal<readonly TabComponent[]>;
|
|
17
|
+
tabChange: import("@angular/core").OutputEmitterRef<number>;
|
|
18
|
+
ngAfterContentInit(): void;
|
|
19
|
+
selectTab(index: number): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabStripComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabStripComponent, "ngx-tab-strip", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, { "tabChange": "tabChange"; }, ["tabs"], ["*"], true, never>;
|
|
22
|
+
}
|