shirkasoft-ui-components 1.14.0 → 2.0.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.
Files changed (92) hide show
  1. package/README.md +12 -9
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1697 -1440
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +555 -300
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +585 -327
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1076 -819
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +749 -402
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +129 -133
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +5 -5
  62. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  63. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  64. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  65. package/types/shirkasoft-ui-components-config.d.ts +193 -204
  66. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
  67. package/types/shirkasoft-ui-components-date-picker.d.ts +561 -398
  68. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
  69. package/types/shirkasoft-ui-components-file-upload.d.ts +210 -112
  70. package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
  71. package/types/shirkasoft-ui-components-knob.d.ts +144 -78
  72. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  73. package/types/shirkasoft-ui-components-modal.d.ts +134 -136
  74. package/types/shirkasoft-ui-components-notification.d.ts +63 -59
  75. package/types/shirkasoft-ui-components-price-input.d.ts +232 -113
  76. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  77. package/types/shirkasoft-ui-components-select.d.ts +335 -196
  78. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
  79. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  80. package/types/shirkasoft-ui-components-table.d.ts +849 -660
  81. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  82. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  83. package/types/shirkasoft-ui-components-text-field.d.ts +263 -127
  84. package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
  85. package/types/shirkasoft-ui-components-theme.d.ts +56 -64
  86. package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
  87. package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
  88. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  89. package/types/shirkasoft-ui-components-utils.d.ts +47 -15
  90. package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
  91. package/types/shirkasoft-ui-components.d.ts +1 -2
  92. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,90 +1,178 @@
1
- import * as i0 from '@angular/core';
2
- import { signal, Injectable, model, input, inject, effect, ChangeDetectionStrategy, Component, computed } from '@angular/core';
3
-
4
- /**
5
- * Shirkasoft UI Components.
6
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
7
- * Belongs to Shirkasoft.
8
- */
9
- /** Shared state between shk-abs and its tab/tabpanel children. */
10
- class TabsService {
11
- constructor() {
12
- /** Currently active tab value. */
13
- this.active = signal(undefined, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
14
- }
15
- /** Sets the active tab to the given value. */
16
- select(value) {
17
- this.active.set(value);
18
- }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
20
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabsService }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabsService, decorators: [{
23
- type: Injectable
24
- }] });
25
-
26
- /**
27
- * Shirkasoft UI Components.
28
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
29
- * Belongs to Shirkasoft.
30
- */
31
- /** Container for tab panels. Renders its projected shk-tablist/shh-tab content. */
32
- class TabsComponent {
33
- constructor() {
34
- /** Currently active tab value. Two-way bindable with [(value)]. */
35
- this.value = model(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
36
- /** Allows the tab header to scroll horizontally when it overflows. */
37
- this.scrollable = input(false, ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
38
- /** Shared service used to sync the active tab with the children. */
39
- this.tabsSvc = inject(TabsService);
40
- // Push external value changes into the shared service.
41
- effect(() => {
42
- this.tabsSvc.active.set(this.value());
43
- });
44
- // Reflect child-side selections back into the two-way value.
45
- effect(() => {
46
- const active = this.tabsSvc.active();
47
- if (active !== this.value()) {
48
- this.value.set(active);
49
- }
50
- });
51
- }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
53
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.27", type: TabsComponent, isStandalone: true, selector: "shk-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [TabsService], ngImport: i0, template: `
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
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabsComponent, decorators: [{
60
- type: Component,
61
- args: [{
62
- selector: 'shk-tabs',
63
- changeDetection: ChangeDetectionStrategy.OnPush,
64
- providers: [TabsService],
65
- template: `
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: `
66
107
  <div class="shk-tabs">
67
108
  <ng-content></ng-content>
68
109
  </div>
69
- `,
70
- }]
71
- }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }] } });
72
-
73
- /**
74
- * Shirkasoft UI Components.
75
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
76
- * Belongs to Shirkasoft.
77
- */
78
- /** Horizontal bar that contains the shk-tab headers. */
79
- class TablistComponent {
80
- constructor() {
81
- /** Allows the header to scroll horizontally when it overflows. */
82
- this.scrollable = input(false, ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
83
- /** Extra CSS classes. */
84
- this.styleClass = input('', ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
85
- }
86
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TablistComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
87
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.27", type: TablistComponent, isStandalone: true, selector: "shk-tablist", inputs: { scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
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: `
88
176
  <div
89
177
  class="shk-tablist"
90
178
  [class.shk-tablist-scrollable]="scrollable()"
@@ -94,11 +182,24 @@ class TablistComponent {
94
182
  >
95
183
  <ng-content></ng-content>
96
184
  </div>
97
- `, isInline: true, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
98
- }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TablistComponent, decorators: [{
100
- type: Component,
101
- args: [{ selector: 'shk-tablist', changeDetection: ChangeDetectionStrategy.OnPush, template: `
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: `
102
203
  <div
103
204
  class="shk-tablist"
104
205
  [class.shk-tablist-scrollable]="scrollable()"
@@ -108,36 +209,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImpo
108
209
  >
109
210
  <ng-content></ng-content>
110
211
  </div>
111
- `, 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"] }]
112
- }], propDecorators: { scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
113
-
114
- /**
115
- * Shirkasoft UI Components.
116
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
117
- * Belongs to Shirkasoft.
118
- */
119
- /** A single tab header. Clicking it activates the matching panel. */
120
- class TabComponent {
121
- constructor() {
122
- /** Value that links this tab to its panel. */
123
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
124
- /** Disables the tab. */
125
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
126
- /** Extra CSS classes. */
127
- this.styleClass = input('', ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
128
- /** Shared service used to read the active tab value. */
129
- this.tabsSvc = inject(TabsService);
130
- /** Whether this tab is the active one. */
131
- this.active = computed(() => this.tabsSvc.active() === this.value(), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
132
- }
133
- /** Activates this tab through the shared service. */
134
- select() {
135
- if (this.disabled())
136
- return;
137
- this.tabsSvc.select(this.value());
138
- }
139
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
140
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.27", type: TabComponent, isStandalone: true, selector: "shk-tab", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
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: `
141
289
  <button
142
290
  type="button"
143
291
  class="shk-tab"
@@ -151,11 +299,24 @@ class TabComponent {
151
299
  >
152
300
  <ng-content></ng-content>
153
301
  </button>
154
- `, isInline: true, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
155
- }
156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabComponent, decorators: [{
157
- type: Component,
158
- args: [{ selector: 'shk-tab', changeDetection: ChangeDetectionStrategy.OnPush, template: `
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: `
159
320
  <button
160
321
  type="button"
161
322
  class="shk-tab"
@@ -169,74 +330,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImpo
169
330
  >
170
331
  <ng-content></ng-content>
171
332
  </button>
172
- `, 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"] }]
173
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
174
-
175
- /**
176
- * Shirkasoft UI Components.
177
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
178
- * Belongs to Shirkasoft.
179
- */
180
- /** Container that groups the shk-tabpanel content sections. */
181
- class TabpanelsComponent {
182
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabpanelsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
183
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.27", type: TabpanelsComponent, isStandalone: true, selector: "shk-tabpanels", ngImport: i0, template: `
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: `
184
384
  <div class="shk-tabpanels">
185
385
  <ng-content></ng-content>
186
386
  </div>
187
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
188
- }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabpanelsComponent, decorators: [{
190
- type: Component,
191
- args: [{
192
- selector: 'shk-tabpanels',
193
- changeDetection: ChangeDetectionStrategy.OnPush,
194
- template: `
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: `
195
404
  <div class="shk-tabpanels">
196
405
  <ng-content></ng-content>
197
406
  </div>
198
- `,
199
- }]
200
- }] });
201
-
202
- /**
203
- * Shirkasoft UI Components.
204
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
205
- * Belongs to Shirkasoft.
206
- */
207
- /** Content section shown only while its value is the active tab. */
208
- class TabPanelComponent {
209
- constructor() {
210
- /** Value that links this panel to its tab. */
211
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
212
- /** Shared service used to read the active tab value. */
213
- this.tabsSvc = inject(TabsService);
214
- /** Whether this panel is the active one. */
215
- this.active = computed(() => this.tabsSvc.active() === this.value(), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
216
- }
217
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
218
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.27", type: TabPanelComponent, isStandalone: true, selector: "shk-tabpanel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
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: `
219
443
  @if (active()) {
220
444
  <div class="shk-tabpanel" role="tabpanel">
221
445
  <ng-content></ng-content>
222
446
  </div>
223
447
  }
224
- `, isInline: true, styles: [".shk-tabpanel{padding-top:.75rem;animation:shk-tabpanel-in .15s ease-out}@keyframes shk-tabpanel-in{0%{opacity:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
225
- }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImport: i0, type: TabPanelComponent, decorators: [{
227
- type: Component,
228
- args: [{ selector: 'shk-tabpanel', changeDetection: ChangeDetectionStrategy.OnPush, template: `
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: `
229
466
  @if (active()) {
230
467
  <div class="shk-tabpanel" role="tabpanel">
231
468
  <ng-content></ng-content>
232
469
  </div>
233
470
  }
234
- `, styles: [".shk-tabpanel{padding-top:.75rem;animation:shk-tabpanel-in .15s ease-out}@keyframes shk-tabpanel-in{0%{opacity:0}}\n"] }]
235
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
236
-
237
- /**
238
- * Generated bundle index. Do not edit.
239
- */
240
-
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
+ });
241
484
  export { TabComponent, TabPanelComponent, TablistComponent, TabpanelsComponent, TabsComponent, TabsService };
242
- //# sourceMappingURL=shirkasoft-ui-components-tabs.mjs.map
485
+
486
+ //# sourceMappingURL=shirkasoft-ui-components-tabs.mjs.map