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.
Files changed (98) hide show
  1. package/README.md +415 -42
  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 +367 -73
  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 +976 -0
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
  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 +1624 -1400
  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 +484 -293
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
  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 -303
  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 +517 -277
  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 +1014 -814
  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 +1918 -1676
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
  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 +97 -125
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +37 -7
  62. package/src/baseline.css +2472 -0
  63. package/src/theme.css +15 -543
  64. package/src/themes/ocean.css +56 -0
  65. package/src/themes/sunset.css +55 -0
  66. package/src/themes/violet.css +25 -0
  67. package/src/tokens.css +612 -0
  68. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  69. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  70. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  71. package/types/shirkasoft-ui-components-config.d.ts +357 -0
  72. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
  73. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
  74. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
  75. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
  76. package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
  77. package/types/shirkasoft-ui-components-knob.d.ts +151 -64
  78. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  79. package/types/shirkasoft-ui-components-modal.d.ts +134 -132
  80. package/types/shirkasoft-ui-components-notification.d.ts +63 -58
  81. package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
  82. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  83. package/types/shirkasoft-ui-components-select.d.ts +301 -192
  84. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
  85. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  86. package/types/shirkasoft-ui-components-table.d.ts +849 -649
  87. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  88. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  89. package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
  90. package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
  91. package/types/shirkasoft-ui-components-theme.d.ts +80 -0
  92. package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
  93. package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
  94. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  95. package/types/shirkasoft-ui-components-utils.d.ts +26 -17
  96. package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
  97. package/types/shirkasoft-ui-components.d.ts +1 -2
  98. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,91 +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.23", ngImport: i0, type: TabsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
20
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabsService }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", 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.23", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
53
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.23", 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.23", ngImport: i0, type: TabsComponent, decorators: [{
60
- type: Component,
61
- args: [{
62
- selector: 'shk-tabs',
63
- standalone: true,
64
- changeDetection: ChangeDetectionStrategy.OnPush,
65
- providers: [TabsService],
66
- 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: `
67
107
  <div class="shk-tabs">
68
108
  <ng-content></ng-content>
69
109
  </div>
70
- `,
71
- }]
72
- }], 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 }] }] } });
73
-
74
- /**
75
- * Shirkasoft UI Components.
76
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
77
- * Belongs to Shirkasoft.
78
- */
79
- /** Horizontal bar that contains the shk-tab headers. */
80
- class TablistComponent {
81
- constructor() {
82
- /** Allows the header to scroll horizontally when it overflows. */
83
- this.scrollable = input(false, ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
84
- /** Extra CSS classes. */
85
- this.styleClass = input('', ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
86
- }
87
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TablistComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
88
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.23", 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: `
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
- `, 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 }); }
99
- }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TablistComponent, decorators: [{
101
- type: Component,
102
- args: [{ selector: 'shk-tablist', standalone: true, 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: `
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
- `, 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"] }]
113
- }], propDecorators: { scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
114
-
115
- /**
116
- * Shirkasoft UI Components.
117
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
118
- * Belongs to Shirkasoft.
119
- */
120
- /** A single tab header. Clicking it activates the matching panel. */
121
- class TabComponent {
122
- constructor() {
123
- /** Value that links this tab to its panel. */
124
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
125
- /** Disables the tab. */
126
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
127
- /** Extra CSS classes. */
128
- this.styleClass = input('', ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
129
- /** Shared service used to read the active tab value. */
130
- this.tabsSvc = inject(TabsService);
131
- /** Whether this tab is the active one. */
132
- this.active = computed(() => this.tabsSvc.active() === this.value(), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
133
- }
134
- /** Activates this tab through the shared service. */
135
- select() {
136
- if (this.disabled())
137
- return;
138
- this.tabsSvc.select(this.value());
139
- }
140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.23", 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: `
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
- `, 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 }); }
156
- }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabComponent, decorators: [{
158
- type: Component,
159
- args: [{ selector: 'shk-tab', standalone: true, 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: `
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
- `, 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"] }]
174
- }], 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 }] }] } });
175
-
176
- /**
177
- * Shirkasoft UI Components.
178
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
179
- * Belongs to Shirkasoft.
180
- */
181
- /** Container that groups the shk-tabpanel content sections. */
182
- class TabpanelsComponent {
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabpanelsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
184
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", 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: `
185
384
  <div class="shk-tabpanels">
186
385
  <ng-content></ng-content>
187
386
  </div>
188
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
189
- }
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabpanelsComponent, decorators: [{
191
- type: Component,
192
- args: [{
193
- selector: 'shk-tabpanels',
194
- standalone: true,
195
- changeDetection: ChangeDetectionStrategy.OnPush,
196
- 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: `
197
404
  <div class="shk-tabpanels">
198
405
  <ng-content></ng-content>
199
406
  </div>
200
- `,
201
- }]
202
- }] });
203
-
204
- /**
205
- * Shirkasoft UI Components.
206
- * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
207
- * Belongs to Shirkasoft.
208
- */
209
- /** Content section shown only while its value is the active tab. */
210
- class TabPanelComponent {
211
- constructor() {
212
- /** Value that links this panel to its tab. */
213
- this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
214
- /** Shared service used to read the active tab value. */
215
- this.tabsSvc = inject(TabsService);
216
- /** Whether this panel is the active one. */
217
- this.active = computed(() => this.tabsSvc.active() === this.value(), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
218
- }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
220
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.23", 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: `
221
443
  @if (active()) {
222
444
  <div class="shk-tabpanel" role="tabpanel">
223
445
  <ng-content></ng-content>
224
446
  </div>
225
447
  }
226
- `, 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 }); }
227
- }
228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TabPanelComponent, decorators: [{
229
- type: Component,
230
- args: [{ selector: 'shk-tabpanel', standalone: true, 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: `
231
466
  @if (active()) {
232
467
  <div class="shk-tabpanel" role="tabpanel">
233
468
  <ng-content></ng-content>
234
469
  </div>
235
470
  }
236
- `, styles: [".shk-tabpanel{padding-top:.75rem;animation:shk-tabpanel-in .15s ease-out}@keyframes shk-tabpanel-in{0%{opacity:0}}\n"] }]
237
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
238
-
239
- /**
240
- * Generated bundle index. Do not edit.
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
- //# sourceMappingURL=shirkasoft-ui-components-tabs.mjs.map
485
+
486
+ //# sourceMappingURL=shirkasoft-ui-components-tabs.mjs.map