@acorex/platform 19.2.7 → 19.2.9
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/common/lib/app/application.types.d.ts +8 -0
- package/common/lib/utils/index.d.ts +2 -0
- package/common/lib/utils/regional-util.service.d.ts +15 -0
- package/common/lib/utils/regional.types.d.ts +55 -0
- package/fesm2022/acorex-platform-common.mjs +4 -2
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +35 -16
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +83 -23
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +27 -26
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +123 -63
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs → acorex-platform-themes-default-entity-master-create-view.component-BK8BItxL.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BK8BItxL.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs → acorex-platform-themes-default-entity-master-single-view.component-BGUrwL2P.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BGUrwL2P.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-CN2NCgUv.mjs +74 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-CN2NCgUv.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CsCug3Vu.mjs +71 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CsCug3Vu.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +24 -14
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +10 -1
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-BiCinIok.mjs +274 -0
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-BiCinIok.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-BBRVgZLu.mjs → acorex-platform-widgets-tabular-data-view-popup.component-BaslkAPS.mjs} +16 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-BaslkAPS.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +512 -342
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/datasource-provider.service.d.ts +3 -1
- package/layout/builder/lib/builder/widget-renderer.directive.d.ts +3 -0
- package/layout/builder/lib/builder/widget.types.d.ts +2 -0
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +2 -0
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +3 -0
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +3 -1
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity.viewmodel.d.ts +1 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +0 -2
- package/layout/entity/lib/widgets/widget-selector/widget-selector-widget-edit.component.d.ts +0 -2
- package/layout/setting/lib/setting.viewmodel.d.ts +3 -0
- package/package.json +5 -5
- package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +3 -0
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +3 -0
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +6 -0
- package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +2 -1
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +3 -0
- package/themes/default/lib/pages/theme-palette-preview/theme-palette-preview.page.d.ts +3 -0
- package/themes/shared/lib/components/slots/theme-slot.component.d.ts +3 -0
- package/themes/shared/lib/setting.keys.d.ts +2 -1
- package/themes/shared/lib/theme.service.d.ts +3 -0
- package/widgets/lib/properties/data-source.props.d.ts +3 -0
- package/widgets/lib/properties/editors.props.d.ts +0 -1
- package/widgets/lib/properties/index.d.ts +1 -0
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget-edit.component.d.ts +18 -3
- package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +20 -6
- package/widgets/lib/widgets/editors/checkbox/checkbox-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/color/color-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/email/email-box-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/link/link-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/phone/phone-box-widget-edit.component.d.ts +0 -4
- package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +4 -3
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-edit-popup.component.d.ts +11 -3
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-view-popup.component.d.ts +3 -1
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-widget-view.component.d.ts +0 -2
- package/widgets/lib/widgets/editors/text/text-box-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/validations/base-validation/base-validation.d.ts +3 -2
- package/widgets/lib/widgets/validations/between-validation/between-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/callback-validation/callback-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/equal-validation/equal-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/greater-than-validation/greater-than-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/less-than-validation/less-than-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/max-length-validation/max-length-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/min-length-validation/min-length-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/regular-expression-validation/regular-expression-validation-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/validations/required-validation/required-validation-widget-edit.component.d.ts +1 -7
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bl9f4Rtk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B4aBmc5H.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs +0 -74
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs +0 -71
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-D2-nHqYy.mjs +0 -144
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-D2-nHqYy.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-BBRVgZLu.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-themes-default-setting-page.component-BERYnJnp.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-page/setting-page.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-page/setting-page.component.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { AXPSimplePageLayout } from '../../base';\nimport {\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutPageSecondaryActionsComponent,\n AXPThemeLayoutSideTemplateComponent,\n AXPThemeLayoutPagePrimaryActionsComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutFooterComponent\n} from '@acorex/platform/themes/shared';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPSettingsViewModel } from '@acorex/platform/layout/setting';\nimport { FormsModule } from '@angular/forms';\nimport { AXTreeViewModule } from '@acorex/components/tree-view';\nimport { RouterModule } from '@angular/router';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXBadgeModule } from '@acorex/components/badge';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\n@Component({\n standalone: true,\n imports: [\n CommonModule,\n FormsModule,\n RouterModule,\n //\n AXSearchBoxModule,\n AXDecoratorModule,\n AXTreeViewModule,\n AXBreadcrumbsModule,\n AXTranslationModule,\n AXButtonModule,\n AXTabsModule,\n AXBadgeModule,\n AXLoadingModule,\n AXDropdownButtonModule,\n //\n AXPSimplePageLayout,\n AXPThemeLayoutBlockComponent,\n AXPThemeLayoutHeaderTemplateComponent,\n AXPThemeLayoutSideTemplateComponent,\n AXPThemeLayoutActionsComponent,\n AXPThemeLayoutPageSecondaryActionsComponent,\n AXPThemeLayoutListComponent,\n AXPThemeLayoutListItemComponent,\n AXPThemeLayoutFooterComponent\n ],\n templateUrl: './setting-page.component.html',\n styleUrl: './setting-page.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPSettingsViewModel]\n})\n\nexport class AXPSettingPageComponent {\n\n protected vm = inject(AXPSettingsViewModel);\n\n protected handleSerach(e: AXValueChangedEvent<any>) {\n this.vm.search(e.value);\n }\n\n}","<axp-layout-simple-page *translate=\"let t\">\n @if(vm.showSide())\n {\n <axp-layout-side>\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\"\n (onValueChanged)=\"handleSerach($event)\"\n [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n <axp-layout-content>\n <ax-tabs [look]=\"'with-line-color'\" [location]=\"'end'\" [fitParent]=\"true\">\n @for (item of vm.loadedItems(); track $index) {\n <ax-tab-item [text]=\"item.title\" (onClick)=\"vm.handleSelectGroup(item)\"\n [active]=\"vm.activateGroup()==item.name && !vm.isSearching()\">\n <ax-prefix>\n <ax-icon icon=\"far ${{item.icon}}\"></ax-icon>\n </ax-prefix>\n </ax-tab-item>\n }\n </ax-tabs>\n </axp-layout-content>\n </axp-layout-side>\n }\n\n @if(vm.hasGroup())\n {\n <axp-layout-header>\n @let group=vm.groups()?.breadcrumb?.[(vm.groups()?.breadcrumb?.length??1)- 1];\n\n @if(!vm.showSide())\n {\n <axp-layout-nav-button>\n <ax-button class=\"ax-xs\" [look]=\"'blank'\" [color]=\"'default'\" (onClick)=\"vm.navigateUpLevel()\">\n <ax-icon icon=\"fa-solid fa-arrow-left\"></ax-icon>\n </ax-button>\n </axp-layout-nav-button>\n }\n\n <axp-layout-title>\n @if(!vm.isSearching())\n {\n {{ (group?.title ?? '') | translate | async }}\n }\n @else {\n {{ t('settings.search',{scope:'platform-management'}) | async }}\n }\n </axp-layout-title>\n\n @if(group?.description && !vm.isSearching() && vm.layout.isLarge())\n {\n <axp-layout-description>\n {{ group?.description }}\n </axp-layout-description>\n }\n <axp-layout-actions>\n @if((!vm.isSearching() || vm.searchResult().length >0))\n {\n <axp-layout-actions-secondary>\n <ax-button-item [text]=\"(t('settings.restore-defaults',{scope:'platform-management'}) | async)!\"\n (onClick)=\"vm.resetToDefault();\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-rotate'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n <ax-divider></ax-divider>\n <ax-button-item [text]=\"(t('export') | async)!\">\n <ax-prefix>\n <ax-icon [icon]=\"'fa-solid fa-file-export'\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </axp-layout-actions-secondary>\n }\n\n </axp-layout-actions>\n </axp-layout-header>\n }\n @else\n {\n <axp-layout-header>\n <axp-layout-title>{{t(vm.title(),{scope:'platform-management'}) | async}}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box [delayTime]=\"300\" [ngModel]=\"vm.searchExpression()\" (onValueChanged)=\"handleSerach($event)\"\n class=\"ax-w-full\" [placeholder]=\"t('settings.search',{scope:'platform-management'}) | async\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </axp-layout-toolbar>\n </axp-layout-header>\n }\n\n <axp-layout-content id=\"ax-settings\">\n @if(vm.hasGroup() || vm.isSearching())\n {\n <router-outlet></router-outlet>\n }\n @else {\n <axp-layout-list>\n @for (item of vm.loadedItems(); track $index) {\n <axp-layout-list-item (click)=\"vm.handleSelectGroup(item)\">\n <axp-layout-prefix>\n <ax-icon icon=\"far ${{item.icon}}\" class=\"ax-text-gray-500\"></ax-icon>\n </axp-layout-prefix>\n <axp-layout-content>\n <a>{{item.title | translate | async}}</a>\n </axp-layout-content>\n <axp-layout-suffix>\n <ax-icon icon=\" far fa-chevron-right\" class=\"ax-text-gray-400\"></ax-icon>\n </axp-layout-suffix>\n </axp-layout-list-item>\n }\n </axp-layout-list>\n }\n </axp-layout-content>\n\n @if(vm.isDirty() )\n {\n <axp-layout-footer>\n <axp-layout-suffix>\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\" [text]=\"t('discard') | async\"\n (onClick)=\"vm.discard()\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n\n <ax-button [class.ax-sm]=\"vm.layout.isSmall()\" [disabled]=\"vm.isBusy()\"\n [text]=\"((t(vm.layout.isSmall() ? 'Apply': 'Apply Changes')) | async)!\" (onClick)=\"vm.apply()\"\n [color]=\"'primary'\">\n @if(vm.isBusy())\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer>\n }\n</axp-layout-simple-page>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Da,uBAAuB,CAAA;AAlCpC,IAAA,WAAA,GAAA;AAoCc,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAM9C;AAJa,IAAA,YAAY,CAAC,CAA2B,EAAA;QAC9C,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;;8GALlB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,SAAA,EAHrB,CAAC,oBAAoB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA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BAAuB,CAAC,MAAM,EACpC,SAAA,EAAA,CAAC,oBAAoB,CAAC,EAAA,QAAA,EAAA,++KAAA,EAAA,MAAA,EAAA,CAAA,4PAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { AXBadgeModule } from '@acorex/components/badge';
|
|
2
|
-
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
3
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
6
|
-
import * as i2 from '@acorex/components/form';
|
|
7
|
-
import { AXFormComponent, AXFormModule } from '@acorex/components/form';
|
|
8
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
9
|
-
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
10
|
-
import * as i6 from '@acorex/core/translation';
|
|
11
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
12
|
-
import { AXValidationModule } from '@acorex/core/validation';
|
|
13
|
-
import * as i6$1 from '@acorex/platform/layout/builder';
|
|
14
|
-
import { AXPWidgetContainerComponent, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
15
|
-
import { AXPSettingsViewModel } from '@acorex/platform/layout/setting';
|
|
16
|
-
import { AXPLayoutThemeService, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';
|
|
17
|
-
import * as i1 from '@angular/common';
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
19
|
-
import * as i0 from '@angular/core';
|
|
20
|
-
import { inject, Injector, viewChild, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
21
|
-
import { FormsModule } from '@angular/forms';
|
|
22
|
-
|
|
23
|
-
class AXPSettingsViewComponent {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.vm = inject(AXPSettingsViewModel);
|
|
26
|
-
this.injector = inject(Injector);
|
|
27
|
-
this.layoutService = inject(AXPLayoutThemeService);
|
|
28
|
-
this.from = viewChild(AXFormComponent);
|
|
29
|
-
this.container = viewChild(AXPWidgetContainerComponent);
|
|
30
|
-
this.#effect1 = effect(() => {
|
|
31
|
-
this.vm.isBusy.set(this.container()?.isBusy() ?? false);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
#effect1;
|
|
35
|
-
ngAfterViewInit() {
|
|
36
|
-
this.vm.form = this.from();
|
|
37
|
-
this.vm.builder = this.container().builderService;
|
|
38
|
-
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSettingsViewComponent, isStandalone: true, selector: "ng-component", host: { classAttribute: "ax-w-full" }, viewQueries: [{ propertyName: "from", first: true, predicate: AXFormComponent, descendants: true, isSignal: true }, { propertyName: "container", first: true, predicate: AXPWidgetContainerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type:
|
|
41
|
-
//
|
|
42
|
-
AXDecoratorModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type:
|
|
43
|
-
//
|
|
44
|
-
AXPLayoutBuilderModule }, { kind: "component", type: i6$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSettingsViewComponent, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
args: [{ imports: [
|
|
49
|
-
CommonModule,
|
|
50
|
-
FormsModule,
|
|
51
|
-
//
|
|
52
|
-
AXDecoratorModule,
|
|
53
|
-
AXBreadcrumbsModule,
|
|
54
|
-
AXButtonModule,
|
|
55
|
-
AXBadgeModule,
|
|
56
|
-
AXTranslationModule,
|
|
57
|
-
AXSearchBoxModule,
|
|
58
|
-
AXDropdownButtonModule,
|
|
59
|
-
AXLoadingModule,
|
|
60
|
-
AXFormModule,
|
|
61
|
-
AXValidationModule,
|
|
62
|
-
//
|
|
63
|
-
AXPLayoutBuilderModule,
|
|
64
|
-
AXPThemeLayoutBlockComponent
|
|
65
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
66
|
-
class: 'ax-w-full',
|
|
67
|
-
}, template: "<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n" }]
|
|
68
|
-
}] });
|
|
69
|
-
|
|
70
|
-
export { AXPSettingsViewComponent };
|
|
71
|
-
//# sourceMappingURL=acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-themes-default-setting-view.component-BagAWM4W.mjs","sources":["../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-view/setting-view.component.ts","../../../../libs/platform/themes/default/src/lib/layouts/setting-layout/setting-view/setting-view.component.html"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPLayoutBuilderModule, AXPWidgetContainerComponent } from '@acorex/platform/layout/builder';\nimport { AXPSettingsViewModel } from '@acorex/platform/layout/setting';\nimport { AXPLayoutThemeService, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, inject, Injector, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n templateUrl: 'setting-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n //\n AXDecoratorModule,\n AXBreadcrumbsModule,\n AXButtonModule,\n AXBadgeModule,\n AXTranslationModule,\n AXSearchBoxModule,\n AXDropdownButtonModule,\n AXLoadingModule,\n AXFormModule,\n AXValidationModule,\n //\n AXPLayoutBuilderModule,\n AXPThemeLayoutBlockComponent\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ax-w-full',\n }\n})\nexport class AXPSettingsViewComponent {\n protected vm = inject(AXPSettingsViewModel);\n protected injector = inject(Injector);\n protected layoutService = inject(AXPLayoutThemeService);\n private from = viewChild(AXFormComponent);\n private container = viewChild(AXPWidgetContainerComponent);\n\n #effect1 = effect(() => {\n this.vm.isBusy.set(this.container()?.isBusy() ?? false)\n });\n\n ngAfterViewInit() {\n this.vm.form = this.from()!;\n this.vm.builder = this.container()!.builderService;\n }\n}\n","<ax-form>\n <axp-widgets-container\n [context]=\"vm.context()\"\n (onContextChanged)=\"vm.handleContextChanged($event)\"\n *translate=\"let t\"\n >\n @if(vm.isSearching() && vm.searchResult()!.length>0) { @for(group of vm.searchResult(); track group.name;let\n first=$first) {\n <p class=\"ax-text-lg md:ax-text-xl ax-font-semibold ax-py-3 ax-text-neutral-500\" [class.ax-pt-0]=\"first\">\n {{ group.title | translate | async }}\n </p>\n <axp-layout-sections>\n @for (section of group.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } } @else if(vm.isSearching() && vm.searchResult()!.length===0) {\n <div class=\"ax-p-2\">\n <div\n class=\"ax-mt-3 ax-flex ax-flex-col ax-justify-center ax-h-[calc(100vh-236px)] ax-items-center ax-p-10 ax-gap-10\"\n >\n <p class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">\n {{ t('settings.search-not-found', { scope: 'platform-management' }) | async }}\n </p>\n </div>\n </div>\n } @else if(vm.groups()?.sections) {\n <axp-layout-sections>\n @for(section of vm.groups()?.sections; track section.name) {\n <ng-container\n [ngTemplateOutlet]=\"sectionTpl\"\n [ngTemplateOutletContext]=\"{ section }\"\n [ngTemplateOutletInjector]=\"injector\"\n ></ng-container>\n }\n </axp-layout-sections>\n } @else {\n <div class=\"ax-bg-lightest ax-px-4 ax-border ax-rounded-md\">\n @for(group of vm.groups()?.groups; track $index) {\n <!-- <div class=\"ax-p-4\">\n <a [routerLink]=\"vm.fullRoute + group.name\"\n class=\"ax-text-primary-500 dark:ax-text-primary-200 ax-underline ax-font-bold ax-text-xl\">{{ group.title\n }}</a>\n </div> -->\n }\n </div>\n }\n <ng-template #sectionTpl let-section=\"section\">\n <axp-layout-section-container>\n <axp-layout-header-container>\n <axp-layout-title>\n {{ section.title | translate | async }}\n </axp-layout-title>\n @if(section.description) {\n <axp-layout-description>\n {{ section.description | translate | async }}\n </axp-layout-description>\n }\n </axp-layout-header-container>\n <axp-layout-content class=\"ax-flex ax-flex-col ax-divide-y ax-divide-dashed ax-w-full\">\n @let isSideMenuOpen=layoutService.isSideMenuOpen(); @for(j of section.settings; track j.name){\n <div\n class=\"ax-py-4 ax-px-4 lg:ax-px-6 xl:ax-px-8 2xl:ax-px-10 ax-gap-4 ax-items-center ax-grid ax-grid-cols-1 sm:ax-grid-cols-2 lg:ax-grid-cols-4 xl:ax-grid-cols-6 2xl:ax-grid-cols-10 3xl:ax-grid-cols-12\"\n [class.ax-hidden]=\"widget.options()['visibility'] == false\"\n >\n <!-- Title and Description Section -->\n <div\n class=\"ax-col-span-1 lg:ax-col-span-3 xl:ax-col-span-2 2xl:ax-col-span-3\"\n [ngClass]=\"{\n 'xl:ax-col-span-2': !isSideMenuOpen,\n 'xl:ax-col-span-3': isSideMenuOpen,\n '3xl:ax-col-span-3': !isSideMenuOpen,\n '3xl:ax-col-span-4': isSideMenuOpen\n }\"\n >\n @if(j.title) {\n <axp-layout-title>{{ j.title | translate | async }}</axp-layout-title>\n } @if(j.description) {\n <axp-layout-description>{{ j.description | translate | async }}</axp-layout-description>\n }\n </div>\n\n <!-- Editor Section -->\n <ax-form-field\n class=\"ax-flex ax-w-full sm:ax-col-span-2 lg:ax-col-span-4 xl:ax-col-span-3 2xl:ax-col-span-5 3xl:ax-col-span-4\"\n [ngClass]=\"{\n 'xl:ax-col-start-3': !isSideMenuOpen,\n 'xl:ax-col-start-4': isSideMenuOpen,\n '3xl:ax-col-start-4': !isSideMenuOpen,\n '3xl:ax-col-start-5': isSideMenuOpen,\n }\"\n >\n <ng-container axp-widget-renderer [node]=\"j.widget\" [mode]=\"'edit'\" #widget=\"widgetRenderer\">\n </ng-container>\n </ax-form-field>\n </div>\n }\n </axp-layout-content>\n <!-- @if(vm.isDirty(section) && !vm.layout.isSmall())\n {\n <axp-layout-footer-container class=\"ax-sm\">\n <axp-layout-suffix>\n <ax-button (onClick)=\"vm.discard(section)\" [text]=\"(t('discard') | async)!\" [disabled]=\"vm.isBusy()\">\n </ax-button>\n <ax-button (onClick)=\"vm.apply(section)\" color=\"primary\" [text]=\"(t('apply') | async)!\"\n [disabled]=\"vm.isBusy()\">\n @if(vm.isSaving() )\n {\n <ax-loading></ax-loading>\n }\n </ax-button>\n </axp-layout-suffix>\n </axp-layout-footer-container>\n } -->\n </axp-layout-section-container>\n </ng-template>\n </axp-widgets-container>\n</ax-form>\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MA0Ca,wBAAwB,CAAA;AAzBrC,IAAA,WAAA,GAAA;AA0Bc,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAC/C,QAAA,IAAA,CAAA,IAAI,GAAG,SAAS,CAAC,eAAe,CAAC;AACjC,QAAA,IAAA,CAAA,SAAS,GAAG,SAAS,CAAC,2BAA2B,CAAC;AAE1D,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,MAAK;AACnB,YAAA,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,KAAK,CAAC;AAC3D,SAAC,CAAC;AAML;AARG,IAAA,QAAQ;IAIR,eAAe,GAAA;QACX,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAG;QAC3B,IAAI,CAAC,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,EAAG,CAAC,cAAc;;8GAb7C,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,WAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,MAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAIR,eAAe,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EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACtB,eAAe,EACf,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,kTACZ,kBAAkB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA;;AAElB,gBAAA,sBAAsB,kXACtB,4BAA4B,EAAA,QAAA,EAAA,wYAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAOvB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAzBpC,SAAS;AAEG,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACL,YAAY;wBACZ,WAAW;;wBAEX,iBAAiB;wBACjB,mBAAmB;wBACnB,cAAc;wBACd,aAAa;wBACb,mBAAmB;wBACnB,iBAAiB;wBACjB,sBAAsB;wBACtB,eAAe;wBACf,YAAY;wBACZ,kBAAkB;;wBAElB,sBAAsB;wBACtB;qBACH,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,WAAW;AACrB,qBAAA,EAAA,QAAA,EAAA,omKAAA,EAAA;;;;;"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as i5 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i3 from '@acorex/components/decorators';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import { AXBasePageComponent } from '@acorex/components/page';
|
|
6
|
-
import * as i1$1 from '@acorex/platform/layout/builder';
|
|
7
|
-
import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
8
|
-
import * as i0 from '@angular/core';
|
|
9
|
-
import { viewChild, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
10
|
-
import * as i5$1 from '@acorex/components/data-table';
|
|
11
|
-
import { AXDataTableModule } from '@acorex/components/data-table';
|
|
12
|
-
import { AXDataSource } from '@acorex/components/common';
|
|
13
|
-
import * as i5$2 from '@acorex/core/translation';
|
|
14
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
-
import * as i1 from '@angular/common';
|
|
16
|
-
import { CommonModule } from '@angular/common';
|
|
17
|
-
|
|
18
|
-
class AXPTabularDataPopupComponent extends AXBasePageComponent {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.dataSource = new AXDataSource({
|
|
22
|
-
load: async () => {
|
|
23
|
-
const items = this.context;
|
|
24
|
-
return {
|
|
25
|
-
items: items ?? [],
|
|
26
|
-
total: 0
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
pageSize: 1000,
|
|
30
|
-
key: 'gridItem',
|
|
31
|
-
});
|
|
32
|
-
this.grid = viewChild('grid');
|
|
33
|
-
}
|
|
34
|
-
handleContextChange(e) {
|
|
35
|
-
this.context = e.data;
|
|
36
|
-
}
|
|
37
|
-
onClose() {
|
|
38
|
-
console.log(this.context);
|
|
39
|
-
this.close({
|
|
40
|
-
context: this.context,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
addRecord() {
|
|
44
|
-
console.log(this.columns);
|
|
45
|
-
const value = this.context ?? [];
|
|
46
|
-
const newRecord = this.columns?.reduce((acc, column) => {
|
|
47
|
-
acc[column.name] = ''; // or any default value
|
|
48
|
-
return acc;
|
|
49
|
-
}, {});
|
|
50
|
-
console.log(value);
|
|
51
|
-
this.context = [...value, newRecord];
|
|
52
|
-
this.grid()?.refresh();
|
|
53
|
-
}
|
|
54
|
-
handleSelectionChange(e) {
|
|
55
|
-
console.log(e);
|
|
56
|
-
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTabularDataPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
58
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTabularDataPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "grid", first: true, predicate: ["grid"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
59
|
-
<div class="ax-p-4">
|
|
60
|
-
<ax-data-table
|
|
61
|
-
#grid
|
|
62
|
-
[paging]="false"
|
|
63
|
-
(selectedRowsChange)="handleSelectionChange($event)"
|
|
64
|
-
[dataSource]="dataSource"
|
|
65
|
-
>
|
|
66
|
-
@for (column of columns; track $index) {
|
|
67
|
-
<ax-text-column [caption]="column.title" [dataField]="column.name" [cellTemplate]="cell"></ax-text-column>
|
|
68
|
-
<ng-template #cell let-item>
|
|
69
|
-
<axp-widgets-container [context]="context" (onContextChanged)="handleContextChange($event)">
|
|
70
|
-
<ng-container
|
|
71
|
-
axp-widget-renderer
|
|
72
|
-
[node]="{
|
|
73
|
-
path:item.rowIndex + '.' + column.name,
|
|
74
|
-
type: column.type.name,
|
|
75
|
-
options:column.options ?? {}
|
|
76
|
-
}"
|
|
77
|
-
[mode]="'edit'"
|
|
78
|
-
>
|
|
79
|
-
</ng-container>
|
|
80
|
-
</axp-widgets-container>
|
|
81
|
-
</ng-template>
|
|
82
|
-
}
|
|
83
|
-
</ax-data-table>
|
|
84
|
-
<div class="ax-flex ax-justify-center ax-items-center">
|
|
85
|
-
<ax-button color="success" (onClick)="addRecord()">
|
|
86
|
-
<ax-icon class="fa-solid fa-plus"></ax-icon>
|
|
87
|
-
</ax-button>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
<ax-footer>
|
|
91
|
-
<ax-suffix>
|
|
92
|
-
<ax-button color="primary" [text]="'Okay' | translate | async" (onClick)="onClose()"></ax-button>
|
|
93
|
-
</ax-suffix>
|
|
94
|
-
</ax-footer>
|
|
95
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i1$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i5$1.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "parentField", "rowTemplate", "emptyTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged"] }, { kind: "component", type: i5$1.AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5$2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
96
|
-
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTabularDataPopupComponent, decorators: [{
|
|
98
|
-
type: Component,
|
|
99
|
-
args: [{
|
|
100
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
101
|
-
template: `
|
|
102
|
-
<div class="ax-p-4">
|
|
103
|
-
<ax-data-table
|
|
104
|
-
#grid
|
|
105
|
-
[paging]="false"
|
|
106
|
-
(selectedRowsChange)="handleSelectionChange($event)"
|
|
107
|
-
[dataSource]="dataSource"
|
|
108
|
-
>
|
|
109
|
-
@for (column of columns; track $index) {
|
|
110
|
-
<ax-text-column [caption]="column.title" [dataField]="column.name" [cellTemplate]="cell"></ax-text-column>
|
|
111
|
-
<ng-template #cell let-item>
|
|
112
|
-
<axp-widgets-container [context]="context" (onContextChanged)="handleContextChange($event)">
|
|
113
|
-
<ng-container
|
|
114
|
-
axp-widget-renderer
|
|
115
|
-
[node]="{
|
|
116
|
-
path:item.rowIndex + '.' + column.name,
|
|
117
|
-
type: column.type.name,
|
|
118
|
-
options:column.options ?? {}
|
|
119
|
-
}"
|
|
120
|
-
[mode]="'edit'"
|
|
121
|
-
>
|
|
122
|
-
</ng-container>
|
|
123
|
-
</axp-widgets-container>
|
|
124
|
-
</ng-template>
|
|
125
|
-
}
|
|
126
|
-
</ax-data-table>
|
|
127
|
-
<div class="ax-flex ax-justify-center ax-items-center">
|
|
128
|
-
<ax-button color="success" (onClick)="addRecord()">
|
|
129
|
-
<ax-icon class="fa-solid fa-plus"></ax-icon>
|
|
130
|
-
</ax-button>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
<ax-footer>
|
|
134
|
-
<ax-suffix>
|
|
135
|
-
<ax-button color="primary" [text]="'Okay' | translate | async" (onClick)="onClose()"></ax-button>
|
|
136
|
-
</ax-suffix>
|
|
137
|
-
</ax-footer>
|
|
138
|
-
`,
|
|
139
|
-
imports: [CommonModule, AXDecoratorModule, AXButtonModule, AXPLayoutBuilderModule, AXDataTableModule, AXTranslationModule]
|
|
140
|
-
}]
|
|
141
|
-
}] });
|
|
142
|
-
|
|
143
|
-
export { AXPTabularDataPopupComponent };
|
|
144
|
-
//# sourceMappingURL=acorex-platform-widgets-tabular-data-edit-popup.component-D2-nHqYy.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-widgets-tabular-data-edit-popup.component-D2-nHqYy.mjs","sources":["../../../../libs/platform/widgets/src/lib/widgets/editors/tabular-data/tabular-data-edit-popup.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXPLayoutBuilderModule, AXPLayoutContextChangeEvent } from '@acorex/platform/layout/builder';\nimport { ChangeDetectionStrategy, Component, effect, viewChild } from '@angular/core';\nimport { AXPTabularDataColumn } from './tabular-widget.types';\nimport { AXDataTableComponent, AXDataTableModule } from '@acorex/components/data-table';\nimport { AXComponentClosing, AXDataSource } from '@acorex/components/common';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"ax-p-4\">\n <ax-data-table\n #grid\n [paging]=\"false\"\n (selectedRowsChange)=\"handleSelectionChange($event)\"\n [dataSource]=\"dataSource\"\n >\n @for (column of columns; track $index) {\n <ax-text-column [caption]=\"column.title\" [dataField]=\"column.name\" [cellTemplate]=\"cell\"></ax-text-column>\n <ng-template #cell let-item>\n <axp-widgets-container [context]=\"context\" (onContextChanged)=\"handleContextChange($event)\">\n <ng-container\n axp-widget-renderer\n [node]=\"{\n path:item.rowIndex + '.' + column.name,\n type: column.type.name,\n options:column.options ?? {}\n }\"\n [mode]=\"'edit'\"\n >\n </ng-container>\n </axp-widgets-container>\n </ng-template>\n }\n </ax-data-table>\n <div class=\"ax-flex ax-justify-center ax-items-center\">\n <ax-button color=\"success\" (onClick)=\"addRecord()\">\n <ax-icon class=\"fa-solid fa-plus\"></ax-icon>\n </ax-button>\n </div>\n </div>\n <ax-footer>\n <ax-suffix>\n <ax-button color=\"primary\" [text]=\"'Okay' | translate | async\" (onClick)=\"onClose()\"></ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n imports: [CommonModule, AXDecoratorModule, AXButtonModule, AXPLayoutBuilderModule, AXDataTableModule, AXTranslationModule]\n})\nexport class AXPTabularDataPopupComponent extends AXBasePageComponent {\n context: any;\n columns: AXPTabularDataColumn[];\n\n protected dataSource = new AXDataSource({\n load: async () => {\n const items = this.context;\n return {\n items: items ?? [],\n total: 0\n };\n },\n pageSize: 1000,\n key: 'gridItem',\n });\n\n protected grid = viewChild<AXDataTableComponent>('grid');\n\n handleContextChange(e: AXPLayoutContextChangeEvent) {\n this.context = e.data;\n }\n\n onClose() {\n console.log(this.context);\n this.close({\n context: this.context,\n });\n }\n\n addRecord() {\n\n console.log(this.columns);\n\n const value = this.context ?? [];\n const newRecord = this.columns?.reduce((acc: { [key: string]: any }, column) => {\n acc[column.name] = ''; // or any default value\n return acc;\n }, {});\n console.log(value);\n this.context = [...value, newRecord];\n this.grid()?.refresh();\n }\n\n handleSelectionChange(e: any) {\n console.log(e);\n }\n\n\n}\n"],"names":["i2","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AAqDM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;AA1CrE,IAAA,WAAA,GAAA;;QA8CY,IAAU,CAAA,UAAA,GAAG,IAAI,YAAY,CAAC;YACtC,IAAI,EAAE,YAAW;AACf,gBAAA,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO;gBAC1B,OAAO;oBACL,KAAK,EAAE,KAAK,IAAI,EAAE;AAClB,oBAAA,KAAK,EAAE;iBACR;aACF;AACD,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,GAAG,EAAE,UAAU;AAChB,SAAA,CAAC;AAEQ,QAAA,IAAA,CAAA,IAAI,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AAO,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,mBAAmB;AAC1H,iBAAA;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-widgets-tabular-data-view-popup.component-BBRVgZLu.mjs","sources":["../../../../libs/platform/widgets/src/lib/widgets/editors/tabular-data/tabular-data-view-popup.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDataTableModule } from '@acorex/components/data-table';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPTabularDataColumn } from './tabular-widget.types';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ax-data-table class=\"ax-m-4\" #grid [paging]=\"false\" [dataSource]=\"dataSource\">\n @for (column of columns; track $index) {\n <ax-text-column [dataField]=\"column.name\" [caption]=\"column.title\"></ax-text-column>\n }\n </ax-data-table>\n <ax-footer\n ><div class=\"ax-flex ax-w-full ax-justify-end\">\n <ax-button color=\"primary\" [text]=\"'Okay'\" (onClick)=\"onClose()\"></ax-button></div\n ></ax-footer>\n `,\n imports: [AXDecoratorModule, AXButtonModule, AXDataTableModule],\n})\nexport class AXPTabularDataPopupComponent extends AXBasePageComponent {\n dataSource: [];\n columns: AXPTabularDataColumn[];\n onClose() {\n this.close();\n }\n}\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;AAsBM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;IAGnE,OAAO,GAAA;QACL,IAAI,CAAC,KAAK,EAAE;;8GAJH,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA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