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.
- package/README.md +12 -9
- 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 +363 -69
- 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 +905 -843
- package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
- 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 +1697 -1440
- 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 +555 -300
- package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
- package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
- 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 -314
- 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 +585 -327
- 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 +1076 -819
- 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 +1916 -1698
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
- package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
- package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-text-field.mjs +749 -402
- package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
- package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
- package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
- package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
- 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 +129 -133
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
- package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components.mjs +0 -9
- package/package.json +5 -5
- 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 +193 -204
- package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
- package/types/shirkasoft-ui-components-date-picker.d.ts +561 -398
- package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
- package/types/shirkasoft-ui-components-file-upload.d.ts +210 -112
- package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
- package/types/shirkasoft-ui-components-knob.d.ts +144 -78
- package/types/shirkasoft-ui-components-loading.d.ts +155 -64
- package/types/shirkasoft-ui-components-modal.d.ts +134 -136
- package/types/shirkasoft-ui-components-notification.d.ts +63 -59
- package/types/shirkasoft-ui-components-price-input.d.ts +232 -113
- package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
- package/types/shirkasoft-ui-components-select.d.ts +335 -196
- package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
- package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
- package/types/shirkasoft-ui-components-table.d.ts +849 -660
- 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 +263 -127
- package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
- package/types/shirkasoft-ui-components-theme.d.ts +56 -64
- package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
- package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
- package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
- package/types/shirkasoft-ui-components-utils.d.ts +47 -15
- package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
- package/types/shirkasoft-ui-components.d.ts +1 -2
- package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
|
@@ -1,25 +1,61 @@
|
|
|
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
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
3
|
+
var LoadingSpinnerComponent = class LoadingSpinnerComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.size = input("2rem", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
6
|
+
this.thickness = input(3, ...ngDevMode ? [{ debugName: "thickness" }] : /* istanbul ignore next */ []);
|
|
7
|
+
this.color = input("", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.3.2",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: LoadingSpinnerComponent,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
static {
|
|
21
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
22
|
+
minVersion: "17.0.0",
|
|
23
|
+
version: "22.3.2",
|
|
24
|
+
type: LoadingSpinnerComponent,
|
|
25
|
+
isStandalone: true,
|
|
26
|
+
selector: "shk-loading-spinner",
|
|
27
|
+
inputs: {
|
|
28
|
+
size: {
|
|
29
|
+
classPropertyName: "size",
|
|
30
|
+
publicName: "size",
|
|
31
|
+
isSignal: true,
|
|
32
|
+
isRequired: false,
|
|
33
|
+
transformFunction: null
|
|
34
|
+
},
|
|
35
|
+
thickness: {
|
|
36
|
+
classPropertyName: "thickness",
|
|
37
|
+
publicName: "thickness",
|
|
38
|
+
isSignal: true,
|
|
39
|
+
isRequired: false,
|
|
40
|
+
transformFunction: null
|
|
41
|
+
},
|
|
42
|
+
color: {
|
|
43
|
+
classPropertyName: "color",
|
|
44
|
+
publicName: "color",
|
|
45
|
+
isSignal: true,
|
|
46
|
+
isRequired: false,
|
|
47
|
+
transformFunction: null
|
|
48
|
+
},
|
|
49
|
+
label: {
|
|
50
|
+
classPropertyName: "label",
|
|
51
|
+
publicName: "label",
|
|
52
|
+
isSignal: true,
|
|
53
|
+
isRequired: false,
|
|
54
|
+
transformFunction: null
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
template: `
|
|
23
59
|
<div
|
|
24
60
|
class="shk-loading-spinner"
|
|
25
61
|
[style]="{
|
|
@@ -40,11 +76,24 @@ class LoadingSpinnerComponent {
|
|
|
40
76
|
@if (label()) {
|
|
41
77
|
<span class="shk-loading-spinner-label">{{ label() }}</span>
|
|
42
78
|
}
|
|
43
|
-
`,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
79
|
+
`,
|
|
80
|
+
isInline: true,
|
|
81
|
+
styles: [":host{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}.shk-loading-spinner{display:inline-block}.shk-loading-spinner-circle{width:100%;height:100%;border-radius:9999px;border-style:solid;border-color:color-mix(in srgb,var(--shk-primary-600) 20%,transparent);border-top-color:var(--shk-primary-600);animation:shk-loading-spin .8s linear infinite}.shk-loading-spinner-label{font-size:.8125rem;color:var(--shk-surface-500)}@keyframes shk-loading-spin{to{transform:rotate(360deg)}}\n"],
|
|
82
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
87
|
+
minVersion: "12.0.0",
|
|
88
|
+
version: "22.3.2",
|
|
89
|
+
ngImport: i0,
|
|
90
|
+
type: LoadingSpinnerComponent,
|
|
91
|
+
decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{
|
|
94
|
+
selector: "shk-loading-spinner",
|
|
95
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
96
|
+
template: `
|
|
48
97
|
<div
|
|
49
98
|
class="shk-loading-spinner"
|
|
50
99
|
[style]="{
|
|
@@ -65,36 +114,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImpo
|
|
|
65
114
|
@if (label()) {
|
|
66
115
|
<span class="shk-loading-spinner-label">{{ label() }}</span>
|
|
67
116
|
}
|
|
68
|
-
`,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
117
|
+
`,
|
|
118
|
+
styles: [":host{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}.shk-loading-spinner{display:inline-block}.shk-loading-spinner-circle{width:100%;height:100%;border-radius:9999px;border-style:solid;border-color:color-mix(in srgb,var(--shk-primary-600) 20%,transparent);border-top-color:var(--shk-primary-600);animation:shk-loading-spin .8s linear infinite}.shk-loading-spinner-label{font-size:.8125rem;color:var(--shk-surface-500)}@keyframes shk-loading-spin{to{transform:rotate(360deg)}}\n"]
|
|
119
|
+
}]
|
|
120
|
+
}],
|
|
121
|
+
propDecorators: {
|
|
122
|
+
size: [{
|
|
123
|
+
type: i0.Input,
|
|
124
|
+
args: [{
|
|
125
|
+
isSignal: true,
|
|
126
|
+
alias: "size",
|
|
127
|
+
required: false
|
|
128
|
+
}]
|
|
129
|
+
}],
|
|
130
|
+
thickness: [{
|
|
131
|
+
type: i0.Input,
|
|
132
|
+
args: [{
|
|
133
|
+
isSignal: true,
|
|
134
|
+
alias: "thickness",
|
|
135
|
+
required: false
|
|
136
|
+
}]
|
|
137
|
+
}],
|
|
138
|
+
color: [{
|
|
139
|
+
type: i0.Input,
|
|
140
|
+
args: [{
|
|
141
|
+
isSignal: true,
|
|
142
|
+
alias: "color",
|
|
143
|
+
required: false
|
|
144
|
+
}]
|
|
145
|
+
}],
|
|
146
|
+
label: [{
|
|
147
|
+
type: i0.Input,
|
|
148
|
+
args: [{
|
|
149
|
+
isSignal: true,
|
|
150
|
+
alias: "label",
|
|
151
|
+
required: false
|
|
152
|
+
}]
|
|
153
|
+
}]
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
var LoadingBarComponent = class LoadingBarComponent {
|
|
157
|
+
constructor() {
|
|
158
|
+
this.height = input("0.25rem", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
159
|
+
this.indeterminate = input(true, ...ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []);
|
|
160
|
+
this.progress = input(0, ...ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []);
|
|
161
|
+
this.color = input("", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
162
|
+
this.rounded = input(true, ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
|
|
163
|
+
this.fillStyle = computed(() => {
|
|
164
|
+
if (this.indeterminate()) return {};
|
|
165
|
+
return { width: `${Math.max(0, Math.min(100, this.progress()))}%` };
|
|
166
|
+
}, ...ngDevMode ? [{ debugName: "fillStyle" }] : /* istanbul ignore next */ []);
|
|
167
|
+
}
|
|
168
|
+
static {
|
|
169
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
170
|
+
minVersion: "12.0.0",
|
|
171
|
+
version: "22.3.2",
|
|
172
|
+
ngImport: i0,
|
|
173
|
+
type: LoadingBarComponent,
|
|
174
|
+
deps: [],
|
|
175
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
static {
|
|
179
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
180
|
+
minVersion: "17.1.0",
|
|
181
|
+
version: "22.3.2",
|
|
182
|
+
type: LoadingBarComponent,
|
|
183
|
+
isStandalone: true,
|
|
184
|
+
selector: "shk-loading-bar",
|
|
185
|
+
inputs: {
|
|
186
|
+
height: {
|
|
187
|
+
classPropertyName: "height",
|
|
188
|
+
publicName: "height",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
},
|
|
193
|
+
indeterminate: {
|
|
194
|
+
classPropertyName: "indeterminate",
|
|
195
|
+
publicName: "indeterminate",
|
|
196
|
+
isSignal: true,
|
|
197
|
+
isRequired: false,
|
|
198
|
+
transformFunction: null
|
|
199
|
+
},
|
|
200
|
+
progress: {
|
|
201
|
+
classPropertyName: "progress",
|
|
202
|
+
publicName: "progress",
|
|
203
|
+
isSignal: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
transformFunction: null
|
|
206
|
+
},
|
|
207
|
+
color: {
|
|
208
|
+
classPropertyName: "color",
|
|
209
|
+
publicName: "color",
|
|
210
|
+
isSignal: true,
|
|
211
|
+
isRequired: false,
|
|
212
|
+
transformFunction: null
|
|
213
|
+
},
|
|
214
|
+
rounded: {
|
|
215
|
+
classPropertyName: "rounded",
|
|
216
|
+
publicName: "rounded",
|
|
217
|
+
isSignal: true,
|
|
218
|
+
isRequired: false,
|
|
219
|
+
transformFunction: null
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
ngImport: i0,
|
|
223
|
+
template: `
|
|
98
224
|
<div
|
|
99
225
|
class="shk-loading-bar"
|
|
100
226
|
[class.shk-loading-bar-indeterminate]="indeterminate()"
|
|
@@ -110,11 +236,24 @@ class LoadingBarComponent {
|
|
|
110
236
|
[style.border-radius]="rounded() ? '9999px' : undefined"
|
|
111
237
|
></div>
|
|
112
238
|
</div>
|
|
113
|
-
`,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
239
|
+
`,
|
|
240
|
+
isInline: true,
|
|
241
|
+
styles: [".shk-loading-bar{width:100%;position:relative;overflow:hidden;background-color:var(--shk-surface-200)}.shk-loading-bar-fill{height:100%;background-color:var(--shk-primary-600);transition:width .3s ease-in-out}.shk-loading-bar-indeterminate .shk-loading-bar-fill{width:40%;animation:shk-loading-bar-sweep 1.2s ease-in-out infinite}@keyframes shk-loading-bar-sweep{0%{transform:translate(-100%)}to{transform:translate(350%)}}\n"],
|
|
242
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
247
|
+
minVersion: "12.0.0",
|
|
248
|
+
version: "22.3.2",
|
|
249
|
+
ngImport: i0,
|
|
250
|
+
type: LoadingBarComponent,
|
|
251
|
+
decorators: [{
|
|
252
|
+
type: Component,
|
|
253
|
+
args: [{
|
|
254
|
+
selector: "shk-loading-bar",
|
|
255
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
256
|
+
template: `
|
|
118
257
|
<div
|
|
119
258
|
class="shk-loading-bar"
|
|
120
259
|
[class.shk-loading-bar-indeterminate]="indeterminate()"
|
|
@@ -130,30 +269,117 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImpo
|
|
|
130
269
|
[style.border-radius]="rounded() ? '9999px' : undefined"
|
|
131
270
|
></div>
|
|
132
271
|
</div>
|
|
133
|
-
`,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
272
|
+
`,
|
|
273
|
+
styles: [".shk-loading-bar{width:100%;position:relative;overflow:hidden;background-color:var(--shk-surface-200)}.shk-loading-bar-fill{height:100%;background-color:var(--shk-primary-600);transition:width .3s ease-in-out}.shk-loading-bar-indeterminate .shk-loading-bar-fill{width:40%;animation:shk-loading-bar-sweep 1.2s ease-in-out infinite}@keyframes shk-loading-bar-sweep{0%{transform:translate(-100%)}to{transform:translate(350%)}}\n"]
|
|
274
|
+
}]
|
|
275
|
+
}],
|
|
276
|
+
propDecorators: {
|
|
277
|
+
height: [{
|
|
278
|
+
type: i0.Input,
|
|
279
|
+
args: [{
|
|
280
|
+
isSignal: true,
|
|
281
|
+
alias: "height",
|
|
282
|
+
required: false
|
|
283
|
+
}]
|
|
284
|
+
}],
|
|
285
|
+
indeterminate: [{
|
|
286
|
+
type: i0.Input,
|
|
287
|
+
args: [{
|
|
288
|
+
isSignal: true,
|
|
289
|
+
alias: "indeterminate",
|
|
290
|
+
required: false
|
|
291
|
+
}]
|
|
292
|
+
}],
|
|
293
|
+
progress: [{
|
|
294
|
+
type: i0.Input,
|
|
295
|
+
args: [{
|
|
296
|
+
isSignal: true,
|
|
297
|
+
alias: "progress",
|
|
298
|
+
required: false
|
|
299
|
+
}]
|
|
300
|
+
}],
|
|
301
|
+
color: [{
|
|
302
|
+
type: i0.Input,
|
|
303
|
+
args: [{
|
|
304
|
+
isSignal: true,
|
|
305
|
+
alias: "color",
|
|
306
|
+
required: false
|
|
307
|
+
}]
|
|
308
|
+
}],
|
|
309
|
+
rounded: [{
|
|
310
|
+
type: i0.Input,
|
|
311
|
+
args: [{
|
|
312
|
+
isSignal: true,
|
|
313
|
+
alias: "rounded",
|
|
314
|
+
required: false
|
|
315
|
+
}]
|
|
316
|
+
}]
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
var LoadingOverlayComponent = class LoadingOverlayComponent {
|
|
320
|
+
constructor() {
|
|
321
|
+
this.visible = input(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
322
|
+
this.message = input("", ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
323
|
+
this.spinnerSize = input("2.5rem", ...ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []);
|
|
324
|
+
this.color = input("", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
325
|
+
this.backdrop = input("transparent", ...ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []);
|
|
326
|
+
}
|
|
327
|
+
static {
|
|
328
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
329
|
+
minVersion: "12.0.0",
|
|
330
|
+
version: "22.3.2",
|
|
331
|
+
ngImport: i0,
|
|
332
|
+
type: LoadingOverlayComponent,
|
|
333
|
+
deps: [],
|
|
334
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
static {
|
|
338
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
339
|
+
minVersion: "17.0.0",
|
|
340
|
+
version: "22.3.2",
|
|
341
|
+
type: LoadingOverlayComponent,
|
|
342
|
+
isStandalone: true,
|
|
343
|
+
selector: "shk-loading-overlay",
|
|
344
|
+
inputs: {
|
|
345
|
+
visible: {
|
|
346
|
+
classPropertyName: "visible",
|
|
347
|
+
publicName: "visible",
|
|
348
|
+
isSignal: true,
|
|
349
|
+
isRequired: false,
|
|
350
|
+
transformFunction: null
|
|
351
|
+
},
|
|
352
|
+
message: {
|
|
353
|
+
classPropertyName: "message",
|
|
354
|
+
publicName: "message",
|
|
355
|
+
isSignal: true,
|
|
356
|
+
isRequired: false,
|
|
357
|
+
transformFunction: null
|
|
358
|
+
},
|
|
359
|
+
spinnerSize: {
|
|
360
|
+
classPropertyName: "spinnerSize",
|
|
361
|
+
publicName: "spinnerSize",
|
|
362
|
+
isSignal: true,
|
|
363
|
+
isRequired: false,
|
|
364
|
+
transformFunction: null
|
|
365
|
+
},
|
|
366
|
+
color: {
|
|
367
|
+
classPropertyName: "color",
|
|
368
|
+
publicName: "color",
|
|
369
|
+
isSignal: true,
|
|
370
|
+
isRequired: false,
|
|
371
|
+
transformFunction: null
|
|
372
|
+
},
|
|
373
|
+
backdrop: {
|
|
374
|
+
classPropertyName: "backdrop",
|
|
375
|
+
publicName: "backdrop",
|
|
376
|
+
isSignal: true,
|
|
377
|
+
isRequired: false,
|
|
378
|
+
transformFunction: null
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
ngImport: i0,
|
|
382
|
+
template: `
|
|
157
383
|
<div
|
|
158
384
|
class="shk-loading-overlay"
|
|
159
385
|
[class.shk-loading-overlay-light]="backdrop() === 'light'"
|
|
@@ -166,11 +392,36 @@ class LoadingOverlayComponent {
|
|
|
166
392
|
</div>
|
|
167
393
|
}
|
|
168
394
|
</div>
|
|
169
|
-
`,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
395
|
+
`,
|
|
396
|
+
isInline: true,
|
|
397
|
+
styles: [":host{display:block}.shk-loading-overlay{position:relative;min-height:1.5rem}.shk-loading-overlay-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:10}.shk-loading-overlay-light .shk-loading-overlay-layer{background-color:#ffffffa6}:host-context(.dark) .shk-loading-overlay-light .shk-loading-overlay-layer{background-color:#0000008c}.shk-loading-overlay-dark .shk-loading-overlay-layer{background-color:#0006}\n"],
|
|
398
|
+
dependencies: [{
|
|
399
|
+
kind: "component",
|
|
400
|
+
type: LoadingSpinnerComponent,
|
|
401
|
+
selector: "shk-loading-spinner",
|
|
402
|
+
inputs: [
|
|
403
|
+
"size",
|
|
404
|
+
"thickness",
|
|
405
|
+
"color",
|
|
406
|
+
"label"
|
|
407
|
+
]
|
|
408
|
+
}],
|
|
409
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
414
|
+
minVersion: "12.0.0",
|
|
415
|
+
version: "22.3.2",
|
|
416
|
+
ngImport: i0,
|
|
417
|
+
type: LoadingOverlayComponent,
|
|
418
|
+
decorators: [{
|
|
419
|
+
type: Component,
|
|
420
|
+
args: [{
|
|
421
|
+
selector: "shk-loading-overlay",
|
|
422
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
423
|
+
imports: [LoadingSpinnerComponent],
|
|
424
|
+
template: `
|
|
174
425
|
<div
|
|
175
426
|
class="shk-loading-overlay"
|
|
176
427
|
[class.shk-loading-overlay-light]="backdrop() === 'light'"
|
|
@@ -183,30 +434,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImpo
|
|
|
183
434
|
</div>
|
|
184
435
|
}
|
|
185
436
|
</div>
|
|
186
|
-
`,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
437
|
+
`,
|
|
438
|
+
styles: [":host{display:block}.shk-loading-overlay{position:relative;min-height:1.5rem}.shk-loading-overlay-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:10}.shk-loading-overlay-light .shk-loading-overlay-layer{background-color:#ffffffa6}:host-context(.dark) .shk-loading-overlay-light .shk-loading-overlay-layer{background-color:#0000008c}.shk-loading-overlay-dark .shk-loading-overlay-layer{background-color:#0006}\n"]
|
|
439
|
+
}]
|
|
440
|
+
}],
|
|
441
|
+
propDecorators: {
|
|
442
|
+
visible: [{
|
|
443
|
+
type: i0.Input,
|
|
444
|
+
args: [{
|
|
445
|
+
isSignal: true,
|
|
446
|
+
alias: "visible",
|
|
447
|
+
required: false
|
|
448
|
+
}]
|
|
449
|
+
}],
|
|
450
|
+
message: [{
|
|
451
|
+
type: i0.Input,
|
|
452
|
+
args: [{
|
|
453
|
+
isSignal: true,
|
|
454
|
+
alias: "message",
|
|
455
|
+
required: false
|
|
456
|
+
}]
|
|
457
|
+
}],
|
|
458
|
+
spinnerSize: [{
|
|
459
|
+
type: i0.Input,
|
|
460
|
+
args: [{
|
|
461
|
+
isSignal: true,
|
|
462
|
+
alias: "spinnerSize",
|
|
463
|
+
required: false
|
|
464
|
+
}]
|
|
465
|
+
}],
|
|
466
|
+
color: [{
|
|
467
|
+
type: i0.Input,
|
|
468
|
+
args: [{
|
|
469
|
+
isSignal: true,
|
|
470
|
+
alias: "color",
|
|
471
|
+
required: false
|
|
472
|
+
}]
|
|
473
|
+
}],
|
|
474
|
+
backdrop: [{
|
|
475
|
+
type: i0.Input,
|
|
476
|
+
args: [{
|
|
477
|
+
isSignal: true,
|
|
478
|
+
alias: "backdrop",
|
|
479
|
+
required: false
|
|
480
|
+
}]
|
|
481
|
+
}]
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
var LoadingDotsComponent = class LoadingDotsComponent {
|
|
485
|
+
constructor() {
|
|
486
|
+
this.size = input("0.5rem", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
487
|
+
this.color = input("", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
488
|
+
this.count = input(3, ...ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []);
|
|
489
|
+
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
490
|
+
this.dots = computed(() => Array.from({ length: Math.max(1, this.count()) }), ...ngDevMode ? [{ debugName: "dots" }] : /* istanbul ignore next */ []);
|
|
491
|
+
}
|
|
492
|
+
static {
|
|
493
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
494
|
+
minVersion: "12.0.0",
|
|
495
|
+
version: "22.3.2",
|
|
496
|
+
ngImport: i0,
|
|
497
|
+
type: LoadingDotsComponent,
|
|
498
|
+
deps: [],
|
|
499
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
static {
|
|
503
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
504
|
+
minVersion: "17.0.0",
|
|
505
|
+
version: "22.3.2",
|
|
506
|
+
type: LoadingDotsComponent,
|
|
507
|
+
isStandalone: true,
|
|
508
|
+
selector: "shk-loading-dots",
|
|
509
|
+
inputs: {
|
|
510
|
+
size: {
|
|
511
|
+
classPropertyName: "size",
|
|
512
|
+
publicName: "size",
|
|
513
|
+
isSignal: true,
|
|
514
|
+
isRequired: false,
|
|
515
|
+
transformFunction: null
|
|
516
|
+
},
|
|
517
|
+
color: {
|
|
518
|
+
classPropertyName: "color",
|
|
519
|
+
publicName: "color",
|
|
520
|
+
isSignal: true,
|
|
521
|
+
isRequired: false,
|
|
522
|
+
transformFunction: null
|
|
523
|
+
},
|
|
524
|
+
count: {
|
|
525
|
+
classPropertyName: "count",
|
|
526
|
+
publicName: "count",
|
|
527
|
+
isSignal: true,
|
|
528
|
+
isRequired: false,
|
|
529
|
+
transformFunction: null
|
|
530
|
+
},
|
|
531
|
+
label: {
|
|
532
|
+
classPropertyName: "label",
|
|
533
|
+
publicName: "label",
|
|
534
|
+
isSignal: true,
|
|
535
|
+
isRequired: false,
|
|
536
|
+
transformFunction: null
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
ngImport: i0,
|
|
540
|
+
template: `
|
|
210
541
|
<span class="shk-loading-dots" role="status" aria-label="Cargando">
|
|
211
542
|
@for (dot of dots(); track $index) {
|
|
212
543
|
<span
|
|
@@ -223,11 +554,24 @@ class LoadingDotsComponent {
|
|
|
223
554
|
@if (label()) {
|
|
224
555
|
<span class="shk-loading-dots-label">{{ label() }}</span>
|
|
225
556
|
}
|
|
226
|
-
`,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
557
|
+
`,
|
|
558
|
+
isInline: true,
|
|
559
|
+
styles: [":host{display:inline-flex;align-items:center;gap:.5rem}.shk-loading-dots{display:inline-flex;align-items:center;gap:.25rem}.shk-loading-dot{border-radius:9999px;background-color:var(--shk-primary-600);animation:shk-loading-dots-bounce 1.4s ease-in-out infinite}.shk-loading-dots-label{font-size:.8125rem;color:var(--shk-surface-500)}@keyframes shk-loading-dots-bounce{0%,80%,to{transform:scale(.6);opacity:.5}40%{transform:scale(1);opacity:1}}\n"],
|
|
560
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
565
|
+
minVersion: "12.0.0",
|
|
566
|
+
version: "22.3.2",
|
|
567
|
+
ngImport: i0,
|
|
568
|
+
type: LoadingDotsComponent,
|
|
569
|
+
decorators: [{
|
|
570
|
+
type: Component,
|
|
571
|
+
args: [{
|
|
572
|
+
selector: "shk-loading-dots",
|
|
573
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
574
|
+
template: `
|
|
231
575
|
<span class="shk-loading-dots" role="status" aria-label="Cargando">
|
|
232
576
|
@for (dot of dots(); track $index) {
|
|
233
577
|
<span
|
|
@@ -244,12 +588,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.27", ngImpo
|
|
|
244
588
|
@if (label()) {
|
|
245
589
|
<span class="shk-loading-dots-label">{{ label() }}</span>
|
|
246
590
|
}
|
|
247
|
-
`,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
591
|
+
`,
|
|
592
|
+
styles: [":host{display:inline-flex;align-items:center;gap:.5rem}.shk-loading-dots{display:inline-flex;align-items:center;gap:.25rem}.shk-loading-dot{border-radius:9999px;background-color:var(--shk-primary-600);animation:shk-loading-dots-bounce 1.4s ease-in-out infinite}.shk-loading-dots-label{font-size:.8125rem;color:var(--shk-surface-500)}@keyframes shk-loading-dots-bounce{0%,80%,to{transform:scale(.6);opacity:.5}40%{transform:scale(1);opacity:1}}\n"]
|
|
593
|
+
}]
|
|
594
|
+
}],
|
|
595
|
+
propDecorators: {
|
|
596
|
+
size: [{
|
|
597
|
+
type: i0.Input,
|
|
598
|
+
args: [{
|
|
599
|
+
isSignal: true,
|
|
600
|
+
alias: "size",
|
|
601
|
+
required: false
|
|
602
|
+
}]
|
|
603
|
+
}],
|
|
604
|
+
color: [{
|
|
605
|
+
type: i0.Input,
|
|
606
|
+
args: [{
|
|
607
|
+
isSignal: true,
|
|
608
|
+
alias: "color",
|
|
609
|
+
required: false
|
|
610
|
+
}]
|
|
611
|
+
}],
|
|
612
|
+
count: [{
|
|
613
|
+
type: i0.Input,
|
|
614
|
+
args: [{
|
|
615
|
+
isSignal: true,
|
|
616
|
+
alias: "count",
|
|
617
|
+
required: false
|
|
618
|
+
}]
|
|
619
|
+
}],
|
|
620
|
+
label: [{
|
|
621
|
+
type: i0.Input,
|
|
622
|
+
args: [{
|
|
623
|
+
isSignal: true,
|
|
624
|
+
alias: "label",
|
|
625
|
+
required: false
|
|
626
|
+
}]
|
|
627
|
+
}]
|
|
628
|
+
}
|
|
629
|
+
});
|
|
254
630
|
export { LoadingBarComponent, LoadingDotsComponent, LoadingOverlayComponent, LoadingSpinnerComponent };
|
|
255
|
-
|
|
631
|
+
|
|
632
|
+
//# sourceMappingURL=shirkasoft-ui-components-loading.mjs.map
|