herum-shared 0.1.62 → 0.1.64
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/assets/shared/icons/numericSliderBubble.svg +3 -0
- package/atoms/index.d.ts +42 -22
- package/fesm2022/herum-shared-atoms.mjs +93 -5
- package/fesm2022/herum-shared-atoms.mjs.map +1 -1
- package/fesm2022/herum-shared-services.mjs +4 -1
- package/fesm2022/herum-shared-services.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +97 -6
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +43 -23
- package/package.json +1 -1
- package/styles/variables/_colors.scss +2 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 39" fill="none">
|
|
2
|
+
<path d="M21.6699 34L9 34C4.02944 34 7.89378e-07 29.9706 1.22392e-06 25L2.62268e-06 9C3.05722e-06 4.02943 4.02944 -4.19372e-06 9 -3.75918e-06L43 -7.86805e-07C47.9706 -3.52265e-07 52 4.02944 52 9L52 25C52 29.9706 47.9706 34 43 34L30.3301 34L26 39L21.6699 34Z" fill="#A255FF"/>
|
|
3
|
+
</svg>
|
package/atoms/index.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, SimpleChanges, EventEmitter, PipeTransform, ElementRef, ChangeDetectorRef, Renderer2, SimpleChange, OnChanges } from '@angular/core';
|
|
3
3
|
import { User } from 'herum-types/User';
|
|
4
|
-
import { IdentifiedEntity, RecursiveTitledOption, FileData, MenuItem } from 'herum-types/Shared';
|
|
5
|
-
import * as
|
|
4
|
+
import { IdentifiedEntity, RecursiveTitledOption, FileData, MenuItem, Tick } from 'herum-types/Shared';
|
|
5
|
+
import * as i41 from '@angular/forms';
|
|
6
6
|
import { ControlValueAccessor, NgControl, ControlContainer, FormControl, ValidatorFn, AsyncValidatorFn } from '@angular/forms';
|
|
7
7
|
import { HerumTableParams } from 'herum-types/Table';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i55 from '@angular/material/core';
|
|
9
9
|
import { DateAdapter } from '@angular/material/core';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i54 from '@angular/material/datepicker';
|
|
11
11
|
import { DateRange, MatCalendar } from '@angular/material/datepicker';
|
|
12
12
|
import { Subject } from 'rxjs';
|
|
13
13
|
import { TextChange } from 'herum-types/TrackTextChanges';
|
|
14
14
|
import { UserPreview } from 'herum-types/Previews';
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
15
|
+
import * as i40 from '@angular/common';
|
|
16
|
+
import * as i42 from '@angular/material/menu';
|
|
17
|
+
import * as i43 from '@angular/cdk/clipboard';
|
|
18
|
+
import * as i44 from '@angular/material/autocomplete';
|
|
19
|
+
import * as i45 from '@angular/material/chips';
|
|
20
|
+
import * as i46 from '@angular/material/form-field';
|
|
21
|
+
import * as i47 from '@angular/material/tooltip';
|
|
22
|
+
import * as i48 from '@angular/material/input';
|
|
23
|
+
import * as i49 from '@angular/material/select';
|
|
24
|
+
import * as i50 from '@angular/material/icon';
|
|
25
|
+
import * as i51 from '@angular/material/checkbox';
|
|
26
|
+
import * as i52 from '@angular/material/slider';
|
|
27
|
+
import * as i53 from '@angular/cdk/drag-drop';
|
|
28
|
+
import * as i56 from 'herum-shared/directives';
|
|
29
|
+
import * as i57 from 'herum-shared/pipes';
|
|
30
30
|
|
|
31
31
|
declare class CollegeLoaderComponent implements OnInit {
|
|
32
32
|
bars: any[];
|
|
@@ -695,7 +695,7 @@ declare class HerumUploadFileComponent implements ControlValueAccessor {
|
|
|
695
695
|
registerOnChange(fn: any): void;
|
|
696
696
|
registerOnTouched(fn: any): void;
|
|
697
697
|
get directoryName(): string;
|
|
698
|
-
get formControl():
|
|
698
|
+
get formControl(): i41.AbstractControl<any, any, any>;
|
|
699
699
|
static ɵfac: i0.ɵɵFactoryDeclaration<HerumUploadFileComponent, [{ optional: true; }]>;
|
|
700
700
|
static ɵcmp: i0.ɵɵComponentDeclaration<HerumUploadFileComponent, "herum-upload-file", never, { "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "isDirectoryMode": { "alias": "isDirectoryMode"; "required": false; }; "allowedFileTypes": { "alias": "allowedFileTypes"; "required": false; }; "selectedFile": { "alias": "selectedFile"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; }, { "uploadFile": "uploadFile"; }, never, never, false, never>;
|
|
701
701
|
}
|
|
@@ -812,9 +812,29 @@ declare class UserProfileImageComponent {
|
|
|
812
812
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileImageComponent, "user-profile-image", never, { "imageSize": { "alias": "imageSize"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "user": { "alias": "user"; "required": false; }; "isLoadingUser": { "alias": "isLoadingUser"; "required": false; }; "isUserClickAble": { "alias": "isUserClickAble"; "required": false; }; }, { "userClicked": "userClicked"; }, never, ["*"], false, never>;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
+
declare class NumericSliderComponent {
|
|
816
|
+
min: number;
|
|
817
|
+
max: number;
|
|
818
|
+
value: number;
|
|
819
|
+
disabled: boolean;
|
|
820
|
+
valueChange: EventEmitter<number>;
|
|
821
|
+
ticks: Array<Tick>;
|
|
822
|
+
trackStyle: Record<string, string>;
|
|
823
|
+
bubbleStyle: Record<string, string>;
|
|
824
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
825
|
+
_onInput(event: Event): void;
|
|
826
|
+
_onEmitValue(): void;
|
|
827
|
+
private recalculateViewModel;
|
|
828
|
+
private getTicks;
|
|
829
|
+
private getBubbleOffsetPercent;
|
|
830
|
+
private getBubbleStyle;
|
|
831
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericSliderComponent, never>;
|
|
832
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericSliderComponent, "numeric-slider", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
833
|
+
}
|
|
834
|
+
|
|
815
835
|
declare class AtomsModule {
|
|
816
836
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtomsModule, never>;
|
|
817
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AtomsModule, [typeof CollegeLoaderComponent, typeof UsersProfilePreviewComponent, typeof HerumBreadcrumbsComponent, typeof SliceBreadcrumbsPipe, typeof HerumButtonComponent, typeof HerumCheckboxComponent, typeof HerumChipComponent, typeof HerumCircularProgressBarComponent, typeof HerumDatePickerComponent, typeof HerumDownloadFileComponent, typeof HerumEllipsisLoaderComponent, typeof HerumIconLabelComponent, typeof HerumIndeterminateComponent, typeof ConditionalFormControlNameDirective, typeof HerumInputFieldComponent, typeof HerumLogoComponent, typeof HerumMultiSelectComponent, typeof HerumNarrowCollectionMenuItemComponent, typeof HerumNoResultMessageComponent, typeof HerumOptionsListComponent, typeof HerumPaginatorComponent, typeof HerumPanelLinksComponent, typeof HerumProgressBarComponent, typeof HerumQuizHeaderItemComponent, typeof HerumRecursiveHierarchyOptionsListComponent, typeof HerumSelectComponent, typeof HerumSliderComponent, typeof HerumSpinnerComponent, typeof HerumSwitchComponent, typeof HerumTextAreaComponent, typeof HerumTimePickerComponent, typeof HerumToggleButtonComponent, typeof HerumUploadFileComponent, typeof HerumVideoSelectComponent, typeof HerumRadioButtonComponent, typeof RoundedVerticalMenuComponent, typeof TrackTextChangesNotesComponent, typeof UserProfileImageComponent], [typeof
|
|
837
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AtomsModule, [typeof CollegeLoaderComponent, typeof UsersProfilePreviewComponent, typeof HerumBreadcrumbsComponent, typeof SliceBreadcrumbsPipe, typeof HerumButtonComponent, typeof HerumCheckboxComponent, typeof HerumChipComponent, typeof HerumCircularProgressBarComponent, typeof HerumDatePickerComponent, typeof HerumDownloadFileComponent, typeof HerumEllipsisLoaderComponent, typeof HerumIconLabelComponent, typeof HerumIndeterminateComponent, typeof ConditionalFormControlNameDirective, typeof HerumInputFieldComponent, typeof HerumLogoComponent, typeof HerumMultiSelectComponent, typeof HerumNarrowCollectionMenuItemComponent, typeof HerumNoResultMessageComponent, typeof HerumOptionsListComponent, typeof HerumPaginatorComponent, typeof HerumPanelLinksComponent, typeof HerumProgressBarComponent, typeof HerumQuizHeaderItemComponent, typeof HerumRecursiveHierarchyOptionsListComponent, typeof HerumSelectComponent, typeof HerumSliderComponent, typeof HerumSpinnerComponent, typeof HerumSwitchComponent, typeof HerumTextAreaComponent, typeof HerumTimePickerComponent, typeof HerumToggleButtonComponent, typeof HerumUploadFileComponent, typeof HerumVideoSelectComponent, typeof HerumRadioButtonComponent, typeof RoundedVerticalMenuComponent, typeof TrackTextChangesNotesComponent, typeof UserProfileImageComponent, typeof NumericSliderComponent], [typeof i40.CommonModule, typeof i41.ReactiveFormsModule, typeof i41.FormsModule, typeof i42.MatMenuModule, typeof i43.ClipboardModule, typeof i44.MatAutocompleteModule, typeof i45.MatChipsModule, typeof i46.MatFormFieldModule, typeof i47.MatTooltipModule, typeof i48.MatInputModule, typeof i49.MatSelectModule, typeof i50.MatIconModule, typeof i51.MatCheckboxModule, typeof i52.MatSliderModule, typeof i53.DragDropModule, typeof i54.MatDatepickerModule, typeof i55.MatNativeDateModule, typeof i56.DirectivesModule, typeof i57.PipesModule], [typeof CollegeLoaderComponent, typeof UsersProfilePreviewComponent, typeof HerumBreadcrumbsComponent, typeof SliceBreadcrumbsPipe, typeof HerumButtonComponent, typeof HerumCheckboxComponent, typeof HerumChipComponent, typeof HerumCircularProgressBarComponent, typeof HerumDatePickerComponent, typeof HerumDownloadFileComponent, typeof HerumEllipsisLoaderComponent, typeof HerumIconLabelComponent, typeof HerumIndeterminateComponent, typeof ConditionalFormControlNameDirective, typeof HerumInputFieldComponent, typeof HerumLogoComponent, typeof HerumMultiSelectComponent, typeof HerumNarrowCollectionMenuItemComponent, typeof HerumNoResultMessageComponent, typeof HerumOptionsListComponent, typeof HerumPaginatorComponent, typeof HerumPanelLinksComponent, typeof HerumProgressBarComponent, typeof HerumQuizHeaderItemComponent, typeof HerumRecursiveHierarchyOptionsListComponent, typeof HerumSelectComponent, typeof HerumSliderComponent, typeof HerumSpinnerComponent, typeof HerumSwitchComponent, typeof HerumTextAreaComponent, typeof HerumTimePickerComponent, typeof HerumToggleButtonComponent, typeof HerumUploadFileComponent, typeof HerumVideoSelectComponent, typeof HerumRadioButtonComponent, typeof RoundedVerticalMenuComponent, typeof TrackTextChangesNotesComponent, typeof UserProfileImageComponent, typeof NumericSliderComponent]>;
|
|
818
838
|
static ɵinj: i0.ɵɵInjectorDeclaration<AtomsModule>;
|
|
819
839
|
}
|
|
820
840
|
|
|
@@ -833,4 +853,4 @@ declare class HerumFormControl extends FormControl {
|
|
|
833
853
|
private setCurrentErrorMessage;
|
|
834
854
|
}
|
|
835
855
|
|
|
836
|
-
export { AtomsModule, CollegeLoaderComponent, ConditionalFormControlNameDirective, HerumBreadcrumbsComponent, HerumButtonComponent, HerumCheckboxComponent, HerumChipComponent, HerumCircularProgressBarComponent, HerumDatePickerComponent, HerumDownloadFileComponent, HerumEllipsisLoaderComponent, HerumFormControl, HerumIconLabelComponent, HerumIndeterminateComponent, HerumInputFieldComponent, HerumLogoComponent, HerumMultiSelectComponent, HerumNarrowCollectionMenuItemComponent, HerumNoResultMessageComponent, HerumOptionsListComponent, HerumPaginatorComponent, HerumPanelLinksComponent, HerumProgressBarComponent, HerumQuizHeaderItemComponent, HerumRadioButtonComponent, HerumRecursiveHierarchyOptionsListComponent, HerumSelectComponent, HerumSliderComponent, HerumSpinnerComponent, HerumSwitchComponent, HerumTextAreaComponent, HerumTimePickerComponent, HerumToggleButtonComponent, HerumUploadFileComponent, HerumVideoSelectComponent, RoundedVerticalMenuComponent, SliceBreadcrumbsPipe, TrackTextChangesNotesComponent, UserProfileImageComponent, UsersProfilePreviewComponent };
|
|
856
|
+
export { AtomsModule, CollegeLoaderComponent, ConditionalFormControlNameDirective, HerumBreadcrumbsComponent, HerumButtonComponent, HerumCheckboxComponent, HerumChipComponent, HerumCircularProgressBarComponent, HerumDatePickerComponent, HerumDownloadFileComponent, HerumEllipsisLoaderComponent, HerumFormControl, HerumIconLabelComponent, HerumIndeterminateComponent, HerumInputFieldComponent, HerumLogoComponent, HerumMultiSelectComponent, HerumNarrowCollectionMenuItemComponent, HerumNoResultMessageComponent, HerumOptionsListComponent, HerumPaginatorComponent, HerumPanelLinksComponent, HerumProgressBarComponent, HerumQuizHeaderItemComponent, HerumRadioButtonComponent, HerumRecursiveHierarchyOptionsListComponent, HerumSelectComponent, HerumSliderComponent, HerumSpinnerComponent, HerumSwitchComponent, HerumTextAreaComponent, HerumTimePickerComponent, HerumToggleButtonComponent, HerumUploadFileComponent, HerumVideoSelectComponent, NumericSliderComponent, RoundedVerticalMenuComponent, SliceBreadcrumbsPipe, TrackTextChangesNotesComponent, UserProfileImageComponent, UsersProfilePreviewComponent };
|
|
@@ -2665,6 +2665,90 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
2665
2665
|
type: Input
|
|
2666
2666
|
}] } });
|
|
2667
2667
|
|
|
2668
|
+
const thumbSize = 16;
|
|
2669
|
+
const visualTickSegments = 10;
|
|
2670
|
+
class NumericSliderComponent {
|
|
2671
|
+
min = 0;
|
|
2672
|
+
max = 100;
|
|
2673
|
+
value = 0;
|
|
2674
|
+
disabled = true;
|
|
2675
|
+
valueChange = new EventEmitter();
|
|
2676
|
+
ticks = [];
|
|
2677
|
+
trackStyle = {};
|
|
2678
|
+
bubbleStyle = {};
|
|
2679
|
+
ngOnChanges(changes) {
|
|
2680
|
+
if (changes['min'] || changes['max'] || changes['value'])
|
|
2681
|
+
this.recalculateViewModel();
|
|
2682
|
+
}
|
|
2683
|
+
_onInput(event) {
|
|
2684
|
+
this.value = Math.round(Number(event.target.value));
|
|
2685
|
+
this.recalculateViewModel();
|
|
2686
|
+
}
|
|
2687
|
+
_onEmitValue() {
|
|
2688
|
+
this.valueChange.emit(this.value);
|
|
2689
|
+
}
|
|
2690
|
+
recalculateViewModel() {
|
|
2691
|
+
const bubbleOffsetPercent = this.getBubbleOffsetPercent();
|
|
2692
|
+
this.ticks = this.getTicks();
|
|
2693
|
+
this.trackStyle = { '--slider-progress': `${bubbleOffsetPercent}%` };
|
|
2694
|
+
this.bubbleStyle = this.getBubbleStyle(bubbleOffsetPercent);
|
|
2695
|
+
}
|
|
2696
|
+
getTicks() {
|
|
2697
|
+
const range = this.max - this.min;
|
|
2698
|
+
if (range <= 0)
|
|
2699
|
+
return [{ value: this.max, offsetPercent: 0, isEdge: true }];
|
|
2700
|
+
const ticks = [];
|
|
2701
|
+
if (this.max <= 10) {
|
|
2702
|
+
for (let tick = this.max; tick >= this.min; tick--) {
|
|
2703
|
+
ticks.push({
|
|
2704
|
+
value: tick,
|
|
2705
|
+
offsetPercent: ((this.max - tick) / range) * 100,
|
|
2706
|
+
isEdge: tick === this.max || tick === this.min
|
|
2707
|
+
});
|
|
2708
|
+
}
|
|
2709
|
+
;
|
|
2710
|
+
return ticks;
|
|
2711
|
+
}
|
|
2712
|
+
for (let index = 0; index <= visualTickSegments; index++) {
|
|
2713
|
+
const value = Math.round(this.max - ((range / visualTickSegments) * index));
|
|
2714
|
+
ticks.push({
|
|
2715
|
+
value: value,
|
|
2716
|
+
offsetPercent: ((this.max - value) / range) * 100,
|
|
2717
|
+
isEdge: index === 0 || index === visualTickSegments
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
;
|
|
2721
|
+
return ticks;
|
|
2722
|
+
}
|
|
2723
|
+
getBubbleOffsetPercent() {
|
|
2724
|
+
if (this.max === this.min)
|
|
2725
|
+
return 50;
|
|
2726
|
+
return ((this.max - this.value) / (this.max - this.min)) * 100;
|
|
2727
|
+
}
|
|
2728
|
+
getBubbleStyle(offsetPercent) {
|
|
2729
|
+
const thumbCenterCompensation = (thumbSize / 2) - (thumbSize * offsetPercent / 100);
|
|
2730
|
+
return {
|
|
2731
|
+
left: `calc(${offsetPercent}% + ${thumbCenterCompensation}px)`
|
|
2732
|
+
};
|
|
2733
|
+
}
|
|
2734
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: NumericSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2735
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.17", type: NumericSliderComponent, isStandalone: false, selector: "numeric-slider", inputs: { min: "min", max: "max", value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"numeric-slider\" [class.disabled]=\"disabled\">\n <div class=\"slider-shell\">\n <div class=\"value-bubble\" [ngStyle]=\"bubbleStyle\">\n <img src=\"assets/hadracha/general/numericSliderBubble.svg\"/>\n <span class=\"text\">{{ value }}</span>\n </div>\n\n <input class=\"slider-input\" type=\"range\" [min]=\"min\" [max]=\"max\" [value]=\"value\" [disabled]=\"disabled\"\n [ngStyle]=\"trackStyle\" (input)=\"_onInput($event)\" \n (mouseup)=\"_onEmitValue()\" >\n </div>\n\n <div class=\"ticks\"> @for (tick of ticks; track $index) {\n <div class=\"tick\" [style.left.%]=\"tick.offsetPercent\">\n @if (!tick.isEdge) {\n <span class=\"tick-mark\"></span>\n }\n <span class=\"tick-label\" [class.edge-tick]=\"tick.isEdge\">{{ tick.value }}</span>\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block;width:100%}.numeric-slider{--thumb-size: 16px;--bubble-height: 39px;--bubble-tail-height: 5px;--slider-progress-color: var(--secondary-color);--slider-fill-color: var(--disable-color);width:100%;min-width:320px}.numeric-slider .slider-shell{position:relative;padding-top:24px}.numeric-slider .value-bubble{position:absolute;top:-16px;transform:translate(-50%);width:52px;height:var(--bubble-height);pointer-events:none}.numeric-slider .value-bubble svg{width:52px;height:var(--bubble-height)}.numeric-slider .value-bubble .text{position:absolute;top:0;left:0;width:100%;height:calc(var(--bubble-height) - var(--bubble-tail-height));display:flex;align-items:center;justify-content:center;text-align:center;color:var(--light-background-color);font-size:14px;font-weight:400;line-height:1}.numeric-slider .slider-input{position:relative;width:100%;appearance:none;direction:rtl;cursor:pointer;z-index:1}.numeric-slider .slider-input::-webkit-slider-runnable-track{height:8px;border-radius:var(--border-radius);background:linear-gradient(90deg,var(--slider-fill-color) 0,var(--slider-fill-color) var(--slider-progress),var(--slider-progress-color) var(--slider-progress),var(--slider-progress-color) 100%)}.numeric-slider .slider-input::-webkit-slider-thumb{position:relative;-webkit-appearance:none;width:var(--thumb-size);height:var(--thumb-size);margin-top:-4px;border-radius:50%;background-color:var(--light-background-color);border:1.5px solid var(--secondary-text-color);cursor:grab}.numeric-slider .ticks{position:relative;width:calc(100% - var(--thumb-size));margin-inline:calc(var(--thumb-size) / 2);direction:ltr;height:30px;top:-5px}.numeric-slider .tick{position:absolute;top:0;bottom:0;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0}.numeric-slider .tick .tick-mark{width:1.5px;height:8px;background:var(--secondary-text-color)}.numeric-slider .tick .tick-label{color:var(--secondary-text-color);line-height:1;margin-top:auto;text-align:center;line-height:normal;font-weight:400;font-size:12px}.numeric-slider .tick .edge-tick{font-weight:700;font-size:14px;color:var(--icons-color)}.numeric-slider.disabled{--slider-progress-color: var(--disable-color);--slider-fill-color: var(--slider-disabled-fill-color)}.numeric-slider.disabled .slider-input{cursor:default}.numeric-slider.disabled .slider-input::-webkit-slider-thumb{cursor:default}.numeric-slider.disabled .tick .edge-tick{color:var(--slider-disabled-fill-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
2736
|
+
}
|
|
2737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: NumericSliderComponent, decorators: [{
|
|
2738
|
+
type: Component,
|
|
2739
|
+
args: [{ standalone: false, selector: 'numeric-slider', template: "<div class=\"numeric-slider\" [class.disabled]=\"disabled\">\n <div class=\"slider-shell\">\n <div class=\"value-bubble\" [ngStyle]=\"bubbleStyle\">\n <img src=\"assets/hadracha/general/numericSliderBubble.svg\"/>\n <span class=\"text\">{{ value }}</span>\n </div>\n\n <input class=\"slider-input\" type=\"range\" [min]=\"min\" [max]=\"max\" [value]=\"value\" [disabled]=\"disabled\"\n [ngStyle]=\"trackStyle\" (input)=\"_onInput($event)\" \n (mouseup)=\"_onEmitValue()\" >\n </div>\n\n <div class=\"ticks\"> @for (tick of ticks; track $index) {\n <div class=\"tick\" [style.left.%]=\"tick.offsetPercent\">\n @if (!tick.isEdge) {\n <span class=\"tick-mark\"></span>\n }\n <span class=\"tick-label\" [class.edge-tick]=\"tick.isEdge\">{{ tick.value }}</span>\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block;width:100%}.numeric-slider{--thumb-size: 16px;--bubble-height: 39px;--bubble-tail-height: 5px;--slider-progress-color: var(--secondary-color);--slider-fill-color: var(--disable-color);width:100%;min-width:320px}.numeric-slider .slider-shell{position:relative;padding-top:24px}.numeric-slider .value-bubble{position:absolute;top:-16px;transform:translate(-50%);width:52px;height:var(--bubble-height);pointer-events:none}.numeric-slider .value-bubble svg{width:52px;height:var(--bubble-height)}.numeric-slider .value-bubble .text{position:absolute;top:0;left:0;width:100%;height:calc(var(--bubble-height) - var(--bubble-tail-height));display:flex;align-items:center;justify-content:center;text-align:center;color:var(--light-background-color);font-size:14px;font-weight:400;line-height:1}.numeric-slider .slider-input{position:relative;width:100%;appearance:none;direction:rtl;cursor:pointer;z-index:1}.numeric-slider .slider-input::-webkit-slider-runnable-track{height:8px;border-radius:var(--border-radius);background:linear-gradient(90deg,var(--slider-fill-color) 0,var(--slider-fill-color) var(--slider-progress),var(--slider-progress-color) var(--slider-progress),var(--slider-progress-color) 100%)}.numeric-slider .slider-input::-webkit-slider-thumb{position:relative;-webkit-appearance:none;width:var(--thumb-size);height:var(--thumb-size);margin-top:-4px;border-radius:50%;background-color:var(--light-background-color);border:1.5px solid var(--secondary-text-color);cursor:grab}.numeric-slider .ticks{position:relative;width:calc(100% - var(--thumb-size));margin-inline:calc(var(--thumb-size) / 2);direction:ltr;height:30px;top:-5px}.numeric-slider .tick{position:absolute;top:0;bottom:0;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0}.numeric-slider .tick .tick-mark{width:1.5px;height:8px;background:var(--secondary-text-color)}.numeric-slider .tick .tick-label{color:var(--secondary-text-color);line-height:1;margin-top:auto;text-align:center;line-height:normal;font-weight:400;font-size:12px}.numeric-slider .tick .edge-tick{font-weight:700;font-size:14px;color:var(--icons-color)}.numeric-slider.disabled{--slider-progress-color: var(--disable-color);--slider-fill-color: var(--slider-disabled-fill-color)}.numeric-slider.disabled .slider-input{cursor:default}.numeric-slider.disabled .slider-input::-webkit-slider-thumb{cursor:default}.numeric-slider.disabled .tick .edge-tick{color:var(--slider-disabled-fill-color)}\n"] }]
|
|
2740
|
+
}], propDecorators: { min: [{
|
|
2741
|
+
type: Input
|
|
2742
|
+
}], max: [{
|
|
2743
|
+
type: Input
|
|
2744
|
+
}], value: [{
|
|
2745
|
+
type: Input
|
|
2746
|
+
}], disabled: [{
|
|
2747
|
+
type: Input
|
|
2748
|
+
}], valueChange: [{
|
|
2749
|
+
type: Output
|
|
2750
|
+
}] } });
|
|
2751
|
+
|
|
2668
2752
|
class AtomsModule {
|
|
2669
2753
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AtomsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2670
2754
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.17", ngImport: i0, type: AtomsModule, declarations: [CollegeLoaderComponent,
|
|
@@ -2704,7 +2788,8 @@ class AtomsModule {
|
|
|
2704
2788
|
HerumRadioButtonComponent,
|
|
2705
2789
|
RoundedVerticalMenuComponent,
|
|
2706
2790
|
TrackTextChangesNotesComponent,
|
|
2707
|
-
UserProfileImageComponent
|
|
2791
|
+
UserProfileImageComponent,
|
|
2792
|
+
NumericSliderComponent], imports: [CommonModule,
|
|
2708
2793
|
ReactiveFormsModule,
|
|
2709
2794
|
FormsModule,
|
|
2710
2795
|
MatMenuModule,
|
|
@@ -2759,7 +2844,8 @@ class AtomsModule {
|
|
|
2759
2844
|
HerumRadioButtonComponent,
|
|
2760
2845
|
RoundedVerticalMenuComponent,
|
|
2761
2846
|
TrackTextChangesNotesComponent,
|
|
2762
|
-
UserProfileImageComponent
|
|
2847
|
+
UserProfileImageComponent,
|
|
2848
|
+
NumericSliderComponent] });
|
|
2763
2849
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: AtomsModule, providers: [
|
|
2764
2850
|
{ provide: MAT_DATE_LOCALE, useValue: 'he-IL' },
|
|
2765
2851
|
], imports: [CommonModule,
|
|
@@ -2823,7 +2909,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
2823
2909
|
HerumRadioButtonComponent,
|
|
2824
2910
|
RoundedVerticalMenuComponent,
|
|
2825
2911
|
TrackTextChangesNotesComponent,
|
|
2826
|
-
UserProfileImageComponent
|
|
2912
|
+
UserProfileImageComponent,
|
|
2913
|
+
NumericSliderComponent
|
|
2827
2914
|
],
|
|
2828
2915
|
exports: [
|
|
2829
2916
|
CollegeLoaderComponent,
|
|
@@ -2863,7 +2950,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
2863
2950
|
HerumRadioButtonComponent,
|
|
2864
2951
|
RoundedVerticalMenuComponent,
|
|
2865
2952
|
TrackTextChangesNotesComponent,
|
|
2866
|
-
UserProfileImageComponent
|
|
2953
|
+
UserProfileImageComponent,
|
|
2954
|
+
NumericSliderComponent
|
|
2867
2955
|
],
|
|
2868
2956
|
imports: [
|
|
2869
2957
|
CommonModule,
|
|
@@ -2922,5 +3010,5 @@ class HerumFormControl extends FormControl {
|
|
|
2922
3010
|
* Generated bundle index. Do not edit.
|
|
2923
3011
|
*/
|
|
2924
3012
|
|
|
2925
|
-
export { AtomsModule, CollegeLoaderComponent, ConditionalFormControlNameDirective, HerumBreadcrumbsComponent, HerumButtonComponent, HerumCheckboxComponent, HerumChipComponent, HerumCircularProgressBarComponent, HerumDatePickerComponent, HerumDownloadFileComponent, HerumEllipsisLoaderComponent, HerumFormControl, HerumIconLabelComponent, HerumIndeterminateComponent, HerumInputFieldComponent, HerumLogoComponent, HerumMultiSelectComponent, HerumNarrowCollectionMenuItemComponent, HerumNoResultMessageComponent, HerumOptionsListComponent, HerumPaginatorComponent, HerumPanelLinksComponent, HerumProgressBarComponent, HerumQuizHeaderItemComponent, HerumRadioButtonComponent, HerumRecursiveHierarchyOptionsListComponent, HerumSelectComponent, HerumSliderComponent, HerumSpinnerComponent, HerumSwitchComponent, HerumTextAreaComponent, HerumTimePickerComponent, HerumToggleButtonComponent, HerumUploadFileComponent, HerumVideoSelectComponent, RoundedVerticalMenuComponent, SliceBreadcrumbsPipe, TrackTextChangesNotesComponent, UserProfileImageComponent, UsersProfilePreviewComponent };
|
|
3013
|
+
export { AtomsModule, CollegeLoaderComponent, ConditionalFormControlNameDirective, HerumBreadcrumbsComponent, HerumButtonComponent, HerumCheckboxComponent, HerumChipComponent, HerumCircularProgressBarComponent, HerumDatePickerComponent, HerumDownloadFileComponent, HerumEllipsisLoaderComponent, HerumFormControl, HerumIconLabelComponent, HerumIndeterminateComponent, HerumInputFieldComponent, HerumLogoComponent, HerumMultiSelectComponent, HerumNarrowCollectionMenuItemComponent, HerumNoResultMessageComponent, HerumOptionsListComponent, HerumPaginatorComponent, HerumPanelLinksComponent, HerumProgressBarComponent, HerumQuizHeaderItemComponent, HerumRadioButtonComponent, HerumRecursiveHierarchyOptionsListComponent, HerumSelectComponent, HerumSliderComponent, HerumSpinnerComponent, HerumSwitchComponent, HerumTextAreaComponent, HerumTimePickerComponent, HerumToggleButtonComponent, HerumUploadFileComponent, HerumVideoSelectComponent, NumericSliderComponent, RoundedVerticalMenuComponent, SliceBreadcrumbsPipe, TrackTextChangesNotesComponent, UserProfileImageComponent, UsersProfilePreviewComponent };
|
|
2926
3014
|
//# sourceMappingURL=herum-shared-atoms.mjs.map
|