@acorex/components 18.8.2 → 18.8.4
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +3 -12
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +13 -22
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +1 -1
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +4 -4
- package/esm2022/color-palette/lib/color-palette.component.mjs +2 -2
- package/esm2022/common/lib/components/value-component.class.mjs +1 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +1 -1
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +1 -1
- package/esm2022/number-box/lib/number-box.component.mjs +55 -29
- package/esm2022/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.mjs +3 -3
- package/esm2022/paint/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.mjs +3 -3
- package/esm2022/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.mjs +1 -1
- package/esm2022/paint/lib/paint/paint-view/paint-view.component.mjs +4 -3
- package/esm2022/phone-box/lib/phone-box.component.mjs +3 -3
- package/esm2022/range-slider/lib/range-slider.class.mjs +1 -1
- package/esm2022/range-slider/lib/range-slider.component.mjs +159 -134
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +7 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.mjs +29 -9
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.mjs +3 -3
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +2 -1
- package/fesm2022/acorex-components-action-sheet.mjs +12 -21
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +6 -6
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +1 -1
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +54 -28
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +8 -7
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +2 -2
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +157 -132
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +36 -9
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/number-box/lib/number-box.component.d.ts +35 -30
- package/package.json +31 -31
- package/range-slider/lib/range-slider.class.d.ts +1 -0
- package/range-slider/lib/range-slider.component.d.ts +43 -11
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.d.ts +6 -2
- package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-data-pager.mjs","sources":["../../../../libs/components/data-pager/src/lib/data-pager-base.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-info.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-input-selector.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-next-buttons.components.ts","../../../../libs/components/data-pager/src/lib/data-pager-numeric-selector.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-pagesize-dropdown.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-prev-buttons.component.ts","../../../../libs/components/data-pager/src/lib/data-pager.component.ts","../../../../libs/components/data-pager/src/lib/data-pager.component.html","../../../../libs/components/data-pager/src/lib/data-pager.module.ts","../../../../libs/components/data-pager/src/acorex-components-data-pager.ts"],"sourcesContent":["import { AXEvent, AXOptionChangedEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { EventEmitter, Injectable, inject } from '@angular/core';\n\n/**\n * A token that specifies the display mode of datapager component.\n */\nexport type AXDataPagerDisplayMode = 'full' | 'compact' | 'custom';\n\nexport interface AXDataPagerData {\n range: { from: number; to: number };\n page: number;\n skip: number;\n take: number;\n totalPages: number;\n totalItems: number;\n}\n\nexport class AXDataPagerChangedEvent extends AXEvent implements AXDataPagerData {\n range: { from: number; to: number } = { from: 0, to: 0 };\n page = 0;\n skip = 0;\n take = 0;\n totalPages = 0;\n totalItems = 0;\n}\n\n@Injectable()\nexport abstract class AXDataPagerParentComponent {\n abstract readonly: boolean;\n abstract disabled: boolean;\n abstract isLoading: boolean;\n abstract onChanged: EventEmitter<AXDataPagerChangedEvent>;\n abstract onOptionChanged: EventEmitter<AXOptionChangedEvent>;\n abstract get displayInfo(): AXDataPagerData;\n abstract size;\n abstract goNextPage(): void;\n abstract goLastPage(): void;\n abstract goFirstPage(): void;\n abstract goPrevPage(): void;\n abstract goToPage(page: number): void;\n}\n\n@Injectable()\nexport abstract class AXDataPagerChild extends MXInteractiveComponent {\n protected _parent: AXDataPagerParentComponent = inject(AXDataPagerParentComponent);\n protected _unsubscriber: AXUnsubscriber = inject(AXUnsubscriber);\n\n /**\n * @ignore\n */\n constructor() {\n super();\n //\n this._parent.onChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe((c) => {\n this.applyParent();\n });\n //\n this._parent.onOptionChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe((c) => {\n this.applyParent();\n });\n }\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n this.applyParent();\n }\n\n /**\n * @ignore\n */\n protected abstract applyParent(): void;\n}\n","import { AXTranslationService } from '@acorex/core/translation';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, inject } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Displays formatted and translated information text for a data pager component.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-info',\n template: `{{ _textFormatted | translate | async }}`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerInfoComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerInfoComponent extends AXDataPagerChild {\n /**\n * The text to be displayed in the data pager info component.\n */\n @Input()\n text: string;\n\n /**\n * @ignore\n */\n protected _textFormatted: string;\n protected translateService = inject(AXTranslationService);\n\n /**\n * @ignore\n */\n protected override applyParent() {\n const info = this._parent.displayInfo;\n if ([info.range, info.range.from, info.totalItems].every((c) => c)) {\n this._textFormatted = this.translateService\n .translateSync(this.text ?? 'datapager.info.text')\n .replace('[from]', info.range.from.toString())\n .replace('[to]', info.range.to.toString())\n .replace('[totalItems]', info.totalItems.toString())\n .replace('[page]', info.page.toString())\n .replace('[totalPages]', info.totalPages.toString());\n this.cdr.markForCheck();\n }\n }\n}\n","import { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Provides an input selector for navigating pages in a data pager component.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-input-selector',\n template: `\n <ax-number-box\n class=\"ax-sm\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n [ngModel]=\"_currentPage\"\n (onValueChanged)=\"_handleValueChanged($event)\"\n [showSpinButtons]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"_totalPages\"\n >\n </ax-number-box>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXDataPagerChild,\n useExisting: AXDataPagerInputSelectorComponent,\n },\n AXUnsubscriber,\n ],\n})\nexport class AXDataPagerInputSelectorComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n protected _totalPages = 1;\n\n /**\n * @ignore\n */\n protected _currentPage = 1;\n\n /**\n * @ignore\n */\n protected override applyParent() {\n this._currentPage = this._parent.displayInfo.page;\n this._totalPages = this._parent.displayInfo.totalPages;\n this.cdr.markForCheck();\n }\n\n /**\n * @ignore\n */\n protected _handleValueChanged(e: AXValueChangedEvent<number>) {\n //TODO: debounceTime\n if (e.isUserInteraction) {\n this._parent.goToPage(e.value as number);\n }\n }\n}\n","import { AXClickEvent } from '@acorex/components/common';\nimport { AXHtmlUtil, AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Provides buttons for navigating to the next and last pages in a data pager component.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-next-buttons',\n template: `\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the next page\" (onClick)=\"_emitOnNextPageClick($event)\">\n <ax-icon\n class=\"ax-icon ax-text-xl\"\n [ngClass]=\"{\n 'ax-icon-chevron-left': rtl,\n 'ax-icon-chevron-right': !rtl,\n }\"\n ></ax-icon>\n </ax-button>\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the last page\" (onClick)=\"_emitOnLastPageClick($event)\">\n <ax-icon class=\"ax-icon ax-text-xl\" [ngClass]=\"{ 'ax-icon-first-page': rtl, 'ax-icon-last-page': !rtl }\"></ax-icon>\n </ax-button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNextButtonsComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerNextButtonsComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n protected rtl!: boolean;\n\n /**\n * @ignore\n */\n override ngOnInit(): void {\n super.ngOnInit;\n this.rtl = AXHtmlUtil.isRtl(this.getHostElement());\n }\n\n /**\n * @ignore\n */\n protected override applyParent() {\n this.disabled = this._parent.displayInfo.page == this._parent.displayInfo.totalPages || this._parent.disabled;\n }\n\n /**\n * @ignore\n */\n _emitOnLastPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goLastPage();\n }\n\n /**\n * @ignore\n */\n _emitOnNextPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goNextPage();\n }\n}\n","import { AXButtonItem } from '@acorex/components/button';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n\n/**\n * Component that provides numeric page selection controls for a data pager.\n * \n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-numeric-selector',\n template: `\n <ax-button [disabled]=\"_currentPage === 1 || _parent.disabled\" look=\"blank\" class=\"ax-sm\" (onClick)=\"_handleOnItemClick({ data: 1 })\">\n <ax-icon class=\"ax-icon ax-icon-first-page ax-text-xl\"></ax-icon>\n </ax-button>\n @if (!_parent.isLoading) {\n @for (item of _items; track $index) {\n <ax-button\n class=\"ax-sm\"\n [disabled]=\"_parent.disabled\"\n [color]=\"_currentPage === item.data ? 'primary' : 'solid'\"\n [look]=\"_currentPage === item.data ? 'solid' : 'blank'\"\n [text]=\"item.text\"\n (onClick)=\"_handleOnItemClick(item)\"\n >\n @if (item.iconClass) {\n <ax-icon class=\"ax-icon ax-text-xl\" [ngClass]=\"item.iconClass\"></ax-icon>\n }\n </ax-button>\n }\n } @else {\n <ax-skeleton></ax-skeleton>\n }\n\n <ax-button\n [disabled]=\"_currentPage === _lastPage || _parent.disabled\"\n look=\"blank\"\n class=\"ax-sm\"\n (onClick)=\"_handleOnItemClick({ data: _lastPage })\"\n >\n <ax-icon class=\"ax-icon ax-icon-last-page ax-text-xl\"></ax-icon>\n </ax-button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXDataPagerChild,\n useExisting: AXDataPagerNumericSelectorComponent,\n },\n AXUnsubscriber,\n ],\n})\nexport class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {\n _items: AXButtonItem[] = [];\n _currentPage = 1;\n _lastPage = 1;\n _loading = false;\n\n /**\n * @ignore\n */\n private _displayCount = 5;\n\n /**\n * @ignore\n */\n protected override applyParent(): void {\n this._currentPage = this._parent.displayInfo.page;\n this._loading = this._parent.isLoading;\n this._lastPage = this._parent.displayInfo.totalPages;\n //\n this._items = [];\n\n const start = Math.max(0, (Math.ceil(this._currentPage / this._displayCount) - 1) * this._displayCount + 1);\n const end = Math.min(start + this._displayCount - 1, this._lastPage);\n //\n if (start > this._displayCount) {\n this._items.push({\n iconClass: 'ax-icon-more-horizontal',\n data: start - 1,\n });\n }\n //\n for (let i = start; i <= end; i++) {\n this._items.push({\n text: i.toString(),\n data: i,\n });\n }\n if (end < this._lastPage) {\n this._items.push({\n iconClass: 'ax-icon-more-horizontal',\n data: end + 1,\n });\n }\n this.cdr.detectChanges();\n }\n\n /**\n * @ignore\n */\n _handleOnItemClick(e: any) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goToPage(Number(e.data));\n }\n}\n","import { AXClickEvent } from '@acorex/components/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Displays a button to select page sizes for data pagination.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-page-sizes',\n template: `\n <ax-button [text]=\"_size\" [color]=\"'default'\" [look]=\"'blank'\" class=\"ax-sm\" [disabled]=\"_parent.disabled\">\n <ax-dropdown-panel>\n <ax-button-item-list (onItemClick)=\"_emitOnItemClick($event)\">\n @for (item of _items; track $index) {\n <ax-button-item [text]=\"item.text\" [data]=\"item.data\" [selected]=\"item.selected\"> </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n <ax-suffix>\n <ax-icon icon=\"ax-icon ax-icon-solid ax-icon-arrow-down\"></ax-icon>\n </ax-suffix>\n </ax-button>\n <!-- <span >items per page</span> -->\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n outputs: [],\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPageSizesComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerPageSizesComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n _size: number;\n\n /**\n * @ignore\n */\n //TODO: AXButtonItems type error\n _items: any[] = [];\n\n /**\n * @ignore\n */\n private _sizes: number[];\n\n /**\n * Gets the list of page sizes available for selection.\n */\n @Input()\n public get sizes(): number[] {\n return this._sizes || [5, 10, 20, 50, 100];\n }\n\n /**\n * Sets the list of page sizes available for selection.\n *\n * @param value - An array of numbers representing the page sizes to be set.\n */\n public set sizes(v: number[]) {\n this._sizes = v;\n this.applyParent();\n }\n\n /**\n * @ignore\n */\n protected override applyParent(): void {\n this._size = this._parent.displayInfo.take;\n this._items = this.sizes.map((s: any) => ({\n text: s.toString(),\n selected: s == this._size,\n data: {\n size: s,\n },\n }));\n this.cdr.detectChanges();\n }\n\n /**\n * @ignore\n */\n _emitOnItemClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._size = this._parent.size = Number(e.data.size);\n }\n}\n","import { AXClickEvent } from '@acorex/components/common';\nimport { AXHtmlUtil, AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Component that provides navigation buttons for going to the previous page and the first page in a data pager.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-prev-buttons',\n template: `\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the last page\" (onClick)=\"_emitOnFirstPageClick($event)\">\n <ax-icon class=\"ax-icon ax-text-xl\" [ngClass]=\"{ 'ax-icon-last-page': rtl, 'ax-icon-first-page': !rtl }\"></ax-icon>\n </ax-button>\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the next page\" (onClick)=\"_emitOnPrevPageClick($event)\">\n <ax-icon\n class=\"ax-icon ax-text-xl\"\n [ngClass]=\"{\n 'ax-icon-chevron-left': !rtl,\n 'ax-icon-chevron-right': rtl,\n }\"\n ></ax-icon>\n </ax-button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPrevButtonsComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerPrevButtonsComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n protected rtl!: boolean;\n\n /**\n * @ignore\n */\n override ngOnInit(): void {\n super.ngOnInit;\n this.rtl = AXHtmlUtil.isRtl(this.getHostElement());\n }\n\n /**\n * @ignore\n */\n protected override applyParent() {\n this.disabled = this._parent.displayInfo.page == 1 || this._parent.disabled;\n }\n\n /**\n * @ignore\n */\n _emitOnFirstPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goFirstPage();\n }\n\n /**\n * @ignore\n */\n _emitOnPrevPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goPrevPage();\n }\n}\n","import { AXPagedComponent, MXValueComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n Optional,\n Output,\n ViewEncapsulation,\n forwardRef,\n signal,\n} from '@angular/core';\nimport { cloneDeep, isEqual, isNumber } from 'lodash-es';\n\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AXDataPagerChangedEvent, AXDataPagerData, AXDataPagerParentComponent } from './data-pager-base.component';\n\nexport type AXDataPagerMode = 'full' | 'compact' | 'custom';\n\n/**\n * Component for managing and displaying data pagination controls.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager',\n templateUrl: './data-pager.component.html',\n styleUrls: ['./data-pager.component.scss'],\n inputs: ['value', 'name', 'disabled', 'readonly'],\n outputs: ['valueChange', 'onValueChanged', 'disabledChange', 'readonlyChange'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXDataPagerParentComponent, useExisting: AXDataPagerComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXDataPagerComponent),\n multi: true,\n },\n ],\n})\nexport class AXDataPagerComponent extends MXValueComponent<number> {\n /**\n * @ignore\n */\n private _isLoading = signal(false);\n\n /**\n * Indicates whether the component is currently loading.\n *\n */\n @Input()\n public get isLoading(): boolean {\n return this._isLoading();\n }\n\n /**\n * Sets the loading state of the component.\n *\n * @param v - The loading state to be set.\n */\n public set isLoading(v: boolean) {\n this._isLoading.set(v);\n }\n\n /**\n * @ignore\n */\n private _size = null;\n\n /**\n * Gets the number of items per page in the data pager.\n */\n @Input()\n public get size(): number {\n return this._size || 10;\n }\n\n /**\n * Sets the number of items per page and updates the data pager accordingly.\n *\n * @param {number} v - The new number of items per page.\n */\n public set size(v: number) {\n if (v != this._size) {\n const prevSize = this._size;\n this._size = v;\n if (this._parent) {\n this._parent.pageSize = v;\n }\n const newPage = Math.ceil(this.displayInfo.range.from / this._size) || 1;\n this.commitValue(newPage);\n this._emitChangedEvent(prevSize != null ? true : false);\n }\n }\n\n /**\n * @ignore\n */\n private _total = 0;\n\n /**\n * Gets the total number of items.\n */\n @Input()\n public get total(): number {\n return this._total;\n }\n\n /**\n * Sets the total number of items and triggers an update event if the value changes.\n *\n * @param v - The total number of items to set.\n * If the value is non-positive, it defaults to 0.\n */\n public set total(v: number) {\n const t = v && v > 0 ? v : 0;\n if (t != this._total) {\n this._total = t;\n this._emitChangedEvent();\n }\n }\n\n /**\n * @ignore\n */\n private _totalPages = 0;\n\n /**\n * Gets the total number of pages.\n */\n public get totalPages(): number {\n return this._totalPages;\n }\n\n /**\n * Sets the total number of pages.\n *\n * @param value - The total number of pages to set.\n */\n private set totalPages(value: number) {\n this._totalPages = value;\n }\n\n /**\n * Emitted when the display mode changes.\n * @event\n * An event containing the new display mode.\n */\n @Output()\n public displayModeChange: EventEmitter<string> = new EventEmitter<string>();\n\n /**\n * @ignore\n */\n private _displayMode: AXDataPagerMode = 'full';\n\n /**\n * Gets the current display mode of the data pager.\n */\n @Input()\n public get displayMode(): AXDataPagerMode {\n return this._displayMode;\n }\n\n /**\n * Sets the display mode of the data pager and emits a change event.\n *\n * @param v - The new display mode to set, of type `AXDataPagerMode`.\n */\n public set displayMode(v: AXDataPagerMode) {\n this.setOption({\n name: 'displayMode',\n value: v,\n afterCallback: () => {\n this._emitChangedEvent();\n },\n });\n }\n\n /**\n * Emitted when the data pager's state changes.\n * @event\n * An event containing details about the change.\n */\n @Output()\n onChanged: EventEmitter<AXDataPagerChangedEvent> = new EventEmitter<AXDataPagerChangedEvent>();\n\n /**\n * @ignore\n */\n constructor(\n @Optional()\n @Inject(AXPagedComponent)\n private _parent: AXPagedComponent,\n ) {\n super();\n //\n if (this._parent) {\n this._parent.onPageChanged.subscribe((c) => {\n this.size = this._parent.pageSize;\n this.total = this._parent.totalCount;\n this.value = c.value;\n });\n this.size = this._parent.pageSize;\n this.total = this._parent.totalCount;\n }\n }\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n this._emitChangedEvent();\n }\n\n /**\n * @ignore\n */\n protected override internalValueChanged(value: any): void {\n this._emitChangedEvent(true);\n }\n\n /**\n * @ignore\n */\n protected override internalGetValue(value: any): number {\n if (!isNumber(value) || !value || this.totalPages == 0) return 1;\n return value > this.totalPages ? this.totalPages : value;\n }\n\n /**\n * @ignore\n */\n private previousDisplayInfo: AXDataPagerData | null;\n\n public get displayInfo(): AXDataPagerData {\n const skip = Math.max(0, (this.value - 1) * this.size);\n const result = {\n page: this.value,\n totalItems: this.total,\n totalPages: this.totalPages,\n range: {\n from: skip + 1,\n to: Math.min(this.value * this.size, this.total),\n },\n skip,\n take: this.size,\n };\n return result;\n }\n\n /**\n * @ignore\n */\n private _emitChangedEvent(u = false): void {\n this.totalPages = Math.ceil(this._total / this.size);\n //\n if (!isEqual(this.previousDisplayInfo, this.displayInfo)) {\n this.onChanged.emit(\n Object.assign(\n {\n component: this,\n isUserInteraction: u,\n htmlElement: this.getHostElement(),\n },\n this.displayInfo,\n ),\n );\n if (this.totalPages > 0) this._parent?.goToPage(this.value);\n //\n this.previousDisplayInfo = cloneDeep(this.displayInfo);\n //\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Navigates to the next page, or to the last page if on the final page.\n * @ignore\n */\n\n goNextPage(): void {\n this.goToPage(Math.min(this.value + 1, this.totalPages));\n }\n\n /**\n * Navigates to the last page.\n * @ignore\n */\n goLastPage(): void {\n this.goToPage(this.totalPages);\n }\n\n /**\n * Navigates to the first page.\n * @ignore\n */\n goFirstPage(): void {\n this.goToPage(1);\n }\n /**\n * Navigates to the previous page, or to the first page if on the initial page.\n * @ignore\n */\n goPrevPage(): void {\n this.goToPage(Math.max(this.value - 1, 1));\n }\n\n /**\n * Navigates to a specified page.\n * @param page - The page number to navigate to.\n * @ignore\n */\n goToPage(page: number): void {\n if (page != this.value) {\n this.commitValue(page, true);\n }\n }\n}\n","@switch(displayMode){\n@case('full'){\n<ax-prefix>\n <ax-data-pager-numeric-selector>\n </ax-data-pager-numeric-selector>\n <ax-data-pager-page-sizes>\n </ax-data-pager-page-sizes>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@case('compact'){\n<ax-prefix>\n <ax-data-pager-prev-buttons>\n </ax-data-pager-prev-buttons>\n <ax-data-pager-input-selector>\n </ax-data-pager-input-selector>\n <ax-data-pager-next-buttons>\n </ax-data-pager-next-buttons>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@default{\n<ng-content select=\"ax-prefix\"></ng-content>\n<ng-content select=\"ax-suffix\"></ng-content>\n}\n}","import { AXButtonModule } from '@acorex/components/button';\nimport { AXButtonGroupModule } from '@acorex/components/button-group';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXDataPagerInfoComponent } from './data-pager-info.component';\nimport { AXDataPagerInputSelectorComponent } from './data-pager-input-selector.component';\nimport { AXDataPagerNextButtonsComponent } from './data-pager-next-buttons.components';\nimport { AXDataPagerNumericSelectorComponent } from './data-pager-numeric-selector.component';\nimport { AXDataPagerPageSizesComponent } from './data-pager-pagesize-dropdown.component';\nimport { AXDataPagerPrevButtonsComponent } from './data-pager-prev-buttons.component';\nimport { AXDataPagerComponent } from './data-pager.component';\n\nconst COMPONENT = [\n AXDataPagerComponent,\n AXDataPagerNextButtonsComponent,\n AXDataPagerPrevButtonsComponent,\n AXDataPagerPageSizesComponent,\n AXDataPagerNumericSelectorComponent,\n AXDataPagerInputSelectorComponent,\n AXDataPagerInfoComponent,\n];\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXButtonModule,\n AXButtonGroupModule,\n AXNumberBoxModule,\n AXDropdownModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXSkeletonModule,\n];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDataPagerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i2.AXDataPagerNextButtonsComponent","i3.AXDataPagerPrevButtonsComponent","i4.AXDataPagerPageSizesComponent","i5.AXDataPagerNumericSelectorComponent","i6.AXDataPagerInputSelectorComponent","i7.AXDataPagerInfoComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,uBAAwB,SAAQ,OAAO,CAAA;AAApD,IAAA,WAAA,GAAA;;QACE,IAAK,CAAA,KAAA,GAAiC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;QACzD,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;QACT,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;QACT,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;QACT,IAAU,CAAA,UAAA,GAAG,CAAC,CAAC;QACf,IAAU,CAAA,UAAA,GAAG,CAAC,CAAC;KAChB;AAAA,CAAA;MAGqB,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;kHAA1B,0BAA0B,EAAA,CAAA,CAAA,EAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAD/C,UAAU;;AAiBL,MAAgB,gBAAiB,SAAQ,sBAAsB,CAAA;AAInE;;AAEG;AACH,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AAPA,QAAA,IAAA,CAAA,OAAO,GAA+B,MAAM,CAAC,0BAA0B,CAAC,CAAC;AACzE,QAAA,IAAA,CAAA,aAAa,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;;AAQ/D,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAI;YAC/E,IAAI,CAAC,WAAW,EAAE,CAAC;AACrB,SAAC,CAAC,CAAC;;AAEH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AA,EAAA,EAAA,IAAA,EAAA,iBAAiB,iBA1B5B,oBAAoB;YACpB,+BAA+B;YAC/B,+BAA+B;YAC/B,6BAA6B;YAC7B,mCAAmC;YACnC,iCAAiC;AACjC,YAAA,wBAAwB,aAGxB,YAAY;YACZ,WAAW;YACX,cAAc;YACd,mBAAmB;YACnB,iBAAiB;YACjB,gBAAgB;YAChB,iBAAiB;YACjB,mBAAmB;AACnB,YAAA,gBAAgB,aAjBhB,oBAAoB;YACpB,+BAA+B;YAC/B,+BAA+B;YAC/B,6BAA6B;YAC7B,mCAAmC;YACnC,iCAAiC;YACjC,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;AAoBb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAJf,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;AC5CD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-data-pager.mjs","sources":["../../../../libs/components/data-pager/src/lib/data-pager-base.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-info.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-input-selector.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-next-buttons.components.ts","../../../../libs/components/data-pager/src/lib/data-pager-numeric-selector.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-pagesize-dropdown.component.ts","../../../../libs/components/data-pager/src/lib/data-pager-prev-buttons.component.ts","../../../../libs/components/data-pager/src/lib/data-pager.component.ts","../../../../libs/components/data-pager/src/lib/data-pager.component.html","../../../../libs/components/data-pager/src/lib/data-pager.module.ts","../../../../libs/components/data-pager/src/acorex-components-data-pager.ts"],"sourcesContent":["import { AXEvent, AXOptionChangedEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { EventEmitter, Injectable, inject } from '@angular/core';\n\n/**\n * A token that specifies the display mode of datapager component.\n */\nexport type AXDataPagerDisplayMode = 'full' | 'compact' | 'custom';\n\nexport interface AXDataPagerData {\n range: { from: number; to: number };\n page: number;\n skip: number;\n take: number;\n totalPages: number;\n totalItems: number;\n}\n\nexport class AXDataPagerChangedEvent extends AXEvent implements AXDataPagerData {\n range: { from: number; to: number } = { from: 0, to: 0 };\n page = 0;\n skip = 0;\n take = 0;\n totalPages = 0;\n totalItems = 0;\n}\n\n@Injectable()\nexport abstract class AXDataPagerParentComponent {\n abstract readonly: boolean;\n abstract disabled: boolean;\n abstract isLoading: boolean;\n abstract onChanged: EventEmitter<AXDataPagerChangedEvent>;\n abstract onOptionChanged: EventEmitter<AXOptionChangedEvent>;\n abstract get displayInfo(): AXDataPagerData;\n abstract size;\n abstract goNextPage(): void;\n abstract goLastPage(): void;\n abstract goFirstPage(): void;\n abstract goPrevPage(): void;\n abstract goToPage(page: number): void;\n}\n\n@Injectable()\nexport abstract class AXDataPagerChild extends MXInteractiveComponent {\n protected _parent: AXDataPagerParentComponent = inject(AXDataPagerParentComponent);\n protected _unsubscriber: AXUnsubscriber = inject(AXUnsubscriber);\n\n /**\n * @ignore\n */\n constructor() {\n super();\n //\n this._parent.onChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe((c) => {\n this.applyParent();\n });\n //\n this._parent.onOptionChanged.pipe(this._unsubscriber.takeUntilDestroy).subscribe((c) => {\n this.applyParent();\n });\n }\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n this.applyParent();\n }\n\n /**\n * @ignore\n */\n protected abstract applyParent(): void;\n}\n","import { AXTranslationService } from '@acorex/core/translation';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, inject } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Displays formatted and translated information text for a data pager component.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-info',\n template: `{{ _textFormatted | translate | async }}`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerInfoComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerInfoComponent extends AXDataPagerChild {\n /**\n * The text to be displayed in the data pager info component.\n */\n @Input()\n text: string;\n\n /**\n * @ignore\n */\n protected _textFormatted: string;\n protected translateService = inject(AXTranslationService);\n\n /**\n * @ignore\n */\n protected override applyParent() {\n const info = this._parent.displayInfo;\n if ([info.range, info.range.from, info.totalItems].every((c) => c)) {\n this._textFormatted = this.translateService\n .translateSync(this.text ?? 'datapager.info.text')\n .replace('[from]', info.range.from.toString())\n .replace('[to]', info.range.to.toString())\n .replace('[totalItems]', info.totalItems.toString())\n .replace('[page]', info.page.toString())\n .replace('[totalPages]', info.totalPages.toString());\n this.cdr.markForCheck();\n }\n }\n}\n","import { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Provides an input selector for navigating pages in a data pager component.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-input-selector',\n template: `\n <ax-number-box\n class=\"ax-sm\"\n [disabled]=\"_parent.disabled\"\n [readonly]=\"_parent.readonly\"\n [ngModel]=\"_currentPage\"\n (onValueChanged)=\"_handleValueChanged($event)\"\n [showSpinButtons]=\"false\"\n [minValue]=\"1\"\n [maxValue]=\"_totalPages\"\n >\n </ax-number-box>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXDataPagerChild,\n useExisting: AXDataPagerInputSelectorComponent,\n },\n AXUnsubscriber,\n ],\n})\nexport class AXDataPagerInputSelectorComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n protected _totalPages = 1;\n\n /**\n * @ignore\n */\n protected _currentPage = 1;\n\n /**\n * @ignore\n */\n protected override applyParent() {\n this._currentPage = this._parent.displayInfo.page;\n this._totalPages = this._parent.displayInfo.totalPages;\n this.cdr.markForCheck();\n }\n\n /**\n * @ignore\n */\n protected _handleValueChanged(e: AXValueChangedEvent<number>) {\n //TODO: debounceTime\n if (e.isUserInteraction) {\n this._parent.goToPage(e.value as number);\n }\n }\n}\n","import { AXClickEvent } from '@acorex/components/common';\nimport { AXHtmlUtil, AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Provides buttons for navigating to the next and last pages in a data pager component.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-next-buttons',\n template: `\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the next page\" (onClick)=\"_emitOnNextPageClick($event)\">\n <ax-icon\n class=\"ax-icon ax-text-xl\"\n [ngClass]=\"{\n 'ax-icon-chevron-left': rtl,\n 'ax-icon-chevron-right': !rtl,\n }\"\n ></ax-icon>\n </ax-button>\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the last page\" (onClick)=\"_emitOnLastPageClick($event)\">\n <ax-icon class=\"ax-icon ax-text-xl\" [ngClass]=\"{ 'ax-icon-first-page': rtl, 'ax-icon-last-page': !rtl }\"></ax-icon>\n </ax-button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNextButtonsComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerNextButtonsComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n protected rtl!: boolean;\n\n /**\n * @ignore\n */\n override ngOnInit(): void {\n super.ngOnInit;\n this.rtl = AXHtmlUtil.isRtl(this.getHostElement());\n }\n\n /**\n * @ignore\n */\n protected override applyParent() {\n this.disabled = this._parent.displayInfo.page == this._parent.displayInfo.totalPages || this._parent.disabled;\n }\n\n /**\n * @ignore\n */\n _emitOnLastPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goLastPage();\n }\n\n /**\n * @ignore\n */\n _emitOnNextPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goNextPage();\n }\n}\n","import { AXButtonItem } from '@acorex/components/button';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n\n/**\n * Component that provides numeric page selection controls for a data pager.\n * \n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-numeric-selector',\n template: `\n <ax-button [disabled]=\"_currentPage === 1 || _parent.disabled\" look=\"blank\" class=\"ax-sm\" (onClick)=\"_handleOnItemClick({ data: 1 })\">\n <ax-icon class=\"ax-icon ax-icon-first-page ax-text-xl\"></ax-icon>\n </ax-button>\n @if (!_parent.isLoading) {\n @for (item of _items; track $index) {\n <ax-button\n class=\"ax-sm\"\n [disabled]=\"_parent.disabled\"\n [color]=\"_currentPage === item.data ? 'primary' : 'solid'\"\n [look]=\"_currentPage === item.data ? 'solid' : 'blank'\"\n [text]=\"item.text\"\n (onClick)=\"_handleOnItemClick(item)\"\n >\n @if (item.iconClass) {\n <ax-icon class=\"ax-icon ax-text-xl\" [ngClass]=\"item.iconClass\"></ax-icon>\n }\n </ax-button>\n }\n } @else {\n <ax-skeleton></ax-skeleton>\n }\n\n <ax-button\n [disabled]=\"_currentPage === _lastPage || _parent.disabled\"\n look=\"blank\"\n class=\"ax-sm\"\n (onClick)=\"_handleOnItemClick({ data: _lastPage })\"\n >\n <ax-icon class=\"ax-icon ax-icon-last-page ax-text-xl\"></ax-icon>\n </ax-button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXDataPagerChild,\n useExisting: AXDataPagerNumericSelectorComponent,\n },\n AXUnsubscriber,\n ],\n})\nexport class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {\n _items: AXButtonItem[] = [];\n _currentPage = 1;\n _lastPage = 1;\n _loading = false;\n\n /**\n * @ignore\n */\n private _displayCount = 5;\n\n /**\n * @ignore\n */\n protected override applyParent(): void {\n this._currentPage = this._parent.displayInfo.page;\n this._loading = this._parent.isLoading;\n this._lastPage = this._parent.displayInfo.totalPages;\n //\n this._items = [];\n\n const start = Math.max(0, (Math.ceil(this._currentPage / this._displayCount) - 1) * this._displayCount + 1);\n const end = Math.min(start + this._displayCount - 1, this._lastPage);\n //\n if (start > this._displayCount) {\n this._items.push({\n iconClass: 'ax-icon-more-horizontal',\n data: start - 1,\n });\n }\n //\n for (let i = start; i <= end; i++) {\n this._items.push({\n text: i.toString(),\n data: i,\n });\n }\n if (end < this._lastPage) {\n this._items.push({\n iconClass: 'ax-icon-more-horizontal',\n data: end + 1,\n });\n }\n this.cdr.detectChanges();\n }\n\n /**\n * @ignore\n */\n _handleOnItemClick(e: any) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goToPage(Number(e.data));\n }\n}\n","import { AXClickEvent } from '@acorex/components/common';\nimport { AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Displays a button to select page sizes for data pagination.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-page-sizes',\n template: `\n <ax-button [text]=\"_size\" [color]=\"'default'\" [look]=\"'blank'\" class=\"ax-sm\" [disabled]=\"_parent.disabled\">\n <ax-dropdown-panel>\n <ax-button-item-list (onItemClick)=\"_emitOnItemClick($event)\">\n @for (item of _items; track $index) {\n <ax-button-item [text]=\"item.text\" [data]=\"item.data\" [selected]=\"item.selected\"> </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n <ax-suffix>\n <ax-icon icon=\"ax-icon ax-icon-solid ax-icon-arrow-down\"></ax-icon>\n </ax-suffix>\n </ax-button>\n <!-- <span >items per page</span> -->\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n outputs: [],\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPageSizesComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerPageSizesComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n _size: number;\n\n /**\n * @ignore\n */\n //TODO: AXButtonItems type error\n _items: any[] = [];\n\n /**\n * @ignore\n */\n private _sizes: number[];\n\n /**\n * Gets the list of page sizes available for selection.\n */\n @Input()\n public get sizes(): number[] {\n return this._sizes || [5, 10, 20, 50, 100];\n }\n\n /**\n * Sets the list of page sizes available for selection.\n *\n * @param value - An array of numbers representing the page sizes to be set.\n */\n public set sizes(v: number[]) {\n this._sizes = v;\n this.applyParent();\n }\n\n /**\n * @ignore\n */\n protected override applyParent(): void {\n this._size = this._parent.displayInfo.take;\n this._items = this.sizes.map((s: any) => ({\n text: s.toString(),\n selected: s == this._size,\n data: {\n size: s,\n },\n }));\n this.cdr.detectChanges();\n }\n\n /**\n * @ignore\n */\n _emitOnItemClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._size = this._parent.size = Number(e.data.size);\n }\n}\n","import { AXClickEvent } from '@acorex/components/common';\nimport { AXHtmlUtil, AXUnsubscriber } from '@acorex/core/utils';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDataPagerChild } from './data-pager-base.component';\n\n/**\n * Component that provides navigation buttons for going to the previous page and the first page in a data pager.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager-prev-buttons',\n template: `\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the last page\" (onClick)=\"_emitOnFirstPageClick($event)\">\n <ax-icon class=\"ax-icon ax-text-xl\" [ngClass]=\"{ 'ax-icon-last-page': rtl, 'ax-icon-first-page': !rtl }\"></ax-icon>\n </ax-button>\n <ax-button [disabled]=\"disabled\" look=\"blank\" class=\"ax-sm\" title=\"Go to the next page\" (onClick)=\"_emitOnPrevPageClick($event)\">\n <ax-icon\n class=\"ax-icon ax-text-xl\"\n [ngClass]=\"{\n 'ax-icon-chevron-left': !rtl,\n 'ax-icon-chevron-right': rtl,\n }\"\n ></ax-icon>\n </ax-button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPrevButtonsComponent }, AXUnsubscriber],\n})\nexport class AXDataPagerPrevButtonsComponent extends AXDataPagerChild {\n /**\n * @ignore\n */\n protected rtl!: boolean;\n\n /**\n * @ignore\n */\n override ngOnInit(): void {\n super.ngOnInit;\n this.rtl = AXHtmlUtil.isRtl(this.getHostElement());\n }\n\n /**\n * @ignore\n */\n protected override applyParent() {\n this.disabled = this._parent.displayInfo.page == 1 || this._parent.disabled;\n }\n\n /**\n * @ignore\n */\n _emitOnFirstPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goFirstPage();\n }\n\n /**\n * @ignore\n */\n _emitOnPrevPageClick(e: AXClickEvent) {\n if (this._parent.readonly || this._parent.disabled) return;\n this._parent.goPrevPage();\n }\n}\n","import { AXPagedComponent, MXValueComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n Optional,\n Output,\n ViewEncapsulation,\n forwardRef,\n signal,\n} from '@angular/core';\nimport { cloneDeep, isEqual, isNumber } from 'lodash-es';\n\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AXDataPagerChangedEvent, AXDataPagerData, AXDataPagerParentComponent } from './data-pager-base.component';\n\nexport type AXDataPagerMode = 'full' | 'compact' | 'custom';\n\n/**\n * Component for managing and displaying data pagination controls.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-data-pager',\n templateUrl: './data-pager.component.html',\n styleUrls: ['./data-pager.component.scss'],\n inputs: ['value', 'name', 'disabled', 'readonly'],\n outputs: ['valueChange', 'onValueChanged', 'disabledChange', 'readonlyChange'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXDataPagerParentComponent, useExisting: AXDataPagerComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXDataPagerComponent),\n multi: true,\n },\n ],\n})\nexport class AXDataPagerComponent extends MXValueComponent<number> {\n /**\n * @ignore\n */\n private _isLoading = signal(false);\n\n /**\n * Indicates whether the component is currently loading.\n *\n */\n @Input()\n public get isLoading(): boolean {\n return this._isLoading();\n }\n\n /**\n * Sets the loading state of the component.\n *\n * @param v - The loading state to be set.\n */\n public set isLoading(v: boolean) {\n this._isLoading.set(v);\n }\n\n /**\n * @ignore\n */\n private _size = null;\n\n /**\n * Gets the number of items per page in the data pager.\n */\n @Input()\n public get size(): number {\n return this._size || 10;\n }\n\n /**\n * Sets the number of items per page and updates the data pager accordingly.\n *\n * @param {number} v - The new number of items per page.\n */\n public set size(v: number) {\n if (v != this._size) {\n const prevSize = this._size;\n this._size = v;\n if (this._parent) {\n this._parent.pageSize = v;\n }\n const newPage = Math.ceil(this.displayInfo.range.from / this._size) || 1;\n this.commitValue(newPage);\n this._emitChangedEvent(prevSize != null ? true : false);\n }\n }\n\n /**\n * @ignore\n */\n private _total = 0;\n\n /**\n * Gets the total number of items.\n */\n @Input()\n public get total(): number {\n return this._total;\n }\n\n /**\n * Sets the total number of items and triggers an update event if the value changes.\n *\n * @param v - The total number of items to set.\n * If the value is non-positive, it defaults to 0.\n */\n public set total(v: number) {\n const t = v && v > 0 ? v : 0;\n if (t != this._total) {\n this._total = t;\n this._emitChangedEvent();\n }\n }\n\n /**\n * @ignore\n */\n private _totalPages = 0;\n\n /**\n * Gets the total number of pages.\n */\n public get totalPages(): number {\n return this._totalPages;\n }\n\n /**\n * Sets the total number of pages.\n *\n * @param value - The total number of pages to set.\n */\n private set totalPages(value: number) {\n this._totalPages = value;\n }\n\n /**\n * Emitted when the display mode changes.\n * @event\n * An event containing the new display mode.\n */\n @Output()\n public displayModeChange: EventEmitter<string> = new EventEmitter<string>();\n\n /**\n * @ignore\n */\n private _displayMode: AXDataPagerMode = 'full';\n\n /**\n * Gets the current display mode of the data pager.\n */\n @Input()\n public get displayMode(): AXDataPagerMode {\n return this._displayMode;\n }\n\n /**\n * Sets the display mode of the data pager and emits a change event.\n *\n * @param v - The new display mode to set, of type `AXDataPagerMode`.\n */\n public set displayMode(v: AXDataPagerMode) {\n this.setOption({\n name: 'displayMode',\n value: v,\n afterCallback: () => {\n this._emitChangedEvent();\n },\n });\n }\n\n /**\n * Emitted when the data pager's state changes.\n * @event\n * An event containing details about the change.\n */\n @Output()\n onChanged: EventEmitter<AXDataPagerChangedEvent> = new EventEmitter<AXDataPagerChangedEvent>();\n\n /**\n * @ignore\n */\n constructor(\n @Optional()\n @Inject(AXPagedComponent)\n private _parent: AXPagedComponent,\n ) {\n super();\n //\n if (this._parent) {\n this._parent.onPageChanged.subscribe((c) => {\n this.size = this._parent.pageSize;\n this.total = this._parent.totalCount;\n this.value = c.value;\n });\n this.size = this._parent.pageSize;\n this.total = this._parent.totalCount;\n }\n }\n\n /**\n * @ignore\n */\n ngAfterViewInit() {\n this._emitChangedEvent();\n }\n\n /**\n * @ignore\n */\n protected override internalValueChanged(value: any): void {\n this._emitChangedEvent(true);\n }\n\n /**\n * @ignore\n */\n protected override internalGetValue(value: any): number {\n if (!isNumber(value) || !value || this.totalPages == 0) return 1;\n return value > this.totalPages ? this.totalPages : value;\n }\n\n /**\n * @ignore\n */\n private previousDisplayInfo: AXDataPagerData | null;\n\n public get displayInfo(): AXDataPagerData {\n const skip = Math.max(0, (this.value - 1) * this.size);\n const result = {\n page: this.value,\n totalItems: this.total,\n totalPages: this.totalPages,\n range: {\n from: skip + 1,\n to: Math.min(this.value * this.size, this.total),\n },\n skip,\n take: this.size,\n };\n return result;\n }\n\n /**\n * @ignore\n */\n private _emitChangedEvent(u = false): void {\n this.totalPages = Math.ceil(this._total / this.size);\n //\n if (!isEqual(this.previousDisplayInfo, this.displayInfo)) {\n this.onChanged.emit(\n Object.assign(\n {\n component: this,\n isUserInteraction: u,\n htmlElement: this.getHostElement(),\n },\n this.displayInfo,\n ),\n );\n if (this.totalPages > 0) this._parent?.goToPage(this.value);\n //\n this.previousDisplayInfo = cloneDeep(this.displayInfo);\n //\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Navigates to the next page, or to the last page if on the final page.\n * @ignore\n */\n\n goNextPage(): void {\n this.goToPage(Math.min(this.value + 1, this.totalPages));\n }\n\n /**\n * Navigates to the last page.\n * @ignore\n */\n goLastPage(): void {\n this.goToPage(this.totalPages);\n }\n\n /**\n * Navigates to the first page.\n * @ignore\n */\n goFirstPage(): void {\n this.goToPage(1);\n }\n /**\n * Navigates to the previous page, or to the first page if on the initial page.\n * @ignore\n */\n goPrevPage(): void {\n this.goToPage(Math.max(this.value - 1, 1));\n }\n\n /**\n * Navigates to a specified page.\n * @param page - The page number to navigate to.\n * @ignore\n */\n goToPage(page: number): void {\n if (page != this.value) {\n this.commitValue(page, true);\n }\n }\n}\n","@switch(displayMode){\n@case('full'){\n<ax-prefix>\n <ax-data-pager-numeric-selector>\n </ax-data-pager-numeric-selector>\n <ax-data-pager-page-sizes>\n </ax-data-pager-page-sizes>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@case('compact'){\n<ax-prefix>\n <ax-data-pager-prev-buttons>\n </ax-data-pager-prev-buttons>\n <ax-data-pager-input-selector>\n </ax-data-pager-input-selector>\n <ax-data-pager-next-buttons>\n </ax-data-pager-next-buttons>\n</ax-prefix>\n<ax-suffix>\n <ax-data-pager-info>\n </ax-data-pager-info>\n</ax-suffix>\n}\n@default{\n<ng-content select=\"ax-prefix\"></ng-content>\n<ng-content select=\"ax-suffix\"></ng-content>\n}\n}","import { AXButtonModule } from '@acorex/components/button';\nimport { AXButtonGroupModule } from '@acorex/components/button-group';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXDataPagerInfoComponent } from './data-pager-info.component';\nimport { AXDataPagerInputSelectorComponent } from './data-pager-input-selector.component';\nimport { AXDataPagerNextButtonsComponent } from './data-pager-next-buttons.components';\nimport { AXDataPagerNumericSelectorComponent } from './data-pager-numeric-selector.component';\nimport { AXDataPagerPageSizesComponent } from './data-pager-pagesize-dropdown.component';\nimport { AXDataPagerPrevButtonsComponent } from './data-pager-prev-buttons.component';\nimport { AXDataPagerComponent } from './data-pager.component';\n\nconst COMPONENT = [\n AXDataPagerComponent,\n AXDataPagerNextButtonsComponent,\n AXDataPagerPrevButtonsComponent,\n AXDataPagerPageSizesComponent,\n AXDataPagerNumericSelectorComponent,\n AXDataPagerInputSelectorComponent,\n AXDataPagerInfoComponent,\n];\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXButtonModule,\n AXButtonGroupModule,\n AXNumberBoxModule,\n AXDropdownModule,\n AXDecoratorModule,\n AXTranslationModule,\n AXSkeletonModule,\n];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDataPagerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i2.AXDataPagerNextButtonsComponent","i3.AXDataPagerPrevButtonsComponent","i4.AXDataPagerPageSizesComponent","i5.AXDataPagerNumericSelectorComponent","i6.AXDataPagerInputSelectorComponent","i7.AXDataPagerInfoComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkBM,MAAO,uBAAwB,SAAQ,OAAO,CAAA;AAApD,IAAA,WAAA,GAAA;;QACE,IAAK,CAAA,KAAA,GAAiC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;QACzD,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;QACT,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;QACT,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;QACT,IAAU,CAAA,UAAA,GAAG,CAAC,CAAC;QACf,IAAU,CAAA,UAAA,GAAG,CAAC,CAAC;KAChB;AAAA,CAAA;MAGqB,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;kHAA1B,0BAA0B,EAAA,CAAA,CAAA,EAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAD/C,UAAU;;AAiBL,MAAgB,gBAAiB,SAAQ,sBAAsB,CAAA;AAInE;;AAEG;AACH,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AAPA,QAAA,IAAA,CAAA,OAAO,GAA+B,MAAM,CAAC,0BAA0B,CAAC,CAAC;AACzE,QAAA,IAAA,CAAA,aAAa,GAAmB,MAAM,CAAC,cAAc,CAAC,CAAC;;AAQ/D,QAAA,IAAI,CAAC,OAAO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gModule } from '@angular/core';
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Input, HostListener, NgModule } from '@angular/core';
|
3
3
|
import * as i2 from 'angular-imask';
|
4
4
|
import { IMaskDirective, IMaskModule } from 'angular-imask';
|
5
5
|
import { createMask } from 'imask';
|
@@ -20,6 +20,10 @@ import { CommonModule } from '@angular/common';
|
|
20
20
|
class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookComponent) {
|
21
21
|
constructor() {
|
22
22
|
super(...arguments);
|
23
|
+
/**
|
24
|
+
* boolean value that specifies the number box change step by scrolling.
|
25
|
+
*/
|
26
|
+
this.hasWheel = false;
|
23
27
|
/** @ignore */
|
24
28
|
this._padDecimalZeros = false;
|
25
29
|
/**
|
@@ -95,10 +99,10 @@ class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookCo
|
|
95
99
|
return this._minValue;
|
96
100
|
}
|
97
101
|
/**
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
+
* Sets the number of decimal places to be used.
|
103
|
+
* @param {number} v
|
104
|
+
* @defaultvalue 0
|
105
|
+
*/
|
102
106
|
set minValue(v) {
|
103
107
|
this.setOption({
|
104
108
|
name: 'minValue',
|
@@ -126,22 +130,22 @@ class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookCo
|
|
126
130
|
this._updateMask();
|
127
131
|
}
|
128
132
|
/**
|
129
|
-
|
130
|
-
|
133
|
+
* Handles internal option changes and updates the mask accordingly.
|
134
|
+
*/
|
131
135
|
internalOptionChanged() {
|
132
136
|
this._updateMask();
|
133
137
|
}
|
134
138
|
/**
|
135
|
-
|
136
|
-
|
139
|
+
* Resets the input element to its default state and calls the parent class reset method.
|
140
|
+
*/
|
137
141
|
reset() {
|
138
142
|
this.input.nativeElement.value = null;
|
139
143
|
super.reset(true);
|
140
144
|
}
|
141
145
|
/**
|
142
|
-
|
143
|
-
|
144
|
-
|
146
|
+
* Ensures the value is within the min-max range, returning the default if null.
|
147
|
+
* @param value
|
148
|
+
*/
|
145
149
|
internalSetValue(value) {
|
146
150
|
// || (value == 0 && !this._maskObj.value)
|
147
151
|
if (value == null) {
|
@@ -228,8 +232,8 @@ class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookCo
|
|
228
232
|
v == 1 ? this.stepUp(true) : this.stepDown(true);
|
229
233
|
}
|
230
234
|
/**
|
231
|
-
|
232
|
-
|
235
|
+
* Increases the value by the step amount, ensuring it's at least the minimum value.
|
236
|
+
*/
|
233
237
|
stepUp(u = false) {
|
234
238
|
if (!this.value) {
|
235
239
|
this.commitValue(Math.max(this.minValue, 0), u);
|
@@ -237,8 +241,8 @@ class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookCo
|
|
237
241
|
this.commitValue(this.value + toNumber(this.step), u);
|
238
242
|
}
|
239
243
|
/**
|
240
|
-
|
241
|
-
|
244
|
+
* Decreases the value by the step amount, ensuring it's at least the minimum value.
|
245
|
+
*/
|
242
246
|
stepDown(u = false) {
|
243
247
|
if (!this.value) {
|
244
248
|
this.commitValue(Math.max(this.minValue, 0), u);
|
@@ -246,8 +250,8 @@ class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookCo
|
|
246
250
|
this.commitValue(this.value - toNumber(this.step), u);
|
247
251
|
}
|
248
252
|
/**
|
249
|
-
|
250
|
-
|
253
|
+
* Increases the value by the decimal step amount, using 'auto' or a custom step value.
|
254
|
+
*/
|
251
255
|
decimalStepUp(u = false) {
|
252
256
|
if (!this.value) {
|
253
257
|
this.commitValue(Math.max(this.minValue, 0), u);
|
@@ -255,16 +259,33 @@ class AXNumberBoxComponent extends classes((MXInputBaseValueComponent), MXLookCo
|
|
255
259
|
this.commitValue(this.value + toNumber(this.decimalStep == 'auto' ? 1 / Math.pow(10, this.decimals) : this.decimalStep), u);
|
256
260
|
}
|
257
261
|
/**
|
258
|
-
|
259
|
-
|
262
|
+
* Decreases the value by the decimal step amount, using 'auto' or a custom step value.
|
263
|
+
*/
|
260
264
|
decimalStepDown(u = false) {
|
261
265
|
if (!this.value) {
|
262
266
|
this.commitValue(Math.max(this.minValue, 0), u);
|
263
267
|
}
|
264
268
|
this.commitValue(this.value - toNumber(this.decimalStep == 'auto' ? 1 / Math.pow(10, this.decimals) : this.decimalStep), u);
|
265
269
|
}
|
270
|
+
// @HostBinding('class')
|
271
|
+
// get __hostClass(): string {
|
272
|
+
// return `ax-editor-container ax-look-${this.look} ${this.disabled ? 'ax-state-disabled' : ''}`;
|
273
|
+
// }
|
274
|
+
onWheel(event) {
|
275
|
+
if (this.hasWheel) {
|
276
|
+
event.preventDefault();
|
277
|
+
if (!this.disabled && !this.readonly) {
|
278
|
+
if (event.deltaY > 0) {
|
279
|
+
this.commitValue(this.value - this.step);
|
280
|
+
}
|
281
|
+
else {
|
282
|
+
this.commitValue(this.value + this.step);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
266
287
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNumberBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
267
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", placeholder: "placeholder", value: "value", state: "state", name: "name", id: "id", look: "look", thousandsSeparator: "thousandsSeparator", padDecimalZeros: "padDecimalZeros", step: "step", decimals: "decimals", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue", classNames: ["class", "classNames"] }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange", onKeyDown: "onKeyDown", onKeyUp: "onKeyUp", onKeyPress: "onKeyPress" }, providers: [
|
288
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", placeholder: "placeholder", value: "value", state: "state", name: "name", id: "id", look: "look", hasWheel: "hasWheel", thousandsSeparator: "thousandsSeparator", padDecimalZeros: "padDecimalZeros", step: "step", decimals: "decimals", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue", classNames: ["class", "classNames"] }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange", onKeyDown: "onKeyDown", onKeyUp: "onKeyUp", onKeyPress: "onKeyPress" }, host: { listeners: { "wheel": "onWheel($event)" } }, providers: [
|
268
289
|
{ provide: AXComponent, useExisting: AXNumberBoxComponent },
|
269
290
|
{ provide: AXFocusableComponent, useExisting: AXNumberBoxComponent },
|
270
291
|
{ provide: AXClearableComponent, useExisting: AXNumberBoxComponent },
|
@@ -303,14 +324,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
303
324
|
}], propDecorators: { input: [{
|
304
325
|
type: ViewChild,
|
305
326
|
args: ['input']
|
327
|
+
}], hasWheel: [{
|
328
|
+
type: Input
|
306
329
|
}], thousandsSeparator: [{
|
307
330
|
type: Input
|
308
331
|
}], padDecimalZeros: [{
|
309
332
|
type: Input
|
310
333
|
}],
|
311
334
|
/**
|
312
|
-
|
313
|
-
|
335
|
+
* Defines the increment step value.
|
336
|
+
*/
|
314
337
|
step: [{
|
315
338
|
type: Input
|
316
339
|
}], decimals: [{
|
@@ -324,9 +347,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
324
347
|
type: Input
|
325
348
|
}],
|
326
349
|
/**
|
327
|
-
|
328
|
-
|
329
|
-
|
350
|
+
* Indicates whether spin buttons are displayed.
|
351
|
+
* @defaultvalue true
|
352
|
+
*/
|
330
353
|
showSpinButtons: [{
|
331
354
|
type: Input
|
332
355
|
}], minValue: [{
|
@@ -335,14 +358,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
335
358
|
type: Input
|
336
359
|
}],
|
337
360
|
/**
|
338
|
-
|
339
|
-
|
361
|
+
* CSS classes to apply to the component.
|
362
|
+
*/
|
340
363
|
classNames: [{
|
341
364
|
type: Input,
|
342
365
|
args: ['class']
|
343
366
|
}], _maskDirective: [{
|
344
367
|
type: ViewChild,
|
345
368
|
args: [IMaskDirective]
|
369
|
+
}], onWheel: [{
|
370
|
+
type: HostListener,
|
371
|
+
args: ['wheel', ['$event']]
|
346
372
|
}] } });
|
347
373
|
|
348
374
|
const COMPONENT = [AXNumberBoxComponent];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-number-box.mjs","sources":["../../../../libs/components/number-box/src/lib/number-box.component.ts","../../../../libs/components/number-box/src/lib/number-box.component.html","../../../../libs/components/number-box/src/lib/number-box.module.ts","../../../../libs/components/number-box/src/acorex-components-number-box.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n ViewChild,\n ViewEncapsulation,\n forwardRef,\n} from '@angular/core';\nimport { IMaskDirective } from 'angular-imask';\nimport { MaskedNumber, createMask } from 'imask';\n\nimport {\n AXClearableComponent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { isEmpty, toNumber } from 'lodash-es';\nimport { classes } from 'polytype';\n\n/**\n * The NumberBox is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-number-box',\n templateUrl: './number-box.component.html',\n styleUrls: ['./number-box.component.scss'],\n inputs: ['disabled', 'readonly', 'tabIndex', 'placeholder', 'value', 'state', 'name', 'id', 'look'],\n outputs: [\n 'valueChange',\n 'stateChange',\n 'onValueChanged',\n 'onBlur',\n 'onFocus',\n 'readonlyChange',\n 'disabledChange',\n 'onKeyDown',\n 'onKeyUp',\n 'onKeyPress',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n\n providers: [\n { provide: AXComponent, useExisting: AXNumberBoxComponent },\n { provide: AXFocusableComponent, useExisting: AXNumberBoxComponent },\n { provide: AXClearableComponent, useExisting: AXNumberBoxComponent },\n { provide: AXValuableComponent, useExisting: AXNumberBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXNumberBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXNumberBoxComponent extends classes(MXInputBaseValueComponent<number>, MXLookComponent) implements AfterViewInit {\n\n /** @ignore */\n @ViewChild('input') input: ElementRef<HTMLInputElement>;\n\n /** @ignore */\n private _thousandsSeparator: string;\n\n /**\n * A character value that specifies the separator character.\n */\n @Input()\n\n/**\n * Gets the thousands separator used in the formatting.\n * @param {string} value\n */\n public get thousandsSeparator(): string {\n return this._thousandsSeparator;\n }\n\n/**\n * Sets the thousands separator for formatting.\n * @param {string} v\n */\n public set thousandsSeparator(v: string) {\n this.setOption({\n name: 'thousandsSeparator',\n value: v ?? '',\n });\n }\n\n /** @ignore */\n private _padDecimalZeros = false;\n /**\n * A character value that specifies the separator character.\n */\n @Input()\n\n/**\n * Gets whether decimal zeros are padded.\n * @param {boolean} value\n */\n public get padDecimalZeros(): boolean {\n return this._padDecimalZeros;\n }\n\n/**\n * Sets whether decimal zeros should be padded.\n * @param {boolean} v\n */\n public set padDecimalZeros(v: boolean) {\n this.setOption({\n name: 'padDecimalZeros',\n value: v,\n });\n }\n\n /**\n * Specifies the value that is used to increment or decrement the **Integer** part of number\n */\n @Input()\n\n /**\n * Defines the increment step value.\n */\n step = 1;\n\n /** @ignore */\n private _decimals = 0;\n /**\n * Specifies the number of decimals that the user can enter\n */\n @Input()\n\n/**\n * Gets the number of decimal places to be used.\n */\n public get decimals(): number {\n return this._decimals;\n }\n\n/**\n * Sets the decimal places; defaults to 0 if not provided.\n */\n public set decimals(v: number) {\n this.setOption({\n name: 'decimals',\n value: v ?? 0,\n });\n }\n\n /**\n * Specifies the value that is used to increment or decrement the **Deciaml** part of number\n */\n @Input()\n\n/**\n * Defines the step size for decimal values.\n * @defaultvalue 'auto'\n */\n decimalStep: number | 'auto' = 'auto';\n\n /**\n * Specifies whether the Up and Down spin buttons will be rendered or not\n */\n @Input()\n\n /**\n * Indicates whether spin buttons are displayed.\n * @defaultvalue true\n */\n showSpinButtons = true;\n\n /** @ignore */\n private _minValue: number = Number.MIN_SAFE_INTEGER;\n /**\n * Specifies the smallest value that is valid\n */\n @Input()\n\n /**\n * Gets the number of decimal places used.\n * @param {number} value\n */\n public get minValue(): number {\n return this._minValue;\n }\n\n /**\n * Sets the number of decimal places to be used.\n * @param {number} v\n * @defaultvalue 0\n */\n public set minValue(v: number) {\n this.setOption({\n name: 'minValue',\n value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,\n });\n }\n\n /** @ignore */\n private _maxValue: number = Number.MAX_SAFE_INTEGER;\n\n /**\n * Specifies the greatest value that is valid\n */\n @Input()\n\n /**\n * Returns the maximum allowable value.\n */\n public get maxValue(): number {\n return this._maxValue;\n }\n\n/**\n * Sets the maximum allowable value, defaulting to `Number.MAX_SAFE_INTEGER` if null.\n * @param v\n */\n public set maxValue(v: number) {\n this.setOption({\n name: 'maxValue',\n value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,\n });\n }\n\n /**\n * CSS classes to apply to the component.\n * @param classNames\n */\n @Input('class')\n\n /**\n * CSS classes to apply to the component.\n */\n classNames: string;\n\n /**\n * @ignore\n */\n _maskObj: MaskedNumber;\n\n /** @ignore */\n @ViewChild(IMaskDirective)\n\n /** @ignore */\n private _maskDirective: IMaskDirective<MaskedNumber>;\n\n /** @ignore */\n ngAfterViewInit(): void {\n this._updateMask();\n }\n\n /**\n * Handles internal option changes and updates the mask accordingly.\n */\n override internalOptionChanged(): void {\n this._updateMask();\n }\n\n /**\n * Resets the input element to its default state and calls the parent class reset method.\n */\n override reset(): void {\n this.input.nativeElement.value = null;\n super.reset(true);\n }\n\n /**\n * Ensures the value is within the min-max range, returning the default if null.\n * @param value\n */\n override internalSetValue(value: any): number {\n // || (value == 0 && !this._maskObj.value)\n if (value == null) {\n return this.defaultValue;\n }\n const v = toNumber(value);\n if (v < this.minValue) return this.minValue;\n if (v > this.maxValue) return this.maxValue;\n return v;\n }\n\n /** @ignore */\n private _updateMask() {\n if (!this._maskObj) {\n this._maskObj = createMask({\n mask: Number,\n min: this.minValue,\n max: this.maxValue,\n thousandsSeparator: this.thousandsSeparator || '',\n scale: this.decimals,\n radix: '.',\n padFractionalZeros: this.decimals > 0 && this.padDecimalZeros,\n });\n\n this._maskObj.format = (v: number, m) => {\n return !isNaN(v)\n ? v.toLocaleString('en-US', {\n useGrouping: false,\n maximumFractionDigits: 20,\n })\n : '';\n };\n } else {\n this._maskObj.updateOptions({\n min: this.minValue,\n max: this.maxValue,\n thousandsSeparator: this.thousandsSeparator || '',\n scale: this.decimals,\n radix: '.',\n padFractionalZeros: this.decimals > 0 && this.padDecimalZeros,\n });\n }\n this._maskDirective?.maskRef?.updateValue();\n this._maskDirective?.maskRef?.updateControl();\n }\n\n /** @ignore */\n _handleModelChange(value: number) {\n if (value == 0 && isEmpty(this.input?.nativeElement?.value)) {\n value = null;\n }\n\n this.commitValue(value, true);\n }\n\n /** @ignore */\n _handleOnKeydownEvent(e: KeyboardEvent) {\n if (this.disabled || this.readonly) return;\n const ignore = () => {\n e.preventDefault();\n e.stopPropagation();\n };\n const input = e.target as HTMLInputElement;\n const valStr = input.value;\n const decimalPointIndex = valStr.indexOf('.');\n const _cursorPos = input.selectionStart!;\n\n if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {\n if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {\n e.key === 'ArrowDown' ? this.decimalStepDown(true) : this.decimalStepUp(true);\n } else {\n e.key === 'ArrowDown' ? this.stepDown(true) : this.stepUp(true);\n }\n ignore();\n setTimeout(() => {\n input.setSelectionRange(_cursorPos, _cursorPos);\n }, 5);\n }\n super.emitOnKeydownEvent(e);\n }\n\n /** @ignore */\n protected _handleUpDownClick(v: -1 | 1) {\n if (this.disabled || this.readonly) return;\n v == 1 ? this.stepUp(true) : this.stepDown(true);\n }\n\n /**\n * Increases the value by the step amount, ensuring it's at least the minimum value.\n */\n stepUp(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(this.value + toNumber(this.step), u);\n }\n\n /**\n * Decreases the value by the step amount, ensuring it's at least the minimum value.\n */\n stepDown(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(this.value - toNumber(this.step), u);\n }\n\n /**\n * Increases the value by the decimal step amount, using 'auto' or a custom step value.\n */\n decimalStepUp(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(this.value + toNumber(this.decimalStep == 'auto' ? 1 / Math.pow(10, this.decimals) : this.decimalStep), u);\n }\n\n /**\n * Decreases the value by the decimal step amount, using 'auto' or a custom step value.\n */\n decimalStepDown(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(this.value - toNumber(this.decimalStep == 'auto' ? 1 / Math.pow(10, this.decimals) : this.decimalStep), u);\n }\n\n // @HostBinding('class')\n // get __hostClass(): string {\n // return `ax-editor-container ax-look-${this.look} ${this.disabled ? 'ax-state-disabled' : ''}`;\n // }\n}\n","<div class=\"ax-editor-container ax-look-{{look}} {{classNames}}\" [class.ax-state-disabled]=\"disabled\">\n <ng-content select=\"ax-prefix\"> </ng-content>\n <input #input class=\"ax-input\" type=\"text\" [id]=\"id\" [name]=\"name\" [attr.placeholder]=\"placeholder\"\n [attr.autocomplete]=\"'off'\" [imask]=\"_maskObj\" [unmask]=\"'typed'\" [attr.min]=\"minValue\" [attr.max]=\"maxValue\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"value\" (ngModelChange)=\"_handleModelChange($event)\"\n (keydown)=\"_handleOnKeydownEvent($event)\" (keyup)=\"emitOnKeyupEvent($event)\"\n (keypress)=\"emitOnKeypressEvent($event)\" (focus)=\"emitOnFocusEvent($event)\" (blur)=\"emitOnBlurEvent($event)\" />\n @if(input.value && !disabled && !readonly){\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n @if(showSpinButtons){\n <div class=\"ax-number-box-control\">\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [class.ax-state-disabled]=\"disabled\"\n (click)=\"_handleUpDownClick(1)\" tabindex=\"-1\" [disabled]=\"disabled\"><span\n class=\"ax-icon ax-icon-chevron-up ax-arrow-button \"></span></button>\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [class.ax-state-disabled]=\"disabled\"\n (click)=\"_handleUpDownClick(-1)\" [disabled]=\"disabled\"><span\n class=\"ax-icon ax-icon-chevron-down ax-arrow-button \"></span></button>\n </div>\n\n }\n\n <ng-content select=\"ax-suffix\"> </ng-content>\n</div>\n<ng-content select=\"ax-validation-rule\"> </ng-content>\n<div class=\"ax-error-container\"></div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { IMaskModule } from 'angular-imask';\nimport { AXNumberBoxComponent } from './number-box.component';\n\nconst COMPONENT = [AXNumberBoxComponent];\nconst MODULES = [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule, IMaskModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXNumberBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAyBA;;;;AAIG;AAiCG,MAAO,oBAAqB,SAAQ,OAAO,EAAC,yBAAiC,GAAE,eAAe,CAAC,CAAA;AAhCrG,IAAA,WAAA,GAAA;;;QAiEU,IAAgB,CAAA,gBAAA,GAAG,KAAK,CAAC;AAyBjC;;AAEG;QAMH,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;;QAGD,IAAS,CAAA,SAAA,GAAG,CAAC,CAAC;AAuBtB;;AAEG;QAOH,IAAW,CAAA,WAAA,GAAoB,MAAM,CAAC;AAEtC;;AAEG;QAOH,IAAe,CAAA,eAAA,GAAG,IAAI,CAAC;;AAGf,QAAA,IAAA,CAAA,SAAS,GAAW,MAAM,CAAC,gBAAgB,CAAC;;AA2B5C,QAAA,IAAA,CAAA,SAAS,GAAW,MAAM,CAAC,gBAAgB,CAAC;AA0MrD,KAAA;AAhVC;;AAEG;AACH,IAAA,IAMW,kBAAkB,GAAA;QAC3B,OAAO,IAAI,CAAC,mBAAmB,CAAC;KACjC;AAEH;;;AAGG;IACD,IAAW,kBAAkB,CAAC,CAAS,EAAA;QACrC,IAAI,CAAC,SAAS,CAAC;AACb,YAAA,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,IAAI,EAAE;AACf,SAAA,CAAC,CAAC;KACJ;AAID;;AAEG;AACH,IAAA,IAMW,eAAe,GAAA;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC;KAC9B;AAEH;;;AAGG;IACD,IAAW,eAAe,CAAC,CAAU,EAAA;QACnC,IAAI,CAAC,SAAS,CAAC;AACb,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,KAAK,EAAE,CAAC;AACT,SAAA,CAAC,CAAC;KACJ;AAcD;;AAEG;AACH,IAAA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UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-number-box.mjs","sources":["../../../../libs/components/number-box/src/lib/number-box.component.ts","../../../../libs/components/number-box/src/lib/number-box.component.html","../../../../libs/components/number-box/src/lib/number-box.module.ts","../../../../libs/components/number-box/src/acorex-components-number-box.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostListener,\n Input,\n ViewChild,\n ViewEncapsulation,\n forwardRef,\n} from '@angular/core';\nimport { IMaskDirective } from 'angular-imask';\nimport { MaskedNumber, createMask } from 'imask';\n\nimport {\n AXClearableComponent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { isEmpty, toNumber } from 'lodash-es';\nimport { classes } from 'polytype';\n\n/**\n * The NumberBox is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-number-box',\n templateUrl: './number-box.component.html',\n styleUrls: ['./number-box.component.scss'],\n inputs: ['disabled', 'readonly', 'tabIndex', 'placeholder', 'value', 'state', 'name', 'id', 'look'],\n outputs: [\n 'valueChange',\n 'stateChange',\n 'onValueChanged',\n 'onBlur',\n 'onFocus',\n 'readonlyChange',\n 'disabledChange',\n 'onKeyDown',\n 'onKeyUp',\n 'onKeyPress',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n\n providers: [\n { provide: AXComponent, useExisting: AXNumberBoxComponent },\n { provide: AXFocusableComponent, useExisting: AXNumberBoxComponent },\n { provide: AXClearableComponent, useExisting: AXNumberBoxComponent },\n { provide: AXValuableComponent, useExisting: AXNumberBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXNumberBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXNumberBoxComponent\n extends classes(MXInputBaseValueComponent<number>, MXLookComponent)\n implements AfterViewInit\n{\n /** @ignore */\n @ViewChild('input') input: ElementRef<HTMLInputElement>;\n\n /** @ignore */\n private _thousandsSeparator: string;\n /**\n * boolean value that specifies the number box change step by scrolling.\n */\n @Input()\n hasWheel = false;\n\n /**\n * A character value that specifies the separator character.\n */\n @Input()\n\n /**\n * Gets the thousands separator used in the formatting.\n * @param {string} value\n */\n public get thousandsSeparator(): string {\n return this._thousandsSeparator;\n }\n\n /**\n * Sets the thousands separator for formatting.\n * @param {string} v\n */\n public set thousandsSeparator(v: string) {\n this.setOption({\n name: 'thousandsSeparator',\n value: v ?? '',\n });\n }\n\n /** @ignore */\n private _padDecimalZeros = false;\n /**\n * A character value that specifies the separator character.\n */\n @Input()\n\n /**\n * Gets whether decimal zeros are padded.\n * @param {boolean} value\n */\n public get padDecimalZeros(): boolean {\n return this._padDecimalZeros;\n }\n\n /**\n * Sets whether decimal zeros should be padded.\n * @param {boolean} v\n */\n public set padDecimalZeros(v: boolean) {\n this.setOption({\n name: 'padDecimalZeros',\n value: v,\n });\n }\n\n /**\n * Specifies the value that is used to increment or decrement the **Integer** part of number\n */\n @Input()\n\n /**\n * Defines the increment step value.\n */\n step = 1;\n\n /** @ignore */\n private _decimals = 0;\n /**\n * Specifies the number of decimals that the user can enter\n */\n @Input()\n\n /**\n * Gets the number of decimal places to be used.\n */\n public get decimals(): number {\n return this._decimals;\n }\n\n /**\n * Sets the decimal places; defaults to 0 if not provided.\n */\n public set decimals(v: number) {\n this.setOption({\n name: 'decimals',\n value: v ?? 0,\n });\n }\n\n /**\n * Specifies the value that is used to increment or decrement the **Deciaml** part of number\n */\n @Input()\n\n /**\n * Defines the step size for decimal values.\n * @defaultvalue 'auto'\n */\n decimalStep: number | 'auto' = 'auto';\n\n /**\n * Specifies whether the Up and Down spin buttons will be rendered or not\n */\n @Input()\n\n /**\n * Indicates whether spin buttons are displayed.\n * @defaultvalue true\n */\n showSpinButtons = true;\n\n /** @ignore */\n private _minValue: number = Number.MIN_SAFE_INTEGER;\n /**\n * Specifies the smallest value that is valid\n */\n @Input()\n\n /**\n * Gets the number of decimal places used.\n * @param {number} value\n */\n public get minValue(): number {\n return this._minValue;\n }\n\n /**\n * Sets the number of decimal places to be used.\n * @param {number} v\n * @defaultvalue 0\n */\n public set minValue(v: number) {\n this.setOption({\n name: 'minValue',\n value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,\n });\n }\n\n /** @ignore */\n private _maxValue: number = Number.MAX_SAFE_INTEGER;\n\n /**\n * Specifies the greatest value that is valid\n */\n @Input()\n\n /**\n * Returns the maximum allowable value.\n */\n public get maxValue(): number {\n return this._maxValue;\n }\n\n /**\n * Sets the maximum allowable value, defaulting to `Number.MAX_SAFE_INTEGER` if null.\n * @param v\n */\n public set maxValue(v: number) {\n this.setOption({\n name: 'maxValue',\n value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,\n });\n }\n\n /**\n * CSS classes to apply to the component.\n * @param classNames\n */\n @Input('class')\n\n /**\n * CSS classes to apply to the component.\n */\n classNames: string;\n\n /**\n * @ignore\n */\n _maskObj: MaskedNumber;\n\n /** @ignore */\n @ViewChild(IMaskDirective)\n\n /** @ignore */\n private _maskDirective: IMaskDirective<MaskedNumber>;\n\n /** @ignore */\n ngAfterViewInit(): void {\n this._updateMask();\n }\n\n /**\n * Handles internal option changes and updates the mask accordingly.\n */\n override internalOptionChanged(): void {\n this._updateMask();\n }\n\n /**\n * Resets the input element to its default state and calls the parent class reset method.\n */\n override reset(): void {\n this.input.nativeElement.value = null;\n super.reset(true);\n }\n\n /**\n * Ensures the value is within the min-max range, returning the default if null.\n * @param value\n */\n override internalSetValue(value: any): number {\n // || (value == 0 && !this._maskObj.value)\n if (value == null) {\n return this.defaultValue;\n }\n const v = toNumber(value);\n if (v < this.minValue) return this.minValue;\n if (v > this.maxValue) return this.maxValue;\n return v;\n }\n\n /** @ignore */\n private _updateMask() {\n if (!this._maskObj) {\n this._maskObj = createMask({\n mask: Number,\n min: this.minValue,\n max: this.maxValue,\n thousandsSeparator: this.thousandsSeparator || '',\n scale: this.decimals,\n radix: '.',\n padFractionalZeros: this.decimals > 0 && this.padDecimalZeros,\n });\n\n this._maskObj.format = (v: number, m) => {\n return !isNaN(v)\n ? v.toLocaleString('en-US', {\n useGrouping: false,\n maximumFractionDigits: 20,\n })\n : '';\n };\n } else {\n this._maskObj.updateOptions({\n min: this.minValue,\n max: this.maxValue,\n thousandsSeparator: this.thousandsSeparator || '',\n scale: this.decimals,\n radix: '.',\n padFractionalZeros: this.decimals > 0 && this.padDecimalZeros,\n });\n }\n this._maskDirective?.maskRef?.updateValue();\n this._maskDirective?.maskRef?.updateControl();\n }\n\n /** @ignore */\n _handleModelChange(value: number) {\n if (value == 0 && isEmpty(this.input?.nativeElement?.value)) {\n value = null;\n }\n\n this.commitValue(value, true);\n }\n\n /** @ignore */\n _handleOnKeydownEvent(e: KeyboardEvent) {\n if (this.disabled || this.readonly) return;\n const ignore = () => {\n e.preventDefault();\n e.stopPropagation();\n };\n const input = e.target as HTMLInputElement;\n const valStr = input.value;\n const decimalPointIndex = valStr.indexOf('.');\n const _cursorPos = input.selectionStart!;\n\n if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {\n if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {\n e.key === 'ArrowDown' ? this.decimalStepDown(true) : this.decimalStepUp(true);\n } else {\n e.key === 'ArrowDown' ? this.stepDown(true) : this.stepUp(true);\n }\n ignore();\n setTimeout(() => {\n input.setSelectionRange(_cursorPos, _cursorPos);\n }, 5);\n }\n super.emitOnKeydownEvent(e);\n }\n\n /** @ignore */\n protected _handleUpDownClick(v: -1 | 1) {\n if (this.disabled || this.readonly) return;\n v == 1 ? this.stepUp(true) : this.stepDown(true);\n }\n\n /**\n * Increases the value by the step amount, ensuring it's at least the minimum value.\n */\n stepUp(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(this.value + toNumber(this.step), u);\n }\n\n /**\n * Decreases the value by the step amount, ensuring it's at least the minimum value.\n */\n stepDown(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(this.value - toNumber(this.step), u);\n }\n\n /**\n * Increases the value by the decimal step amount, using 'auto' or a custom step value.\n */\n decimalStepUp(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(\n this.value + toNumber(this.decimalStep == 'auto' ? 1 / Math.pow(10, this.decimals) : this.decimalStep),\n u,\n );\n }\n\n /**\n * Decreases the value by the decimal step amount, using 'auto' or a custom step value.\n */\n decimalStepDown(u = false) {\n if (!this.value) {\n this.commitValue(Math.max(this.minValue, 0), u);\n }\n this.commitValue(\n this.value - toNumber(this.decimalStep == 'auto' ? 1 / Math.pow(10, this.decimals) : this.decimalStep),\n u,\n );\n }\n\n // @HostBinding('class')\n // get __hostClass(): string {\n // return `ax-editor-container ax-look-${this.look} ${this.disabled ? 'ax-state-disabled' : ''}`;\n // }\n @HostListener('wheel', ['$event'])\n onWheel(event: WheelEvent) {\n if (this.hasWheel) {\n event.preventDefault();\n if (!this.disabled && !this.readonly) {\n if (event.deltaY > 0) {\n this.commitValue(this.value - this.step);\n } else {\n this.commitValue(this.value + this.step);\n }\n }\n }\n }\n}\n","<div class=\"ax-editor-container ax-look-{{look}} {{classNames}}\" [class.ax-state-disabled]=\"disabled\">\n <ng-content select=\"ax-prefix\"> </ng-content>\n <input #input class=\"ax-input\" type=\"text\" [id]=\"id\" [name]=\"name\" [attr.placeholder]=\"placeholder\"\n [attr.autocomplete]=\"'off'\" [imask]=\"_maskObj\" [unmask]=\"'typed'\" [attr.min]=\"minValue\" [attr.max]=\"maxValue\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"value\" (ngModelChange)=\"_handleModelChange($event)\"\n (keydown)=\"_handleOnKeydownEvent($event)\" (keyup)=\"emitOnKeyupEvent($event)\"\n (keypress)=\"emitOnKeypressEvent($event)\" (focus)=\"emitOnFocusEvent($event)\" (blur)=\"emitOnBlurEvent($event)\" />\n @if(input.value && !disabled && !readonly){\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n @if(showSpinButtons){\n <div class=\"ax-number-box-control\">\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [class.ax-state-disabled]=\"disabled\"\n (click)=\"_handleUpDownClick(1)\" tabindex=\"-1\" [disabled]=\"disabled\"><span\n class=\"ax-icon ax-icon-chevron-up ax-arrow-button \"></span></button>\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [class.ax-state-disabled]=\"disabled\"\n (click)=\"_handleUpDownClick(-1)\" [disabled]=\"disabled\"><span\n class=\"ax-icon ax-icon-chevron-down ax-arrow-button \"></span></button>\n </div>\n\n }\n\n <ng-content select=\"ax-suffix\"> </ng-content>\n</div>\n<ng-content select=\"ax-validation-rule\"> </ng-content>\n<div class=\"ax-error-container\"></div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { IMaskModule } from 'angular-imask';\nimport { AXNumberBoxComponent } from './number-box.component';\n\nconst COMPONENT = [AXNumberBoxComponent];\nconst MODULES = [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule, IMaskModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXNumberBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA0BA;;;;AAIG;AAiCG,MAAO,oBACX,SAAQ,OAAO,EAAC,yBAAiC,GAAE,eAAe,CAAC,CAAA;AAjCrE,IAAA,WAAA,GAAA;;AAyCE;;AAEG;QAEH,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;;QA2BT,IAAgB,CAAA,gBAAA,GAAG,KAAK,CAAC;AAyBjC;;AAEG;QAMH,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;;QAGD,IAAS,CAAA,SAAA,GAAG,CAAC,CAAC;AAuBtB;;AAEG;QAOH,IAAW,CAAA,WAAA,GAAoB,MAAM,CAAC;AAEtC;;AAEG;QAOH,IAAe,CAAA,eAAA,GAAG,IAAI,CAAC;;AAGf,QAAA,IAAA,CAAA,SAAS,GAAW,MAAM,CAAC,gBAAgB,CAAC;;AA2B5C,QAAA,IAAA,CAAA,SAAS,GAAW,MAAM,CAAC,gBAAgB,CAAC;AA6NrD,KAAA;AAnWC;;AAEG;AACH,IAAA,IAMW,kBAAkB,GAAA;QAC3B,OAAO,IAAI,CAAC,mBAAmB,CAAC;KACjC;AAED;;;AAGG;IACH,IAAW,kBAAkB,CAAC,CAAS,EAAA;QACrC,IAAI,CAAC,SAAS,CAAC;AACb,YAAA,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,IAAI,EAAE;AACf,SAAA,CAAC,CAAC;KACJ;AAID;;AAEG;AACH,IAAA,IAMW,eAAe,GAAA;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC;KAC9B;AAED;;;AAGG;IACH,IAAW,eAAe,CAAC,CAAU,EAAA;QACnC,IAAI,CAAC,SAAS,CAAC;AACb,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,KAAK,EAAE,CAAC;AACT,SAAA,CAAC,CAAC;KACJ;AAcD;;A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