mis-crystal-design-system 18.1.0-signal-test-1 → 18.1.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/async-search-dropdown/async-dropdown.component.d.ts +3 -3
- package/button/button.component.d.ts +0 -2
- package/button/button.directive.scss +71 -0
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +4 -0
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +9 -5
- package/drawer/drawer.scss +20 -0
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dynamic-theme/branding.types.d.ts +84 -0
- package/dynamic-theme/dynamic-theme.module.d.ts +9 -0
- package/dynamic-theme/dynamic-theme.service.d.ts +89 -0
- package/dynamic-theme/index.d.ts +1 -0
- package/dynamic-theme/public_api.d.ts +3 -0
- package/esm2022/action-list/action-list.component.mjs +2 -2
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +10 -10
- package/esm2022/button/button.component.mjs +8 -16
- package/esm2022/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/chip/chip.component.mjs +4 -4
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +17 -10
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +89 -34
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +6 -3
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +317 -142
- package/esm2022/drawer/drawer-body/drawer-body.component.mjs +4 -4
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/dynamic-form/dynamic-form.component.mjs +2 -2
- package/esm2022/dynamic-theme/branding.types.mjs +93 -0
- package/esm2022/dynamic-theme/dynamic-theme.module.mjs +25 -0
- package/esm2022/dynamic-theme/dynamic-theme.service.mjs +193 -0
- package/esm2022/dynamic-theme/index.mjs +2 -0
- package/esm2022/dynamic-theme/mis-crystal-design-system-dynamic-theme.mjs +5 -0
- package/esm2022/dynamic-theme/public_api.mjs +4 -0
- package/esm2022/fab/fab.component.mjs +6 -6
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +30 -29
- package/esm2022/input/directives/input/input.directive.mjs +28 -10
- package/esm2022/input/mis-input.component.mjs +19 -13
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +5 -5
- package/esm2022/loader/loader.component.mjs +13 -7
- package/esm2022/mobile-filter/mobile-filter.component.mjs +2 -2
- package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +4 -4
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +12 -7
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +2 -2
- package/esm2022/phone-input/phone-input.component.mjs +4 -4
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/radio-button/radio-button.component.mjs +4 -4
- package/esm2022/ske-loader/ske-loader.component.mjs +4 -4
- package/esm2022/slider/slider.component.mjs +4 -4
- package/esm2022/snackbar/snackbar/snackbar.component.mjs +4 -4
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +25 -21
- package/esm2022/star-rating/star-rating.component.mjs +2 -2
- package/esm2022/switch/switch.component.mjs +4 -6
- package/esm2022/table/actions-cell/actions-cell.component.mjs +2 -2
- package/esm2022/table/filter/filter.component.mjs +2 -2
- package/esm2022/table/sub-table/sub-table.component.mjs +19 -6
- package/esm2022/table/table.component.mjs +53 -29
- package/esm2022/timepicker/timepicker.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +6 -6
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +4 -4
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-action-list.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +9 -9
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs +7 -15
- package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-chip.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +103 -41
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +321 -143
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-drawer.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dynamic-theme.mjs +313 -0
- package/fesm2022/mis-crystal-design-system-dynamic-theme.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-fab.mjs +5 -5
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-filter.mjs +29 -28
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +45 -21
- package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-loader.mjs +12 -6
- package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-modal.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +11 -6
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-phone-input.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +24 -20
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs +3 -5
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +74 -38
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timepicker.mjs +2 -2
- package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-toast.mjs +5 -5
- package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-tooltip.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system.mjs.map +1 -1
- package/filter/filter-panel/filter-panel.component.d.ts +1 -1
- package/input/directives/input/input.directive.d.ts +3 -4
- package/input/mis-input.component.d.ts +3 -6
- package/input/mis-input.component.scss +188 -0
- package/loader/loader.component.d.ts +7 -1
- package/modal/modal.scss +9 -0
- package/package.json +13 -7
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +2 -2
- package/styles/fonts/icomoon.eot +0 -0
- package/styles/fonts/icomoon.svg +315 -0
- package/styles/fonts/icomoon.ttf +0 -0
- package/styles/fonts/icomoon.woff +0 -0
- package/styles/mis-borders-backgrounds.scss +764 -0
- package/styles/mis-color-constants.scss +353 -0
- package/styles/mis-flex.scss +321 -0
- package/styles/mis-fonts.scss +124 -0
- package/styles/mis-icons.scss +1054 -0
- package/styles/mis-mixins.scss +46 -0
- package/styles/mis-old-icon-styles.scss +498 -0
- package/styles/mis-spacing-sizing.scss +2590 -0
- package/styles/mis-typography.scss +462 -0
|
@@ -3,7 +3,7 @@ import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrollin
|
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { input, signal, EventEmitter, effect, Component,
|
|
6
|
+
import { input, signal, EventEmitter, effect, Component, ViewChild, ContentChild, Output, NgModule } from '@angular/core';
|
|
7
7
|
import * as i3 from 'mis-crystal-design-system/loader';
|
|
8
8
|
import { LoaderModule } from 'mis-crystal-design-system/loader';
|
|
9
9
|
import { of, BehaviorSubject } from 'rxjs';
|
|
@@ -171,11 +171,11 @@ class VirtualScrollComponent {
|
|
|
171
171
|
i0.ɵɵproperty("ngIf", !ctx.loading() && ctx.error());
|
|
172
172
|
i0.ɵɵadvance();
|
|
173
173
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 3, ctx.data$));
|
|
174
|
-
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.CdkFixedSizeVirtualScroll, i2.CdkVirtualForOf, i2.CdkVirtualScrollViewport, i3.LoaderComponent, i1.AsyncPipe], styles: ["cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:100%}#main-container[_ngcontent-%COMP%]{height:100%;width:100%}.state-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}#loader-container[_ngcontent-%COMP%]{width:100%;height:56px;display:flex;justify-content:center;align-items:center} #spinner{position:relative!important}"]
|
|
174
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.CdkFixedSizeVirtualScroll, i2.CdkVirtualForOf, i2.CdkVirtualScrollViewport, i3.LoaderComponent, i1.AsyncPipe], styles: ["cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:100%}#main-container[_ngcontent-%COMP%]{height:100%;width:100%}.state-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}#loader-container[_ngcontent-%COMP%]{width:100%;height:56px;display:flex;justify-content:center;align-items:center} #spinner{position:relative!important}"] }); }
|
|
175
175
|
}
|
|
176
176
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VirtualScrollComponent, [{
|
|
177
177
|
type: Component,
|
|
178
|
-
args: [{ selector: "mis-virtual-scroll",
|
|
178
|
+
args: [{ selector: "mis-virtual-scroll", template: "<div class=\"state-container\" *ngIf=\"loading()\">\n <mis-loader></mis-loader>\n</div>\n<div class=\"state-container\" *ngIf=\"!loading() && error()\">\n <span>Unknown error has occurred.</span>\n</div>\n<ng-container *ngIf=\"data$ | async as data\">\n <cdk-virtual-scroll-viewport\n *ngIf=\"!loading() && !error()\"\n #viewport\n [minBufferPx]=\"config().minBufferPx\"\n [maxBufferPx]=\"config().maxBufferPx\"\n [itemSize]=\"config().rowHeight\"\n (scrolledIndexChange)=\"nextBatch(data.length)\"\n >\n <ng-container *cdkVirtualFor=\"let item of data; let i = index\">\n <ng-container\n [ngTemplateOutlet]=\"customItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n ></ng-container>\n </ng-container>\n <div id=\"loader-container\" *ngIf=\"rowsLoading()\">\n <mis-loader></mis-loader>\n </div>\n </cdk-virtual-scroll-viewport>\n</ng-container>", styles: ["cdk-virtual-scroll-viewport{height:100%}#main-container{height:100%;width:100%}.state-container{height:100%;width:100%;display:flex;justify-content:center;align-items:center}#loader-container{width:100%;height:56px;display:flex;justify-content:center;align-items:center}::ng-deep #spinner{position:relative!important}\n"] }]
|
|
179
179
|
}], () => [{ type: i0.ChangeDetectorRef }], { viewPort: [{
|
|
180
180
|
type: ViewChild,
|
|
181
181
|
args: [CdkVirtualScrollViewport]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-virtual-scroll.mjs","sources":["../../../projects/mis-components/virtual-scroll/virtual-scroll.component.html","../../../projects/mis-components/virtual-scroll/virtual-scroll.component.ts","../../../projects/mis-components/virtual-scroll/virtual-scroll.module.ts","../../../projects/mis-components/virtual-scroll/public_api.ts","../../../projects/mis-components/virtual-scroll/mis-crystal-design-system-virtual-scroll.ts"],"sourcesContent":["<div class=\"state-container\" *ngIf=\"loading()\">\n <mis-loader></mis-loader>\n</div>\n<div class=\"state-container\" *ngIf=\"!loading() && error()\">\n <span>Unknown error has occurred.</span>\n</div>\n<ng-container *ngIf=\"data$ | async as data\">\n <cdk-virtual-scroll-viewport\n *ngIf=\"!loading() && !error()\"\n #viewport\n [minBufferPx]=\"config().minBufferPx\"\n [maxBufferPx]=\"config().maxBufferPx\"\n [itemSize]=\"config().rowHeight\"\n (scrolledIndexChange)=\"nextBatch(data.length)\"\n >\n <ng-container *cdkVirtualFor=\"let item of data; let i = index\">\n <ng-container\n [ngTemplateOutlet]=\"customItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n ></ng-container>\n </ng-container>\n <div id=\"loader-container\" *ngIf=\"rowsLoading()\">\n <mis-loader></mis-loader>\n </div>\n </cdk-virtual-scroll-viewport>\n</ng-container>","import { ChangeDetectorRef, Component, ContentChild, EventEmitter, Output, TemplateRef, ViewChild, ChangeDetectionStrategy, input, signal, WritableSignal, computed, effect } from \"@angular/core\";\nimport { CdkVirtualScrollViewport } from \"@angular/cdk/scrolling\";\n\nimport { BehaviorSubject, Observable, of } from \"rxjs\";\nimport { catchError, mergeMap, scan, tap, throttleTime } from \"rxjs/operators\";\nimport { IVirtualScrollConfig } from \"./virtual-scroll.constants\";\n\n@Component({\n selector: \"mis-virtual-scroll\",\n templateUrl: \"./virtual-scroll.component.html\",\n styleUrls: [\"./virtual-scroll.component.scss\"],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class VirtualScrollComponent {\n\n // Input signals\n config = input<IVirtualScrollConfig>({\n minBufferPx: 2400,\n maxBufferPx: 2400,\n rowHeight: 128,\n pageSize: 5,\n infiniteScrollDataFunction: (offset, pageSize) => of([1,2,3,4,5])\n });\n\n // Infinite scroll related variables\n offset = new BehaviorSubject(null);\n endOfInfiniteData: WritableSignal<boolean> = signal(false);\n rowsLoading: WritableSignal<boolean> = signal(false);\n \n // Main state managing variables\n loading: WritableSignal<boolean> = signal(false);\n error: WritableSignal<boolean> = signal(false);\n \n // Scroll data related variables\n data$: Observable<any>;\n \n @ViewChild(CdkVirtualScrollViewport) viewPort: CdkVirtualScrollViewport;\n @ContentChild(\"virtualScrollItem\", { static: false })\n customItem: TemplateRef<Element>;\n @Output() intialized = new EventEmitter<any>();\n\n virtualScrollApi: any;\n\n constructor(private changeDetectorRef: ChangeDetectorRef) {\n // Initialize the component with signals\n effect(() => {\n this.switchOnInfiniteScroll();\n this.virtualScrollApi = {\n toggleLoader: () => this.loading.set(!this.loading()),\n toggleError: () => this.error.set(!this.error()),\n switchOnInfiniteScroll: this.switchOnInfiniteScroll,\n switchOffInfiniteScroll: this.switchOffInfiniteScroll\n };\n // Keep this one - needed for external API emission\n this.changeDetectorRef.detectChanges();\n this.intialized.emit(this.virtualScrollApi);\n }, { allowSignalWrites: true });\n }\n\n switchOffInfiniteScroll = (): void => {\n this.error.set(false);\n this.loading.set(true);\n this.data$ = this.config().data$.pipe(\n tap(() => {\n this.loading.set(false);\n // Removed detectChanges() - signals handle this automatically\n }),\n catchError(err => {\n console.error(\"Error: Unknown error occurred while fetching calendar data\", err);\n this.loading.set(false);\n this.error.set(true);\n return [];\n })\n );\n };\n\n switchOnInfiniteScroll = (): void => {\n this.error.set(false);\n this.loading.set(true);\n this.endOfInfiniteData.set(false);\n this.offset.next(0);\n this.setupInfiniteScroll();\n };\n\n setupInfiniteScroll(): void {\n const batchMap = this.offset.pipe(\n throttleTime(500),\n mergeMap(offset => this.getBatch(offset)),\n scan((acc: Array<any>, batch: Array<any>) => {\n return [...acc, ...batch];\n }, [])\n );\n this.data$ = batchMap.pipe(\n tap(data => {\n this.rowsLoading.set(false);\n this.loading.set(false);\n // Removed setTimeout and detectChanges() - signals handle this automatically\n })\n );\n }\n\n nextBatch(offset): void {\n if (this.endOfInfiniteData()) {\n return;\n }\n const end = this.viewPort.getRenderedRange().end;\n const total = this.viewPort.getDataLength();\n offset = Math.ceil(offset / this.config().pageSize);\n if (end === total && !this.rowsLoading()) {\n this.offset.next(offset);\n }\n }\n\n getBatch(offset): Observable<any> {\n this.rowsLoading.set(true);\n if (offset == null) offset = 0;\n return this.config()\n .infiniteScrollDataFunction(offset, this.config().pageSize)\n .pipe(\n tap((arr: Array<any>) => {\n arr.length < this.config().pageSize ? this.endOfInfiniteData.set(true) : null;\n }),\n catchError(err => {\n console.error(\"Error: Unknown error occurred while fetching calendar data\", err);\n this.rowsLoading.set(false);\n this.loading.set(false);\n this.error.set(true);\n return [];\n })\n );\n }\n}","import { ScrollingModule } from \"@angular/cdk/scrolling\";\nimport { CommonModule } from \"@angular/common\";\nimport { ModuleWithProviders, NgModule } from \"@angular/core\"\n\nimport { LoaderModule} from \"mis-crystal-design-system/loader\"\n\nimport { VirtualScrollComponent } from \"./virtual-scroll.component\";\n\n@NgModule({\n declarations:[\n VirtualScrollComponent\n ],\n imports: [\n CommonModule,\n ScrollingModule,\n LoaderModule\n ],\n exports:[VirtualScrollComponent, ScrollingModule],\n})\nexport class VirtualScrollModule{ \n static forRoot() : ModuleWithProviders<VirtualScrollModule> {\n return { ngModule: VirtualScrollModule, providers: []}\n }\n}","// import { VirtualScrollModule } from \"./virtual-scroll.module\";\n\nexport { VirtualScrollModule } from \"./virtual-scroll.module\";\nexport { VirtualScrollComponent } from \"./virtual-scroll.component\";\nexport { IVirtualScrollApi, IVirtualScrollConfig } from \"./virtual-scroll.constants\"\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;IAAA,EAA+C,CAAA,cAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;IAC3C,EAAyB,CAAA,SAAA,CAAA,CAAA,EAAA,YAAA,CAAA,CAAA;IAC7B,EAAM,CAAA,YAAA,EAAA,CAAA;;;AAEF,IADJ,8BAA2D,CACjD,CAAA,EAAA,MAAA,CAAA,CAAA;IAAA,EAA2B,CAAA,MAAA,CAAA,CAAA,EAAA,6BAAA,CAAA,CAAA;AACrC,IADqC,iBAAO,EACtC,CAAA;;;IAUE,EAAgE,CAAA,uBAAA,CAAA,CAAA,CAAA,CAAA;IAC5D,EAGgB,CAAA,kBAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA;;;;;;IAFhB,EAA+B,CAAA,SAAA,EAAA,CAAA;AAC/B,IADA,oDAA+B,CAC0B,yBAAA,EAAA,EAAA,CAAA,eAAA,CAAA,CAAA,EAAA,GAAA,EAAA,OAAA,EAAA,IAAA,CAAA,CAAA,CAAA;;;IAG7D,EAAiD,CAAA,cAAA,CAA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,IAAA,OAAO,OAAO,GAAA;QACV,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,SAAS,EAAE,EAAE,EAAC,CAAA;KACzD;oHAHQ,mBAAmB,GAAA,CAAA,EAAA,CAAA,EAAA;mEAAnB,mBAAmB,EAAA,CAAA,CAAA,EAAA;uEANxB,YAAY;YACZ,eAAe;AACf,YAAA,YAAY,EAEiB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAEvC,mBAAmB,EAAA,CAAA;cAX/B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,YAAY,EAAC;oBACT,sBAAsB;AACzB,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,eAAe;oBACf,YAAY;AACf,iBAAA;AACD,gBAAA,OAAO,EAAC,CAAC,sBAAsB,EAAE,eAAe,CAAC;AACpD,aAAA,CAAA;;wFACY,mBAAmB,EAAA,EAAA,YAAA,EAAA,CATxB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAGtB,YAAY;QACZ,eAAe;QACf,YAAY,CAAA,EAAA,OAAA,EAAA,CAEP,sBAAsB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACjBpD;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-virtual-scroll.mjs","sources":["../../../projects/mis-components/virtual-scroll/virtual-scroll.component.html","../../../projects/mis-components/virtual-scroll/virtual-scroll.component.ts","../../../projects/mis-components/virtual-scroll/virtual-scroll.module.ts","../../../projects/mis-components/virtual-scroll/public_api.ts","../../../projects/mis-components/virtual-scroll/mis-crystal-design-system-virtual-scroll.ts"],"sourcesContent":["<div class=\"state-container\" *ngIf=\"loading()\">\n <mis-loader></mis-loader>\n</div>\n<div class=\"state-container\" *ngIf=\"!loading() && error()\">\n <span>Unknown error has occurred.</span>\n</div>\n<ng-container *ngIf=\"data$ | async as data\">\n <cdk-virtual-scroll-viewport\n *ngIf=\"!loading() && !error()\"\n #viewport\n [minBufferPx]=\"config().minBufferPx\"\n [maxBufferPx]=\"config().maxBufferPx\"\n [itemSize]=\"config().rowHeight\"\n (scrolledIndexChange)=\"nextBatch(data.length)\"\n >\n <ng-container *cdkVirtualFor=\"let item of data; let i = index\">\n <ng-container\n [ngTemplateOutlet]=\"customItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n ></ng-container>\n </ng-container>\n <div id=\"loader-container\" *ngIf=\"rowsLoading()\">\n <mis-loader></mis-loader>\n </div>\n </cdk-virtual-scroll-viewport>\n</ng-container>","import { ChangeDetectorRef, Component, ContentChild, EventEmitter, Output, TemplateRef, ViewChild, ChangeDetectionStrategy, input, signal, WritableSignal, computed, effect } from \"@angular/core\";\nimport { CdkVirtualScrollViewport } from \"@angular/cdk/scrolling\";\n\nimport { BehaviorSubject, Observable, of } from \"rxjs\";\nimport { catchError, mergeMap, scan, tap, throttleTime } from \"rxjs/operators\";\nimport { IVirtualScrollConfig } from \"./virtual-scroll.constants\";\n\n@Component({\n selector: \"mis-virtual-scroll\",\n templateUrl: \"./virtual-scroll.component.html\",\n styleUrls: [\"./virtual-scroll.component.scss\"],\n})\nexport class VirtualScrollComponent {\n\n // Input signals\n config = input<IVirtualScrollConfig>({\n minBufferPx: 2400,\n maxBufferPx: 2400,\n rowHeight: 128,\n pageSize: 5,\n infiniteScrollDataFunction: (offset, pageSize) => of([1,2,3,4,5])\n });\n\n // Infinite scroll related variables\n offset = new BehaviorSubject(null);\n endOfInfiniteData: WritableSignal<boolean> = signal(false);\n rowsLoading: WritableSignal<boolean> = signal(false);\n \n // Main state managing variables\n loading: WritableSignal<boolean> = signal(false);\n error: WritableSignal<boolean> = signal(false);\n \n // Scroll data related variables\n data$: Observable<any>;\n \n @ViewChild(CdkVirtualScrollViewport) viewPort: CdkVirtualScrollViewport;\n @ContentChild(\"virtualScrollItem\", { static: false })\n customItem: TemplateRef<Element>;\n @Output() intialized = new EventEmitter<any>();\n\n virtualScrollApi: any;\n\n constructor(private changeDetectorRef: ChangeDetectorRef) {\n // Initialize the component with signals\n effect(() => {\n this.switchOnInfiniteScroll();\n this.virtualScrollApi = {\n toggleLoader: () => this.loading.set(!this.loading()),\n toggleError: () => this.error.set(!this.error()),\n switchOnInfiniteScroll: this.switchOnInfiniteScroll,\n switchOffInfiniteScroll: this.switchOffInfiniteScroll\n };\n // Keep this one - needed for external API emission\n this.changeDetectorRef.detectChanges();\n this.intialized.emit(this.virtualScrollApi);\n }, { allowSignalWrites: true });\n }\n\n switchOffInfiniteScroll = (): void => {\n this.error.set(false);\n this.loading.set(true);\n this.data$ = this.config().data$.pipe(\n tap(() => {\n this.loading.set(false);\n // Removed detectChanges() - signals handle this automatically\n }),\n catchError(err => {\n console.error(\"Error: Unknown error occurred while fetching calendar data\", err);\n this.loading.set(false);\n this.error.set(true);\n return [];\n })\n );\n };\n\n switchOnInfiniteScroll = (): void => {\n this.error.set(false);\n this.loading.set(true);\n this.endOfInfiniteData.set(false);\n this.offset.next(0);\n this.setupInfiniteScroll();\n };\n\n setupInfiniteScroll(): void {\n const batchMap = this.offset.pipe(\n throttleTime(500),\n mergeMap(offset => this.getBatch(offset)),\n scan((acc: Array<any>, batch: Array<any>) => {\n return [...acc, ...batch];\n }, [])\n );\n this.data$ = batchMap.pipe(\n tap(data => {\n this.rowsLoading.set(false);\n this.loading.set(false);\n // Removed setTimeout and detectChanges() - signals handle this automatically\n })\n );\n }\n\n nextBatch(offset): void {\n if (this.endOfInfiniteData()) {\n return;\n }\n const end = this.viewPort.getRenderedRange().end;\n const total = this.viewPort.getDataLength();\n offset = Math.ceil(offset / this.config().pageSize);\n if (end === total && !this.rowsLoading()) {\n this.offset.next(offset);\n }\n }\n\n getBatch(offset): Observable<any> {\n this.rowsLoading.set(true);\n if (offset == null) offset = 0;\n return this.config()\n .infiniteScrollDataFunction(offset, this.config().pageSize)\n .pipe(\n tap((arr: Array<any>) => {\n arr.length < this.config().pageSize ? this.endOfInfiniteData.set(true) : null;\n }),\n catchError(err => {\n console.error(\"Error: Unknown error occurred while fetching calendar data\", err);\n this.rowsLoading.set(false);\n this.loading.set(false);\n this.error.set(true);\n return [];\n })\n );\n }\n}","import { ScrollingModule } from \"@angular/cdk/scrolling\";\nimport { CommonModule } from \"@angular/common\";\nimport { ModuleWithProviders, NgModule } from \"@angular/core\"\n\nimport { LoaderModule} from \"mis-crystal-design-system/loader\"\n\nimport { VirtualScrollComponent } from \"./virtual-scroll.component\";\n\n@NgModule({\n declarations:[\n VirtualScrollComponent\n ],\n imports: [\n CommonModule,\n ScrollingModule,\n LoaderModule\n ],\n exports:[VirtualScrollComponent, ScrollingModule],\n})\nexport class VirtualScrollModule{ \n static forRoot() : ModuleWithProviders<VirtualScrollModule> {\n return { ngModule: VirtualScrollModule, providers: []}\n }\n}","// import { VirtualScrollModule } from \"./virtual-scroll.module\";\n\nexport { VirtualScrollModule } from \"./virtual-scroll.module\";\nexport { VirtualScrollComponent } from \"./virtual-scroll.component\";\nexport { IVirtualScrollApi, IVirtualScrollConfig } from \"./virtual-scroll.constants\"\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;IAAA,EAA+C,CAAA,cAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;IAC3C,EAAyB,CAAA,SAAA,CAAA,CAAA,EAAA,YAAA,CAAA,CAAA;IAC7B,EAAM,CAAA,YAAA,EAAA,CAAA;;;AAEF,IADJ,8BAA2D,CACjD,CAAA,EAAA,MAAA,CAAA,CAAA;IAAA,EAA2B,CAAA,MAAA,CAAA,CAAA,EAAA,6BAAA,CAAA,CAAA;AACrC,IADqC,iBAAO,EACtC,CAAA;;;IAUE,EAAgE,CAAA,uBAAA,CAAA,CAAA,CAAA,CAAA;IAC5D,EAGgB,CAAA,kBAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA;;;;;;IAFhB,EAA+B,CAAA,SAAA,EAAA,CAAA;AA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B,MAAM;;kFA1BE,sBAAsB,EAAA,EAAA,SAAA,EAAA,wBAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;MCOtB,mBAAmB,CAAA;AAC5B,IAAA,OAAO,OAAO,GAAA;QACV,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,SAAS,EAAE,EAAE,EAAC,CAAA;KACzD;oHAHQ,mBAAmB,GAAA,CAAA,EAAA,CAAA,EAAA;mEAAnB,mBAAmB,EAAA,CAAA,CAAA,EAAA;uEANxB,YAAY;YACZ,eAAe;AACf,YAAA,YAAY,EAEiB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAEvC,mBAAmB,EAAA,CAAA;cAX/B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,YAAY,EAAC;oBACT,sBAAsB;AACzB,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,eAAe;oBACf,YAAY;AACf,iBAAA;AACD,gBAAA,OAAO,EAAC,CAAC,sBAAsB,EAAE,eAAe,CAAC;AACpD,aAAA,CAAA;;wFACY,mBAAmB,EAAA,EAAA,YAAA,EAAA,CATxB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAGtB,YAAY;QACZ,eAAe;QACf,YAAY,CAAA,EAAA,OAAA,EAAA,CAEP,sBAAsB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACjBpD;;ACAA;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system.mjs","sources":["../../../projects/mis-components/public-api.ts","../../../projects/mis-components/mis-crystal-design-system.ts"],"sourcesContent":["/*\n * Public API Surface of mis-components\n */\n// export * from './button';\n// export * from './checkbox';\n// export * from './chip';\n// export * from './drawer';\n// export * from './dropdown';\n// export * from './fab';\n// export * from './loader';\n// export * from './multi-select-dropdown'\n// export * from './nested-multi-select-dropdown'\n// export * from './radio-button'\n// export * from './switch'\n// export * from './table';\n// export * from './toast'\n// export * from './tooltip'\n// export * from './datepicker'\n\nexport default {}
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system.mjs","sources":["../../../projects/mis-components/public-api.ts","../../../projects/mis-components/mis-crystal-design-system.ts"],"sourcesContent":["/*\n * Public API Surface of mis-components\n */\n// export * from './button';\n// export * from './checkbox';\n// export * from './chip';\n// export * from './drawer';\n// export * from './dropdown';\n// export * from './fab';\n// export * from './loader';\n// export * from './multi-select-dropdown'\n// export * from './nested-multi-select-dropdown'\n// export * from './radio-button'\n// export * from './switch'\n// export * from './table';\n// export * from './toast'\n// export * from './tooltip'\n// export * from './datepicker'\n\nexport default {};","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,gBAAe,EAAE;;ACnBjB;;AAEG"}
|
|
@@ -36,7 +36,7 @@ export declare class FilterPanelComponent implements OnInit {
|
|
|
36
36
|
filterForm: FormGroup;
|
|
37
37
|
lastAppliedData: any;
|
|
38
38
|
dateRangeSelectedDates: WritableSignal<IRSelectedDatesConfig>;
|
|
39
|
-
|
|
39
|
+
getFilterCount(): number;
|
|
40
40
|
ngOnInit(): void;
|
|
41
41
|
initializeFormControls(config: FilterPanelConfig[]): void;
|
|
42
42
|
closePanel(): void;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { ElementRef
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
2
|
import { NgControl } from "@angular/forms";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MisInputDirective
|
|
4
|
+
export declare class MisInputDirective {
|
|
5
5
|
validity: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
+
value: import("@angular/core").WritableSignal<any>;
|
|
6
7
|
el: ElementRef<any>;
|
|
7
8
|
control: NgControl;
|
|
8
9
|
private destroyRef;
|
|
9
10
|
constructor();
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MisInputDirective, never>;
|
|
13
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MisInputDirective, "input[misInput]", never, {}, {}, never, never, false, never>;
|
|
14
13
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from "@angular/core";
|
|
2
|
-
import { AbstractControl } from "@angular/forms";
|
|
3
1
|
import { MisInputDirective } from "./directives/input/input.directive";
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MisInputComponent
|
|
3
|
+
export declare class MisInputComponent {
|
|
6
4
|
type: import("@angular/core").InputSignal<"rounded" | "floating">;
|
|
7
5
|
size: import("@angular/core").InputSignal<"sm" | "md" | "lg">;
|
|
8
6
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
9
7
|
noHints: import("@angular/core").InputSignal<boolean>;
|
|
10
8
|
hasError: import("@angular/core").InputSignal<boolean>;
|
|
11
9
|
isMandatory: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
hasValue: import("@angular/core").Signal<boolean>;
|
|
12
11
|
formInput: import("@angular/core").Signal<MisInputDirective>;
|
|
13
|
-
inputCtrl: import("@angular/core").Signal<AbstractControl<any, any>>;
|
|
12
|
+
inputCtrl: import("@angular/core").Signal<import("@angular/forms").AbstractControl<any, any>>;
|
|
14
13
|
inputValidity: import("@angular/core").Signal<boolean>;
|
|
15
14
|
constructor();
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
15
|
isInvalid: import("@angular/core").Signal<boolean>;
|
|
19
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<MisInputComponent, never>;
|
|
20
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<MisInputComponent, "mis-input", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "noHints": { "alias": "noHints"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "isMandatory": { "alias": "isMandatory"; "required": false; "isSignal": true; }; }, {}, ["formInput"], ["[mis-input-icon]", "input", "[mis-input-act]", "[mis-input-hint]", "[mis-input-error]"], false, never>;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@import "../styles/mis-color-constants.scss";
|
|
2
|
+
|
|
3
|
+
.input-container {
|
|
4
|
+
position: relative;
|
|
5
|
+
padding-bottom: 24px;
|
|
6
|
+
&.mis-disabled {
|
|
7
|
+
.input-wrapper {
|
|
8
|
+
pointer-events: none !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.input-wrapper {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
transition: all ease-in 60ms;
|
|
18
|
+
background-color: var(--bg-primary, $text_white);
|
|
19
|
+
padding: 3px 16px; // DONE CHANGE
|
|
20
|
+
gap: 16px;
|
|
21
|
+
.mis-input {
|
|
22
|
+
flex: 1 1 auto;
|
|
23
|
+
z-index: 0; // Ensures a new stacking context
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
input {
|
|
29
|
+
flex: 1 1 auto;
|
|
30
|
+
border: none;
|
|
31
|
+
outline: none;
|
|
32
|
+
height: 100%;
|
|
33
|
+
padding: 0;
|
|
34
|
+
font-family: Lato;
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: normal;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
height: 24px;
|
|
39
|
+
color: var(--text-primary, $text_black);
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
width: 100%;
|
|
42
|
+
vertical-align: middle;
|
|
43
|
+
position: relative;
|
|
44
|
+
&::placeholder {
|
|
45
|
+
transition: all ease-in 100ms;
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transform-origin: left center;
|
|
48
|
+
color: transparent;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.mis-placeholder {
|
|
52
|
+
position: absolute;
|
|
53
|
+
font-family: Lato;
|
|
54
|
+
font-style: normal;
|
|
55
|
+
font-weight: normal;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
line-height: 24px;
|
|
58
|
+
color: var(--text-secondary, $text_muted);
|
|
59
|
+
transition: all ease-in 150ms;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:focus-within {
|
|
64
|
+
background-color: var(--bg-tertiary, $grey_bg);
|
|
65
|
+
}
|
|
66
|
+
&:focus-within {
|
|
67
|
+
border: 1px solid $pmry_500;
|
|
68
|
+
}
|
|
69
|
+
[mis-input-act],
|
|
70
|
+
[mis-input-icon] {
|
|
71
|
+
width: 18px;
|
|
72
|
+
height: 18px;
|
|
73
|
+
color: var(--text-secondary, $text_muted);
|
|
74
|
+
font-size: 24px;
|
|
75
|
+
line-height: 18px;
|
|
76
|
+
}
|
|
77
|
+
[mis-input-act] {
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&.no-hint {
|
|
82
|
+
padding-bottom: 0px;
|
|
83
|
+
}
|
|
84
|
+
&.has-value {
|
|
85
|
+
.mis-input .mis-placeholder {
|
|
86
|
+
color: transparent !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.rounded {
|
|
91
|
+
input {
|
|
92
|
+
box-sizing: initial;
|
|
93
|
+
}
|
|
94
|
+
&.sm {
|
|
95
|
+
input {
|
|
96
|
+
padding: 3px 16px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&.md {
|
|
100
|
+
input {
|
|
101
|
+
padding: 9px 16px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
&.lg {
|
|
105
|
+
input {
|
|
106
|
+
padding: 15px 16px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.input-wrapper {
|
|
110
|
+
border-radius: 4px;
|
|
111
|
+
border: 1px solid var(--border-primary, $grey_seperators);
|
|
112
|
+
padding: 0;
|
|
113
|
+
// input:not(:disabled) {
|
|
114
|
+
// &:hover,
|
|
115
|
+
// &:focus {
|
|
116
|
+
// background-color: $grey_bg;
|
|
117
|
+
// }
|
|
118
|
+
// }
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: var(--bg-tertiary, $grey_bg);
|
|
121
|
+
}
|
|
122
|
+
&:focus-within {
|
|
123
|
+
border: 1px solid var(--brand-primary, $pmry_500);
|
|
124
|
+
}
|
|
125
|
+
// Placeholder visibility controlled by hasValue signal
|
|
126
|
+
.mis-placeholder {
|
|
127
|
+
color: var(--text-secondary, $text_muted);
|
|
128
|
+
}
|
|
129
|
+
.mis-placeholder {
|
|
130
|
+
margin-left: 16px;
|
|
131
|
+
transition-duration: 50ms;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
&.has-error {
|
|
135
|
+
.input-wrapper {
|
|
136
|
+
border: 1px solid var(--brand-error, $sem_error) !important;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
&.floating {
|
|
141
|
+
.input-wrapper {
|
|
142
|
+
padding-top: 24px;
|
|
143
|
+
padding-bottom: 7px; // DONE CHANGE
|
|
144
|
+
border-bottom: 1px solid var(--border-primary, $grey_seperators);
|
|
145
|
+
input:focus + .mis-placeholder {
|
|
146
|
+
color: var(--brand-primary, $pmry_500) !important;
|
|
147
|
+
}
|
|
148
|
+
input:not(:placeholder-shown) + .mis-placeholder,
|
|
149
|
+
input:focus + .mis-placeholder {
|
|
150
|
+
transform: translateY(calc(-100% + 6px)) !important;
|
|
151
|
+
font-size: 12px !important;
|
|
152
|
+
letter-spacing: 0.2px !important;
|
|
153
|
+
}
|
|
154
|
+
&:focus-within {
|
|
155
|
+
border: none;
|
|
156
|
+
border-bottom: 1px solid var(--brand-primary, $pmry_500);
|
|
157
|
+
input::placeholder {
|
|
158
|
+
color: var(--text-secondary, $text_muted);
|
|
159
|
+
opacity: 1;
|
|
160
|
+
font-size: 16px;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
&.has-error {
|
|
165
|
+
.input-wrapper {
|
|
166
|
+
border-bottom: 1px solid var(--brand-error, $sem_error) !important;
|
|
167
|
+
.mis-placeholder {
|
|
168
|
+
color: var(--brand-error, $sem_error) !important;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
[mis-input-hint],
|
|
174
|
+
[mis-input-error] {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 0;
|
|
177
|
+
right: 0px;
|
|
178
|
+
bottom: 0px;
|
|
179
|
+
line-height: 24px;
|
|
180
|
+
height: 24px;
|
|
181
|
+
font-size: 12px;
|
|
182
|
+
color: var(--text-secondary, $text_muted);
|
|
183
|
+
letter-spacing: 0.2px;
|
|
184
|
+
}
|
|
185
|
+
[mis-input-error] {
|
|
186
|
+
color: var(--brand-error, $sem_error);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -2,6 +2,12 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class LoaderComponent {
|
|
3
3
|
/** Controls loader size */
|
|
4
4
|
mobileView: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
color: import("@angular/core").InputSignal<string>;
|
|
6
|
+
height: import("@angular/core").InputSignal<string>;
|
|
7
|
+
width: import("@angular/core").InputSignal<string>;
|
|
8
|
+
borderTopColor: import("@angular/core").InputSignal<string>;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
5
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "mis-loader", never, { "mobileView": { "alias": "mobileView"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "mis-loader", never, { "mobileView": { "alias": "mobileView"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "borderTopColor": { "alias": "borderTopColor"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
7
13
|
}
|
package/modal/modal.scss
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mis-crystal-design-system",
|
|
3
|
-
"version": "18.1.0
|
|
3
|
+
"version": "18.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "*",
|
|
6
6
|
"@angular/core": "*",
|
|
@@ -46,12 +46,6 @@
|
|
|
46
46
|
"esm": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
47
47
|
"default": "./fesm2022/mis-crystal-design-system-checkbox.mjs"
|
|
48
48
|
},
|
|
49
|
-
"./button": {
|
|
50
|
-
"types": "./button/index.d.ts",
|
|
51
|
-
"esm2022": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
52
|
-
"esm": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
53
|
-
"default": "./fesm2022/mis-crystal-design-system-button.mjs"
|
|
54
|
-
},
|
|
55
49
|
"./datepicker_v2": {
|
|
56
50
|
"types": "./datepicker_v2/index.d.ts",
|
|
57
51
|
"esm2022": "./esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs",
|
|
@@ -64,6 +58,12 @@
|
|
|
64
58
|
"esm": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
65
59
|
"default": "./fesm2022/mis-crystal-design-system-chip.mjs"
|
|
66
60
|
},
|
|
61
|
+
"./button": {
|
|
62
|
+
"types": "./button/index.d.ts",
|
|
63
|
+
"esm2022": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
64
|
+
"esm": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
65
|
+
"default": "./fesm2022/mis-crystal-design-system-button.mjs"
|
|
66
|
+
},
|
|
67
67
|
"./daterangepicker_v2": {
|
|
68
68
|
"types": "./daterangepicker_v2/index.d.ts",
|
|
69
69
|
"esm2022": "./esm2022/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs",
|
|
@@ -88,6 +88,12 @@
|
|
|
88
88
|
"esm": "./esm2022/dynamic-form/mis-crystal-design-system-dynamic-form.mjs",
|
|
89
89
|
"default": "./fesm2022/mis-crystal-design-system-dynamic-form.mjs"
|
|
90
90
|
},
|
|
91
|
+
"./dynamic-theme": {
|
|
92
|
+
"types": "./dynamic-theme/index.d.ts",
|
|
93
|
+
"esm2022": "./esm2022/dynamic-theme/mis-crystal-design-system-dynamic-theme.mjs",
|
|
94
|
+
"esm": "./esm2022/dynamic-theme/mis-crystal-design-system-dynamic-theme.mjs",
|
|
95
|
+
"default": "./fesm2022/mis-crystal-design-system-dynamic-theme.mjs"
|
|
96
|
+
},
|
|
91
97
|
"./fab": {
|
|
92
98
|
"types": "./fab/index.d.ts",
|
|
93
99
|
"esm2022": "./esm2022/fab/mis-crystal-design-system-fab.mjs",
|
|
@@ -8,11 +8,11 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
8
8
|
private injectedData;
|
|
9
9
|
private toast;
|
|
10
10
|
readonly data: import("@angular/core").WritableSignal<IDatePickerData>;
|
|
11
|
-
private dayjsInstance;
|
|
11
|
+
private readonly dayjsInstance;
|
|
12
12
|
private readonly rawWeekDays;
|
|
13
13
|
readonly localSelectedDates: import("@angular/core").WritableSignal<ISSelectedDatesConfig[]>;
|
|
14
14
|
readonly localSelectedDatesRange: import("@angular/core").WritableSignal<IRSelectedDatesConfig>;
|
|
15
|
-
readonly isDatesValid: import("@angular/core").
|
|
15
|
+
readonly isDatesValid: import("@angular/core").Signal<boolean>;
|
|
16
16
|
readonly dateRangeSelected: import("@angular/core").WritableSignal<boolean>;
|
|
17
17
|
readonly singleDatePickerSelected: import("@angular/core").WritableSignal<boolean>;
|
|
18
18
|
readonly openElement: import("@angular/core").WritableSignal<boolean>;
|
|
Binary file
|