shirkasoft-ui-components 1.13.18 → 2.0.0
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 +415 -42
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
- package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-button.mjs +367 -73
- package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
- package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-config.mjs +976 -0
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
- package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1400
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
- package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -293
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
- package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
- package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -303
- package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
- package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -277
- package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
- package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -814
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
- package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
- package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +1918 -1676
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
- package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
- package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +97 -125
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +37 -7
- package/src/baseline.css +2472 -0
- package/src/theme.css +15 -543
- package/src/themes/ocean.css +56 -0
- package/src/themes/sunset.css +55 -0
- package/src/themes/violet.css +25 -0
- package/src/tokens.css +612 -0
- package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
- package/types/shirkasoft-ui-components-button.d.ts +142 -49
- package/types/shirkasoft-ui-components-chart.d.ts +59 -44
- package/types/shirkasoft-ui-components-config.d.ts +357 -0
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
- package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
- package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
- package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
- package/types/shirkasoft-ui-components-knob.d.ts +151 -64
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -132
- package/types/shirkasoft-ui-components-notification.d.ts +63 -58
- package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +301 -192
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -649
- package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
- package/types/shirkasoft-ui-components-tag.d.ts +54 -23
- package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
- package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
- package/types/shirkasoft-ui-components-theme.d.ts +80 -0
- package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +26 -17
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
- package/types/shirkasoft-ui-components.d.ts +1 -2
- package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
|
@@ -1,91 +1,178 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Injectable, computed, effect, inject, input, model, signal } from "@angular/core";
|
|
3
|
+
var TabsService = class TabsService {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.active = signal(void 0, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
6
|
+
}
|
|
7
|
+
select(value) {
|
|
8
|
+
this.active.set(value);
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.3.2",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: TabsService,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
static {
|
|
21
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
22
|
+
minVersion: "12.0.0",
|
|
23
|
+
version: "22.3.2",
|
|
24
|
+
ngImport: i0,
|
|
25
|
+
type: TabsService
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
30
|
+
minVersion: "12.0.0",
|
|
31
|
+
version: "22.3.2",
|
|
32
|
+
ngImport: i0,
|
|
33
|
+
type: TabsService,
|
|
34
|
+
decorators: [{ type: Injectable }]
|
|
35
|
+
});
|
|
36
|
+
var TabsComponent = class TabsComponent {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.value = model(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
39
|
+
this.scrollable = input(false, ...ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []);
|
|
40
|
+
this.tabsSvc = inject(TabsService);
|
|
41
|
+
effect(() => {
|
|
42
|
+
this.tabsSvc.active.set(this.value());
|
|
43
|
+
});
|
|
44
|
+
effect(() => {
|
|
45
|
+
const active = this.tabsSvc.active();
|
|
46
|
+
if (active !== this.value()) this.value.set(active);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
static {
|
|
50
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
51
|
+
minVersion: "12.0.0",
|
|
52
|
+
version: "22.3.2",
|
|
53
|
+
ngImport: i0,
|
|
54
|
+
type: TabsComponent,
|
|
55
|
+
deps: [],
|
|
56
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
static {
|
|
60
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
61
|
+
minVersion: "17.1.0",
|
|
62
|
+
version: "22.3.2",
|
|
63
|
+
type: TabsComponent,
|
|
64
|
+
isStandalone: true,
|
|
65
|
+
selector: "shk-tabs",
|
|
66
|
+
inputs: {
|
|
67
|
+
value: {
|
|
68
|
+
classPropertyName: "value",
|
|
69
|
+
publicName: "value",
|
|
70
|
+
isSignal: true,
|
|
71
|
+
isRequired: false,
|
|
72
|
+
transformFunction: null
|
|
73
|
+
},
|
|
74
|
+
scrollable: {
|
|
75
|
+
classPropertyName: "scrollable",
|
|
76
|
+
publicName: "scrollable",
|
|
77
|
+
isSignal: true,
|
|
78
|
+
isRequired: false,
|
|
79
|
+
transformFunction: null
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
outputs: { value: "valueChange" },
|
|
83
|
+
providers: [TabsService],
|
|
84
|
+
ngImport: i0,
|
|
85
|
+
template: `
|
|
54
86
|
<div class="shk-tabs">
|
|
55
87
|
<ng-content></ng-content>
|
|
56
88
|
</div>
|
|
57
|
-
`,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
89
|
+
`,
|
|
90
|
+
isInline: true,
|
|
91
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
96
|
+
minVersion: "12.0.0",
|
|
97
|
+
version: "22.3.2",
|
|
98
|
+
ngImport: i0,
|
|
99
|
+
type: TabsComponent,
|
|
100
|
+
decorators: [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: "shk-tabs",
|
|
104
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
105
|
+
providers: [TabsService],
|
|
106
|
+
template: `
|
|
67
107
|
<div class="shk-tabs">
|
|
68
108
|
<ng-content></ng-content>
|
|
69
109
|
</div>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
110
|
+
`
|
|
111
|
+
}]
|
|
112
|
+
}],
|
|
113
|
+
ctorParameters: () => [],
|
|
114
|
+
propDecorators: {
|
|
115
|
+
value: [{
|
|
116
|
+
type: i0.Input,
|
|
117
|
+
args: [{
|
|
118
|
+
isSignal: true,
|
|
119
|
+
alias: "value",
|
|
120
|
+
required: false
|
|
121
|
+
}]
|
|
122
|
+
}, {
|
|
123
|
+
type: i0.Output,
|
|
124
|
+
args: ["valueChange"]
|
|
125
|
+
}],
|
|
126
|
+
scrollable: [{
|
|
127
|
+
type: i0.Input,
|
|
128
|
+
args: [{
|
|
129
|
+
isSignal: true,
|
|
130
|
+
alias: "scrollable",
|
|
131
|
+
required: false
|
|
132
|
+
}]
|
|
133
|
+
}]
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
var TablistComponent = class TablistComponent {
|
|
137
|
+
constructor() {
|
|
138
|
+
this.scrollable = input(false, ...ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []);
|
|
139
|
+
this.styleClass = input("", ...ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []);
|
|
140
|
+
}
|
|
141
|
+
static {
|
|
142
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
143
|
+
minVersion: "12.0.0",
|
|
144
|
+
version: "22.3.2",
|
|
145
|
+
ngImport: i0,
|
|
146
|
+
type: TablistComponent,
|
|
147
|
+
deps: [],
|
|
148
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
static {
|
|
152
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
153
|
+
minVersion: "17.1.0",
|
|
154
|
+
version: "22.3.2",
|
|
155
|
+
type: TablistComponent,
|
|
156
|
+
isStandalone: true,
|
|
157
|
+
selector: "shk-tablist",
|
|
158
|
+
inputs: {
|
|
159
|
+
scrollable: {
|
|
160
|
+
classPropertyName: "scrollable",
|
|
161
|
+
publicName: "scrollable",
|
|
162
|
+
isSignal: true,
|
|
163
|
+
isRequired: false,
|
|
164
|
+
transformFunction: null
|
|
165
|
+
},
|
|
166
|
+
styleClass: {
|
|
167
|
+
classPropertyName: "styleClass",
|
|
168
|
+
publicName: "styleClass",
|
|
169
|
+
isSignal: true,
|
|
170
|
+
isRequired: false,
|
|
171
|
+
transformFunction: null
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
ngImport: i0,
|
|
175
|
+
template: `
|
|
89
176
|
<div
|
|
90
177
|
class="shk-tablist"
|
|
91
178
|
[class.shk-tablist-scrollable]="scrollable()"
|
|
@@ -95,11 +182,24 @@ class TablistComponent {
|
|
|
95
182
|
>
|
|
96
183
|
<ng-content></ng-content>
|
|
97
184
|
</div>
|
|
98
|
-
`,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
185
|
+
`,
|
|
186
|
+
isInline: true,
|
|
187
|
+
styles: [".shk-tablist{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;border-bottom:1px solid var(--shk-surface-200)}:host-context(.dark) .shk-tablist{border-bottom-color:var(--shk-surface-200)}.shk-tablist-scrollable{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.shk-tablist-scrollable::-webkit-scrollbar{height:6px}.shk-tablist-scrollable::-webkit-scrollbar-thumb{background:var(--shk-surface-300);border-radius:9999px}\n"],
|
|
188
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
193
|
+
minVersion: "12.0.0",
|
|
194
|
+
version: "22.3.2",
|
|
195
|
+
ngImport: i0,
|
|
196
|
+
type: TablistComponent,
|
|
197
|
+
decorators: [{
|
|
198
|
+
type: Component,
|
|
199
|
+
args: [{
|
|
200
|
+
selector: "shk-tablist",
|
|
201
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
202
|
+
template: `
|
|
103
203
|
<div
|
|
104
204
|
class="shk-tablist"
|
|
105
205
|
[class.shk-tablist-scrollable]="scrollable()"
|
|
@@ -109,36 +209,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
|
|
|
109
209
|
>
|
|
110
210
|
<ng-content></ng-content>
|
|
111
211
|
</div>
|
|
112
|
-
`,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
212
|
+
`,
|
|
213
|
+
styles: [".shk-tablist{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;border-bottom:1px solid var(--shk-surface-200)}:host-context(.dark) .shk-tablist{border-bottom-color:var(--shk-surface-200)}.shk-tablist-scrollable{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.shk-tablist-scrollable::-webkit-scrollbar{height:6px}.shk-tablist-scrollable::-webkit-scrollbar-thumb{background:var(--shk-surface-300);border-radius:9999px}\n"]
|
|
214
|
+
}]
|
|
215
|
+
}],
|
|
216
|
+
propDecorators: {
|
|
217
|
+
scrollable: [{
|
|
218
|
+
type: i0.Input,
|
|
219
|
+
args: [{
|
|
220
|
+
isSignal: true,
|
|
221
|
+
alias: "scrollable",
|
|
222
|
+
required: false
|
|
223
|
+
}]
|
|
224
|
+
}],
|
|
225
|
+
styleClass: [{
|
|
226
|
+
type: i0.Input,
|
|
227
|
+
args: [{
|
|
228
|
+
isSignal: true,
|
|
229
|
+
alias: "styleClass",
|
|
230
|
+
required: false
|
|
231
|
+
}]
|
|
232
|
+
}]
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
var TabComponent = class TabComponent {
|
|
236
|
+
constructor() {
|
|
237
|
+
this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
238
|
+
this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
239
|
+
this.styleClass = input("", ...ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []);
|
|
240
|
+
this.tabsSvc = inject(TabsService);
|
|
241
|
+
this.active = computed(() => this.tabsSvc.active() === this.value(), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
242
|
+
}
|
|
243
|
+
select() {
|
|
244
|
+
if (this.disabled()) return;
|
|
245
|
+
this.tabsSvc.select(this.value());
|
|
246
|
+
}
|
|
247
|
+
static {
|
|
248
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
249
|
+
minVersion: "12.0.0",
|
|
250
|
+
version: "22.3.2",
|
|
251
|
+
ngImport: i0,
|
|
252
|
+
type: TabComponent,
|
|
253
|
+
deps: [],
|
|
254
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
static {
|
|
258
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
259
|
+
minVersion: "17.1.0",
|
|
260
|
+
version: "22.3.2",
|
|
261
|
+
type: TabComponent,
|
|
262
|
+
isStandalone: true,
|
|
263
|
+
selector: "shk-tab",
|
|
264
|
+
inputs: {
|
|
265
|
+
value: {
|
|
266
|
+
classPropertyName: "value",
|
|
267
|
+
publicName: "value",
|
|
268
|
+
isSignal: true,
|
|
269
|
+
isRequired: false,
|
|
270
|
+
transformFunction: null
|
|
271
|
+
},
|
|
272
|
+
disabled: {
|
|
273
|
+
classPropertyName: "disabled",
|
|
274
|
+
publicName: "disabled",
|
|
275
|
+
isSignal: true,
|
|
276
|
+
isRequired: false,
|
|
277
|
+
transformFunction: null
|
|
278
|
+
},
|
|
279
|
+
styleClass: {
|
|
280
|
+
classPropertyName: "styleClass",
|
|
281
|
+
publicName: "styleClass",
|
|
282
|
+
isSignal: true,
|
|
283
|
+
isRequired: false,
|
|
284
|
+
transformFunction: null
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
ngImport: i0,
|
|
288
|
+
template: `
|
|
142
289
|
<button
|
|
143
290
|
type="button"
|
|
144
291
|
class="shk-tab"
|
|
@@ -152,11 +299,24 @@ class TabComponent {
|
|
|
152
299
|
>
|
|
153
300
|
<ng-content></ng-content>
|
|
154
301
|
</button>
|
|
155
|
-
`,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
302
|
+
`,
|
|
303
|
+
isInline: true,
|
|
304
|
+
styles: [".shk-tab{display:inline-flex;align-items:center;gap:.375rem;padding:.625rem 1rem;font-size:.875rem;font-weight:500;color:var(--shk-surface-500);background:transparent;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap;transition:color .15s ease-in-out,border-color .15s ease-in-out,background-color .15s ease-in-out}.shk-tab:hover:not(:disabled):not(.shk-tab-active){color:var(--shk-surface-800)}.shk-tab-active{color:var(--shk-primary-600);border-bottom-color:var(--shk-primary-600);font-weight:600}:host-context(.dark) .shk-tab-active{color:var(--shk-primary-400);border-bottom-color:var(--shk-primary-400)}.shk-tab:disabled{opacity:.5;cursor:not-allowed}\n"],
|
|
305
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
310
|
+
minVersion: "12.0.0",
|
|
311
|
+
version: "22.3.2",
|
|
312
|
+
ngImport: i0,
|
|
313
|
+
type: TabComponent,
|
|
314
|
+
decorators: [{
|
|
315
|
+
type: Component,
|
|
316
|
+
args: [{
|
|
317
|
+
selector: "shk-tab",
|
|
318
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
319
|
+
template: `
|
|
160
320
|
<button
|
|
161
321
|
type="button"
|
|
162
322
|
class="shk-tab"
|
|
@@ -170,75 +330,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImpo
|
|
|
170
330
|
>
|
|
171
331
|
<ng-content></ng-content>
|
|
172
332
|
</button>
|
|
173
|
-
`,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
333
|
+
`,
|
|
334
|
+
styles: [".shk-tab{display:inline-flex;align-items:center;gap:.375rem;padding:.625rem 1rem;font-size:.875rem;font-weight:500;color:var(--shk-surface-500);background:transparent;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap;transition:color .15s ease-in-out,border-color .15s ease-in-out,background-color .15s ease-in-out}.shk-tab:hover:not(:disabled):not(.shk-tab-active){color:var(--shk-surface-800)}.shk-tab-active{color:var(--shk-primary-600);border-bottom-color:var(--shk-primary-600);font-weight:600}:host-context(.dark) .shk-tab-active{color:var(--shk-primary-400);border-bottom-color:var(--shk-primary-400)}.shk-tab:disabled{opacity:.5;cursor:not-allowed}\n"]
|
|
335
|
+
}]
|
|
336
|
+
}],
|
|
337
|
+
propDecorators: {
|
|
338
|
+
value: [{
|
|
339
|
+
type: i0.Input,
|
|
340
|
+
args: [{
|
|
341
|
+
isSignal: true,
|
|
342
|
+
alias: "value",
|
|
343
|
+
required: false
|
|
344
|
+
}]
|
|
345
|
+
}],
|
|
346
|
+
disabled: [{
|
|
347
|
+
type: i0.Input,
|
|
348
|
+
args: [{
|
|
349
|
+
isSignal: true,
|
|
350
|
+
alias: "disabled",
|
|
351
|
+
required: false
|
|
352
|
+
}]
|
|
353
|
+
}],
|
|
354
|
+
styleClass: [{
|
|
355
|
+
type: i0.Input,
|
|
356
|
+
args: [{
|
|
357
|
+
isSignal: true,
|
|
358
|
+
alias: "styleClass",
|
|
359
|
+
required: false
|
|
360
|
+
}]
|
|
361
|
+
}]
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
var TabpanelsComponent = class TabpanelsComponent {
|
|
365
|
+
static {
|
|
366
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
367
|
+
minVersion: "12.0.0",
|
|
368
|
+
version: "22.3.2",
|
|
369
|
+
ngImport: i0,
|
|
370
|
+
type: TabpanelsComponent,
|
|
371
|
+
deps: [],
|
|
372
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
static {
|
|
376
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
377
|
+
minVersion: "14.0.0",
|
|
378
|
+
version: "22.3.2",
|
|
379
|
+
type: TabpanelsComponent,
|
|
380
|
+
isStandalone: true,
|
|
381
|
+
selector: "shk-tabpanels",
|
|
382
|
+
ngImport: i0,
|
|
383
|
+
template: `
|
|
185
384
|
<div class="shk-tabpanels">
|
|
186
385
|
<ng-content></ng-content>
|
|
187
386
|
</div>
|
|
188
|
-
`,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
387
|
+
`,
|
|
388
|
+
isInline: true,
|
|
389
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
394
|
+
minVersion: "12.0.0",
|
|
395
|
+
version: "22.3.2",
|
|
396
|
+
ngImport: i0,
|
|
397
|
+
type: TabpanelsComponent,
|
|
398
|
+
decorators: [{
|
|
399
|
+
type: Component,
|
|
400
|
+
args: [{
|
|
401
|
+
selector: "shk-tabpanels",
|
|
402
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
403
|
+
template: `
|
|
197
404
|
<div class="shk-tabpanels">
|
|
198
405
|
<ng-content></ng-content>
|
|
199
406
|
</div>
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
407
|
+
`
|
|
408
|
+
}]
|
|
409
|
+
}]
|
|
410
|
+
});
|
|
411
|
+
var TabPanelComponent = class TabPanelComponent {
|
|
412
|
+
constructor() {
|
|
413
|
+
this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
414
|
+
this.tabsSvc = inject(TabsService);
|
|
415
|
+
this.active = computed(() => this.tabsSvc.active() === this.value(), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
416
|
+
}
|
|
417
|
+
static {
|
|
418
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
419
|
+
minVersion: "12.0.0",
|
|
420
|
+
version: "22.3.2",
|
|
421
|
+
ngImport: i0,
|
|
422
|
+
type: TabPanelComponent,
|
|
423
|
+
deps: [],
|
|
424
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
static {
|
|
428
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
429
|
+
minVersion: "17.0.0",
|
|
430
|
+
version: "22.3.2",
|
|
431
|
+
type: TabPanelComponent,
|
|
432
|
+
isStandalone: true,
|
|
433
|
+
selector: "shk-tabpanel",
|
|
434
|
+
inputs: { value: {
|
|
435
|
+
classPropertyName: "value",
|
|
436
|
+
publicName: "value",
|
|
437
|
+
isSignal: true,
|
|
438
|
+
isRequired: false,
|
|
439
|
+
transformFunction: null
|
|
440
|
+
} },
|
|
441
|
+
ngImport: i0,
|
|
442
|
+
template: `
|
|
221
443
|
@if (active()) {
|
|
222
444
|
<div class="shk-tabpanel" role="tabpanel">
|
|
223
445
|
<ng-content></ng-content>
|
|
224
446
|
</div>
|
|
225
447
|
}
|
|
226
|
-
`,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
448
|
+
`,
|
|
449
|
+
isInline: true,
|
|
450
|
+
styles: [".shk-tabpanel{padding-top:.75rem;animation:shk-tabpanel-in .15s ease-out}@keyframes shk-tabpanel-in{0%{opacity:0}}\n"],
|
|
451
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
456
|
+
minVersion: "12.0.0",
|
|
457
|
+
version: "22.3.2",
|
|
458
|
+
ngImport: i0,
|
|
459
|
+
type: TabPanelComponent,
|
|
460
|
+
decorators: [{
|
|
461
|
+
type: Component,
|
|
462
|
+
args: [{
|
|
463
|
+
selector: "shk-tabpanel",
|
|
464
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
465
|
+
template: `
|
|
231
466
|
@if (active()) {
|
|
232
467
|
<div class="shk-tabpanel" role="tabpanel">
|
|
233
468
|
<ng-content></ng-content>
|
|
234
469
|
</div>
|
|
235
470
|
}
|
|
236
|
-
`,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
471
|
+
`,
|
|
472
|
+
styles: [".shk-tabpanel{padding-top:.75rem;animation:shk-tabpanel-in .15s ease-out}@keyframes shk-tabpanel-in{0%{opacity:0}}\n"]
|
|
473
|
+
}]
|
|
474
|
+
}],
|
|
475
|
+
propDecorators: { value: [{
|
|
476
|
+
type: i0.Input,
|
|
477
|
+
args: [{
|
|
478
|
+
isSignal: true,
|
|
479
|
+
alias: "value",
|
|
480
|
+
required: false
|
|
481
|
+
}]
|
|
482
|
+
}] }
|
|
483
|
+
});
|
|
243
484
|
export { TabComponent, TabPanelComponent, TablistComponent, TabpanelsComponent, TabsComponent, TabsService };
|
|
244
|
-
|
|
485
|
+
|
|
486
|
+
//# sourceMappingURL=shirkasoft-ui-components-tabs.mjs.map
|