@acorex/platform 20.4.1 → 20.5.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/index.d.ts +1 -1
- package/core/index.d.ts +405 -193
- package/fesm2022/acorex-platform-common.mjs +2 -2
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +638 -244
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +614 -31
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +30 -396
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +164 -158
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +1182 -305
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +6 -1
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +676 -271
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/layout/components/index.d.ts +245 -3
- package/layout/entity/index.d.ts +1 -59
- package/layout/widgets/index.d.ts +237 -3
- package/package.json +1 -1
- package/themes/default/index.d.ts +1 -0
|
@@ -20,9 +20,9 @@ import { AXDataSource } from '@acorex/cdk/common';
|
|
|
20
20
|
import { AXFormatService } from '@acorex/core/format';
|
|
21
21
|
import * as i4$1 from '@acorex/platform/common';
|
|
22
22
|
import { AXPFilterOperatorMiddlewareService, AXPEntityCommandScope, getEntityInfo, AXPSettingService, AXPRefreshEvent, AXPReloadEvent, AXPCommonSettings, AXPCleanNestedFilters, AXPWorkflowNavigateAction, AXPToastAction, AXP_SEARCH_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
23
|
-
import * as i1$
|
|
23
|
+
import * as i1$1 from '@acorex/platform/core';
|
|
24
24
|
import { resolveActionLook, AXPExpressionEvaluatorService, AXPDistributedEventListenerService, AXPBroadcastEventService, AXPPlatformScope, getChangedPaths, extractValue, setSmart, AXPSystemActionType } from '@acorex/platform/core';
|
|
25
|
-
import * as i2$
|
|
25
|
+
import * as i2$3 from '@acorex/platform/workflow';
|
|
26
26
|
import { AXPWorkflowService, ofType, createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
27
27
|
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
28
28
|
import { Subject, takeUntil } from 'rxjs';
|
|
@@ -36,19 +36,18 @@ import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
|
36
36
|
import * as i4$2 from '@acorex/components/dropdown';
|
|
37
37
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
38
38
|
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY, AXP_ALLOW_CLEAR_PROPERTY, AXP_DATA_PROPERTY_GROUP, AXP_ALLOW_MULTIPLE_PROPERTY, AXPFileUploaderWidgetService } from '@acorex/platform/layout/widgets';
|
|
39
|
-
import * as i1
|
|
39
|
+
import * as i1 from '@angular/forms';
|
|
40
40
|
import { FormsModule } from '@angular/forms';
|
|
41
41
|
import * as i5$1 from '@acorex/components/form';
|
|
42
42
|
import { AXFormModule } from '@acorex/components/form';
|
|
43
43
|
import * as i7 from '@acorex/components/select-box';
|
|
44
44
|
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
45
|
-
import * as i2$
|
|
45
|
+
import * as i2$2 from '@acorex/components/text-box';
|
|
46
46
|
import { AXTextBoxModule, AXTextBoxComponent } from '@acorex/components/text-box';
|
|
47
47
|
import { AXValidationModule } from '@acorex/core/validation';
|
|
48
|
-
import * as
|
|
48
|
+
import * as i2$1 from '@acorex/components/badge';
|
|
49
49
|
import { AXBadgeModule } from '@acorex/components/badge';
|
|
50
|
-
import
|
|
51
|
-
import { AXSearchBoxComponent, AXSearchBoxModule } from '@acorex/components/search-box';
|
|
50
|
+
import { AXSearchBoxComponent } from '@acorex/components/search-box';
|
|
52
51
|
import * as i6$1 from '@acorex/components/tag-box';
|
|
53
52
|
import { AXTagBoxComponent, AXTagBoxModule } from '@acorex/components/tag-box';
|
|
54
53
|
import { AXPDataSelectorService, AXPWidgetPropertyViewerComponent } from '@acorex/platform/layout/components';
|
|
@@ -3578,9 +3577,10 @@ class AXPMainEntityContentBuilder {
|
|
|
3578
3577
|
? this.createExpressionEvaluator(rootContext, dependencies.expressionEvaluator)
|
|
3579
3578
|
: null;
|
|
3580
3579
|
// Prepare merge-details structures (sections and properties per section)
|
|
3581
|
-
|
|
3580
|
+
let evaluatedRelatedEntities = { ...(entity?.relatedEntities ?? []) };
|
|
3581
|
+
if (evaluatedRelatedEntities && evaluateExpressions) {
|
|
3582
3582
|
// Only evaluate the 'hidden' property for each related entity
|
|
3583
|
-
|
|
3583
|
+
evaluatedRelatedEntities = await Promise.all((entity.relatedEntities ?? []).map(async (re) => {
|
|
3584
3584
|
let hidden = re.hidden;
|
|
3585
3585
|
if (hidden && typeof hidden === 'string') {
|
|
3586
3586
|
try {
|
|
@@ -3594,7 +3594,7 @@ class AXPMainEntityContentBuilder {
|
|
|
3594
3594
|
return { ...re, hidden };
|
|
3595
3595
|
}));
|
|
3596
3596
|
}
|
|
3597
|
-
const mergeDetailEntities =
|
|
3597
|
+
const mergeDetailEntities = evaluatedRelatedEntities?.filter((re) => !re.hidden && re.layout?.type === 'merge-detail');
|
|
3598
3598
|
const mainPropsByGroup = (entity?.properties ?? []).reduce((acc, p) => {
|
|
3599
3599
|
if (!acc[p.groupId])
|
|
3600
3600
|
acc[p.groupId] = [];
|
|
@@ -3832,8 +3832,8 @@ class AXPMainEntityContentBuilder {
|
|
|
3832
3832
|
return prop?.__layout ?? singleInterface?.properties?.find((p) => p.name === name)?.layout;
|
|
3833
3833
|
};
|
|
3834
3834
|
// Get related entities for tabs
|
|
3835
|
-
const tabDetailEntities =
|
|
3836
|
-
const tabListEntities =
|
|
3835
|
+
const tabDetailEntities = evaluatedRelatedEntities?.filter((re) => !re.hidden && re.layout?.type === 'tab-detail');
|
|
3836
|
+
const tabListEntities = evaluatedRelatedEntities?.filter((re) => !re.hidden && (!re.layout?.type || re.layout?.type === 'tab-list'));
|
|
3837
3837
|
// Build related tabs if dependencies are provided
|
|
3838
3838
|
const tabDetailTabs = await this.buildTabDetails(tabDetailEntities ?? [], dependencies);
|
|
3839
3839
|
const tabListTabs = await this.buildTabLists(tabListEntities ?? [], rootContext, dependencies);
|
|
@@ -5487,11 +5487,11 @@ class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
5487
5487
|
expose: [
|
|
5488
5488
|
{
|
|
5489
5489
|
source: this.textField(),
|
|
5490
|
-
target: `${this.path}EditorObj.title`,
|
|
5490
|
+
target: this.multiple() ? `${this.path}EditorObj.{title}` : `${this.path}EditorObj.title`,
|
|
5491
5491
|
},
|
|
5492
5492
|
{
|
|
5493
5493
|
source: this.valueField(),
|
|
5494
|
-
target: `${this.path}EditorObj.id`,
|
|
5494
|
+
target: this.multiple() ? `${this.path}EditorObj.{id}` : `${this.path}EditorObj.id`,
|
|
5495
5495
|
},
|
|
5496
5496
|
],
|
|
5497
5497
|
look: 'select',
|
|
@@ -5504,16 +5504,21 @@ class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
5504
5504
|
this.lookupNode.set(node);
|
|
5505
5505
|
}, ...(ngDevMode ? [{ debugName: "#efUpdateLookupNode" }] : []));
|
|
5506
5506
|
this.#efUpdateValue = effect(() => {
|
|
5507
|
+
debugger;
|
|
5507
5508
|
const newValueObj = this.contextService.getValue(`${this.path}EditorObj`);
|
|
5508
5509
|
const prevValue = untracked(() => this.getValue()?.value);
|
|
5509
|
-
|
|
5510
|
+
const newValue = this.multiple()
|
|
5511
|
+
? newValueObj?.map((v) => v[this.valueField()])
|
|
5512
|
+
: newValueObj?.[this.valueField()];
|
|
5513
|
+
const valueIsChanged = !isEqual(prevValue, newValue);
|
|
5514
|
+
if (!valueIsChanged) {
|
|
5510
5515
|
return;
|
|
5511
5516
|
}
|
|
5512
5517
|
const value = this.multiple()
|
|
5513
|
-
? newValueObj
|
|
5518
|
+
? newValueObj.map((v) => v[this.valueField()])
|
|
5514
5519
|
: newValueObj?.[this.valueField()];
|
|
5515
5520
|
const displayText = this.multiple()
|
|
5516
|
-
? newValueObj
|
|
5521
|
+
? newValueObj.map((v) => v[this.textField()]).join(',')
|
|
5517
5522
|
: newValueObj?.[this.textField()];
|
|
5518
5523
|
this.setValue({
|
|
5519
5524
|
value: value,
|
|
@@ -5651,7 +5656,7 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
5651
5656
|
<span class="ax-text-muted">---</span>
|
|
5652
5657
|
}
|
|
5653
5658
|
}
|
|
5654
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type:
|
|
5659
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i2$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5655
5660
|
}
|
|
5656
5661
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPLookupWidgetViewComponent, decorators: [{
|
|
5657
5662
|
type: Component,
|
|
@@ -6207,9 +6212,9 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6207
6212
|
</ax-tag-box>
|
|
6208
6213
|
}
|
|
6209
6214
|
}
|
|
6210
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1
|
|
6215
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
|
|
6211
6216
|
//
|
|
6212
|
-
AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3$2.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: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTagBoxModule }, { kind: "component", type: i6$1.AXTagBoxComponent, selector: "ax-tag-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "allowNull", "type", "look", "addOnComma", "addOnEnter", "valueField", "textField", "readonlyField", "allowDuplicateValues"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "component", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6217
|
+
AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3$2.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: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTagBoxModule }, { kind: "component", type: i6$1.AXTagBoxComponent, selector: "ax-tag-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "allowNull", "type", "look", "addOnComma", "addOnEnter", "valueField", "textField", "readonlyField", "allowDuplicateValues", "tagTemplate"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "onTagClick", "onTagDblClick", "onTagContextMenu"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "itemHeight", "maxVisibleItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "component", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6213
6218
|
}
|
|
6214
6219
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
6215
6220
|
type: Component,
|
|
@@ -6474,375 +6479,6 @@ const AXPLookupWidget = {
|
|
|
6474
6479
|
},
|
|
6475
6480
|
};
|
|
6476
6481
|
|
|
6477
|
-
class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent {
|
|
6478
|
-
constructor() {
|
|
6479
|
-
super(...arguments);
|
|
6480
|
-
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]), ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
6481
|
-
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
6482
|
-
// ویژگیهای مرتبط با SelectBox
|
|
6483
|
-
this.useSelectBox = computed(() => this.options()['useSelectBox'], ...(ngDevMode ? [{ debugName: "useSelectBox" }] : []));
|
|
6484
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
6485
|
-
// استخراج دادهها برای نمایش
|
|
6486
|
-
this.getData = computed(() => {
|
|
6487
|
-
if (!this.useSelectBox()) {
|
|
6488
|
-
return [];
|
|
6489
|
-
}
|
|
6490
|
-
const value = this.getValue();
|
|
6491
|
-
if (!value) {
|
|
6492
|
-
return [];
|
|
6493
|
-
}
|
|
6494
|
-
return Array.isArray(value) ? value : [value];
|
|
6495
|
-
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
6496
|
-
}
|
|
6497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6498
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AXPTagableBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
6499
|
-
<div class="ax-flex ax-gap-1 ax-flex-wrap">
|
|
6500
|
-
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
6501
|
-
<ax-badge [look]="'twotone'" [text]="item[textField()]" color="primary"></ax-badge>
|
|
6502
|
-
} } @else { @if(multiple()) { @for (item of internalValue(); track $index) {
|
|
6503
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-inline-block">{{ item }}</span>
|
|
6504
|
-
} } @else {
|
|
6505
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-inline-block">{{ internalValue()[0] }}</span>
|
|
6506
|
-
} }
|
|
6507
|
-
</div>
|
|
6508
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6509
|
-
}
|
|
6510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetColumnComponent, decorators: [{
|
|
6511
|
-
type: Component,
|
|
6512
|
-
args: [{
|
|
6513
|
-
template: `
|
|
6514
|
-
<div class="ax-flex ax-gap-1 ax-flex-wrap">
|
|
6515
|
-
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
6516
|
-
<ax-badge [look]="'twotone'" [text]="item[textField()]" color="primary"></ax-badge>
|
|
6517
|
-
} } @else { @if(multiple()) { @for (item of internalValue(); track $index) {
|
|
6518
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-inline-block">{{ item }}</span>
|
|
6519
|
-
} } @else {
|
|
6520
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-inline-block">{{ internalValue()[0] }}</span>
|
|
6521
|
-
} }
|
|
6522
|
-
</div>
|
|
6523
|
-
`,
|
|
6524
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6525
|
-
imports: [AXBadgeModule],
|
|
6526
|
-
inputs: [],
|
|
6527
|
-
}]
|
|
6528
|
-
}] });
|
|
6529
|
-
|
|
6530
|
-
var tagableBoxWidgetColumn_component = /*#__PURE__*/Object.freeze({
|
|
6531
|
-
__proto__: null,
|
|
6532
|
-
AXPTagableBoxWidgetColumnComponent: AXPTagableBoxWidgetColumnComponent
|
|
6533
|
-
});
|
|
6534
|
-
|
|
6535
|
-
class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
6536
|
-
constructor() {
|
|
6537
|
-
super(...arguments);
|
|
6538
|
-
this.entityResolver = inject(AXPEntityResolver);
|
|
6539
|
-
this.hasClearButton = computed(() => this.options()['hasClearButton'], ...(ngDevMode ? [{ debugName: "hasClearButton" }] : []));
|
|
6540
|
-
this.disabled = computed(() => this.options()['disabled'], ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
6541
|
-
this.placeholder = computed(() => this.options()['placeholder'], ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
6542
|
-
// پارامترهای SelectBox
|
|
6543
|
-
this.moduleName = computed(() => this.options()['module'], ...(ngDevMode ? [{ debugName: "moduleName" }] : []));
|
|
6544
|
-
this.entityName = computed(() => this.options()['entity'], ...(ngDevMode ? [{ debugName: "entityName" }] : []));
|
|
6545
|
-
this.allowSearch = computed(() => this.options()['allowSearch'], ...(ngDevMode ? [{ debugName: "allowSearch" }] : []));
|
|
6546
|
-
// منبع داده برای SelectBox
|
|
6547
|
-
this._dataSource = new AXDataSource({
|
|
6548
|
-
load: async (e) => {
|
|
6549
|
-
const entity = await this.entityResolver.get(this.moduleName(), this.entityName());
|
|
6550
|
-
const func = entity?.queries.list?.execute;
|
|
6551
|
-
const result = await func(e);
|
|
6552
|
-
console.log(result);
|
|
6553
|
-
return {
|
|
6554
|
-
items: result?.items || [],
|
|
6555
|
-
total: result?.total || 0,
|
|
6556
|
-
};
|
|
6557
|
-
},
|
|
6558
|
-
pageSize: 10,
|
|
6559
|
-
});
|
|
6560
|
-
}
|
|
6561
|
-
handleSelectValueChange(e) {
|
|
6562
|
-
if (e.isUserInteraction) {
|
|
6563
|
-
this.setValue(e.value);
|
|
6564
|
-
}
|
|
6565
|
-
}
|
|
6566
|
-
addItem() { }
|
|
6567
|
-
get __class() {
|
|
6568
|
-
const cls = {};
|
|
6569
|
-
cls[`ax-block`] = true;
|
|
6570
|
-
cls[`ax-flex-1`] = true;
|
|
6571
|
-
return cls;
|
|
6572
|
-
}
|
|
6573
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6574
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AXPTagableBoxWidgetEditComponent, isStandalone: true, selector: "axp-tagable-box-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
6575
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
6576
|
-
<!-- نمایش Select Box با دکمه اضافه کردن آیتم -->
|
|
6577
|
-
<ax-select-box
|
|
6578
|
-
class="ax-col-span-12"
|
|
6579
|
-
[placeholder]="placeholder()"
|
|
6580
|
-
[dataSource]="_dataSource"
|
|
6581
|
-
[ngModel]="getValue()"
|
|
6582
|
-
[valueField]="'name'"
|
|
6583
|
-
[textField]="'title'"
|
|
6584
|
-
[multiple]="true"
|
|
6585
|
-
(onValueChanged)="handleSelectValueChange($event)"
|
|
6586
|
-
>
|
|
6587
|
-
@if (allowSearch()) {
|
|
6588
|
-
<ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
|
|
6589
|
-
}
|
|
6590
|
-
@if (hasClearButton()) {
|
|
6591
|
-
<ax-clear-button></ax-clear-button>
|
|
6592
|
-
}
|
|
6593
|
-
@for (validation of validationRules(); track $index) {
|
|
6594
|
-
<ax-validation-rule
|
|
6595
|
-
[rule]="validation.rule"
|
|
6596
|
-
[message]="validation.options?.message"
|
|
6597
|
-
[options]="validation.options"
|
|
6598
|
-
></ax-validation-rule>
|
|
6599
|
-
}
|
|
6600
|
-
</ax-select-box>
|
|
6601
|
-
<ax-button
|
|
6602
|
-
[text]="'افزودن آیتم جدید'"
|
|
6603
|
-
look="twotone"
|
|
6604
|
-
[disabled]="disabled()"
|
|
6605
|
-
(onClick)="addItem()"
|
|
6606
|
-
class="ax-col-start-8 md:ax-col-start-9 2xl:ax-col-start-10 ax-col-end-13"
|
|
6607
|
-
>
|
|
6608
|
-
<ax-prefix>
|
|
6609
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
6610
|
-
</ax-prefix>
|
|
6611
|
-
</ax-button>
|
|
6612
|
-
</div>
|
|
6613
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3$2.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: AXValidationModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i6$2.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6614
|
-
}
|
|
6615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetEditComponent, decorators: [{
|
|
6616
|
-
type: Component,
|
|
6617
|
-
args: [{
|
|
6618
|
-
selector: 'axp-tagable-box-widget',
|
|
6619
|
-
template: `
|
|
6620
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
6621
|
-
<!-- نمایش Select Box با دکمه اضافه کردن آیتم -->
|
|
6622
|
-
<ax-select-box
|
|
6623
|
-
class="ax-col-span-12"
|
|
6624
|
-
[placeholder]="placeholder()"
|
|
6625
|
-
[dataSource]="_dataSource"
|
|
6626
|
-
[ngModel]="getValue()"
|
|
6627
|
-
[valueField]="'name'"
|
|
6628
|
-
[textField]="'title'"
|
|
6629
|
-
[multiple]="true"
|
|
6630
|
-
(onValueChanged)="handleSelectValueChange($event)"
|
|
6631
|
-
>
|
|
6632
|
-
@if (allowSearch()) {
|
|
6633
|
-
<ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
|
|
6634
|
-
}
|
|
6635
|
-
@if (hasClearButton()) {
|
|
6636
|
-
<ax-clear-button></ax-clear-button>
|
|
6637
|
-
}
|
|
6638
|
-
@for (validation of validationRules(); track $index) {
|
|
6639
|
-
<ax-validation-rule
|
|
6640
|
-
[rule]="validation.rule"
|
|
6641
|
-
[message]="validation.options?.message"
|
|
6642
|
-
[options]="validation.options"
|
|
6643
|
-
></ax-validation-rule>
|
|
6644
|
-
}
|
|
6645
|
-
</ax-select-box>
|
|
6646
|
-
<ax-button
|
|
6647
|
-
[text]="'افزودن آیتم جدید'"
|
|
6648
|
-
look="twotone"
|
|
6649
|
-
[disabled]="disabled()"
|
|
6650
|
-
(onClick)="addItem()"
|
|
6651
|
-
class="ax-col-start-8 md:ax-col-start-9 2xl:ax-col-start-10 ax-col-end-13"
|
|
6652
|
-
>
|
|
6653
|
-
<ax-prefix>
|
|
6654
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
6655
|
-
</ax-prefix>
|
|
6656
|
-
</ax-button>
|
|
6657
|
-
</div>
|
|
6658
|
-
`,
|
|
6659
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6660
|
-
imports: [
|
|
6661
|
-
AXTextBoxModule,
|
|
6662
|
-
FormsModule,
|
|
6663
|
-
AXFormModule,
|
|
6664
|
-
AXDecoratorModule,
|
|
6665
|
-
AXValidationModule,
|
|
6666
|
-
AXButtonModule,
|
|
6667
|
-
AXSelectBoxModule,
|
|
6668
|
-
AXSearchBoxModule
|
|
6669
|
-
],
|
|
6670
|
-
inputs: [],
|
|
6671
|
-
}]
|
|
6672
|
-
}], propDecorators: { __class: [{
|
|
6673
|
-
type: HostBinding,
|
|
6674
|
-
args: ['class']
|
|
6675
|
-
}] } });
|
|
6676
|
-
|
|
6677
|
-
var tagableBoxWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
6678
|
-
__proto__: null,
|
|
6679
|
-
AXPTagableBoxWidgetEditComponent: AXPTagableBoxWidgetEditComponent
|
|
6680
|
-
});
|
|
6681
|
-
|
|
6682
|
-
class AXPTagableBoxWidgetFilterComponent extends AXPValueWidgetComponent {
|
|
6683
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6684
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: AXPTagableBoxWidgetFilterComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6685
|
-
}
|
|
6686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetFilterComponent, decorators: [{
|
|
6687
|
-
type: Component,
|
|
6688
|
-
args: [{
|
|
6689
|
-
template: ``,
|
|
6690
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6691
|
-
imports: [FormsModule],
|
|
6692
|
-
inputs: [],
|
|
6693
|
-
}]
|
|
6694
|
-
}] });
|
|
6695
|
-
|
|
6696
|
-
var tagableBoxWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
6697
|
-
__proto__: null,
|
|
6698
|
-
AXPTagableBoxWidgetFilterComponent: AXPTagableBoxWidgetFilterComponent
|
|
6699
|
-
});
|
|
6700
|
-
|
|
6701
|
-
class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent {
|
|
6702
|
-
constructor() {
|
|
6703
|
-
super(...arguments);
|
|
6704
|
-
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]), ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
6705
|
-
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
6706
|
-
// ویژگیهای مرتبط با SelectBox
|
|
6707
|
-
this.useSelectBox = computed(() => this.options()['useSelectBox'], ...(ngDevMode ? [{ debugName: "useSelectBox" }] : []));
|
|
6708
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
6709
|
-
// استخراج دادهها برای نمایش
|
|
6710
|
-
this.getData = computed(() => {
|
|
6711
|
-
if (!this.useSelectBox()) {
|
|
6712
|
-
return [];
|
|
6713
|
-
}
|
|
6714
|
-
const value = this.getValue();
|
|
6715
|
-
if (!value) {
|
|
6716
|
-
return [];
|
|
6717
|
-
}
|
|
6718
|
-
return Array.isArray(value) ? value : [value];
|
|
6719
|
-
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
6720
|
-
}
|
|
6721
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6722
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AXPTagableBoxWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
6723
|
-
<div>
|
|
6724
|
-
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
6725
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{
|
|
6726
|
-
item[textField()]
|
|
6727
|
-
}}</span>
|
|
6728
|
-
} } @else { @if(multiple()) { @for (item of internalValue(); track $index) {
|
|
6729
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{ item }}</span>
|
|
6730
|
-
} } @else {
|
|
6731
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{
|
|
6732
|
-
internalValue()[0]
|
|
6733
|
-
}}</span>
|
|
6734
|
-
} }
|
|
6735
|
-
</div>
|
|
6736
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6737
|
-
}
|
|
6738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetPrintComponent, decorators: [{
|
|
6739
|
-
type: Component,
|
|
6740
|
-
args: [{
|
|
6741
|
-
template: `
|
|
6742
|
-
<div>
|
|
6743
|
-
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
6744
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{
|
|
6745
|
-
item[textField()]
|
|
6746
|
-
}}</span>
|
|
6747
|
-
} } @else { @if(multiple()) { @for (item of internalValue(); track $index) {
|
|
6748
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{ item }}</span>
|
|
6749
|
-
} } @else {
|
|
6750
|
-
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{
|
|
6751
|
-
internalValue()[0]
|
|
6752
|
-
}}</span>
|
|
6753
|
-
} }
|
|
6754
|
-
</div>
|
|
6755
|
-
`,
|
|
6756
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6757
|
-
imports: [],
|
|
6758
|
-
inputs: [],
|
|
6759
|
-
}]
|
|
6760
|
-
}] });
|
|
6761
|
-
|
|
6762
|
-
var tagableBoxWidgetPrint_component = /*#__PURE__*/Object.freeze({
|
|
6763
|
-
__proto__: null,
|
|
6764
|
-
AXPTagableBoxWidgetPrintComponent: AXPTagableBoxWidgetPrintComponent
|
|
6765
|
-
});
|
|
6766
|
-
|
|
6767
|
-
class AXPTagableBoxWidgetViewComponent extends AXPValueWidgetComponent {
|
|
6768
|
-
constructor() {
|
|
6769
|
-
super(...arguments);
|
|
6770
|
-
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]), ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
6771
|
-
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
6772
|
-
// ویژگیهای مرتبط با SelectBox
|
|
6773
|
-
this.useSelectBox = computed(() => this.options()['useSelectBox'], ...(ngDevMode ? [{ debugName: "useSelectBox" }] : []));
|
|
6774
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
6775
|
-
// استخراج دادهها برای نمایش
|
|
6776
|
-
this.getData = computed(() => {
|
|
6777
|
-
if (!this.useSelectBox()) {
|
|
6778
|
-
return [];
|
|
6779
|
-
}
|
|
6780
|
-
const value = this.getValue();
|
|
6781
|
-
if (!value) {
|
|
6782
|
-
return [];
|
|
6783
|
-
}
|
|
6784
|
-
return Array.isArray(value) ? value : [value];
|
|
6785
|
-
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
6786
|
-
}
|
|
6787
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6788
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: AXPTagableBoxWidgetViewComponent, isStandalone: true, selector: "axp-tagable-box-widget", usesInheritance: true, ngImport: i0, template: `
|
|
6789
|
-
@for (item of internalValue(); track $index) {
|
|
6790
|
-
<ax-badge [look]="'twotone'" [text]="item" color="primary"></ax-badge>
|
|
6791
|
-
}
|
|
6792
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6793
|
-
}
|
|
6794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPTagableBoxWidgetViewComponent, decorators: [{
|
|
6795
|
-
type: Component,
|
|
6796
|
-
args: [{
|
|
6797
|
-
selector: 'axp-tagable-box-widget',
|
|
6798
|
-
template: `
|
|
6799
|
-
@for (item of internalValue(); track $index) {
|
|
6800
|
-
<ax-badge [look]="'twotone'" [text]="item" color="primary"></ax-badge>
|
|
6801
|
-
}
|
|
6802
|
-
`,
|
|
6803
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6804
|
-
imports: [AXBadgeModule],
|
|
6805
|
-
inputs: [],
|
|
6806
|
-
}]
|
|
6807
|
-
}] });
|
|
6808
|
-
|
|
6809
|
-
var tagableBoxWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
6810
|
-
__proto__: null,
|
|
6811
|
-
AXPTagableBoxWidgetViewComponent: AXPTagableBoxWidgetViewComponent
|
|
6812
|
-
});
|
|
6813
|
-
|
|
6814
|
-
const AXPTagableBoxWidget = {
|
|
6815
|
-
name: 'tagable-editor',
|
|
6816
|
-
title: 'Tagable Box',
|
|
6817
|
-
icon: 'fa-light fa-tags',
|
|
6818
|
-
description: 'Inputs text with tags',
|
|
6819
|
-
categories: AXP_WIDGETS_EDITOR_CATEGORY,
|
|
6820
|
-
type: 'editor',
|
|
6821
|
-
groups: [AXPWidgetGroupEnum.EntityWidget],
|
|
6822
|
-
defaultFilterWidgetName: 'string-filter',
|
|
6823
|
-
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY],
|
|
6824
|
-
components: {
|
|
6825
|
-
view: {
|
|
6826
|
-
component: () => Promise.resolve().then(function () { return tagableBoxWidgetView_component; }).then((c) => c.AXPTagableBoxWidgetViewComponent),
|
|
6827
|
-
},
|
|
6828
|
-
edit: {
|
|
6829
|
-
component: () => Promise.resolve().then(function () { return tagableBoxWidgetEdit_component; }).then((c) => c.AXPTagableBoxWidgetEditComponent),
|
|
6830
|
-
},
|
|
6831
|
-
filter: {
|
|
6832
|
-
component: () => Promise.resolve().then(function () { return tagableBoxWidgetFilter_component; }).then((c) => c.AXPTagableBoxWidgetFilterComponent),
|
|
6833
|
-
},
|
|
6834
|
-
column: {
|
|
6835
|
-
component: () => Promise.resolve().then(function () { return tagableBoxWidgetColumn_component; }).then((c) => c.AXPTagableBoxWidgetColumnComponent),
|
|
6836
|
-
},
|
|
6837
|
-
print: {
|
|
6838
|
-
component: () => Promise.resolve().then(function () { return tagableBoxWidgetPrint_component; }).then((c) => c.AXPTagableBoxWidgetPrintComponent),
|
|
6839
|
-
},
|
|
6840
|
-
designer: {
|
|
6841
|
-
component: () => Promise.resolve().then(function () { return tagableBoxWidgetEdit_component; }).then((c) => c.AXPTagableBoxWidgetEditComponent),
|
|
6842
|
-
},
|
|
6843
|
-
},
|
|
6844
|
-
};
|
|
6845
|
-
|
|
6846
6482
|
class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
6847
6483
|
constructor() {
|
|
6848
6484
|
super(...arguments);
|
|
@@ -6907,7 +6543,7 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6907
6543
|
<axp-widget-property-viewer [widget]="selectedWidgetNode()!" (onChanged)="handleChangeWidget($event)">
|
|
6908
6544
|
</axp-widget-property-viewer>
|
|
6909
6545
|
}
|
|
6910
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1
|
|
6546
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.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: AXLoadingModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "component", type: AXPWidgetPropertyViewerComponent, selector: "axp-widget-property-viewer", inputs: ["widget", "mode"], outputs: ["onChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6911
6547
|
}
|
|
6912
6548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, decorators: [{
|
|
6913
6549
|
type: Component,
|
|
@@ -7426,8 +7062,8 @@ class AXPEntityModule {
|
|
|
7426
7062
|
},
|
|
7427
7063
|
});
|
|
7428
7064
|
}
|
|
7429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPEntityModule, deps: [{ token: i1$
|
|
7430
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i2$
|
|
7065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPEntityModule, deps: [{ token: i1$1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7066
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i2$3.AXPWorkflowModule, i3$1.AXPWidgetCoreModule] }); }
|
|
7431
7067
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPEntityModule, providers: [
|
|
7432
7068
|
{
|
|
7433
7069
|
provide: ROUTES,
|
|
@@ -7498,7 +7134,6 @@ class AXPEntityModule {
|
|
|
7498
7134
|
AXPLookupWidget,
|
|
7499
7135
|
AXPLookupFilterWidget,
|
|
7500
7136
|
AXPWidgetSelectorWidget,
|
|
7501
|
-
AXPTagableBoxWidget,
|
|
7502
7137
|
AXPEntityListWidget,
|
|
7503
7138
|
AXPEntityReferenceWidget,
|
|
7504
7139
|
],
|
|
@@ -7541,7 +7176,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7541
7176
|
AXPLookupWidget,
|
|
7542
7177
|
AXPLookupFilterWidget,
|
|
7543
7178
|
AXPWidgetSelectorWidget,
|
|
7544
|
-
AXPTagableBoxWidget,
|
|
7545
7179
|
AXPEntityListWidget,
|
|
7546
7180
|
AXPEntityReferenceWidget,
|
|
7547
7181
|
],
|
|
@@ -7588,7 +7222,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
7588
7222
|
]),
|
|
7589
7223
|
],
|
|
7590
7224
|
}]
|
|
7591
|
-
}], ctorParameters: () => [{ type: i1$
|
|
7225
|
+
}], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
7592
7226
|
|
|
7593
7227
|
const eventDispatchMiddleware = {
|
|
7594
7228
|
target: { ops: ['create', 'update', 'delete'], order: 90 },
|
|
@@ -8289,5 +7923,5 @@ function detectEntityChanges(oldObj, newObj) {
|
|
|
8289
7923
|
* Generated bundle index. Do not edit.
|
|
8290
7924
|
*/
|
|
8291
7925
|
|
|
8292
|
-
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDataSelectorService, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailPopoverComponent, AXPEntityDetailPopoverService, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityDynamicDialogService, AXPEntityEventDispatcherService, AXPEntityListTableService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityListWidget, AXPEntityListWidgetViewComponent, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityReferenceWidget, AXPEntityReferenceWidgetColumnComponent, AXPEntityReferenceWidgetDesignerComponent, AXPEntityReferenceWidgetEditComponent, AXPEntityReferenceWidgetPrintComponent, AXPEntityReferenceWidgetViewComponent, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPEntityUpdateViewSectionViewModel, AXPGetEntityDetailsQuery, AXPLookupFilterWidget, AXPLookupFilterWidgetEditComponent, AXPLookupWidget, AXPLookupWidgetColumnComponent, AXPLookupWidgetEditComponent, AXPLookupWidgetViewComponent, AXPMiddlewareAbortError, AXPMiddlewareEntityStorageService, AXPModifyEntitySectionWorkflow, AXPOpenEntityDetailsCommand, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow,
|
|
7926
|
+
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDataSelectorService, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailPopoverComponent, AXPEntityDetailPopoverService, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityDynamicDialogService, AXPEntityEventDispatcherService, AXPEntityListTableService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityListWidget, AXPEntityListWidgetViewComponent, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityReferenceWidget, AXPEntityReferenceWidgetColumnComponent, AXPEntityReferenceWidgetDesignerComponent, AXPEntityReferenceWidgetEditComponent, AXPEntityReferenceWidgetPrintComponent, AXPEntityReferenceWidgetViewComponent, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPEntityUpdateViewSectionViewModel, AXPGetEntityDetailsQuery, AXPLookupFilterWidget, AXPLookupFilterWidgetEditComponent, AXPLookupWidget, AXPLookupWidgetColumnComponent, AXPLookupWidgetEditComponent, AXPLookupWidgetViewComponent, AXPMiddlewareAbortError, AXPMiddlewareEntityStorageService, AXPModifyEntitySectionWorkflow, AXPOpenEntityDetailsCommand, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXPWidgetSelectorWidget, AXPWidgetSelectorWidgetEditComponent, AXPWidgetSelectorWidgetViewComponent, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_MODIFIER, AXP_ENTITY_STORAGE_BACKEND, AXP_ENTITY_STORAGE_MIDDLEWARE, DEFAULT_COLUMN_WIDTHS, actionExists, columnWidthMiddlewareFactory, columnWidthMiddlewareProvider, createColumnWidthMiddlewareProvider, createModifierContext, detectEntityChanges, ensureListActions, entityDetailsCreateActions, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, eventDispatchMiddleware, isAXPMiddlewareAbortError };
|
|
8293
7927
|
//# sourceMappingURL=acorex-platform-layout-entity.mjs.map
|