@tacdaed/fragments 1.0.0-beta.8 → 1.0.0-beta.9
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/fesm2022/tacdaed-fragments.mjs +12 -32
- package/index.d.ts +6 -11
- package/package.json +1 -1
|
@@ -1578,10 +1578,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
|
|
|
1578
1578
|
args: ['morphPath', { static: false }]
|
|
1579
1579
|
}] } });
|
|
1580
1580
|
|
|
1581
|
-
class
|
|
1581
|
+
class SparkleSectionComponent {
|
|
1582
1582
|
constructor() {
|
|
1583
|
+
/* Layout */
|
|
1583
1584
|
this.width = null;
|
|
1584
1585
|
this.height = null;
|
|
1586
|
+
/* Sparkles */
|
|
1585
1587
|
this.count = 12;
|
|
1586
1588
|
this.minSize = 2;
|
|
1587
1589
|
this.maxSize = 6;
|
|
@@ -1593,24 +1595,13 @@ class SparkleFieldComponent {
|
|
|
1593
1595
|
this.sparkles = [];
|
|
1594
1596
|
this.animations = [];
|
|
1595
1597
|
this.changesSub = null;
|
|
1596
|
-
this.fallbackWidth = 260;
|
|
1597
|
-
this.fallbackHeight = 160;
|
|
1598
1598
|
}
|
|
1599
|
+
/* Host sizing (ONLY when provided) */
|
|
1599
1600
|
get hostWidth() {
|
|
1600
|
-
return this.width
|
|
1601
|
+
return this.width ? this.formatSize(this.width) : null;
|
|
1601
1602
|
}
|
|
1602
1603
|
get hostHeight() {
|
|
1603
|
-
return this.height
|
|
1604
|
-
}
|
|
1605
|
-
get hostMinWidth() {
|
|
1606
|
-
return this.needsMinSize(this.width)
|
|
1607
|
-
? `${this.fallbackWidth}px`
|
|
1608
|
-
: null;
|
|
1609
|
-
}
|
|
1610
|
-
get hostMinHeight() {
|
|
1611
|
-
return this.needsMinSize(this.height)
|
|
1612
|
-
? `${this.fallbackHeight}px`
|
|
1613
|
-
: null;
|
|
1604
|
+
return this.height ? this.formatSize(this.height) : null;
|
|
1614
1605
|
}
|
|
1615
1606
|
get hostColor() {
|
|
1616
1607
|
return this.color;
|
|
@@ -1682,19 +1673,14 @@ class SparkleFieldComponent {
|
|
|
1682
1673
|
return min + Math.random() * (max - min);
|
|
1683
1674
|
}
|
|
1684
1675
|
formatSize(value) {
|
|
1685
|
-
|
|
1686
|
-
return '';
|
|
1687
|
-
return typeof value === 'number' ? `${value}px` : value;
|
|
1688
|
-
}
|
|
1689
|
-
needsMinSize(value) {
|
|
1690
|
-
return typeof value === 'string' && value.trim().endsWith('%');
|
|
1676
|
+
return typeof value === 'number' ? `${value}px` : (value || '');
|
|
1691
1677
|
}
|
|
1692
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type:
|
|
1693
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.3", type:
|
|
1678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: SparkleSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1679
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.3", type: SparkleSectionComponent, isStandalone: true, selector: "frg-sparkle-section", inputs: { width: "width", height: "height", count: "count", minSize: "minSize", maxSize: "maxSize", drift: "drift", minDuration: "minDuration", maxDuration: "maxDuration", loop: "loop", color: "color" }, host: { properties: { "style.width": "this.hostWidth", "style.height": "this.hostHeight", "style.color": "this.hostColor" } }, viewQueries: [{ propertyName: "sparkleRefs", predicate: ["sparkle"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"frg-sparkle-layer\" aria-hidden=\"true\">\r\n @for (sparkle of sparkles; track $index) {\r\n <span\r\n #sparkle\r\n class=\"frg-sparkle\"\r\n [style.left.%]=\"sparkle.x\"\r\n [style.top.%]=\"sparkle.y\"\r\n [style.width.px]=\"sparkle.size\"\r\n [style.height.px]=\"sparkle.size\">\r\n </span>\r\n }\r\n</div>\r\n\r\n<div class=\"frg-sparkle-content\">\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [":host{display:block;position:relative;overflow:hidden}.frg-sparkle-layer{position:absolute;inset:0;pointer-events:none;z-index:0}.frg-sparkle-content{position:relative;z-index:1}.frg-sparkle{position:absolute;border-radius:50%;background:radial-gradient(circle,currentColor 0%,#fdfdfd 35%,#3d3d3d 70%);opacity:.6;will-change:transform,opacity;transform:translateZ(0)}\n"] }); }
|
|
1694
1680
|
}
|
|
1695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type:
|
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: SparkleSectionComponent, decorators: [{
|
|
1696
1682
|
type: Component,
|
|
1697
|
-
args: [{ selector: 'frg-sparkle-
|
|
1683
|
+
args: [{ selector: 'frg-sparkle-section', standalone: true, template: "<div class=\"frg-sparkle-layer\" aria-hidden=\"true\">\r\n @for (sparkle of sparkles; track $index) {\r\n <span\r\n #sparkle\r\n class=\"frg-sparkle\"\r\n [style.left.%]=\"sparkle.x\"\r\n [style.top.%]=\"sparkle.y\"\r\n [style.width.px]=\"sparkle.size\"\r\n [style.height.px]=\"sparkle.size\">\r\n </span>\r\n }\r\n</div>\r\n\r\n<div class=\"frg-sparkle-content\">\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [":host{display:block;position:relative;overflow:hidden}.frg-sparkle-layer{position:absolute;inset:0;pointer-events:none;z-index:0}.frg-sparkle-content{position:relative;z-index:1}.frg-sparkle{position:absolute;border-radius:50%;background:radial-gradient(circle,currentColor 0%,#fdfdfd 35%,#3d3d3d 70%);opacity:.6;will-change:transform,opacity;transform:translateZ(0)}\n"] }]
|
|
1698
1684
|
}], propDecorators: { width: [{
|
|
1699
1685
|
type: Input
|
|
1700
1686
|
}], height: [{
|
|
@@ -1724,12 +1710,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
|
|
|
1724
1710
|
}], hostHeight: [{
|
|
1725
1711
|
type: HostBinding,
|
|
1726
1712
|
args: ['style.height']
|
|
1727
|
-
}], hostMinWidth: [{
|
|
1728
|
-
type: HostBinding,
|
|
1729
|
-
args: ['style.minWidth']
|
|
1730
|
-
}], hostMinHeight: [{
|
|
1731
|
-
type: HostBinding,
|
|
1732
|
-
args: ['style.minHeight']
|
|
1733
1713
|
}], hostColor: [{
|
|
1734
1714
|
type: HostBinding,
|
|
1735
1715
|
args: ['style.color']
|
|
@@ -8920,5 +8900,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
|
|
|
8920
8900
|
* Generated bundle index. Do not edit.
|
|
8921
8901
|
*/
|
|
8922
8902
|
|
|
8923
|
-
export { AccordionComponent, BlobMorphComponent, BreadcrumbComponent, ButtonComponent, CardComponent, ChipComponent, ChunkPipe, CodeBlockComponent, ContainerComponent, ContentBlurComponent, DividerComponent, DynamicPipe, EnumDirectionSortTable, FieldArrayPositionPipe, FragmentsPopoverDirective, FragmentsTooltipDirective, FrgBadgeDirective, InputCalendarComponent, InputCheckboxComponent, InputCheckboxGroupComponent, InputClockPickerComponent, InputDateComponent, InputDateTimeComponent, InputFileUploadComponent, InputNumberComponent, InputRadioGroupComponent, InputSliderComponent, InputTextComponent, InputTimeComponent, InputToggleSwitchComponent, InputValidationComponent, ModalComponent, MultiSelectComponent, PillComponent, ProgressBarComponent, PulseLoaderComponent, SafeHtmlPipe, SanitizeHtmlPipe, SectionComponent, SelectionListComponent, SeparatorComponent, SideNavComponent, SkeletonLoaderComponent, SmallPaginationComponent, SnackbarComponent,
|
|
8903
|
+
export { AccordionComponent, BlobMorphComponent, BreadcrumbComponent, ButtonComponent, CardComponent, ChipComponent, ChunkPipe, CodeBlockComponent, ContainerComponent, ContentBlurComponent, DividerComponent, DynamicPipe, EnumDirectionSortTable, FieldArrayPositionPipe, FragmentsPopoverDirective, FragmentsTooltipDirective, FrgBadgeDirective, InputCalendarComponent, InputCheckboxComponent, InputCheckboxGroupComponent, InputClockPickerComponent, InputDateComponent, InputDateTimeComponent, InputFileUploadComponent, InputNumberComponent, InputRadioGroupComponent, InputSliderComponent, InputTextComponent, InputTimeComponent, InputToggleSwitchComponent, InputValidationComponent, ModalComponent, MultiSelectComponent, PillComponent, ProgressBarComponent, PulseLoaderComponent, SafeHtmlPipe, SanitizeHtmlPipe, SectionComponent, SelectionListComponent, SeparatorComponent, SideNavComponent, SkeletonLoaderComponent, SmallPaginationComponent, SnackbarComponent, SparkleSectionComponent, SpinnerComponent, StepperComponent, TableComponent, TabsComponent, TagComponent, TitleBarComponent, ToastComponent, ToastStackComponent, TypeOfArrayPipe, generateId, generateNumberId, generateUUID, generateUniqueId, getActivatedRouteChild, getTimestampISO, getTimestampMillis, isObjectEmpty, normalizeNumber, orderList, paginationList, sortTable };
|
|
8924
8904
|
//# sourceMappingURL=tacdaed-fragments.mjs.map
|
package/index.d.ts
CHANGED
|
@@ -796,7 +796,7 @@ declare class BlobMorphComponent extends MorphBase implements AfterViewInit {
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
type SizeValue = number | string | null;
|
|
799
|
-
interface
|
|
799
|
+
interface ISparkleConfiguration {
|
|
800
800
|
x: number;
|
|
801
801
|
y: number;
|
|
802
802
|
size: number;
|
|
@@ -806,7 +806,7 @@ interface Sparkle {
|
|
|
806
806
|
driftY: number;
|
|
807
807
|
}
|
|
808
808
|
|
|
809
|
-
declare class
|
|
809
|
+
declare class SparkleSectionComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
810
810
|
width: SizeValue;
|
|
811
811
|
height: SizeValue;
|
|
812
812
|
count: number;
|
|
@@ -817,16 +817,12 @@ declare class SparkleFieldComponent implements OnInit, OnChanges, AfterViewInit,
|
|
|
817
817
|
maxDuration: number;
|
|
818
818
|
loop: boolean;
|
|
819
819
|
color: string | null;
|
|
820
|
-
sparkles:
|
|
820
|
+
sparkles: ISparkleConfiguration[];
|
|
821
821
|
sparkleRefs: QueryList<ElementRef<HTMLSpanElement>>;
|
|
822
822
|
private animations;
|
|
823
823
|
private changesSub;
|
|
824
|
-
private readonly fallbackWidth;
|
|
825
|
-
private readonly fallbackHeight;
|
|
826
824
|
get hostWidth(): string | null;
|
|
827
825
|
get hostHeight(): string | null;
|
|
828
|
-
get hostMinWidth(): string | null;
|
|
829
|
-
get hostMinHeight(): string | null;
|
|
830
826
|
get hostColor(): string | null;
|
|
831
827
|
ngOnInit(): void;
|
|
832
828
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -836,9 +832,8 @@ declare class SparkleFieldComponent implements OnInit, OnChanges, AfterViewInit,
|
|
|
836
832
|
private restartAnimation;
|
|
837
833
|
private rand;
|
|
838
834
|
private formatSize;
|
|
839
|
-
|
|
840
|
-
static
|
|
841
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SparkleFieldComponent, "frg-sparkle-field", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "count": { "alias": "count"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "drift": { "alias": "drift"; "required": false; }; "minDuration": { "alias": "minDuration"; "required": false; }; "maxDuration": { "alias": "maxDuration"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
835
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SparkleSectionComponent, never>;
|
|
836
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SparkleSectionComponent, "frg-sparkle-section", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "count": { "alias": "count"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "drift": { "alias": "drift"; "required": false; }; "minDuration": { "alias": "minDuration"; "required": false; }; "maxDuration": { "alias": "maxDuration"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
842
837
|
}
|
|
843
838
|
|
|
844
839
|
interface IPaginationOutput<T> {
|
|
@@ -3926,5 +3921,5 @@ declare function getTimestampMillis(): number;
|
|
|
3926
3921
|
*/
|
|
3927
3922
|
declare function generateUniqueId(prefix?: string): string;
|
|
3928
3923
|
|
|
3929
|
-
export { AccordionComponent, BlobMorphComponent, BreadcrumbComponent, ButtonComponent, CardComponent, ChipComponent, ChunkPipe, CodeBlockComponent, ContainerComponent, ContentBlurComponent, DividerComponent, DynamicPipe, EnumDirectionSortTable, FieldArrayPositionPipe, FragmentsPopoverDirective, FragmentsTooltipDirective, FrgBadgeDirective, InputCalendarComponent, InputCheckboxComponent, InputCheckboxGroupComponent, InputClockPickerComponent, InputDateComponent, InputDateTimeComponent, InputFileUploadComponent, InputNumberComponent, InputRadioGroupComponent, InputSliderComponent, InputTextComponent, InputTimeComponent, InputToggleSwitchComponent, InputValidationComponent, ModalComponent, MultiSelectComponent, PillComponent, ProgressBarComponent, PulseLoaderComponent, SafeHtmlPipe, SanitizeHtmlPipe, SectionComponent, SelectionListComponent, SeparatorComponent, SideNavComponent, SkeletonLoaderComponent, SmallPaginationComponent, SnackbarComponent,
|
|
3924
|
+
export { AccordionComponent, BlobMorphComponent, BreadcrumbComponent, ButtonComponent, CardComponent, ChipComponent, ChunkPipe, CodeBlockComponent, ContainerComponent, ContentBlurComponent, DividerComponent, DynamicPipe, EnumDirectionSortTable, FieldArrayPositionPipe, FragmentsPopoverDirective, FragmentsTooltipDirective, FrgBadgeDirective, InputCalendarComponent, InputCheckboxComponent, InputCheckboxGroupComponent, InputClockPickerComponent, InputDateComponent, InputDateTimeComponent, InputFileUploadComponent, InputNumberComponent, InputRadioGroupComponent, InputSliderComponent, InputTextComponent, InputTimeComponent, InputToggleSwitchComponent, InputValidationComponent, ModalComponent, MultiSelectComponent, PillComponent, ProgressBarComponent, PulseLoaderComponent, SafeHtmlPipe, SanitizeHtmlPipe, SectionComponent, SelectionListComponent, SeparatorComponent, SideNavComponent, SkeletonLoaderComponent, SmallPaginationComponent, SnackbarComponent, SparkleSectionComponent, SpinnerComponent, StepperComponent, TableComponent, TabsComponent, TagComponent, TitleBarComponent, ToastComponent, ToastStackComponent, TypeOfArrayPipe, generateId, generateNumberId, generateUUID, generateUniqueId, getActivatedRouteChild, getTimestampISO, getTimestampMillis, isObjectEmpty, normalizeNumber, orderList, paginationList, sortTable };
|
|
3930
3925
|
export type { AccordionItem, AccordionItemContext, AccordionToggleEvent, ArrayOneOrMore, Badge, BreadcrumbItem, Chip, CodeBlockBody, CodeBlockConfig, CodeBlockFooter, CodeBlockHeader, DateFormat, DateTimeFormat, GenericFunction, IActionElement, IBaseAction, IConfigTable, IEventAction, IFieldPipe, ILinkAction, IPaginationOutput, ISideNavConfig, ISideNavItem, ISideNavSection, ITBody, ITBodyAction, ITBodyCell, ITBodyCellIcon, ITBodyColumn, ITCaption, ITHead, ITHeadAction, ITHeadColumn, ITPagination, ITSort, ITTitleBar, ITTitleBarFilter, ITTitleBarSearch, ITooltipElement, InputCheckboxGroupItem, InputRadioGroupItem, ModalCloseEvent, NgClassValue, Pill, SelectionListItem, SnackbarCloseEvent, StatusIndicator, StepChangeEvent, StepItem, StepItemContext, StepValidationContext, StepValidationEvent, StepValidator, TAccordionSize, TAccordionStyle, TBasePosition, TBaseSideNavSize, TBaseSideNavStyle, TBaseSize, TBaseStatusIconPosition, TBaseStatusSize, TBaseStatusStyle, TBaseStyle, TBehaviourAction, TButtonIconPosition, TButtonShape, TButtonSize, TButtonStyle, TButtonType, TCardStyle, TChipIconPosition, TChipSize, TChipType, TContainerSize, TCustomNgClass, TDividerOrientation, TDividerSpacing, THLJSLanguage, TIconPosition, TInputType, TModalCloseReason, TModalSize, TPillIconPosition, TPillSize, TPillType, TProgressBarAnimation, TProgressBarSize, TProgressBarType, TPulseLoaderSize, TPulseLoaderType, TSectionHeading, TSectionSpacing, TSeparatorSize, TSideNavLink, TSkeletonLoaderSize, TSkeletonLoaderType, TSnackbarCloseReason, TSnackbarPosition, TSnackbarSize, TSnackbarStyle, TSpinnerSize, TSpinnerType, TStepNavigationSource, TStepperMotion, TStepperOrientation, TTabSize, TTabStyle, TTagIconPosition, TTagSize, TTagType, TToastCloseReason, TToastPosition, TToastSize, TToastStyle, TabChangeEvent, TabItem, TabItemContext, Tag, TimeFormat, ToastCloseEvent, ToastStackCloseEvent, ToastStackItem, TooltipPosition, TypeForm, Without, XOR };
|