ngx-tethys 19.0.13 → 19.1.0-next.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/CHANGELOG.md +29 -2
- package/action/action.component.d.ts +12 -20
- package/action/actions.component.d.ts +5 -7
- package/affix/affix.component.d.ts +7 -10
- package/alert/alert.component.d.ts +1 -1
- package/anchor/anchor-link.component.d.ts +8 -8
- package/anchor/anchor.component.d.ts +15 -21
- package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
- package/autocomplete/autocomplete.component.d.ts +10 -17
- package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
- package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
- package/avatar/avatar.component.d.ts +25 -39
- package/back-top/back-top.component.d.ts +9 -12
- package/badge/badge.component.d.ts +19 -59
- package/breadcrumb/breadcrumb.component.d.ts +15 -20
- package/button/button-icon.component.d.ts +3 -2
- package/button/button.component.d.ts +3 -2
- package/calendar/calendar-header.component.d.ts +9 -8
- package/calendar/calendar.component.d.ts +16 -16
- package/card/card.component.d.ts +5 -11
- package/card/content.component.d.ts +3 -8
- package/card/header.component.d.ts +7 -8
- package/carousel/carousel.component.d.ts +22 -27
- package/cascader/cascader-li.component.d.ts +13 -21
- package/cascader/cascader-search-option.component.d.ts +8 -16
- package/cascader/cascader.component.d.ts +58 -80
- package/checkbox/checkbox.component.d.ts +2 -5
- package/collapse/collapse-item.component.d.ts +12 -19
- package/collapse/collapse.component.d.ts +6 -12
- package/collapse/collapse.token.d.ts +3 -3
- package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
- package/color-picker/color-picker-panel.component.d.ts +7 -11
- package/color-picker/color-picker.component.d.ts +19 -35
- package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
- package/color-picker/parts/hue/hue.component.d.ts +6 -6
- package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
- package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
- package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
- package/comment/comment.component.d.ts +4 -5
- package/copy/copy.directive.d.ts +8 -9
- package/date-picker/abstract-picker.component.d.ts +8 -7
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-range/date-range.component.d.ts +2 -2
- package/dialog/body/dialog-body.component.d.ts +2 -6
- package/dialog/confirm/confirm.component.d.ts +2 -2
- package/dialog/footer/dialog-footer.component.d.ts +6 -9
- package/dialog/header/dialog-header.component.d.ts +9 -11
- package/divider/divider.component.d.ts +12 -16
- package/dot/dot.component.d.ts +5 -13
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag.directive.d.ts +2 -1
- package/drag-drop/drop-container.directive.d.ts +2 -1
- package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
- package/dropdown/dropdown-menu.component.d.ts +2 -1
- package/dropdown/dropdown.directive.d.ts +2 -1
- package/empty/empty.component.d.ts +21 -27
- package/fesm2022/ngx-tethys-action.mjs +54 -91
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +29 -26
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +91 -118
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +117 -162
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +33 -46
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +104 -208
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +85 -87
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +72 -77
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +82 -99
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +313 -468
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +66 -71
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +16 -10
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +25 -28
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +81 -82
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +49 -58
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +45 -68
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +107 -95
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +161 -200
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +160 -152
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +25 -25
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +101 -114
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +268 -271
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +52 -74
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +106 -179
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +169 -201
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +230 -294
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +67 -70
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +196 -244
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +102 -105
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +34 -38
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +46 -28
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +75 -108
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +26 -46
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +114 -151
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +74 -107
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +80 -140
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +69 -87
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +42 -64
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +104 -129
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +36 -33
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +91 -130
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +36 -40
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/form/form-group-error/form-group-error.component.d.ts +2 -3
- package/form/form-group-label.directive.d.ts +2 -1
- package/form/form-group.component.d.ts +17 -24
- package/form/form-submit.directive.d.ts +2 -2
- package/form/form.directive.d.ts +6 -8
- package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
- package/form/validator/confirm-validator.directive.d.ts +2 -2
- package/form/validator/unique-validator.directive.d.ts +2 -2
- package/fullscreen/fullscreen.component.d.ts +7 -7
- package/grid/flex.d.ts +14 -19
- package/grid/thy-col.directive.d.ts +6 -9
- package/grid/thy-grid-item.component.d.ts +3 -4
- package/grid/thy-grid.component.d.ts +11 -12
- package/grid/thy-row.directive.d.ts +12 -12
- package/icon/icon.component.d.ts +3 -2
- package/image/image.directive.d.ts +3 -2
- package/input/input-count.component.d.ts +4 -5
- package/input/input-group.component.d.ts +20 -20
- package/input/input-search.component.d.ts +15 -20
- package/input/input.component.d.ts +20 -21
- package/input/input.directive.d.ts +4 -6
- package/input-number/input-number.component.d.ts +21 -29
- package/layout/header.component.d.ts +4 -9
- package/layout/sidebar-header.component.d.ts +2 -1
- package/layout/sidebar.component.d.ts +8 -7
- package/list/list.component.d.ts +2 -1
- package/list/selection/selection-list.d.ts +4 -3
- package/loading/loading.component.d.ts +4 -10
- package/mention/mention.directive.d.ts +6 -7
- package/mention/suggestions/suggestions.component.d.ts +8 -9
- package/menu/group/menu-group.component.d.ts +16 -33
- package/menu/item/action/menu-item-action.component.d.ts +7 -8
- package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
- package/menu/item/menu-item.component.d.ts +4 -4
- package/menu/item/name/menu-item-name.component.d.ts +2 -3
- package/menu/menu.component.d.ts +3 -7
- package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
- package/nav/icon-nav/icon-nav.component.d.ts +3 -8
- package/nav/nav-ink-bar.directive.d.ts +4 -6
- package/nav/nav-item.directive.d.ts +7 -10
- package/nav/nav.component.d.ts +20 -48
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +48 -109
- package/popover/header/popover-header.component.d.ts +7 -6
- package/popover/popover.directive.d.ts +11 -18
- package/progress/progress-circle.component.d.ts +32 -21
- package/progress/progress-strip.component.d.ts +10 -14
- package/progress/progress.component.d.ts +15 -23
- package/property/examples/single/single.component.scss +6 -0
- package/property/properties.component.d.ts +6 -13
- package/property/property-item.component.d.ts +21 -26
- package/property/styles/properties.scss +124 -52
- package/property-operation/property-operation.component.d.ts +6 -5
- package/radio/button/radio-button.component.d.ts +2 -2
- package/radio/group/radio-group.component.d.ts +8 -7
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.token.d.ts +2 -2
- package/rate/rate-item.component.d.ts +2 -1
- package/rate/rate.component.d.ts +4 -3
- package/resizable/resizable.directive.d.ts +4 -9
- package/resizable/resize-handle.component.d.ts +2 -1
- package/resizable/resize-handles.component.d.ts +2 -1
- package/result/result.component.d.ts +9 -10
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +2 -1
- package/segment/segment.component.d.ts +2 -1
- package/select/custom-select/custom-select.component.d.ts +11 -10
- package/select/native-select/native-select.component.d.ts +2 -1
- package/shared/base-form-check.component.d.ts +3 -2
- package/shared/directives/thy-autofocus.directive.d.ts +3 -2
- package/shared/directives/thy-scroll.directive.d.ts +2 -1
- package/shared/directives/thy-show.d.ts +2 -1
- package/shared/option/group/option-group.component.d.ts +2 -1
- package/shared/option/list-option/list-option.component.d.ts +2 -7
- package/shared/option/option.component.d.ts +2 -1
- package/shared/select/select-control/select-control.component.d.ts +7 -6
- package/skeleton/skeleton-circle.component.d.ts +16 -19
- package/skeleton/skeleton-rectangle.component.d.ts +20 -23
- package/skeleton/skeleton.component.d.ts +5 -6
- package/skeleton/stylized/bullet-list.component.d.ts +11 -13
- package/skeleton/stylized/list.component.d.ts +10 -12
- package/skeleton/stylized/paragraph.component.d.ts +12 -14
- package/slide/slide-body/slide-body-section.component.d.ts +2 -1
- package/slider/slider.component.d.ts +17 -24
- package/space/space.component.d.ts +8 -8
- package/statistic/statistic.component.d.ts +35 -40
- package/stepper/step-header.component.d.ts +6 -10
- package/stepper/step.component.d.ts +6 -6
- package/stepper/stepper.component.d.ts +15 -20
- package/switch/switch.component.d.ts +24 -35
- package/table/table-column.component.d.ts +6 -5
- package/table/table-skeleton.component.d.ts +3 -10
- package/table/table.component.d.ts +11 -10
- package/tabs/tab-content.component.d.ts +4 -4
- package/tabs/tab.component.d.ts +4 -5
- package/tabs/tabs.component.d.ts +13 -15
- package/tag/tag.component.d.ts +10 -16
- package/time-picker/time-picker-panel.component.d.ts +3 -2
- package/time-picker/time-picker.component.d.ts +6 -5
- package/timeline/timeline-item.component.d.ts +9 -13
- package/timeline/timeline.component.d.ts +13 -17
- package/tooltip/tooltip.directive.d.ts +3 -2
- package/tree/tree-node.component.d.ts +6 -15
- package/tree/tree.component.d.ts +8 -7
- package/tree-select/tree-select.component.d.ts +8 -7
- package/typography/bg-color.directive.d.ts +3 -3
- package/typography/text/text.component.d.ts +2 -2
- package/typography/text-color.directive.d.ts +3 -3
- package/upload/file-drop.directive.d.ts +9 -11
- package/upload/file-select-base.d.ts +6 -10
- package/upload/file-select.component.d.ts +10 -20
- package/util/helpers/helpers.d.ts +2 -1
- package/vote/vote.component.d.ts +4 -3
- package/watermark/watermark.directive.d.ts +7 -9
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, ViewEncapsulation, ChangeDetectionStrategy, Component, InjectionToken, inject, computed, NgModule } from '@angular/core';
|
|
3
3
|
import { NgStyle, CommonModule } from '@angular/common';
|
|
4
4
|
import { PortalModule } from '@angular/cdk/portal';
|
|
5
5
|
import { ThyGridModule } from 'ngx-tethys/grid';
|
|
6
6
|
import { ThyListModule } from 'ngx-tethys/list';
|
|
7
7
|
import { coerceBooleanProperty, isUndefinedOrNull, helpers } from 'ngx-tethys/util';
|
|
8
|
-
import {
|
|
9
|
-
import { InputCssPixel } from 'ngx-tethys/core';
|
|
8
|
+
import { coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* 骨架屏组件
|
|
@@ -14,8 +13,27 @@ import { InputCssPixel } from 'ngx-tethys/core';
|
|
|
14
13
|
* @order 10
|
|
15
14
|
*/
|
|
16
15
|
class ThySkeleton {
|
|
16
|
+
constructor() {
|
|
17
|
+
/**
|
|
18
|
+
* 是否开启动画
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
|
|
22
|
+
/**
|
|
23
|
+
* 动画速度
|
|
24
|
+
*/
|
|
25
|
+
this.thyAnimatedInterval = input();
|
|
26
|
+
/**
|
|
27
|
+
* 骨架主色调
|
|
28
|
+
*/
|
|
29
|
+
this.thyPrimaryColor = input();
|
|
30
|
+
/**
|
|
31
|
+
* 骨架次色调
|
|
32
|
+
*/
|
|
33
|
+
this.thySecondaryColor = input();
|
|
34
|
+
}
|
|
17
35
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeleton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThySkeleton, isStandalone: true, selector: "thy-skeleton", inputs: { thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
19
37
|
}
|
|
20
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeleton, decorators: [{
|
|
21
39
|
type: Component,
|
|
@@ -25,16 +43,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
25
43
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
44
|
encapsulation: ViewEncapsulation.None
|
|
27
45
|
}]
|
|
28
|
-
}]
|
|
29
|
-
type: Input,
|
|
30
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
31
|
-
}], thyAnimatedInterval: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], thyPrimaryColor: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], thySecondaryColor: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}] } });
|
|
46
|
+
}] });
|
|
38
47
|
|
|
39
48
|
const THY_SKELETON_CONFIG = new InjectionToken('THY_SKELETON_CONFIG', {
|
|
40
49
|
providedIn: 'root',
|
|
@@ -51,54 +60,72 @@ const THY_SKELETON_CONFIG = new InjectionToken('THY_SKELETON_CONFIG', {
|
|
|
51
60
|
class ThySkeletonRectangle {
|
|
52
61
|
constructor() {
|
|
53
62
|
this.skeletonConfigModel = inject(THY_SKELETON_CONFIG, { optional: true });
|
|
54
|
-
this.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
63
|
+
this.parent = inject(ThySkeleton, { optional: true });
|
|
64
|
+
/**
|
|
65
|
+
* 是否展示动画
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
|
|
69
|
+
/**
|
|
70
|
+
* 动画速度
|
|
71
|
+
* @default 1.5s
|
|
72
|
+
*/
|
|
73
|
+
this.thyAnimatedInterval = input();
|
|
74
|
+
/**
|
|
75
|
+
* 骨架边框圆角
|
|
76
|
+
* @default 4px
|
|
77
|
+
*/
|
|
78
|
+
this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
|
|
79
|
+
/**
|
|
80
|
+
* 骨架宽度
|
|
81
|
+
* @default 100%
|
|
82
|
+
*/
|
|
83
|
+
this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
|
|
84
|
+
/**
|
|
85
|
+
* 骨架高度
|
|
86
|
+
* @default 20px
|
|
87
|
+
*/
|
|
88
|
+
this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
|
|
89
|
+
/**
|
|
90
|
+
* 骨架主色
|
|
91
|
+
* @default #F7F7F7
|
|
92
|
+
*/
|
|
93
|
+
this.thyPrimaryColor = input();
|
|
94
|
+
/**
|
|
95
|
+
* 骨架次色
|
|
96
|
+
* @default #aaaaaa
|
|
97
|
+
*/
|
|
98
|
+
this.thySecondaryColor = input();
|
|
99
|
+
this.animatedInterval = computed(() => {
|
|
100
|
+
return this.thyAnimatedInterval() || this.parent?.thyAnimatedInterval() || this.skeletonConfigModel.thyAnimatedInterval;
|
|
101
|
+
});
|
|
102
|
+
this.primaryColor = computed(() => {
|
|
103
|
+
return this.thyPrimaryColor() || this.parent?.thyPrimaryColor() || this.skeletonConfigModel.thyPrimaryColor;
|
|
104
|
+
});
|
|
105
|
+
this.secondaryColor = computed(() => {
|
|
106
|
+
return this.thySecondaryColor() || this.parent?.thySecondaryColor() || this.skeletonConfigModel.thySecondaryColor;
|
|
107
|
+
});
|
|
108
|
+
this.animated = computed(() => {
|
|
109
|
+
if (!isUndefinedOrNull(this.thyAnimated())) {
|
|
110
|
+
return this.thyAnimated();
|
|
111
|
+
}
|
|
112
|
+
if (!isUndefinedOrNull(this.parent?.thyAnimated())) {
|
|
113
|
+
return this.parent.thyAnimated();
|
|
114
|
+
}
|
|
115
|
+
return this.skeletonConfigModel.thyAnimated;
|
|
116
|
+
});
|
|
117
|
+
this.afterStyles = computed(() => {
|
|
118
|
+
return {
|
|
119
|
+
...(this.secondaryColor() && {
|
|
120
|
+
background: `linear-gradient(90deg, ${helpers.hexToRgb(this.secondaryColor(), 0)}, ${helpers.hexToRgb(this.secondaryColor(), 0.15)}, ${helpers.hexToRgb(this.secondaryColor(), 0)}`
|
|
121
|
+
}),
|
|
122
|
+
animation: ![false, 'false'].includes(this.animated()) ? `thy-skeleton-animation ${this.animatedInterval()}s infinite` : 'none'
|
|
123
|
+
};
|
|
124
|
+
});
|
|
86
125
|
}
|
|
87
126
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonRectangle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
88
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
127
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThySkeletonRectangle, isStandalone: true, selector: "thy-skeleton-rectangle", inputs: { thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton": "true", "class.thy-skeleton-rectangle": "true", "style.background": "primaryColor()", "style.width": "thyRowWidth()", "style.height": "thyRowHeight()", "style.borderRadius": "thyBorderRadius()" } }, ngImport: i0, template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
89
128
|
}
|
|
90
|
-
__decorate([
|
|
91
|
-
InputCssPixel(),
|
|
92
|
-
__metadata("design:type", Object)
|
|
93
|
-
], ThySkeletonRectangle.prototype, "thyBorderRadius", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
InputCssPixel(),
|
|
96
|
-
__metadata("design:type", Object)
|
|
97
|
-
], ThySkeletonRectangle.prototype, "thyRowWidth", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
InputCssPixel(),
|
|
100
|
-
__metadata("design:type", Object)
|
|
101
|
-
], ThySkeletonRectangle.prototype, "thyRowHeight", void 0);
|
|
102
129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonRectangle, decorators: [{
|
|
103
130
|
type: Component,
|
|
104
131
|
args: [{
|
|
@@ -106,32 +133,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
106
133
|
host: {
|
|
107
134
|
'[class.thy-skeleton]': 'true',
|
|
108
135
|
'[class.thy-skeleton-rectangle]': 'true',
|
|
109
|
-
'[style.background]': '
|
|
110
|
-
'[style.width]': 'thyRowWidth',
|
|
111
|
-
'[style.height]': 'thyRowHeight',
|
|
112
|
-
'[style.borderRadius]': 'thyBorderRadius'
|
|
136
|
+
'[style.background]': 'primaryColor()',
|
|
137
|
+
'[style.width]': 'thyRowWidth()',
|
|
138
|
+
'[style.height]': 'thyRowHeight()',
|
|
139
|
+
'[style.borderRadius]': 'thyBorderRadius()'
|
|
113
140
|
},
|
|
114
|
-
template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles"></div> `,
|
|
141
|
+
template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `,
|
|
115
142
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
116
143
|
encapsulation: ViewEncapsulation.None,
|
|
117
144
|
imports: [NgStyle]
|
|
118
145
|
}]
|
|
119
|
-
}]
|
|
120
|
-
type: Input,
|
|
121
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
122
|
-
}], thyAnimatedInterval: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], thyBorderRadius: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], thyRowWidth: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], thyRowHeight: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], thyPrimaryColor: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], thySecondaryColor: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}] } });
|
|
146
|
+
}] });
|
|
135
147
|
|
|
136
148
|
/**
|
|
137
149
|
* 骨架屏圆形组件
|
|
@@ -141,51 +153,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
141
153
|
class ThySkeletonCircle {
|
|
142
154
|
constructor() {
|
|
143
155
|
this.skeletonConfigModel = inject(THY_SKELETON_CONFIG, { optional: true });
|
|
144
|
-
this.
|
|
156
|
+
this.parent = inject(ThySkeleton, { optional: true });
|
|
157
|
+
/**
|
|
158
|
+
* 动画速度
|
|
159
|
+
* @default 1.5s
|
|
160
|
+
*/
|
|
161
|
+
this.thyAnimatedInterval = input();
|
|
145
162
|
/**
|
|
146
163
|
* 骨架尺寸
|
|
147
164
|
* @default 20px
|
|
148
165
|
*/
|
|
149
|
-
this.thySize =
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
(
|
|
179
|
-
|
|
180
|
-
|
|
166
|
+
this.thySize = input(`20px`, { transform: coerceCssPixelValue });
|
|
167
|
+
/**
|
|
168
|
+
* 骨架主色
|
|
169
|
+
* @default #F7F7F7
|
|
170
|
+
*/
|
|
171
|
+
this.thyPrimaryColor = input();
|
|
172
|
+
/**
|
|
173
|
+
* 骨架次色
|
|
174
|
+
* @default #aaaaaa
|
|
175
|
+
*/
|
|
176
|
+
this.thySecondaryColor = input();
|
|
177
|
+
/**
|
|
178
|
+
* 是否展示动画
|
|
179
|
+
* @default true
|
|
180
|
+
*/
|
|
181
|
+
this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
|
|
182
|
+
this.animatedInterval = computed(() => {
|
|
183
|
+
return this.thyAnimatedInterval() || this.parent?.thyAnimatedInterval() || this.skeletonConfigModel.thyAnimatedInterval;
|
|
184
|
+
});
|
|
185
|
+
this.primaryColor = computed(() => {
|
|
186
|
+
return this.thyPrimaryColor() || this.parent?.thyPrimaryColor() || this.skeletonConfigModel.thyPrimaryColor;
|
|
187
|
+
});
|
|
188
|
+
this.secondaryColor = computed(() => {
|
|
189
|
+
return this.thySecondaryColor() || this.parent?.thySecondaryColor() || this.skeletonConfigModel.thySecondaryColor;
|
|
190
|
+
});
|
|
191
|
+
this.animated = computed(() => {
|
|
192
|
+
if (!isUndefinedOrNull(this.thyAnimated())) {
|
|
193
|
+
return this.thyAnimated();
|
|
194
|
+
}
|
|
195
|
+
if (!isUndefinedOrNull(this.parent?.thyAnimated())) {
|
|
196
|
+
return this.parent.thyAnimated();
|
|
197
|
+
}
|
|
198
|
+
return this.skeletonConfigModel.thyAnimated;
|
|
199
|
+
});
|
|
200
|
+
this.afterStyles = computed(() => {
|
|
201
|
+
return {
|
|
202
|
+
...(this.secondaryColor() && {
|
|
203
|
+
background: `linear-gradient(90deg, ${helpers.hexToRgb(this.secondaryColor(), 0)}, ${helpers.hexToRgb(this.secondaryColor(), 0.15)}, ${helpers.hexToRgb(this.secondaryColor(), 0)}`
|
|
204
|
+
}),
|
|
205
|
+
animation: ![false, 'false'].includes(this.animated()) ? `thy-skeleton-animation ${this.animatedInterval()}s infinite` : 'none'
|
|
206
|
+
};
|
|
207
|
+
});
|
|
181
208
|
}
|
|
182
209
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonCircle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
183
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
210
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThySkeletonCircle, isStandalone: true, selector: "thy-skeleton-circle", inputs: { thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thySize: { classPropertyName: "thySize", publicName: "thySize", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton": "true", "class.thy-skeleton-circle": "true", "style.background": "primaryColor()", "style.width": "thySize()", "style.height": "thySize()" } }, ngImport: i0, template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
184
211
|
}
|
|
185
|
-
__decorate([
|
|
186
|
-
InputCssPixel(),
|
|
187
|
-
__metadata("design:type", Object)
|
|
188
|
-
], ThySkeletonCircle.prototype, "thySize", void 0);
|
|
189
212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonCircle, decorators: [{
|
|
190
213
|
type: Component,
|
|
191
214
|
args: [{
|
|
@@ -193,27 +216,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
193
216
|
host: {
|
|
194
217
|
'[class.thy-skeleton]': 'true',
|
|
195
218
|
'[class.thy-skeleton-circle]': 'true',
|
|
196
|
-
'[style.background]': '
|
|
197
|
-
'[style.width]': 'thySize',
|
|
198
|
-
'[style.height]': 'thySize'
|
|
219
|
+
'[style.background]': 'primaryColor()',
|
|
220
|
+
'[style.width]': 'thySize()',
|
|
221
|
+
'[style.height]': 'thySize()'
|
|
199
222
|
},
|
|
200
|
-
template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles"></div> `,
|
|
223
|
+
template: ` <div class="thy-skeleton-after" [ngStyle]="afterStyles()"></div> `,
|
|
201
224
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
202
225
|
encapsulation: ViewEncapsulation.None,
|
|
203
226
|
imports: [NgStyle]
|
|
204
227
|
}]
|
|
205
|
-
}]
|
|
206
|
-
type: Input
|
|
207
|
-
}], thySize: [{
|
|
208
|
-
type: Input
|
|
209
|
-
}], thyPrimaryColor: [{
|
|
210
|
-
type: Input
|
|
211
|
-
}], thySecondaryColor: [{
|
|
212
|
-
type: Input
|
|
213
|
-
}], thyAnimated: [{
|
|
214
|
-
type: Input,
|
|
215
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
216
|
-
}] } });
|
|
228
|
+
}] });
|
|
217
229
|
|
|
218
230
|
/**
|
|
219
231
|
* 骨架屏列表组件
|
|
@@ -222,86 +234,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
222
234
|
*/
|
|
223
235
|
class ThySkeletonList {
|
|
224
236
|
constructor() {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
237
|
+
/**
|
|
238
|
+
* 骨架宽度
|
|
239
|
+
*/
|
|
240
|
+
this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
|
|
241
|
+
/**
|
|
242
|
+
* 骨架高度
|
|
243
|
+
*/
|
|
244
|
+
this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
|
|
245
|
+
/**
|
|
246
|
+
* 骨架边框圆角
|
|
247
|
+
*/
|
|
248
|
+
this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
|
|
249
|
+
/**
|
|
250
|
+
* 是否开启动画
|
|
251
|
+
* @default false
|
|
252
|
+
*/
|
|
253
|
+
this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
|
|
254
|
+
/**
|
|
255
|
+
* 动画速度
|
|
256
|
+
*/
|
|
257
|
+
this.thyAnimatedInterval = input();
|
|
258
|
+
/**
|
|
259
|
+
* 骨架主色
|
|
260
|
+
*/
|
|
261
|
+
this.thyPrimaryColor = input();
|
|
262
|
+
/**
|
|
263
|
+
* 骨架次色
|
|
264
|
+
*/
|
|
265
|
+
this.thySecondaryColor = input();
|
|
266
|
+
/**
|
|
267
|
+
* 行数
|
|
268
|
+
*/
|
|
269
|
+
this.thyRowCount = input();
|
|
270
|
+
this.rows = computed(() => {
|
|
271
|
+
return Array.from({ length: +this.thyRowCount() });
|
|
272
|
+
});
|
|
235
273
|
}
|
|
236
274
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
237
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonList, isStandalone: true, selector: "thy-skeleton-list", inputs: { thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyBorderRadius: "thyBorderRadius", thyAnimated:
|
|
238
|
-
@for (k of
|
|
275
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonList, isStandalone: true, selector: "thy-skeleton-list", inputs: { thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thyRowCount: { classPropertyName: "thyRowCount", publicName: "thyRowCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton-list": "true" } }, ngImport: i0, template: `
|
|
276
|
+
@for (k of rows(); track $index; let i = $index) {
|
|
239
277
|
<thy-skeleton-rectangle
|
|
240
278
|
class="vertical-gap"
|
|
241
|
-
[thyRowWidth]="thyRowWidth"
|
|
242
|
-
[thyRowHeight]="thyRowHeight"
|
|
243
|
-
[thyAnimated]="thyAnimated"
|
|
244
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
245
|
-
[thySecondaryColor]="thySecondaryColor"
|
|
246
|
-
[thyBorderRadius]="thyBorderRadius"
|
|
247
|
-
[thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
|
|
279
|
+
[thyRowWidth]="thyRowWidth()"
|
|
280
|
+
[thyRowHeight]="thyRowHeight()"
|
|
281
|
+
[thyAnimated]="thyAnimated()"
|
|
282
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
283
|
+
[thySecondaryColor]="thySecondaryColor()"
|
|
284
|
+
[thyBorderRadius]="thyBorderRadius()"
|
|
285
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
|
|
248
286
|
}
|
|
249
287
|
`, isInline: true, dependencies: [{ kind: "component", type: ThySkeletonRectangle, selector: "thy-skeleton-rectangle", inputs: ["thyAnimated", "thyAnimatedInterval", "thyBorderRadius", "thyRowWidth", "thyRowHeight", "thyPrimaryColor", "thySecondaryColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
250
288
|
}
|
|
251
|
-
__decorate([
|
|
252
|
-
InputCssPixel(),
|
|
253
|
-
__metadata("design:type", Object)
|
|
254
|
-
], ThySkeletonList.prototype, "thyRowWidth", void 0);
|
|
255
|
-
__decorate([
|
|
256
|
-
InputCssPixel(),
|
|
257
|
-
__metadata("design:type", Object)
|
|
258
|
-
], ThySkeletonList.prototype, "thyRowHeight", void 0);
|
|
259
|
-
__decorate([
|
|
260
|
-
InputCssPixel(),
|
|
261
|
-
__metadata("design:type", Object)
|
|
262
|
-
], ThySkeletonList.prototype, "thyBorderRadius", void 0);
|
|
263
289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonList, decorators: [{
|
|
264
290
|
type: Component,
|
|
265
291
|
args: [{
|
|
266
292
|
selector: 'thy-skeleton-list',
|
|
267
293
|
template: `
|
|
268
|
-
@for (k of
|
|
294
|
+
@for (k of rows(); track $index; let i = $index) {
|
|
269
295
|
<thy-skeleton-rectangle
|
|
270
296
|
class="vertical-gap"
|
|
271
|
-
[thyRowWidth]="thyRowWidth"
|
|
272
|
-
[thyRowHeight]="thyRowHeight"
|
|
273
|
-
[thyAnimated]="thyAnimated"
|
|
274
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
275
|
-
[thySecondaryColor]="thySecondaryColor"
|
|
276
|
-
[thyBorderRadius]="thyBorderRadius"
|
|
277
|
-
[thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
|
|
297
|
+
[thyRowWidth]="thyRowWidth()"
|
|
298
|
+
[thyRowHeight]="thyRowHeight()"
|
|
299
|
+
[thyAnimated]="thyAnimated()"
|
|
300
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
301
|
+
[thySecondaryColor]="thySecondaryColor()"
|
|
302
|
+
[thyBorderRadius]="thyBorderRadius()"
|
|
303
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
|
|
278
304
|
}
|
|
279
305
|
`,
|
|
280
|
-
host: {
|
|
281
|
-
'[class.thy-skeleton-list]': 'true'
|
|
282
|
-
},
|
|
306
|
+
host: { '[class.thy-skeleton-list]': 'true' },
|
|
283
307
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
284
308
|
encapsulation: ViewEncapsulation.None,
|
|
285
309
|
imports: [ThySkeletonRectangle]
|
|
286
310
|
}]
|
|
287
|
-
}]
|
|
288
|
-
type: Input
|
|
289
|
-
}], thyRowHeight: [{
|
|
290
|
-
type: Input
|
|
291
|
-
}], thyBorderRadius: [{
|
|
292
|
-
type: Input
|
|
293
|
-
}], thyAnimated: [{
|
|
294
|
-
type: Input,
|
|
295
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
296
|
-
}], thyAnimatedInterval: [{
|
|
297
|
-
type: Input
|
|
298
|
-
}], thyPrimaryColor: [{
|
|
299
|
-
type: Input
|
|
300
|
-
}], thySecondaryColor: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}], thyRowCount: [{
|
|
303
|
-
type: Input
|
|
304
|
-
}] } });
|
|
311
|
+
}] });
|
|
305
312
|
|
|
306
313
|
/**
|
|
307
314
|
* 骨架屏段落组件
|
|
@@ -310,98 +317,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
310
317
|
*/
|
|
311
318
|
class ThySkeletonParagraph {
|
|
312
319
|
constructor() {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
/**
|
|
321
|
+
* 首行宽度
|
|
322
|
+
*/
|
|
323
|
+
this.thyFirstWidth = input(undefined, { transform: coerceCssPixelValue });
|
|
324
|
+
/**
|
|
325
|
+
* 尾行宽度
|
|
326
|
+
*/
|
|
327
|
+
this.thyLastWidth = input(undefined, { transform: coerceCssPixelValue });
|
|
328
|
+
/**
|
|
329
|
+
* 骨架宽度
|
|
330
|
+
*/
|
|
331
|
+
this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
|
|
332
|
+
/**
|
|
333
|
+
* 骨架高度
|
|
334
|
+
*/
|
|
335
|
+
this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
|
|
336
|
+
/**
|
|
337
|
+
* 骨架边框圆角
|
|
338
|
+
*/
|
|
339
|
+
this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
|
|
340
|
+
/**
|
|
341
|
+
* 是否开启动画
|
|
342
|
+
* @default false
|
|
343
|
+
*/
|
|
344
|
+
this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
|
|
345
|
+
/**
|
|
346
|
+
* 动画速度
|
|
347
|
+
*/
|
|
348
|
+
this.thyAnimatedInterval = input();
|
|
349
|
+
/**
|
|
350
|
+
* 骨架主色
|
|
351
|
+
*/
|
|
352
|
+
this.thyPrimaryColor = input();
|
|
353
|
+
/**
|
|
354
|
+
* 骨架次色
|
|
355
|
+
*/
|
|
356
|
+
this.thySecondaryColor = input();
|
|
357
|
+
/**
|
|
358
|
+
* 行数
|
|
359
|
+
*/
|
|
360
|
+
this.thyRowCount = input();
|
|
361
|
+
this.rows = computed(() => {
|
|
362
|
+
return Array.from({ length: +this.thyRowCount() });
|
|
363
|
+
});
|
|
323
364
|
}
|
|
324
365
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonParagraph, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
325
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonParagraph, isStandalone: true, selector: "thy-skeleton-paragraph", inputs: { thyFirstWidth: "thyFirstWidth", thyLastWidth: "thyLastWidth", thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyBorderRadius: "thyBorderRadius", thyAnimated:
|
|
326
|
-
@for (k of
|
|
366
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonParagraph, isStandalone: true, selector: "thy-skeleton-paragraph", inputs: { thyFirstWidth: { classPropertyName: "thyFirstWidth", publicName: "thyFirstWidth", isSignal: true, isRequired: false, transformFunction: null }, thyLastWidth: { classPropertyName: "thyLastWidth", publicName: "thyLastWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thyRowCount: { classPropertyName: "thyRowCount", publicName: "thyRowCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton-paragraph": "true" } }, ngImport: i0, template: `
|
|
367
|
+
@for (k of rows(); track $index; let i = $index) {
|
|
327
368
|
<thy-skeleton-rectangle
|
|
328
369
|
class="vertical-gap"
|
|
329
|
-
[thyRowWidth]="i === 0 ? thyFirstWidth : i ===
|
|
330
|
-
[thyRowHeight]="thyRowHeight"
|
|
331
|
-
[thyAnimated]="thyAnimated"
|
|
332
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
333
|
-
[thySecondaryColor]="thySecondaryColor"
|
|
334
|
-
[thyBorderRadius]="thyBorderRadius"
|
|
335
|
-
[thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
|
|
370
|
+
[thyRowWidth]="i === 0 ? thyFirstWidth() : i === rows().length - 1 ? thyLastWidth() : thyRowWidth()"
|
|
371
|
+
[thyRowHeight]="thyRowHeight()"
|
|
372
|
+
[thyAnimated]="thyAnimated()"
|
|
373
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
374
|
+
[thySecondaryColor]="thySecondaryColor()"
|
|
375
|
+
[thyBorderRadius]="thyBorderRadius()"
|
|
376
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
|
|
336
377
|
}
|
|
337
378
|
`, isInline: true, dependencies: [{ kind: "component", type: ThySkeletonRectangle, selector: "thy-skeleton-rectangle", inputs: ["thyAnimated", "thyAnimatedInterval", "thyBorderRadius", "thyRowWidth", "thyRowHeight", "thyPrimaryColor", "thySecondaryColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
338
379
|
}
|
|
339
|
-
__decorate([
|
|
340
|
-
InputCssPixel(),
|
|
341
|
-
__metadata("design:type", Object)
|
|
342
|
-
], ThySkeletonParagraph.prototype, "thyFirstWidth", void 0);
|
|
343
|
-
__decorate([
|
|
344
|
-
InputCssPixel(),
|
|
345
|
-
__metadata("design:type", Object)
|
|
346
|
-
], ThySkeletonParagraph.prototype, "thyLastWidth", void 0);
|
|
347
|
-
__decorate([
|
|
348
|
-
InputCssPixel(),
|
|
349
|
-
__metadata("design:type", Object)
|
|
350
|
-
], ThySkeletonParagraph.prototype, "thyRowWidth", void 0);
|
|
351
|
-
__decorate([
|
|
352
|
-
InputCssPixel(),
|
|
353
|
-
__metadata("design:type", Object)
|
|
354
|
-
], ThySkeletonParagraph.prototype, "thyRowHeight", void 0);
|
|
355
|
-
__decorate([
|
|
356
|
-
InputCssPixel(),
|
|
357
|
-
__metadata("design:type", Object)
|
|
358
|
-
], ThySkeletonParagraph.prototype, "thyBorderRadius", void 0);
|
|
359
380
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonParagraph, decorators: [{
|
|
360
381
|
type: Component,
|
|
361
382
|
args: [{
|
|
362
383
|
selector: 'thy-skeleton-paragraph',
|
|
363
384
|
template: `
|
|
364
|
-
@for (k of
|
|
385
|
+
@for (k of rows(); track $index; let i = $index) {
|
|
365
386
|
<thy-skeleton-rectangle
|
|
366
387
|
class="vertical-gap"
|
|
367
|
-
[thyRowWidth]="i === 0 ? thyFirstWidth : i ===
|
|
368
|
-
[thyRowHeight]="thyRowHeight"
|
|
369
|
-
[thyAnimated]="thyAnimated"
|
|
370
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
371
|
-
[thySecondaryColor]="thySecondaryColor"
|
|
372
|
-
[thyBorderRadius]="thyBorderRadius"
|
|
373
|
-
[thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
|
|
388
|
+
[thyRowWidth]="i === 0 ? thyFirstWidth() : i === rows().length - 1 ? thyLastWidth() : thyRowWidth()"
|
|
389
|
+
[thyRowHeight]="thyRowHeight()"
|
|
390
|
+
[thyAnimated]="thyAnimated()"
|
|
391
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
392
|
+
[thySecondaryColor]="thySecondaryColor()"
|
|
393
|
+
[thyBorderRadius]="thyBorderRadius()"
|
|
394
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
|
|
374
395
|
}
|
|
375
396
|
`,
|
|
376
|
-
host: {
|
|
377
|
-
'[class.thy-skeleton-paragraph]': 'true'
|
|
378
|
-
},
|
|
397
|
+
host: { '[class.thy-skeleton-paragraph]': 'true' },
|
|
379
398
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
380
399
|
encapsulation: ViewEncapsulation.None,
|
|
381
400
|
imports: [ThySkeletonRectangle]
|
|
382
401
|
}]
|
|
383
|
-
}]
|
|
384
|
-
type: Input
|
|
385
|
-
}], thyLastWidth: [{
|
|
386
|
-
type: Input
|
|
387
|
-
}], thyRowWidth: [{
|
|
388
|
-
type: Input
|
|
389
|
-
}], thyRowHeight: [{
|
|
390
|
-
type: Input
|
|
391
|
-
}], thyBorderRadius: [{
|
|
392
|
-
type: Input
|
|
393
|
-
}], thyAnimated: [{
|
|
394
|
-
type: Input,
|
|
395
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
396
|
-
}], thyAnimatedInterval: [{
|
|
397
|
-
type: Input
|
|
398
|
-
}], thyPrimaryColor: [{
|
|
399
|
-
type: Input
|
|
400
|
-
}], thySecondaryColor: [{
|
|
401
|
-
type: Input
|
|
402
|
-
}], thyRowCount: [{
|
|
403
|
-
type: Input
|
|
404
|
-
}] } });
|
|
402
|
+
}] });
|
|
405
403
|
|
|
406
404
|
/**
|
|
407
405
|
* 骨架屏无序列表组件
|
|
@@ -409,115 +407,114 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
409
407
|
* @order 50
|
|
410
408
|
*/
|
|
411
409
|
class ThySkeletonBulletList {
|
|
412
|
-
/**
|
|
413
|
-
* 行数
|
|
414
|
-
*/
|
|
415
|
-
set thyRowCount(value) {
|
|
416
|
-
this.rowCount = Array.from({ length: +value });
|
|
417
|
-
}
|
|
418
|
-
get thyRowCount() {
|
|
419
|
-
return this.rowCount.length;
|
|
420
|
-
}
|
|
421
410
|
constructor() {
|
|
422
|
-
|
|
411
|
+
/**
|
|
412
|
+
* 骨架宽度
|
|
413
|
+
* @default 100%
|
|
414
|
+
*/
|
|
415
|
+
this.thyRowWidth = input(undefined, { transform: coerceCssPixelValue });
|
|
416
|
+
/**
|
|
417
|
+
* 骨架高度
|
|
418
|
+
* @default 20px
|
|
419
|
+
*/
|
|
420
|
+
this.thyRowHeight = input(undefined, { transform: coerceCssPixelValue });
|
|
421
|
+
/**
|
|
422
|
+
* 骨架边框圆角
|
|
423
|
+
* @default 4px
|
|
424
|
+
*/
|
|
425
|
+
this.thyBorderRadius = input(undefined, { transform: coerceCssPixelValue });
|
|
426
|
+
/**
|
|
427
|
+
* 是否开启动画
|
|
428
|
+
* @default true
|
|
429
|
+
*/
|
|
430
|
+
this.thyAnimated = input(undefined, { transform: coerceBooleanProperty });
|
|
431
|
+
/**
|
|
432
|
+
* 动画速度
|
|
433
|
+
* @default 1.5s
|
|
434
|
+
*/
|
|
435
|
+
this.thyAnimatedInterval = input();
|
|
436
|
+
/**
|
|
437
|
+
* 骨架主色
|
|
438
|
+
* @default #f7f7f7
|
|
439
|
+
*/
|
|
440
|
+
this.thyPrimaryColor = input();
|
|
441
|
+
/**
|
|
442
|
+
* 骨架次色
|
|
443
|
+
* @default #aaaaaa
|
|
444
|
+
*/
|
|
445
|
+
this.thySecondaryColor = input();
|
|
446
|
+
/**
|
|
447
|
+
* circle类型骨架尺寸
|
|
448
|
+
*/
|
|
449
|
+
this.thySize = input(undefined, { transform: coerceCssPixelValue });
|
|
450
|
+
/**
|
|
451
|
+
* 行数
|
|
452
|
+
*/
|
|
453
|
+
this.thyRowCount = input();
|
|
454
|
+
this.rows = computed(() => {
|
|
455
|
+
return Array.from({ length: +this.thyRowCount() });
|
|
456
|
+
});
|
|
423
457
|
}
|
|
424
458
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonBulletList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
425
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonBulletList, isStandalone: true, selector: "thy-skeleton-bullet-list", inputs: { thyRowWidth: "thyRowWidth", thyRowHeight: "thyRowHeight", thyBorderRadius: "thyBorderRadius", thyAnimated:
|
|
426
|
-
@for (item of
|
|
459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThySkeletonBulletList, isStandalone: true, selector: "thy-skeleton-bullet-list", inputs: { thyRowWidth: { classPropertyName: "thyRowWidth", publicName: "thyRowWidth", isSignal: true, isRequired: false, transformFunction: null }, thyRowHeight: { classPropertyName: "thyRowHeight", publicName: "thyRowHeight", isSignal: true, isRequired: false, transformFunction: null }, thyBorderRadius: { classPropertyName: "thyBorderRadius", publicName: "thyBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, thyAnimated: { classPropertyName: "thyAnimated", publicName: "thyAnimated", isSignal: true, isRequired: false, transformFunction: null }, thyAnimatedInterval: { classPropertyName: "thyAnimatedInterval", publicName: "thyAnimatedInterval", isSignal: true, isRequired: false, transformFunction: null }, thyPrimaryColor: { classPropertyName: "thyPrimaryColor", publicName: "thyPrimaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySecondaryColor: { classPropertyName: "thySecondaryColor", publicName: "thySecondaryColor", isSignal: true, isRequired: false, transformFunction: null }, thySize: { classPropertyName: "thySize", publicName: "thySize", isSignal: true, isRequired: false, transformFunction: null }, thyRowCount: { classPropertyName: "thyRowCount", publicName: "thyRowCount", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-skeleton-bullet-list": "true" } }, ngImport: i0, template: `
|
|
460
|
+
@for (item of rows(); track $index; let i = $index) {
|
|
427
461
|
<div class="d-flex vertical-gap">
|
|
428
462
|
<thy-skeleton-circle
|
|
429
|
-
[thyAnimated]="thyAnimated"
|
|
430
|
-
[thyAnimatedInterval]="thyAnimatedInterval"
|
|
431
|
-
[thySize]="thySize"
|
|
432
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
433
|
-
[thySecondaryColor]="thySecondaryColor">
|
|
463
|
+
[thyAnimated]="thyAnimated()"
|
|
464
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"
|
|
465
|
+
[thySize]="thySize()"
|
|
466
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
467
|
+
[thySecondaryColor]="thySecondaryColor()">
|
|
434
468
|
</thy-skeleton-circle>
|
|
435
469
|
<div class="horizontal-gap"></div>
|
|
436
470
|
<div style="flex: 1">
|
|
437
471
|
<thy-skeleton-rectangle
|
|
438
|
-
[thyRowWidth]="thyRowWidth"
|
|
439
|
-
[thyRowHeight]="thyRowHeight"
|
|
440
|
-
[thyAnimated]="thyAnimated"
|
|
441
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
442
|
-
[thySecondaryColor]="thySecondaryColor"
|
|
443
|
-
[thyBorderRadius]="thyBorderRadius"
|
|
444
|
-
[thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
|
|
472
|
+
[thyRowWidth]="thyRowWidth()"
|
|
473
|
+
[thyRowHeight]="thyRowHeight()"
|
|
474
|
+
[thyAnimated]="thyAnimated()"
|
|
475
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
476
|
+
[thySecondaryColor]="thySecondaryColor()"
|
|
477
|
+
[thyBorderRadius]="thyBorderRadius()"
|
|
478
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
|
|
445
479
|
</div>
|
|
446
480
|
</div>
|
|
447
481
|
}
|
|
448
482
|
`, isInline: true, dependencies: [{ kind: "component", type: ThySkeletonCircle, selector: "thy-skeleton-circle", inputs: ["thyAnimatedInterval", "thySize", "thyPrimaryColor", "thySecondaryColor", "thyAnimated"] }, { kind: "component", type: ThySkeletonRectangle, selector: "thy-skeleton-rectangle", inputs: ["thyAnimated", "thyAnimatedInterval", "thyBorderRadius", "thyRowWidth", "thyRowHeight", "thyPrimaryColor", "thySecondaryColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
449
483
|
}
|
|
450
|
-
__decorate([
|
|
451
|
-
InputCssPixel(),
|
|
452
|
-
__metadata("design:type", Object)
|
|
453
|
-
], ThySkeletonBulletList.prototype, "thyRowWidth", void 0);
|
|
454
|
-
__decorate([
|
|
455
|
-
InputCssPixel(),
|
|
456
|
-
__metadata("design:type", Object)
|
|
457
|
-
], ThySkeletonBulletList.prototype, "thyRowHeight", void 0);
|
|
458
|
-
__decorate([
|
|
459
|
-
InputCssPixel(),
|
|
460
|
-
__metadata("design:type", Object)
|
|
461
|
-
], ThySkeletonBulletList.prototype, "thyBorderRadius", void 0);
|
|
462
|
-
__decorate([
|
|
463
|
-
InputCssPixel(),
|
|
464
|
-
__metadata("design:type", Object)
|
|
465
|
-
], ThySkeletonBulletList.prototype, "thySize", void 0);
|
|
466
484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThySkeletonBulletList, decorators: [{
|
|
467
485
|
type: Component,
|
|
468
486
|
args: [{
|
|
469
487
|
selector: 'thy-skeleton-bullet-list',
|
|
470
488
|
template: `
|
|
471
|
-
@for (item of
|
|
489
|
+
@for (item of rows(); track $index; let i = $index) {
|
|
472
490
|
<div class="d-flex vertical-gap">
|
|
473
491
|
<thy-skeleton-circle
|
|
474
|
-
[thyAnimated]="thyAnimated"
|
|
475
|
-
[thyAnimatedInterval]="thyAnimatedInterval"
|
|
476
|
-
[thySize]="thySize"
|
|
477
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
478
|
-
[thySecondaryColor]="thySecondaryColor">
|
|
492
|
+
[thyAnimated]="thyAnimated()"
|
|
493
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"
|
|
494
|
+
[thySize]="thySize()"
|
|
495
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
496
|
+
[thySecondaryColor]="thySecondaryColor()">
|
|
479
497
|
</thy-skeleton-circle>
|
|
480
498
|
<div class="horizontal-gap"></div>
|
|
481
499
|
<div style="flex: 1">
|
|
482
500
|
<thy-skeleton-rectangle
|
|
483
|
-
[thyRowWidth]="thyRowWidth"
|
|
484
|
-
[thyRowHeight]="thyRowHeight"
|
|
485
|
-
[thyAnimated]="thyAnimated"
|
|
486
|
-
[thyPrimaryColor]="thyPrimaryColor"
|
|
487
|
-
[thySecondaryColor]="thySecondaryColor"
|
|
488
|
-
[thyBorderRadius]="thyBorderRadius"
|
|
489
|
-
[thyAnimatedInterval]="thyAnimatedInterval"></thy-skeleton-rectangle>
|
|
501
|
+
[thyRowWidth]="thyRowWidth()"
|
|
502
|
+
[thyRowHeight]="thyRowHeight()"
|
|
503
|
+
[thyAnimated]="thyAnimated()"
|
|
504
|
+
[thyPrimaryColor]="thyPrimaryColor()"
|
|
505
|
+
[thySecondaryColor]="thySecondaryColor()"
|
|
506
|
+
[thyBorderRadius]="thyBorderRadius()"
|
|
507
|
+
[thyAnimatedInterval]="thyAnimatedInterval()"></thy-skeleton-rectangle>
|
|
490
508
|
</div>
|
|
491
509
|
</div>
|
|
492
510
|
}
|
|
493
511
|
`,
|
|
494
|
-
host: {
|
|
495
|
-
'[class.thy-skeleton-bullet-list]': 'true'
|
|
496
|
-
},
|
|
512
|
+
host: { '[class.thy-skeleton-bullet-list]': 'true' },
|
|
497
513
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
498
514
|
encapsulation: ViewEncapsulation.None,
|
|
499
515
|
imports: [ThySkeletonCircle, ThySkeletonRectangle]
|
|
500
516
|
}]
|
|
501
|
-
}], ctorParameters: () => []
|
|
502
|
-
type: Input
|
|
503
|
-
}], thyRowHeight: [{
|
|
504
|
-
type: Input
|
|
505
|
-
}], thyBorderRadius: [{
|
|
506
|
-
type: Input
|
|
507
|
-
}], thyAnimated: [{
|
|
508
|
-
type: Input,
|
|
509
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
510
|
-
}], thyAnimatedInterval: [{
|
|
511
|
-
type: Input
|
|
512
|
-
}], thyPrimaryColor: [{
|
|
513
|
-
type: Input
|
|
514
|
-
}], thySecondaryColor: [{
|
|
515
|
-
type: Input
|
|
516
|
-
}], thySize: [{
|
|
517
|
-
type: Input
|
|
518
|
-
}], thyRowCount: [{
|
|
519
|
-
type: Input
|
|
520
|
-
}] } });
|
|
517
|
+
}], ctorParameters: () => [] });
|
|
521
518
|
|
|
522
519
|
const components = [ThySkeleton, ThySkeletonRectangle, ThySkeletonCircle, ThySkeletonList, ThySkeletonParagraph, ThySkeletonBulletList];
|
|
523
520
|
class ThySkeletonModule {
|