@fylib/adapter-angular 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.component.js +128 -128
- package/dist/components/badge.component.js +43 -43
- package/dist/components/button.component.js +103 -103
- package/dist/components/card.component.js +103 -103
- package/dist/components/chart.component.js +72 -72
- package/dist/components/icon.component.js +29 -29
- package/dist/components/input.component.js +111 -111
- package/dist/components/modal.component.js +122 -122
- package/dist/components/nav-link.component.js +56 -56
- package/dist/components/notification-menu.component.js +388 -388
- package/dist/components/select.component.js +122 -122
- package/dist/components/table.component.js +371 -371
- package/dist/components/text.component.js +2 -2
- package/dist/components/toast.component.js +115 -115
- package/dist/directives/theme-vars.directive.js +10 -10
- package/dist/directives/wallpaper.directive.js +5 -5
- package/dist/layouts/layout.component.js +69 -69
- package/dist/layouts/slot.component.js +584 -584
- package/dist/schematics/collection.json +9 -0
- package/dist/schematics/ng-add/index.d.ts +2 -0
- package/dist/schematics/ng-add/index.js +64 -0
- package/dist/schematics/ng-add/index.js.map +1 -0
- package/dist/schematics/ng-add/schema.json +8 -0
- package/dist/schematics/templates/fylib/crypto.config.ts.template +7 -0
- package/dist/schematics/templates/fylib/logging.config.ts.template +9 -0
- package/dist/schematics/templates/fylib/sse.config.ts.template +7 -0
- package/dist/schematics/templates/fylib/theme.config.ts.template +9 -0
- package/package.json +46 -43
|
@@ -264,129 +264,129 @@ FySelectComponent = __decorate([
|
|
|
264
264
|
selector: 'fy-select',
|
|
265
265
|
standalone: true,
|
|
266
266
|
imports: [CommonModule, FyIconComponent],
|
|
267
|
-
template: `
|
|
268
|
-
<div
|
|
269
|
-
class="fy-select"
|
|
270
|
-
[class.fy-select--open]="open"
|
|
271
|
-
[class.fy-select--sm]="size === 'sm'"
|
|
272
|
-
[class.fy-select--lg]="size === 'lg'"
|
|
273
|
-
[class.fy-select--status-success]="status === 'success'"
|
|
274
|
-
[class.fy-select--status-error]="status === 'error'"
|
|
275
|
-
[class]="animationClassSuffix"
|
|
276
|
-
>
|
|
277
|
-
<div
|
|
278
|
-
class="fy-select__control"
|
|
279
|
-
tabindex="0"
|
|
280
|
-
(click)="toggleOpen()"
|
|
281
|
-
(focus)="onFocusHandler()"
|
|
282
|
-
(blur)="onBlurHandler()"
|
|
283
|
-
>
|
|
284
|
-
<span class="fy-select__value">
|
|
285
|
-
{{ displayValue || placeholder }}
|
|
286
|
-
</span>
|
|
287
|
-
|
|
288
|
-
@if (iconRightName) {
|
|
289
|
-
<fy-icon class="fy-select__icon" [name]="iconRightName"></fy-icon>
|
|
290
|
-
}
|
|
291
|
-
</div>
|
|
292
|
-
|
|
293
|
-
@if (open) {
|
|
294
|
-
<div class="fy-select__dropdown" [class]="dropdownAnimClass">
|
|
295
|
-
@if (searchable) {
|
|
296
|
-
<input
|
|
297
|
-
class="fy-select__search"
|
|
298
|
-
type="text"
|
|
299
|
-
placeholder="Buscar..."
|
|
300
|
-
(input)="onSearch($event)"
|
|
301
|
-
/>
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
@for (opt of filteredOptions; track opt.value) {
|
|
305
|
-
<div
|
|
306
|
-
class="fy-select__option"
|
|
307
|
-
[class.fy-select__option--selected]="isSelected(opt.value)"
|
|
308
|
-
(click)="selectOption(opt.value)"
|
|
309
|
-
>
|
|
310
|
-
@if (showCheckbox) {
|
|
311
|
-
<input
|
|
312
|
-
type="checkbox"
|
|
313
|
-
[checked]="isSelected(opt.value)"
|
|
314
|
-
(click)="$event.stopPropagation()"
|
|
315
|
-
(change)="onCheckboxChange($event, opt.value)"
|
|
316
|
-
/>
|
|
317
|
-
}
|
|
318
|
-
{{ opt.label }}
|
|
319
|
-
</div>
|
|
320
|
-
}
|
|
321
|
-
</div>
|
|
322
|
-
}
|
|
323
|
-
</div>
|
|
267
|
+
template: `
|
|
268
|
+
<div
|
|
269
|
+
class="fy-select"
|
|
270
|
+
[class.fy-select--open]="open"
|
|
271
|
+
[class.fy-select--sm]="size === 'sm'"
|
|
272
|
+
[class.fy-select--lg]="size === 'lg'"
|
|
273
|
+
[class.fy-select--status-success]="status === 'success'"
|
|
274
|
+
[class.fy-select--status-error]="status === 'error'"
|
|
275
|
+
[class]="animationClassSuffix"
|
|
276
|
+
>
|
|
277
|
+
<div
|
|
278
|
+
class="fy-select__control"
|
|
279
|
+
tabindex="0"
|
|
280
|
+
(click)="toggleOpen()"
|
|
281
|
+
(focus)="onFocusHandler()"
|
|
282
|
+
(blur)="onBlurHandler()"
|
|
283
|
+
>
|
|
284
|
+
<span class="fy-select__value">
|
|
285
|
+
{{ displayValue || placeholder }}
|
|
286
|
+
</span>
|
|
287
|
+
|
|
288
|
+
@if (iconRightName) {
|
|
289
|
+
<fy-icon class="fy-select__icon" [name]="iconRightName"></fy-icon>
|
|
290
|
+
}
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
@if (open) {
|
|
294
|
+
<div class="fy-select__dropdown" [class]="dropdownAnimClass">
|
|
295
|
+
@if (searchable) {
|
|
296
|
+
<input
|
|
297
|
+
class="fy-select__search"
|
|
298
|
+
type="text"
|
|
299
|
+
placeholder="Buscar..."
|
|
300
|
+
(input)="onSearch($event)"
|
|
301
|
+
/>
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@for (opt of filteredOptions; track opt.value) {
|
|
305
|
+
<div
|
|
306
|
+
class="fy-select__option"
|
|
307
|
+
[class.fy-select__option--selected]="isSelected(opt.value)"
|
|
308
|
+
(click)="selectOption(opt.value)"
|
|
309
|
+
>
|
|
310
|
+
@if (showCheckbox) {
|
|
311
|
+
<input
|
|
312
|
+
type="checkbox"
|
|
313
|
+
[checked]="isSelected(opt.value)"
|
|
314
|
+
(click)="$event.stopPropagation()"
|
|
315
|
+
(change)="onCheckboxChange($event, opt.value)"
|
|
316
|
+
/>
|
|
317
|
+
}
|
|
318
|
+
{{ opt.label }}
|
|
319
|
+
</div>
|
|
320
|
+
}
|
|
321
|
+
</div>
|
|
322
|
+
}
|
|
323
|
+
</div>
|
|
324
324
|
`,
|
|
325
|
-
styles: [`
|
|
326
|
-
.fy-select {
|
|
327
|
-
position: relative;
|
|
328
|
-
width: 100%;
|
|
329
|
-
font: inherit;
|
|
330
|
-
display: inline-flex;
|
|
331
|
-
align-items: center;
|
|
332
|
-
border: var(--fy-effects-select-borderWidth, 1px) solid var(--fy-effects-select-borderColor, rgba(0,0,0,.15));
|
|
333
|
-
background: var(--fy-effects-select-background, #fff);
|
|
334
|
-
border-radius: var(--fy-effects-select-borderRadius, var(--fy-borderRadius-md));
|
|
335
|
-
box-shadow: var(--fy-effects-select-shadow, none);
|
|
336
|
-
min-height: 36px;
|
|
337
|
-
padding: 0 10px;
|
|
338
|
-
gap: 6px;
|
|
339
|
-
transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.fy-select__control {
|
|
343
|
-
display: flex;
|
|
344
|
-
align-items: center;
|
|
345
|
-
justify-content: space-between;
|
|
346
|
-
width: 100%;
|
|
347
|
-
cursor: pointer;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.fy-select__dropdown {
|
|
351
|
-
position: absolute;
|
|
352
|
-
left: 0;
|
|
353
|
-
right: 0;
|
|
354
|
-
top: calc(100% + 4px);
|
|
355
|
-
background: var(--fy-effects-select-background, #fff);
|
|
356
|
-
border: 1px solid var(--fy-effects-select-borderColor, rgba(0,0,0,.1));
|
|
357
|
-
border-radius: var(--fy-borderRadius-md);
|
|
358
|
-
box-shadow: var(--fy-effects-select-shadow, none);
|
|
359
|
-
max-height: 240px;
|
|
360
|
-
overflow-y: auto;
|
|
361
|
-
z-index: 1000;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.fy-select__option {
|
|
365
|
-
padding: 6px 10px;
|
|
366
|
-
cursor: pointer;
|
|
367
|
-
display: flex;
|
|
368
|
-
align-items: center;
|
|
369
|
-
gap: 6px;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.fy-select__option--selected {
|
|
373
|
-
background: rgba(var(--fy-colors-primary-rgb, 59,130,246), 0.08);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.fy-select__search {
|
|
377
|
-
width: 100%;
|
|
378
|
-
padding: 6px;
|
|
379
|
-
border: none;
|
|
380
|
-
outline: none;
|
|
381
|
-
border-bottom: 1px solid rgba(0,0,0,.1);
|
|
382
|
-
background-color: transparent;
|
|
383
|
-
}
|
|
384
|
-
.fy-select__icon {
|
|
385
|
-
transition: transform .2s ease;
|
|
386
|
-
}
|
|
387
|
-
.fy-select.fy-select--open .fy-select__icon {
|
|
388
|
-
transform: rotate(180deg);
|
|
389
|
-
}
|
|
325
|
+
styles: [`
|
|
326
|
+
.fy-select {
|
|
327
|
+
position: relative;
|
|
328
|
+
width: 100%;
|
|
329
|
+
font: inherit;
|
|
330
|
+
display: inline-flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
border: var(--fy-effects-select-borderWidth, 1px) solid var(--fy-effects-select-borderColor, rgba(0,0,0,.15));
|
|
333
|
+
background: var(--fy-effects-select-background, #fff);
|
|
334
|
+
border-radius: var(--fy-effects-select-borderRadius, var(--fy-borderRadius-md));
|
|
335
|
+
box-shadow: var(--fy-effects-select-shadow, none);
|
|
336
|
+
min-height: 36px;
|
|
337
|
+
padding: 0 10px;
|
|
338
|
+
gap: 6px;
|
|
339
|
+
transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.fy-select__control {
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
justify-content: space-between;
|
|
346
|
+
width: 100%;
|
|
347
|
+
cursor: pointer;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.fy-select__dropdown {
|
|
351
|
+
position: absolute;
|
|
352
|
+
left: 0;
|
|
353
|
+
right: 0;
|
|
354
|
+
top: calc(100% + 4px);
|
|
355
|
+
background: var(--fy-effects-select-background, #fff);
|
|
356
|
+
border: 1px solid var(--fy-effects-select-borderColor, rgba(0,0,0,.1));
|
|
357
|
+
border-radius: var(--fy-borderRadius-md);
|
|
358
|
+
box-shadow: var(--fy-effects-select-shadow, none);
|
|
359
|
+
max-height: 240px;
|
|
360
|
+
overflow-y: auto;
|
|
361
|
+
z-index: 1000;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.fy-select__option {
|
|
365
|
+
padding: 6px 10px;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
gap: 6px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.fy-select__option--selected {
|
|
373
|
+
background: rgba(var(--fy-colors-primary-rgb, 59,130,246), 0.08);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.fy-select__search {
|
|
377
|
+
width: 100%;
|
|
378
|
+
padding: 6px;
|
|
379
|
+
border: none;
|
|
380
|
+
outline: none;
|
|
381
|
+
border-bottom: 1px solid rgba(0,0,0,.1);
|
|
382
|
+
background-color: transparent;
|
|
383
|
+
}
|
|
384
|
+
.fy-select__icon {
|
|
385
|
+
transition: transform .2s ease;
|
|
386
|
+
}
|
|
387
|
+
.fy-select.fy-select--open .fy-select__icon {
|
|
388
|
+
transform: rotate(180deg);
|
|
389
|
+
}
|
|
390
390
|
`],
|
|
391
391
|
encapsulation: ViewEncapsulation.None
|
|
392
392
|
}),
|