matcha-components 20.25.0 → 20.31.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/fesm2022/matcha-components.mjs +926 -477
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +108 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1448,6 +1448,111 @@ declare class CopyButtonComponent {
|
|
|
1448
1448
|
static ɵcmp: i0.ɵɵComponentDeclaration<CopyButtonComponent, "matcha-copy-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "position": { "alias": "position"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "copied": "copied"; }, never, never, false, never>;
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
1451
|
+
interface SliderOptions {
|
|
1452
|
+
floor?: number;
|
|
1453
|
+
ceil?: number;
|
|
1454
|
+
step?: number;
|
|
1455
|
+
disabled?: boolean;
|
|
1456
|
+
range?: boolean;
|
|
1457
|
+
pushRange?: boolean;
|
|
1458
|
+
noSwitching?: boolean;
|
|
1459
|
+
minRange?: number;
|
|
1460
|
+
maxRange?: number;
|
|
1461
|
+
animate?: boolean;
|
|
1462
|
+
draggableRange?: boolean;
|
|
1463
|
+
draggableRangeOnly?: boolean;
|
|
1464
|
+
showSelectionBar?: boolean;
|
|
1465
|
+
showSelectionBarEnd?: boolean;
|
|
1466
|
+
showSelectionBarFromValue?: number;
|
|
1467
|
+
showSelectionBarToValue?: number;
|
|
1468
|
+
selectionBarGradient?: {
|
|
1469
|
+
from: string;
|
|
1470
|
+
to: string;
|
|
1471
|
+
};
|
|
1472
|
+
getPointerColor?: (value: number) => string;
|
|
1473
|
+
getSelectionBarColor?: (value: number) => string;
|
|
1474
|
+
hidePointerLabels?: boolean;
|
|
1475
|
+
hideLimitLabels?: boolean;
|
|
1476
|
+
keyboardSupport?: boolean;
|
|
1477
|
+
scale?: number;
|
|
1478
|
+
enforceRange?: boolean;
|
|
1479
|
+
enforceStep?: boolean;
|
|
1480
|
+
noCommaStyle?: boolean;
|
|
1481
|
+
bindIndexForPushRange?: boolean;
|
|
1482
|
+
combineLabels?: boolean;
|
|
1483
|
+
format?: (value: number) => string;
|
|
1484
|
+
combinePossible?: boolean;
|
|
1485
|
+
includeTicksScale?: boolean;
|
|
1486
|
+
logScale?: boolean;
|
|
1487
|
+
customValueToPosition?: (val: number, minVal: number, maxVal: number) => number;
|
|
1488
|
+
customPositionToValue?: (percent: number, minVal: number, maxVal: number) => number;
|
|
1489
|
+
translate?: (value: number, sliderId: string, label: string) => string;
|
|
1490
|
+
}
|
|
1491
|
+
declare class MatchaSliderComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
1492
|
+
private cdr;
|
|
1493
|
+
value: number;
|
|
1494
|
+
highValue: number;
|
|
1495
|
+
options: SliderOptions;
|
|
1496
|
+
color: string;
|
|
1497
|
+
disabled: boolean | string;
|
|
1498
|
+
valueChange: EventEmitter<number>;
|
|
1499
|
+
highValueChange: EventEmitter<number>;
|
|
1500
|
+
userChange: EventEmitter<number>;
|
|
1501
|
+
userChangeEnd: EventEmitter<number>;
|
|
1502
|
+
sliderElement?: ElementRef;
|
|
1503
|
+
private destroy$;
|
|
1504
|
+
private isDragging;
|
|
1505
|
+
private draggingPointer;
|
|
1506
|
+
private lastUpdateTime;
|
|
1507
|
+
private animationFrameId;
|
|
1508
|
+
private readonly defaultOptions;
|
|
1509
|
+
private onChange;
|
|
1510
|
+
private onTouched;
|
|
1511
|
+
private boundOnMouseMove;
|
|
1512
|
+
private boundOnMouseUp;
|
|
1513
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1514
|
+
get mergedOptions(): SliderOptions;
|
|
1515
|
+
get isRange(): boolean;
|
|
1516
|
+
get percentage(): number;
|
|
1517
|
+
get highPercentage(): number;
|
|
1518
|
+
get selectionBarStyle(): any;
|
|
1519
|
+
get isAtMaxValue(): boolean;
|
|
1520
|
+
get isDisabled(): boolean;
|
|
1521
|
+
ngOnInit(): void;
|
|
1522
|
+
ngOnDestroy(): void;
|
|
1523
|
+
private initializeValues;
|
|
1524
|
+
private valueToPercentage;
|
|
1525
|
+
private percentageToValue;
|
|
1526
|
+
private snapToStep;
|
|
1527
|
+
onPointerMouseDown(event: MouseEvent, isHighValue?: boolean): void;
|
|
1528
|
+
onTrackMouseDown(event: MouseEvent): void;
|
|
1529
|
+
private addEventListeners;
|
|
1530
|
+
private cleanupEventListeners;
|
|
1531
|
+
private onMouseMove;
|
|
1532
|
+
private updateSliderPosition;
|
|
1533
|
+
private onMouseUp;
|
|
1534
|
+
onPointerClick(event: MouseEvent, isHighValue?: boolean): void;
|
|
1535
|
+
onTrackClick(event: MouseEvent): void;
|
|
1536
|
+
private calculateValueFromPosition;
|
|
1537
|
+
private handleRangeTrackClick;
|
|
1538
|
+
private addVisualFeedback;
|
|
1539
|
+
private removeVisualFeedback;
|
|
1540
|
+
private cancelAnimationFrame;
|
|
1541
|
+
private updateSingleValue;
|
|
1542
|
+
private updateRangeValues;
|
|
1543
|
+
private updateLowValue;
|
|
1544
|
+
private updateHighValue;
|
|
1545
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
1546
|
+
writeValue(value: any): void;
|
|
1547
|
+
registerOnChange(fn: any): void;
|
|
1548
|
+
registerOnTouched(fn: any): void;
|
|
1549
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1550
|
+
getPointerStyle(isHighValue?: boolean): any;
|
|
1551
|
+
formatValue(value: number): string;
|
|
1552
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaSliderComponent, never>;
|
|
1553
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatchaSliderComponent, "matcha-slider", never, { "value": { "alias": "value"; "required": false; }; "highValue": { "alias": "highValue"; "required": false; }; "options": { "alias": "options"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "highValueChange": "highValueChange"; "userChange": "userChange"; "userChangeEnd": "userChangeEnd"; }, never, never, false, never>;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1451
1556
|
declare class MatchaTooltipDirective {
|
|
1452
1557
|
private el;
|
|
1453
1558
|
private renderer;
|
|
@@ -1762,17 +1867,9 @@ declare class MatchaSlideToggleModule {
|
|
|
1762
1867
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaSlideToggleModule>;
|
|
1763
1868
|
}
|
|
1764
1869
|
|
|
1765
|
-
declare class MatchaSliderDirective {
|
|
1766
|
-
private _elementRef;
|
|
1767
|
-
private _renderer;
|
|
1768
|
-
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
|
1769
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaSliderDirective, never>;
|
|
1770
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchaSliderDirective, "[matchaSlider]", never, {}, {}, never, never, false, never>;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
1870
|
declare class MatchaSliderModule {
|
|
1774
1871
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchaSliderModule, never>;
|
|
1775
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaSliderModule, [typeof
|
|
1872
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatchaSliderModule, [typeof MatchaSliderComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof MatchaSliderComponent]>;
|
|
1776
1873
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatchaSliderModule>;
|
|
1777
1874
|
}
|
|
1778
1875
|
|
|
@@ -2044,5 +2141,5 @@ declare class StepContentDirective {
|
|
|
2044
2141
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StepContentDirective, "[step]", never, { "step": { "alias": "step"; "required": false; }; }, {}, never, never, true, never>;
|
|
2045
2142
|
}
|
|
2046
2143
|
|
|
2047
|
-
export { CopyButtonComponent, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule,
|
|
2048
|
-
export type { BreakpointState, DrawerItem, DrawerMode, DrawerPosition, DrawerSection, ILevelClasses, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaOptionParent, ModalComponent, PageEvent, PanelPlacement, PanelPosition, TabChangeEvent };
|
|
2144
|
+
export { CopyButtonComponent, MATCHA_OPTION_PARENT, MatchaAccordionComponent, MatchaAccordionContentComponent, MatchaAccordionHeaderComponent, MatchaAccordionItemComponent, MatchaAccordionModule, MatchaAutocompleteComponent, MatchaAutocompleteModule, MatchaAutocompleteTriggerDirective, MatchaAvatarComponent, MatchaAvatarModule, MatchaBadgeDirective, MatchaBadgeModule, MatchaBreakpointObservableModule, MatchaBreakpointObserver, MatchaButtonComponent, MatchaButtonModule, MatchaButtonToggleComponent, MatchaButtonToggleModule, MatchaCardComponent, MatchaCardModule, MatchaCheckboxComponent, MatchaCheckboxModule, MatchaComponentsModule, MatchaDateRangeComponent, MatchaDateRangeModule, MatchaDividerComponent, MatchaDividerModule, MatchaDragDirective, MatchaDragHandleDirective, MatchaDrawerComponent, MatchaDrawerContainerComponent, MatchaDrawerContentComponent, MatchaDrawerModule, MatchaDropListComponent, MatchaDropListModule, MatchaElevationDirective, MatchaElevationModule, MatchaErrorComponent, MatchaFormFieldComponent, MatchaFormFieldModule, MatchaGridComponent, MatchaGridModule, MatchaHighlightComponent, MatchaHighlightModule, MatchaHintTextComponent, MatchaHintTextModule, MatchaIconComponent, MatchaIconModule, MatchaInfiniteScrollComponent, MatchaInfiniteScrollDataComponent, MatchaInfiniteScrollModule, MatchaInputDirective, MatchaInputModule, MatchaLabelComponent, MatchaLazyloadComponent, MatchaLazyloadDataComponent, MatchaLazyloadModule, MatchaMasonryComponent, MatchaMasonryModule, MatchaMenuComponent, MatchaMenuModule, MatchaMenuTriggerForDirective, MatchaModalComponent, MatchaModalContentComponent, MatchaModalFooterComponent, MatchaModalHeaderComponent, MatchaModalModule, MatchaModalOptionsComponent, MatchaModalService, MatchaOptionComponent, MatchaOptionModule, MatchaOverlayService, MatchaPageLayoutComponent, MatchaPageLayoutModule, MatchaPaginatorComponent, MatchaPaginatorIntl, MatchaPaginatorModule, MatchaPanelComponent, MatchaPanelModule, MatchaProgressBarDirective, MatchaProgressBarModule, MatchaRadioComponent, MatchaRadioModule, MatchaRippleDirective, MatchaRippleModule, MatchaSelectComponent, MatchaSelectModule, MatchaSelectTriggerDirective, MatchaSidenavDirective, MatchaSidenavModule, MatchaSkeletonComponent, MatchaSkeletonModule, MatchaSlideToggleComponent, MatchaSlideToggleModule, MatchaSliderComponent, MatchaSliderModule, MatchaSnackBarDirective, MatchaSnackBarModule, MatchaSortHeaderDirective, MatchaSortHeaderModule, MatchaSpinComponent, MatchaSpinModule, MatchaSpinnerComponent, MatchaSpinnerModule, MatchaStepperComponent, MatchaStepperContentComponent, MatchaStepperControllerComponent, MatchaStepperModule, MatchaStepperStateService, MatchaTabItemComponent, MatchaTableDirective, MatchaTableModule, MatchaTabsComponent, MatchaTabsModule, MatchaTimeComponent, MatchaTimeModule, MatchaTitleComponent, MatchaTitleModule, MatchaToolbarButtonComponent, MatchaToolbarComponent, MatchaToolbarContentComponent, MatchaToolbarCustomButtonComponent, MatchaToolbarMainButtonComponent, MatchaToolbarModule, MatchaTooltipDirective, MatchaTooltipModule, NextStepDirective, PrevStepDirective, StepComponent, StepContentDirective };
|
|
2145
|
+
export type { BreakpointState, DrawerItem, DrawerMode, DrawerPosition, DrawerSection, ILevelClasses, MatchaDropListConnectedToEvent, MatchaDropListDroppedEvent, MatchaOptionParent, ModalComponent, PageEvent, PanelPlacement, PanelPosition, SliderOptions, TabChangeEvent };
|