@acorex/components 19.5.0 → 19.6.1
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/bottom-navigation/lib/bottom-navigation.component.d.ts +5 -5
- package/fesm2022/acorex-components-bottom-navigation.mjs +6 -6
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +1 -1
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +30 -26
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +406 -128
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +2 -2
- package/fesm2022/acorex-components-otp.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-side-menu.mjs +2 -2
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +8 -6
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +2 -2
- package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
- package/form/lib/form.component.d.ts +4 -2
- package/map/index.d.ts +1 -0
- package/map/lib/map.component.d.ts +63 -12
- package/map/lib/map.service.d.ts +124 -19
- package/map/lib/map.type.d.ts +20 -0
- package/package.json +1 -5
- package/side-menu/lib/side-menu.component.d.ts +1 -1
- package/step-wizard/lib/step-wizard-item/step-wizard-item.component.d.ts +2 -2
- package/step-wizard/lib/step-wizard.component.d.ts +2 -1
- package/fesm2022/acorex-components-nav.mjs +0 -101
- package/fesm2022/acorex-components-nav.mjs.map +0 -1
- package/nav/README.md +0 -3
- package/nav/index.d.ts +0 -3
- package/nav/lib/nav-item/nav-item.component.d.ts +0 -37
- package/nav/lib/nav.component.d.ts +0 -10
- package/nav/lib/nav.module.d.ts +0 -10
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-step-wizard.mjs","sources":["../../../../libs/components/step-wizard/src/lib/step-wizard-item/step-wizard-item.component.ts","../../../../libs/components/step-wizard/src/lib/step-wizard-item/step-wizard-item.component.html","../../../../libs/components/step-wizard/src/lib/step-wizard.directive.ts","../../../../libs/components/step-wizard/src/lib/step-wizard.component.ts","../../../../libs/components/step-wizard/src/lib/step-wizard.module.ts","../../../../libs/components/step-wizard/src/acorex-components-step-wizard.ts"],"sourcesContent":["import { MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { AXStepWizardLook, AXStepWizardState } from '../step-wizard.class';\n@Component({\n selector: 'ax-step-wizard-item',\n inputs: ['disabled', 'color'],\n templateUrl: './step-wizard-item.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXStepWizardItemComponent extends MXBaseComponent {\n step = input(1);\n label = input('');\n description = input('');\n state = input<AXStepWizardState>('clear');\n customTemplate = input<TemplateRef<unknown>>();\n\n active = model<boolean>(false);\n passed = model<boolean>(false);\n look = model<AXStepWizardLook>();\n\n stepId = signal<string>('');\n\n className = computed<string>(() =>\n this.passed() ? 'ax-state-passed' : this.active() ? 'ax-state-active' : '',\n );\n\n template = viewChild<TemplateRef<unknown>>('content');\n\n @Input()\n public override set id(v: string) {\n this.stepId.set(v);\n }\n\n @HostBinding('class')\n private get __hostClass(): string[] {\n return [this.className(), `ax-state-${this.state()}`];\n }\n}\n","@if (look() === 'rounded-icon' || look() === 'circular-icon' || look() === 'circular') {\n <div class=\"ax-step-wizard-item-icon-container\">\n <div class=\"ax-step-wizard-item-icon\">\n @if (state() === 'error' && active()) {\n <div class=\"ax-icon ax-icon-close\"></div>\n } @else if (state() === 'success' && active()) {\n <div class=\"ax-icon ax-icon-check\"></div>\n } @else if (state() === 'warning' && active()) {\n <div class=\"ax-icon ax-icon-warning\"></div>\n }\n <ng-container *ngTemplateOutlet=\"icon\"> </ng-container>\n </div>\n </div>\n <div class=\"ax-step-wizard-item-title\">\n @if (label()) {\n <p>{{ label() }}</p>\n }\n @if (description()) {\n <span [class.ax-visible]=\"description()\">{{ description() }}</span>\n }\n </div>\n} @else if (look() === 'text-line') {\n @if (state() === 'pending' && active()) {\n <ax-progress-bar [progress]=\"100\" [mode]=\"'indeterminate'\" color=\"primary\" [height]=\"4\">\n </ax-progress-bar>\n } @else {\n <div class=\"ax-step-wizard-indicator\"></div>\n }\n <div class=\"ax-step-wizard-item-title\">\n @if (label()) {\n <p>{{ label() }}</p>\n }\n @if (description()) {\n <span [class.ax-visible]=\"description()\">{{ description() }}</span>\n }\n </div>\n} @else {\n @if (customTemplate()) {\n <ng-container *ngTemplateOutlet=\"customTemplate()\"> </ng-container>\n }\n}\n\n<ng-template #content>\n <ng-content select=\"ax-content\"> </ng-content>\n</ng-template>\n\n<ng-template #icon>\n <ng-content select=\"ax-icon\"></ng-content>\n</ng-template>\n","import { Directive, TemplateRef, ViewContainerRef } from '@angular/core';\n\n@Directive({\n selector: '[axStepWizardContent]',\n exportAs: 'axStepWizardContent',\n inputs: ['portal: axStepWizardContent'],\n standalone: false\n})\nexport class AXStepWizardContentDirective {\n constructor(private _viewContainerRef: ViewContainerRef) {}\n\n private _portal: TemplateRef<any> | undefined;\n public get portal(): TemplateRef<any> | undefined {\n return this._portal;\n }\n public set portal(v: TemplateRef<any> | undefined) {\n if (v) {\n this._portal = v;\n this._viewContainerRef.clear();\n this._viewContainerRef.createEmbeddedView(v, null, 0);\n }\n }\n}\n","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n OnInit,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n input,\n signal,\n} from '@angular/core';\nimport { AXStepWizardItemComponent } from './step-wizard-item/step-wizard-item.component';\nimport { AXStepWizardLook, AXStepWizardSize } from './step-wizard.class';\nimport { AXStepWizardContentDirective } from './step-wizard.directive';\n\n/**\n * @category\n * A component for creating a step-by-step wizard interface.\n */\n@Component({\n selector: 'ax-step-wizard',\n template: ` <ng-content select=\"ax-step-wizard-item\"></ng-content> `,\n styleUrls: ['./step-wizard.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXStepWizardComponent extends MXBaseComponent implements OnInit {\n /**\n * Sets the visual style of the step wizard.\n *\n * @param v\n */\n connector = input(true);\n size = input<AXStepWizardSize>('ax-md');\n look = input<AXStepWizardLook>('circular-icon');\n\n changeStep = input(false);\n\n #changeStepEffect = effect(() => {\n this.steps().forEach((item, i = 1) => {\n const stepItem = item.getHostElement();\n if (this.changeStep()) {\n stepItem.addEventListener('click', () => this.goStep(i));\n stepItem.style.pointerEvents = 'auto';\n stepItem.style.cursor = 'pointer';\n } else {\n stepItem.style.pointerEvents = 'none';\n stepItem.style.cursor = 'default';\n }\n i++;\n });\n });\n\n /** @ignore */\n protected activeStepIndex = signal<number>(0);\n\n /** @ignore */\n protected activeOrientation = signal<AXOrientation>(this.orientation);\n\n public isFirst = computed<boolean>(() => this.activeStepIndex() === 0);\n public isLast = computed<boolean>(() => this.activeStepIndex() === this.steps()?.length - 1);\n\n #effect = effect(() => {\n this.steps()?.forEach((s) => {\n s.look.set(this.look());\n });\n });\n\n /** @ignore */\n #stepChangeEffect = effect(() => {\n const step: AXStepWizardItemComponent = this.steps()[this.activeStepIndex()];\n this.steps().forEach((s, i) => {\n s.active.set(false);\n s.passed.set(false);\n if (i < this.activeStepIndex()) {\n this.steps()[i].passed.set(true);\n }\n });\n this.steps()[this.activeStepIndex()].getHostElement().scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n inline: 'center',\n });\n this.steps()[this.activeStepIndex()].active.set(true);\n setTimeout(() => {\n this.changeStepContent(step);\n });\n });\n\n /** @ignore */\n private changeStepContent(step?: AXStepWizardItemComponent) {\n if (this.content && step) {\n this.content.portal = step.template();\n }\n }\n\n /** @ignore */\n override ngOnInit() {\n super.ngOnInit();\n }\n\n /** @ignore */\n // @ContentChildren(AXStepWizardItemComponent, { descendants: true })\n steps = contentChildren(AXStepWizardItemComponent);\n\n /**\n * Sets the orientation of the component.\n *\n * @param v\n */\n @Input()\n public set orientation(v: AXOrientation) {\n this.activeOrientation.set(v);\n }\n\n @Input()\n content!: AXStepWizardContentDirective;\n\n /**\n * Advances to the next step if available.\n */\n public next() {\n this.activeStepIndex.update((prev) => {\n if (prev < this.steps().length - 1) return prev + 1;\n else return prev;\n });\n }\n\n /**\n * Moves to the previous step if available.\n */\n public previous() {\n this.activeStepIndex.update((prev) => {\n if (prev > 0) return prev - 1;\n else return prev;\n });\n }\n\n /**\n * Directly navigates to the specified step by its index.\n * @param stepIndex\n */\n public goStep(stepIndex: number) {\n this.activeStepIndex.set(stepIndex - 1);\n }\n\n /**\n * Resets the wizard to the first step.\n */\n public reset() {\n this.activeStepIndex.set(0);\n }\n\n /** @ignore */\n @HostBinding('class')\n private get __hostClass(): string[] {\n const classList = [`ax-look-${this.look()}`, this.size()];\n if (this.activeOrientation() == 'vertical') {\n classList.push('ax-vertical');\n }\n if (this.connector()) {\n classList.push('ax-connector');\n }\n return classList;\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXStepWizardItemComponent } from './step-wizard-item/step-wizard-item.component';\nimport { AXStepWizardComponent } from './step-wizard.component';\nimport { AXStepWizardContentDirective } from './step-wizard.directive';\n\nconst COMPONENT = [AXStepWizardComponent, AXStepWizardItemComponent, AXStepWizardContentDirective];\nconst MODULES = [CommonModule, AXButtonModule, AXDecoratorModule, AXProgressBarModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXStepWizardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAuBM,MAAO,yBAA0B,SAAQ,eAAe,CAAA;AAR9D,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC;AACf,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC;AACjB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,OAAO,CAAC;QACzC,IAAc,CAAA,cAAA,GAAG,KAAK,EAAwB;AAE9C,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,KAAK,CAAC;AAC9B,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAU,KAAK,CAAC;QAC9B,IAAI,CAAA,IAAA,GAAG,KAAK,EAAoB;AAEhC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAS,EAAE,CAAC;AAE3B,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAS,MAC3B,IAAI,CAAC,MAAM,EAAE,GAAG,iBAAiB,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,iBAAiB,GAAG,EAAE,CAC3E;AAED,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAuB,SAAS,CAAC;AAWtD;IATC,IACoB,EAAE,CAAC,CAAS,EAAA;AAC9B,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;;AAGpB,IAAA,IACY,WAAW,GAAA;AACrB,QAAA,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAY,SAAA,EAAA,IAAI,CAAC,KAAK,EAAE,CAAA,CAAE,CAAC;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EAAA,IAAA,EAAA,kBAAkB,iBATZ,qBAAqB,EAAE,yBAAyB,EAAE,4BAA4B,aAChF,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,CAAA,EAAA,OAAA,EAAA,CADlE,qBAAqB,EAAE,yBAAyB,EAAE,4BAA4B,CAAA,EAAA,CAAA,CAAA;AASpF,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,kBAAkB,YAJhB,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,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;;;ACjBD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-step-wizard.mjs","sources":["../../../../libs/components/step-wizard/src/lib/step-wizard-item/step-wizard-item.component.ts","../../../../libs/components/step-wizard/src/lib/step-wizard-item/step-wizard-item.component.html","../../../../libs/components/step-wizard/src/lib/step-wizard.directive.ts","../../../../libs/components/step-wizard/src/lib/step-wizard.component.ts","../../../../libs/components/step-wizard/src/lib/step-wizard.module.ts","../../../../libs/components/step-wizard/src/acorex-components-step-wizard.ts"],"sourcesContent":["import { MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n TemplateRef,\n ViewEncapsulation,\n computed,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { AXStepWizardLook, AXStepWizardState } from '../step-wizard.class';\n@Component({\n selector: 'ax-step-wizard-item',\n inputs: ['disabled', 'color'],\n templateUrl: './step-wizard-item.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXStepWizardItemComponent extends MXBaseComponent {\n step = input(1);\n label = input('');\n description = input('');\n customTemplate = input<TemplateRef<unknown>>();\n\n active = model<boolean>(false);\n passed = model<boolean>(false);\n look = model<AXStepWizardLook>();\n state = model<AXStepWizardState>('clear');\n\n stepId = signal<string>('');\n\n className = computed<string>(() =>\n this.passed() ? 'ax-state-passed' : this.active() ? 'ax-state-active' : '',\n );\n\n template = viewChild<TemplateRef<unknown>>('content');\n\n @Input()\n public override set id(v: string) {\n this.stepId.set(v);\n }\n\n @HostBinding('class')\n private get __hostClass(): string[] {\n return [this.className(), `ax-state-${this.state()}`];\n }\n}\n","@if (look() === 'rounded-icon' || look() === 'circular-icon' || look() === 'circular') {\n <div class=\"ax-step-wizard-item-icon-container\">\n <div class=\"ax-step-wizard-item-icon\">\n @if (state() === 'error') {\n <div class=\"ax-icon ax-icon-close\"></div>\n } @else if (state() === 'success') {\n <div class=\"ax-icon ax-icon-check\"></div>\n } @else if (state() === 'warning') {\n <div class=\"ax-icon ax-icon-warning\"></div>\n }\n <ng-container *ngTemplateOutlet=\"icon\"> </ng-container>\n </div>\n </div>\n <div class=\"ax-step-wizard-item-title\">\n @if (label()) {\n <p>{{ label() }}</p>\n }\n @if (description()) {\n <span [class.ax-visible]=\"description()\">{{ description() }}</span>\n }\n </div>\n} @else if (look() === 'text-line') {\n @if (state() === 'pending') {\n <ax-progress-bar [progress]=\"100\" [mode]=\"'indeterminate'\" color=\"primary\" [height]=\"4\">\n </ax-progress-bar>\n } @else {\n <div class=\"ax-step-wizard-indicator\"></div>\n }\n <div class=\"ax-step-wizard-item-title\">\n @if (label()) {\n <p>{{ label() }}</p>\n }\n @if (description()) {\n <span [class.ax-visible]=\"description()\">{{ description() }}</span>\n }\n </div>\n} @else {\n @if (customTemplate()) {\n <ng-container *ngTemplateOutlet=\"customTemplate()\"> </ng-container>\n }\n}\n\n<ng-template #content>\n <ng-content select=\"ax-content\"> </ng-content>\n</ng-template>\n\n<ng-template #icon>\n <ng-content select=\"ax-icon\"></ng-content>\n</ng-template>\n","import { Directive, TemplateRef, ViewContainerRef } from '@angular/core';\n\n@Directive({\n selector: '[axStepWizardContent]',\n exportAs: 'axStepWizardContent',\n inputs: ['portal: axStepWizardContent'],\n standalone: false\n})\nexport class AXStepWizardContentDirective {\n constructor(private _viewContainerRef: ViewContainerRef) {}\n\n private _portal: TemplateRef<any> | undefined;\n public get portal(): TemplateRef<any> | undefined {\n return this._portal;\n }\n public set portal(v: TemplateRef<any> | undefined) {\n if (v) {\n this._portal = v;\n this._viewContainerRef.clear();\n this._viewContainerRef.createEmbeddedView(v, null, 0);\n }\n }\n}\n","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n OnInit,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXStepWizardItemComponent } from './step-wizard-item/step-wizard-item.component';\nimport { AXStepWizardLook, AXStepWizardSize } from './step-wizard.class';\nimport { AXStepWizardContentDirective } from './step-wizard.directive';\n\n/**\n * @category\n * A component for creating a step-by-step wizard interface.\n */\n@Component({\n selector: 'ax-step-wizard',\n template: ` <ng-content select=\"ax-step-wizard-item\"></ng-content> `,\n styleUrls: ['./step-wizard.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXStepWizardComponent extends MXBaseComponent implements OnInit {\n /**\n * Sets the visual style of the step wizard.\n *\n * @param v\n */\n connector = input(true);\n size = input<AXStepWizardSize>('ax-md');\n look = input<AXStepWizardLook>('circular-icon');\n\n changeStep = input(false);\n\n stepChanged = output<AXStepWizardItemComponent>();\n\n #changeStepEffect = effect(() => {\n this.steps().forEach((item, i = 1) => {\n const stepItem = item.getHostElement();\n if (this.changeStep()) {\n stepItem.addEventListener('click', () => this.goStep(i));\n stepItem.style.pointerEvents = 'auto';\n stepItem.style.cursor = 'pointer';\n } else {\n stepItem.style.pointerEvents = 'none';\n stepItem.style.cursor = 'default';\n }\n i++;\n });\n });\n\n /** @ignore */\n protected activeStepIndex = signal<number>(0);\n\n /** @ignore */\n protected activeOrientation = signal<AXOrientation>(this.orientation);\n\n public isFirst = computed<boolean>(() => this.activeStepIndex() === 0);\n public isLast = computed<boolean>(() => this.activeStepIndex() === this.steps()?.length - 1);\n\n #effect = effect(() => {\n this.steps()?.forEach((s) => {\n s.look.set(this.look());\n });\n });\n\n /** @ignore */\n #stepChangeEffect = effect(() => {\n const step: AXStepWizardItemComponent = this.steps()[this.activeStepIndex()];\n this.steps().forEach((s, i) => {\n s.active.set(false);\n s.passed.set(false);\n if (i < this.activeStepIndex()) {\n this.steps()[i].passed.set(true);\n }\n });\n this.steps()[this.activeStepIndex()].getHostElement().scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n inline: 'center',\n });\n this.steps()[this.activeStepIndex()].active.set(true);\n setTimeout(() => {\n this.changeStepContent(step);\n this.stepChanged.emit(step);\n });\n });\n\n /** @ignore */\n private changeStepContent(step?: AXStepWizardItemComponent) {\n if (this.content && step) {\n this.content.portal = step.template();\n }\n }\n\n /** @ignore */\n override ngOnInit() {\n super.ngOnInit();\n }\n\n /** @ignore */\n // @ContentChildren(AXStepWizardItemComponent, { descendants: true })\n steps = contentChildren(AXStepWizardItemComponent);\n\n /**\n * Sets the orientation of the component.\n *\n * @param v\n */\n @Input()\n public set orientation(v: AXOrientation) {\n this.activeOrientation.set(v);\n }\n\n @Input()\n content!: AXStepWizardContentDirective;\n\n /**\n * Advances to the next step if available.\n */\n public next() {\n this.activeStepIndex.update((prev) => {\n if (prev < this.steps().length - 1) return prev + 1;\n else return prev;\n });\n }\n\n /**\n * Moves to the previous step if available.\n */\n public previous() {\n this.activeStepIndex.update((prev) => {\n if (prev > 0) return prev - 1;\n else return prev;\n });\n }\n\n /**\n * Directly navigates to the specified step by its index.\n * @param stepIndex\n */\n public goStep(stepIndex: number) {\n this.activeStepIndex.set(stepIndex - 1);\n }\n\n /**\n * Resets the wizard to the first step.\n */\n public reset() {\n this.activeStepIndex.set(0);\n }\n\n /** @ignore */\n @HostBinding('class')\n private get __hostClass(): string[] {\n const classList = [`ax-look-${this.look()}`, this.size()];\n if (this.activeOrientation() == 'vertical') {\n classList.push('ax-vertical');\n }\n if (this.connector()) {\n classList.push('ax-connector');\n }\n return classList;\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXStepWizardItemComponent } from './step-wizard-item/step-wizard-item.component';\nimport { AXStepWizardComponent } from './step-wizard.component';\nimport { AXStepWizardContentDirective } from './step-wizard.directive';\n\nconst COMPONENT = [AXStepWizardComponent, AXStepWizardItemComponent, AXStepWizardContentDirective];\nconst MODULES = [CommonModule, AXButtonModule, AXDecoratorModule, AXProgressBarModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXStepWizardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAuBM,MAAO,yBAA0B,SAAQ,eAAe,CAAA;AAR9D,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC;AACf,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC;AACjB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC;QACvB,IAAc,CAAA,cAAA,GAAG,KAAK,EAAwB;AAE9C,QAAA,IAAA,CAAA,MAAM,GAAG,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,EAAA,IAAA,EAAA,kBAAkB,YAJhB,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,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;;;ACjBD;;AAEG;;;;"}
|
@@ -44,11 +44,11 @@ class AXToolBarComponent {
|
|
44
44
|
return `ax-sm`;
|
45
45
|
}
|
46
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXToolBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
47
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXToolBarComponent, isStandalone: false, selector: "ax-toolbar", host: { properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "buttons", predicate: AXButtonComponent, descendants: true, isSignal: true }, { propertyName: "textBox", predicate: AXTextBoxComponent, descendants: true, isSignal: true }, { propertyName: "decorators", predicate: AXDecoratorGenericComponent, isSignal: true }], ngImport: i0, template: "<ng-content select=\"ax-prefix\"> </ng-content>\n@if (prefixState() && (contentState() || suffixState())) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-content\"></ng-content>\n\n@if (contentState() && suffixState()) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-suffix\"></ng-content>\n", styles: ["ax-toolbar{display:flex;
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXToolBarComponent, isStandalone: false, selector: "ax-toolbar", host: { properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "buttons", predicate: AXButtonComponent, descendants: true, isSignal: true }, { propertyName: "textBox", predicate: AXTextBoxComponent, descendants: true, isSignal: true }, { propertyName: "decorators", predicate: AXDecoratorGenericComponent, isSignal: true }], ngImport: i0, template: "<ng-content select=\"ax-prefix\"> </ng-content>\n@if (prefixState() && (contentState() || suffixState())) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-content\"></ng-content>\n\n@if (contentState() && suffixState()) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-suffix\"></ng-content>\n", styles: ["ax-toolbar{display:flex;align-items:center;min-height:100%;flex-wrap:wrap;padding:.25rem;width:100%}ax-toolbar ax-divider{display:block;margin-inline:.5rem;width:1px;min-height:25px;background-color:rgba(var(--ax-color-border-default))}ax-toolbar ax-suffix,ax-toolbar ax-prefix,ax-toolbar ax-content{display:flex;justify-content:space-between;align-items:center;min-height:100%;flex-wrap:wrap}\n"], dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
48
48
|
}
|
49
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXToolBarComponent, decorators: [{
|
50
50
|
type: Component,
|
51
|
-
args: [{ selector: 'ax-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-content select=\"ax-prefix\"> </ng-content>\n@if (prefixState() && (contentState() || suffixState())) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-content\"></ng-content>\n\n@if (contentState() && suffixState()) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-suffix\"></ng-content>\n", styles: ["ax-toolbar{display:flex;
|
51
|
+
args: [{ selector: 'ax-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-content select=\"ax-prefix\"> </ng-content>\n@if (prefixState() && (contentState() || suffixState())) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-content\"></ng-content>\n\n@if (contentState() && suffixState()) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-suffix\"></ng-content>\n", styles: ["ax-toolbar{display:flex;align-items:center;min-height:100%;flex-wrap:wrap;padding:.25rem;width:100%}ax-toolbar ax-divider{display:block;margin-inline:.5rem;width:1px;min-height:25px;background-color:rgba(var(--ax-color-border-default))}ax-toolbar ax-suffix,ax-toolbar ax-prefix,ax-toolbar ax-content{display:flex;justify-content:space-between;align-items:center;min-height:100%;flex-wrap:wrap}\n"] }]
|
52
52
|
}], propDecorators: { __hostClass: [{
|
53
53
|
type: HostBinding,
|
54
54
|
args: ['class']
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-toolbar.mjs","sources":["../../../../libs/components/toolbar/src/lib/toolbar.component.ts","../../../../libs/components/toolbar/src/lib/toolbar.component.html","../../../../libs/components/toolbar/src/lib/toolbar.module.ts","../../../../libs/components/toolbar/src/acorex-components-toolbar.ts"],"sourcesContent":["import { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXTextBoxComponent } from '@acorex/components/text-box';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n HostBinding,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'ax-toolbar',\n templateUrl: './toolbar.component.html',\n styleUrls: ['./toolbar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXToolBarComponent {\n private buttons = contentChildren(AXButtonComponent, { descendants: true });\n private textBox = contentChildren(AXTextBoxComponent, { descendants: true });\n\n private decorators = contentChildren<AXDecoratorGenericComponent>(AXDecoratorGenericComponent);\n\n protected prefixState = signal(false);\n protected suffixState = signal(false);\n protected contentState = signal(false);\n\n #init = afterNextRender(() => {\n this.decorators().forEach((item) => {\n switch (item.getHostElement().tagName) {\n case 'AX-PREFIX':\n this.prefixState.set(true);\n break;\n case 'AX-SUFFIX':\n this.suffixState.set(true);\n break;\n case 'AX-CONTENT':\n this.contentState.set(true);\n }\n });\n\n if (this.buttons().length > 0) {\n this.buttons().forEach((item) => {\n item.look = 'blank';\n item.getHostElement().classList.add('ax-sm');\n });\n }\n if (this.textBox().length > 0) {\n this.textBox().forEach((item) => {\n item.getHostElement().classList.add('ax-sm');\n });\n }\n });\n\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-sm`;\n }\n}\n","<ng-content select=\"ax-prefix\"> </ng-content>\n@if (prefixState() && (contentState() || suffixState())) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-content\"></ng-content>\n\n@if (contentState() && suffixState()) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-suffix\"></ng-content>\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { NgModule } from '@angular/core';\nimport { AXToolBarComponent } from './toolbar.component';\n\nconst COMPONENT = [AXToolBarComponent];\n\nconst MODULES = [AXDecoratorModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXToolBarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAqBa,kBAAkB,CAAA;AAR/B,IAAA,WAAA,GAAA;QASU,IAAO,CAAA,OAAA,GAAG,eAAe,CAAC,iBAAiB,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QACnE,IAAO,CAAA,OAAA,GAAG,eAAe,CAAC,kBAAkB,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;AAEpE,QAAA,IAAA,CAAA,UAAU,GAAG,eAAe,CAA8B,2BAA2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AAW,GAAA;AACb,QAAA,OAAO,OAAO;;8GAvCL,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,sJACK,iBAAiB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,SAAA,EAAA,SAAA,EACjB,kBAAkB,EAEc,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,YAAA,EAAA,SAAA,EAAA,2BAA2B,6CCzB/F,+TAYA,EAAA,MAAA,EAAA,CAAA,
|
1
|
+
{"version":3,"file":"acorex-components-toolbar.mjs","sources":["../../../../libs/components/toolbar/src/lib/toolbar.component.ts","../../../../libs/components/toolbar/src/lib/toolbar.component.html","../../../../libs/components/toolbar/src/lib/toolbar.module.ts","../../../../libs/components/toolbar/src/acorex-components-toolbar.ts"],"sourcesContent":["import { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXTextBoxComponent } from '@acorex/components/text-box';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n HostBinding,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'ax-toolbar',\n templateUrl: './toolbar.component.html',\n styleUrls: ['./toolbar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXToolBarComponent {\n private buttons = contentChildren(AXButtonComponent, { descendants: true });\n private textBox = contentChildren(AXTextBoxComponent, { descendants: true });\n\n private decorators = contentChildren<AXDecoratorGenericComponent>(AXDecoratorGenericComponent);\n\n protected prefixState = signal(false);\n protected suffixState = signal(false);\n protected contentState = signal(false);\n\n #init = afterNextRender(() => {\n this.decorators().forEach((item) => {\n switch (item.getHostElement().tagName) {\n case 'AX-PREFIX':\n this.prefixState.set(true);\n break;\n case 'AX-SUFFIX':\n this.suffixState.set(true);\n break;\n case 'AX-CONTENT':\n this.contentState.set(true);\n }\n });\n\n if (this.buttons().length > 0) {\n this.buttons().forEach((item) => {\n item.look = 'blank';\n item.getHostElement().classList.add('ax-sm');\n });\n }\n if (this.textBox().length > 0) {\n this.textBox().forEach((item) => {\n item.getHostElement().classList.add('ax-sm');\n });\n }\n });\n\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-sm`;\n }\n}\n","<ng-content select=\"ax-prefix\"> </ng-content>\n@if (prefixState() && (contentState() || suffixState())) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-content\"></ng-content>\n\n@if (contentState() && suffixState()) {\n <ax-divider></ax-divider>\n}\n\n<ng-content select=\"ax-suffix\"></ng-content>\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { NgModule } from '@angular/core';\nimport { AXToolBarComponent } from './toolbar.component';\n\nconst COMPONENT = [AXToolBarComponent];\n\nconst MODULES = [AXDecoratorModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXToolBarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAqBa,kBAAkB,CAAA;AAR/B,IAAA,WAAA,GAAA;QASU,IAAO,CAAA,OAAA,GAAG,eAAe,CAAC,iBAAiB,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QACnE,IAAO,CAAA,OAAA,GAAG,eAAe,CAAC,kBAAkB,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;AAEpE,QAAA,IAAA,CAAA,UAAU,GAAG,eAAe,CAA8B,2BAA2B,CAAC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AAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,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,eAAe,EAVT,YAAA,EAAA,CAAA,kBAAkB,CAEpB,EAAA,OAAA,EAAA,CAAA,iBAAiB,aAFf,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAUxB,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,eAAe,YAJb,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,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;;;ACbD;;AAEG;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AXEvent, AXStyleLookType, MXBaseComponent } from '@acorex/components/common';
|
2
2
|
import { AXValidationSummary } from '@acorex/core/validation';
|
3
|
-
import { EventEmitter, InputSignal, OnDestroy } from '@angular/core';
|
3
|
+
import { AfterViewInit, EventEmitter, InputSignal, OnDestroy } from '@angular/core';
|
4
4
|
import { AXFormFieldComponent } from './form-field.component';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
/**
|
@@ -22,7 +22,7 @@ export type AXLabelMode = 'static' | 'floating' | 'over';
|
|
22
22
|
*
|
23
23
|
* @category Components
|
24
24
|
*/
|
25
|
-
export declare class AXFormComponent extends MXBaseComponent implements OnDestroy {
|
25
|
+
export declare class AXFormComponent extends MXBaseComponent implements OnDestroy, AfterViewInit {
|
26
26
|
#private;
|
27
27
|
/**
|
28
28
|
* Specifies the mode of the label in the form field.
|
@@ -77,6 +77,8 @@ export declare class AXFormComponent extends MXBaseComponent implements OnDestro
|
|
77
77
|
* @ignore
|
78
78
|
*/
|
79
79
|
constructor();
|
80
|
+
ngAfterViewInit(): void;
|
81
|
+
private _bindEvents;
|
80
82
|
/**
|
81
83
|
* @ignore
|
82
84
|
*/
|
package/map/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { Subscription } from 'rxjs';
|
3
|
+
import { AXMapControlPlace, AXMapData, AXMapMarker, AXMapPolygon } from './map.type';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
/**
|
5
6
|
* @description
|
@@ -11,6 +12,7 @@ import * as i0 from "@angular/core";
|
|
11
12
|
* <ax-map [latitude]="51.505" [longitude]="-0.09" [zoomLevel]="13" [hasMarker]="true"></ax-map>
|
12
13
|
*/
|
13
14
|
export declare class AXMapComponent implements OnDestroy {
|
15
|
+
#private;
|
14
16
|
/**
|
15
17
|
* @description
|
16
18
|
* Zoom level of the map.
|
@@ -32,9 +34,15 @@ export declare class AXMapComponent implements OnDestroy {
|
|
32
34
|
/**
|
33
35
|
* @description
|
34
36
|
* Maximum number of markers allowed on the map.
|
35
|
-
* @default
|
37
|
+
* @default 0
|
36
38
|
*/
|
37
39
|
maxMarker: import("@angular/core").InputSignal<number>;
|
40
|
+
/**
|
41
|
+
* @description
|
42
|
+
* Maximum number of polygons allowed on the map.
|
43
|
+
* @default 0
|
44
|
+
*/
|
45
|
+
maxPolygon: import("@angular/core").InputSignal<number>;
|
38
46
|
/**
|
39
47
|
* @description
|
40
48
|
* Whether the map should have a marker control.
|
@@ -64,22 +72,38 @@ export declare class AXMapComponent implements OnDestroy {
|
|
64
72
|
* Array or single marker location(s) to be placed on the map.
|
65
73
|
* @default undefined
|
66
74
|
*/
|
67
|
-
markers: import("@angular/core").InputSignal<
|
75
|
+
markers: import("@angular/core").InputSignal<AXMapMarker | AXMapMarker[]>;
|
76
|
+
/**
|
77
|
+
* @description
|
78
|
+
* Array or single polygon location(s) to be placed on the map.
|
79
|
+
* @default undefined
|
80
|
+
*/
|
81
|
+
polygons: import("@angular/core").InputSignal<AXMapPolygon | AXMapPolygon[]>;
|
68
82
|
/**
|
69
83
|
* @description
|
70
84
|
* Event triggered when a new marker is added to the map.
|
71
85
|
*/
|
72
|
-
onMarkerAdded: import("@angular/core").OutputEmitterRef<
|
86
|
+
onMarkerAdded: import("@angular/core").OutputEmitterRef<AXMapMarker>;
|
73
87
|
/**
|
74
88
|
* @description
|
75
89
|
* Event triggered when marker positions are changed on the map.
|
76
90
|
*/
|
77
|
-
onMarkerChanged: import("@angular/core").OutputEmitterRef<
|
91
|
+
onMarkerChanged: import("@angular/core").OutputEmitterRef<AXMapMarker[]>;
|
92
|
+
/**
|
93
|
+
* @description
|
94
|
+
* Event triggered when a new polygon is added to the map.
|
95
|
+
*/
|
96
|
+
onPolygonAdded: import("@angular/core").OutputEmitterRef<AXMapPolygon>;
|
97
|
+
/**
|
98
|
+
* @description
|
99
|
+
* Event triggered when polygon positions are changed on the map.
|
100
|
+
*/
|
101
|
+
onPolygonChanged: import("@angular/core").OutputEmitterRef<AXMapPolygon[]>;
|
78
102
|
/**
|
79
103
|
* @description
|
80
104
|
* Event triggered when a location is found via the location control.
|
81
105
|
*/
|
82
|
-
onLocationFound: import("@angular/core").OutputEmitterRef<
|
106
|
+
onLocationFound: import("@angular/core").OutputEmitterRef<AXMapMarker>;
|
83
107
|
private mapContainer;
|
84
108
|
private leafletService;
|
85
109
|
private rendered;
|
@@ -88,13 +112,35 @@ export declare class AXMapComponent implements OnDestroy {
|
|
88
112
|
* Adds a marker to the specified location on the map.
|
89
113
|
* @param location - The location where the marker should be placed.
|
90
114
|
*/
|
91
|
-
addMarker(location:
|
115
|
+
addMarker(location: AXMapMarker | AXMapMarker[]): void;
|
116
|
+
addPolygon(location: AXMapPolygon | AXMapPolygon[], clickCallback?: (event: L.LeafletMouseEvent) => void): void;
|
92
117
|
/**
|
93
118
|
* @description
|
94
119
|
* Retrieves all markers currently placed on the map.
|
95
|
-
* @returns An array of `
|
120
|
+
* @returns An array of `AXMapMarker` representing all markers.
|
121
|
+
*/
|
122
|
+
getMarkers(): AXMapMarker[];
|
123
|
+
/**
|
124
|
+
* @description
|
125
|
+
* Retrieves all polygons currently placed on the map.
|
126
|
+
* @returns An array of `AXMapPolygon` representing all polygons.
|
127
|
+
*/
|
128
|
+
getPolygons(): AXMapPolygon[];
|
129
|
+
/**
|
130
|
+
* @description
|
131
|
+
* Clear all markers and polygons
|
132
|
+
*/
|
133
|
+
clearDrawItems(): void;
|
134
|
+
/**
|
135
|
+
* @description
|
136
|
+
* Get all markers and polygons
|
137
|
+
*/
|
138
|
+
getDrawItem(): AXMapData;
|
139
|
+
/**
|
140
|
+
* @description
|
141
|
+
* set markers and polygons
|
96
142
|
*/
|
97
|
-
|
143
|
+
setDrawItem(data: AXMapData): void;
|
98
144
|
/**
|
99
145
|
* @description
|
100
146
|
* Flies the map to a specific location with optional zoom, marker placement, and animation duration.
|
@@ -104,13 +150,18 @@ export declare class AXMapComponent implements OnDestroy {
|
|
104
150
|
* @param setMarker - Whether to set a marker at the destination.
|
105
151
|
* @param duration - Optional duration for the fly animation.
|
106
152
|
*/
|
107
|
-
flyTo(location:
|
108
|
-
|
153
|
+
flyTo(location: AXMapMarker, zoom?: number, setMarker?: boolean, duration?: number): void;
|
154
|
+
onLocationFoundSubscription?: Subscription;
|
155
|
+
onMarkerChangedSubscription?: Subscription;
|
156
|
+
onMarkerAddedSubscription?: Subscription;
|
157
|
+
onPolygonChangedSubscription?: Subscription;
|
158
|
+
onPolygonAddedSubscription?: Subscription;
|
159
|
+
unsubscribeFromEvents(): void;
|
109
160
|
/**
|
110
161
|
* @description
|
111
162
|
* Cleanup function that destroys the map when the component is destroyed.
|
112
163
|
*/
|
113
164
|
ngOnDestroy(): void;
|
114
165
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMapComponent, never>;
|
115
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; }, { "onMarkerAdded": "onMarkerAdded"; "onMarkerChanged": "onMarkerChanged"; "onLocationFound": "onLocationFound"; }, never, never, false, never>;
|
166
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; }, { "onMarkerAdded": "onMarkerAdded"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonChanged": "onPolygonChanged"; "onLocationFound": "onLocationFound"; }, never, never, false, never>;
|
116
167
|
}
|
package/map/lib/map.service.d.ts
CHANGED
@@ -1,36 +1,141 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
|
+
import { AXMapControlPlace, AXMapData, AXMapLatLng, AXMapLocation, AXMapMarker, AXMapPolygon } from './map.type';
|
2
3
|
import * as i0 from "@angular/core";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
precision?: number;
|
7
|
-
title?: string;
|
8
|
-
}
|
9
|
-
export type AXMapControlPlace = 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
|
4
|
+
/**
|
5
|
+
* Service for managing Leaflet maps and related functionalities.
|
6
|
+
*/
|
10
7
|
export declare class AXLeafletService {
|
11
|
-
mapConfig
|
12
|
-
icon
|
13
|
-
|
14
|
-
private
|
8
|
+
private mapConfig;
|
9
|
+
private icon;
|
10
|
+
private position;
|
11
|
+
private maxMarkers;
|
12
|
+
private maxPolygons;
|
13
|
+
private polygonColor;
|
14
|
+
protected L: typeof import('leaflet');
|
15
15
|
private map?;
|
16
16
|
private drawControl?;
|
17
17
|
private locateControl?;
|
18
18
|
private drawnItems;
|
19
|
-
|
20
|
-
|
19
|
+
/**
|
20
|
+
* Emits when marker data changes.
|
21
|
+
*/
|
22
|
+
onMarkerChanged: EventEmitter<AXMapMarker[]>;
|
23
|
+
/**
|
24
|
+
* Emits when a marker is added.
|
25
|
+
*/
|
26
|
+
onMarkerAdded: EventEmitter<AXMapMarker>;
|
27
|
+
/**
|
28
|
+
* Emits when the user's location is found.
|
29
|
+
*/
|
21
30
|
onLocationFound: EventEmitter<AXMapLocation>;
|
31
|
+
/**
|
32
|
+
* Emits when polygon data changes.
|
33
|
+
*/
|
34
|
+
onPolygonChanged: EventEmitter<AXMapPolygon[]>;
|
35
|
+
/**
|
36
|
+
* Emits when a polygon is added.
|
37
|
+
*/
|
38
|
+
onPolygonAdded: EventEmitter<AXMapPolygon>;
|
39
|
+
/**
|
40
|
+
* Loads the Leaflet library and its plugins.
|
41
|
+
*/
|
22
42
|
loadLeaflet(): Promise<void>;
|
23
|
-
|
43
|
+
/**
|
44
|
+
* Initializes the Leaflet map.
|
45
|
+
* @param mapElement The HTML element to render the map in.
|
46
|
+
* @param location The initial map center.
|
47
|
+
* @param zoom The initial zoom level. Defaults to 13.
|
48
|
+
*/
|
49
|
+
initMap(mapElement: HTMLElement, location: AXMapLatLng, zoom?: number): Promise<void>;
|
50
|
+
/**
|
51
|
+
* Gets the Leaflet map instance.
|
52
|
+
* @returns The Leaflet map instance, or undefined if not initialized.
|
53
|
+
*/
|
24
54
|
getMap(): L.Map | undefined;
|
55
|
+
/**
|
56
|
+
* Gets the Leaflet package.
|
57
|
+
* @returns The Leaflet package.
|
58
|
+
*/
|
59
|
+
getLeafletPackage(): typeof import('leaflet');
|
60
|
+
/**
|
61
|
+
* Sets the zoom level of the map.
|
62
|
+
* @param zoom The desired zoom level.
|
63
|
+
*/
|
25
64
|
setZoomLevel(zoom: number): void;
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
65
|
+
/**
|
66
|
+
* Sets the center of the map.
|
67
|
+
* @param location The new center location.
|
68
|
+
*/
|
69
|
+
setCenter(location: AXMapLatLng): void;
|
70
|
+
/**
|
71
|
+
* Flies to a specific location on the map.
|
72
|
+
* @param location The target location.
|
73
|
+
* @param zoom The target zoom level (optional).
|
74
|
+
* @param setMarker Whether to add a marker at the destination after flying.
|
75
|
+
* @param duration The duration of the fly animation in seconds.
|
76
|
+
*/
|
77
|
+
flyTo(location: AXMapLatLng, zoom?: number, setMarker?: boolean, duration?: number): void;
|
78
|
+
/**
|
79
|
+
* Adds a marker or markers to the map.
|
80
|
+
* @param locations The marker or markers to add.
|
81
|
+
*/
|
82
|
+
addMarker(locations: AXMapMarker | AXMapMarker[]): void;
|
83
|
+
/**
|
84
|
+
* Adds a polygon or polygons to the map.
|
85
|
+
* @param polygons The polygon or polygons to add.
|
86
|
+
* @param clickCallback Optional callback function to be executed on polygon click.
|
87
|
+
*/
|
88
|
+
addPolygon(polygons: AXMapPolygon | AXMapPolygon[], clickCallback?: (event: L.LeafletMouseEvent) => void): void;
|
89
|
+
/**
|
90
|
+
* Gets all markers currently on the map.
|
91
|
+
* @returns An array of AXMapMarker objects.
|
92
|
+
*/
|
93
|
+
getMarkers(): AXMapMarker[];
|
94
|
+
/**
|
95
|
+
* Gets all polygons currently on the map.
|
96
|
+
* @returns An array of AXMapPolygon objects.
|
97
|
+
*/
|
98
|
+
getPolygons(): AXMapPolygon[];
|
99
|
+
/**
|
100
|
+
* Adds a draw control to the map for creating markers and polygons.
|
101
|
+
* @param position The position of the control on the map. Defaults to 'topleft'.
|
102
|
+
* @param maxMarkers The maximum number of markers allowed. Defaults to 1.
|
103
|
+
* @param maxPolygons The maximum number of polygons allowed. Defaults to 1.
|
104
|
+
* @param PolygonColor The default color for polygons.
|
105
|
+
*/
|
106
|
+
addDrawControl(position?: AXMapControlPlace, maxMarkers?: number, maxPolygons?: number, PolygonColor?: string): void;
|
107
|
+
/**
|
108
|
+
* Adds a locate control to the map.
|
109
|
+
* @param position The position of the control on the map. Defaults to 'bottomright'.
|
110
|
+
*/
|
31
111
|
addLocateControl(position?: AXMapControlPlace): void;
|
112
|
+
private availableColors;
|
113
|
+
private getRandomColorName;
|
114
|
+
/**
|
115
|
+
* Removes the draw control from the map.
|
116
|
+
*/
|
32
117
|
removeDrawControl(): void;
|
118
|
+
/**
|
119
|
+
* Removes the locate control from the map.
|
120
|
+
*/
|
33
121
|
removeLocateControl(): void;
|
122
|
+
/**
|
123
|
+
* Clears all drawn items (markers and polygons) from the map.
|
124
|
+
*/
|
125
|
+
clearDrawItems(): void;
|
126
|
+
/**
|
127
|
+
* Gets the current drawn items (markers and polygons).
|
128
|
+
* @returns An object containing arrays of markers and polygons.
|
129
|
+
*/
|
130
|
+
getDrawItem(): AXMapData;
|
131
|
+
/**
|
132
|
+
* Sets the drawn items (markers and polygons) on the map.
|
133
|
+
* @param data An object containing arrays of markers and polygons.
|
134
|
+
*/
|
135
|
+
setDrawItem(data: AXMapData): void;
|
136
|
+
/**
|
137
|
+
* Destroys the map instance and removes all event listeners.
|
138
|
+
*/
|
34
139
|
destroyMap(): void;
|
35
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXLeafletService, never>;
|
36
141
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXLeafletService>;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export interface AXMapLatLng {
|
2
|
+
latitude: number;
|
3
|
+
longitude: number;
|
4
|
+
}
|
5
|
+
export interface AXMapMarker extends AXMapLatLng {
|
6
|
+
title?: string;
|
7
|
+
}
|
8
|
+
export interface AXMapLocation extends AXMapMarker {
|
9
|
+
precision?: number;
|
10
|
+
}
|
11
|
+
export interface AXMapPolygon {
|
12
|
+
points: AXMapLatLng[];
|
13
|
+
title?: string;
|
14
|
+
color?: string;
|
15
|
+
}
|
16
|
+
export interface AXMapData {
|
17
|
+
markers: AXMapMarker[];
|
18
|
+
polygons: AXMapPolygon[];
|
19
|
+
}
|
20
|
+
export type AXMapControlPlace = 'topleft' | 'topright' | 'bottomleft' | 'bottomright';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/components",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.6.1",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": ">=19.0.0",
|
6
6
|
"@angular/core": ">=19.0.0",
|
@@ -193,10 +193,6 @@
|
|
193
193
|
"types": "./menu/index.d.ts",
|
194
194
|
"default": "./fesm2022/acorex-components-menu.mjs"
|
195
195
|
},
|
196
|
-
"./nav": {
|
197
|
-
"types": "./nav/index.d.ts",
|
198
|
-
"default": "./fesm2022/acorex-components-nav.mjs"
|
199
|
-
},
|
200
196
|
"./navbar": {
|
201
197
|
"types": "./navbar/index.d.ts",
|
202
198
|
"default": "./fesm2022/acorex-components-navbar.mjs"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { NXComponent } from '@acorex/components/common';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
export type AXSideMenuLook = 'pills' | 'with-line';
|
3
|
+
export type AXSideMenuLook = 'pills' | 'with-line' | 'with-line-color';
|
4
4
|
export type AXSideMenuLocation = 'start' | 'end';
|
5
5
|
/**
|
6
6
|
* @category
|
@@ -6,16 +6,16 @@ export declare class AXStepWizardItemComponent extends MXBaseComponent {
|
|
6
6
|
step: import("@angular/core").InputSignal<number>;
|
7
7
|
label: import("@angular/core").InputSignal<string>;
|
8
8
|
description: import("@angular/core").InputSignal<string>;
|
9
|
-
state: import("@angular/core").InputSignal<AXStepWizardState>;
|
10
9
|
customTemplate: import("@angular/core").InputSignal<TemplateRef<unknown>>;
|
11
10
|
active: import("@angular/core").ModelSignal<boolean>;
|
12
11
|
passed: import("@angular/core").ModelSignal<boolean>;
|
13
12
|
look: import("@angular/core").ModelSignal<AXStepWizardLook>;
|
13
|
+
state: import("@angular/core").ModelSignal<AXStepWizardState>;
|
14
14
|
stepId: import("@angular/core").WritableSignal<string>;
|
15
15
|
className: import("@angular/core").Signal<string>;
|
16
16
|
template: import("@angular/core").Signal<TemplateRef<unknown>>;
|
17
17
|
set id(v: string);
|
18
18
|
private get __hostClass();
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXStepWizardItemComponent, never>;
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXStepWizardItemComponent, "ax-step-wizard-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXStepWizardItemComponent, "ax-step-wizard-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "customTemplate": { "alias": "customTemplate"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "passed": { "alias": "passed"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, { "active": "activeChange"; "passed": "passedChange"; "look": "lookChange"; "state": "stateChange"; }, never, ["ax-content", "ax-icon"], false, never>;
|
21
21
|
}
|
@@ -19,6 +19,7 @@ export declare class AXStepWizardComponent extends MXBaseComponent implements On
|
|
19
19
|
size: import("@angular/core").InputSignal<AXStepWizardSize>;
|
20
20
|
look: import("@angular/core").InputSignal<AXStepWizardLook>;
|
21
21
|
changeStep: import("@angular/core").InputSignal<boolean>;
|
22
|
+
stepChanged: import("@angular/core").OutputEmitterRef<AXStepWizardItemComponent>;
|
22
23
|
/** @ignore */
|
23
24
|
protected activeStepIndex: import("@angular/core").WritableSignal<number>;
|
24
25
|
/** @ignore */
|
@@ -58,5 +59,5 @@ export declare class AXStepWizardComponent extends MXBaseComponent implements On
|
|
58
59
|
/** @ignore */
|
59
60
|
private get __hostClass();
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXStepWizardComponent, never>;
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXStepWizardComponent, "ax-step-wizard", never, { "connector": { "alias": "connector"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "changeStep": { "alias": "changeStep"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, ["steps"], ["ax-step-wizard-item"], false, never>;
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXStepWizardComponent, "ax-step-wizard", never, { "connector": { "alias": "connector"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "changeStep": { "alias": "changeStep"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, { "stepChanged": "stepChanged"; }, ["steps"], ["ax-step-wizard-item"], false, never>;
|
62
63
|
}
|