@acorex/platform 18.0.16 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/lib/schema/entity/entity.class.d.ts +2 -1
- package/esm2022/common/lib/schema/entity/entity.class.mjs +1 -1
- package/esm2022/common/lib/workflows/common.workflow.mjs +1 -1
- package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +1 -1
- package/esm2022/layout/designer/lib/designer/designer.component.mjs +2 -2
- package/esm2022/layout/entity/lib/entity.module.mjs +4 -2
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.mjs +7 -4
- package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +4 -3
- package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +10 -11
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +3 -2
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +2 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +2 -2
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +2 -2
- package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +2 -4
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +33 -6
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +4 -4
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-list-view.component.mjs +4 -4
- package/esm2022/widgets/lib/properties/editors.props.mjs +61 -2
- package/esm2022/widgets/lib/properties/table-column.props.mjs +17 -2
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +23 -7
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +24 -8
- package/esm2022/widgets/lib/widgets/actions/button/button-widget.config.mjs +4 -2
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-column.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-column.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-edit.component.mjs +7 -3
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget.config.mjs +4 -4
- package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget.config.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-column.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-column.component.mjs +6 -6
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +23 -14
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +58 -58
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget.config.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/contact/index.mjs +3 -4
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.mjs +63 -41
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.mjs +14 -20
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-column.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-view.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget.config.mjs +5 -4
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-edit.component.mjs +49 -57
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-view.component.mjs +11 -17
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-column.component.mjs +44 -7
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-edit.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-view.component.mjs +11 -5
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.mjs +33 -15
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget.config.mjs +4 -4
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.mjs +20 -6
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget.config.mjs +4 -4
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget.config.mjs +4 -4
- package/esm2022/widgets/lib/widgets.module.mjs +16 -10
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +2 -2
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +18 -13
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layouts-entity-create-view.component-C2pYReAo.mjs → acorex-platform-layouts-entity-create-view.component-CPGbLM4C.mjs} +3 -2
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-CPGbLM4C.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +1633 -1633
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CWXJxLS0.mjs +281 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CWXJxLS0.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs +357 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +11 -562
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-C0S_HJkl.mjs → acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs} +23 -7
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-BzNhzB9y.mjs → acorex-platform-widgets-checkbox-widget-column.component-j1jG8pCr.mjs} +6 -6
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-j1jG8pCr.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-GTwK51nJ.mjs +23 -0
- package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-GTwK51nJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +747 -586
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.d.ts +1 -1
- package/layout/entity/lib/workflows/create-entity.workflow.d.ts +2 -0
- package/layout/entity/lib/workflows/delete-entity.workflow.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/index.d.ts +1 -1
- package/package.json +12 -12
- package/themes/default/lib/entity-reuse.strategy.d.ts +1 -1
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +5 -0
- package/widgets/lib/properties/editors.props.d.ts +4 -0
- package/widgets/lib/properties/table-column.props.d.ts +1 -0
- package/widgets/lib/widgets/actions/button/button-widget-designer.component.d.ts +2 -1
- package/widgets/lib/widgets/actions/button/button-widget-view.component.d.ts +2 -1
- package/widgets/lib/widgets/advance/file/file-box-widget-column.component.d.ts +1 -1
- package/widgets/lib/widgets/advance/gallery/gallery-widget-column.component.d.ts +1 -1
- package/widgets/lib/widgets/advance/map/map-box-widget-edit.component.d.ts +2 -0
- package/widgets/lib/widgets/advance/signature/signature-pad-widget-column.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/checkbox/checkbox-widget-column.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -0
- package/widgets/lib/widgets/editors/contact/contact-widget-view.component.d.ts +2 -2
- package/widgets/lib/widgets/editors/contact/index.d.ts +2 -3
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.d.ts +2 -1
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.d.ts +2 -2
- package/widgets/lib/widgets/editors/large-text/large-text-widget-column.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/large-text/large-text-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/password/password-box-widget-column.component.d.ts +7 -3
- package/widgets/lib/widgets/editors/password/password-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/password/password-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +2 -0
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.d.ts +1 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-C2pYReAo.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-C0S_HJkl.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-BzNhzB9y.mjs.map +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import * as i2$1 from '@acorex/components/badge';
|
|
2
|
+
import { AXBadgeModule } from '@acorex/components/badge';
|
|
1
3
|
import * as i5 from '@acorex/components/button';
|
|
2
4
|
import { AXButtonModule } from '@acorex/components/button';
|
|
5
|
+
import * as i3 from '@acorex/components/decorators';
|
|
6
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
3
7
|
import * as i4 from '@acorex/components/loading';
|
|
4
8
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
5
9
|
import * as i1$7 from '@acorex/platform/layout/builder';
|
|
@@ -7,7 +11,7 @@ import { AXPWidgetComponent, AXPWidgetsCatalog, cloneProperty, AXP_WIDGETS_ACTIO
|
|
|
7
11
|
import * as i1$3 from '@angular/common';
|
|
8
12
|
import { CommonModule } from '@angular/common';
|
|
9
13
|
import * as i0 from '@angular/core';
|
|
10
|
-
import { computed, EventEmitter, Component, ChangeDetectionStrategy, inject, HostBinding, signal, ViewEncapsulation, ViewChild,
|
|
14
|
+
import { computed, EventEmitter, Component, ChangeDetectionStrategy, inject, effect, HostBinding, signal, ViewEncapsulation, ViewChild, ChangeDetectorRef, HostListener, NgModule } from '@angular/core';
|
|
11
15
|
import { AX_STYLE_COLOR_TYPES, AXDataSource, convertArrayToDataSource } from '@acorex/components/common';
|
|
12
16
|
import * as i1 from '@acorex/components/check-box';
|
|
13
17
|
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
@@ -15,11 +19,6 @@ import * as i1$1 from '@angular/forms';
|
|
|
15
19
|
import { FormsModule } from '@angular/forms';
|
|
16
20
|
import * as i2 from '@acorex/components/label';
|
|
17
21
|
import { AXLabelModule } from '@acorex/components/label';
|
|
18
|
-
import * as i2$1 from '@acorex/components/badge';
|
|
19
|
-
import { AXBadgeModule } from '@acorex/components/badge';
|
|
20
|
-
import * as i3 from '@acorex/components/decorators';
|
|
21
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
22
|
-
import { AXPClipBoardService } from '@acorex/platform/common';
|
|
23
22
|
import * as i4$1 from '@acorex/components/form';
|
|
24
23
|
import { AXFormModule } from '@acorex/components/form';
|
|
25
24
|
import { AXPopupService } from '@acorex/components/popup';
|
|
@@ -31,6 +30,7 @@ import * as i1$2 from '@acorex/core/translation';
|
|
|
31
30
|
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
|
32
31
|
import { AXValidationModule, AXValidationService } from '@acorex/core/validation';
|
|
33
32
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
33
|
+
import { AXPClipBoardService } from '@acorex/platform/common';
|
|
34
34
|
import { AXDateTimeFormatter } from '@acorex/core/date-time';
|
|
35
35
|
import * as i3$2 from '@acorex/components/datetime-box';
|
|
36
36
|
import { AXDateTimeBoxModule } from '@acorex/components/datetime-box';
|
|
@@ -59,12 +59,12 @@ import { AXImageModule } from '@acorex/components/image';
|
|
|
59
59
|
import * as i1$6 from '@acorex/components/map';
|
|
60
60
|
import { AXMapModule } from '@acorex/components/map';
|
|
61
61
|
import { AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetButtonComponent, AXPDesignerService, AXPDesignerGridDrawerComponent } from '@acorex/platform/layout/designer';
|
|
62
|
-
import * as i2$5 from '@acorex/components/color-box';
|
|
63
|
-
import { AXColorBoxModule } from '@acorex/components/color-box';
|
|
64
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
65
62
|
import * as i1$8 from '@acorex/components/qrcode';
|
|
66
63
|
import { AXQrcodeModule } from '@acorex/components/qrcode';
|
|
67
64
|
import { AXColorUtil } from '@acorex/core/utils';
|
|
65
|
+
import * as i2$5 from '@acorex/components/color-box';
|
|
66
|
+
import { AXColorBoxModule } from '@acorex/components/color-box';
|
|
67
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
68
68
|
|
|
69
69
|
class AXPButtonWidgetViewComponent extends AXPWidgetComponent {
|
|
70
70
|
constructor() {
|
|
@@ -73,7 +73,8 @@ class AXPButtonWidgetViewComponent extends AXPWidgetComponent {
|
|
|
73
73
|
this.color = computed(() => this.options()['color']?.id ?? 'primary');
|
|
74
74
|
this.look = computed(() => this.options()['look']?.id ?? 'solid');
|
|
75
75
|
this.text = computed(() => this.options()['text']);
|
|
76
|
-
this.loading = computed(() => this.options()['loading']);
|
|
76
|
+
this.loading = computed(() => this.options()['loading'] ?? false);
|
|
77
|
+
this.icon = computed(() => this.options()['icon']);
|
|
77
78
|
this.onClick = new EventEmitter();
|
|
78
79
|
}
|
|
79
80
|
handleClick(e) {
|
|
@@ -86,27 +87,39 @@ class AXPButtonWidgetViewComponent extends AXPWidgetComponent {
|
|
|
86
87
|
}
|
|
87
88
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPButtonWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
88
89
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPButtonWidgetViewComponent, isStandalone: true, selector: "axp_button_widget", usesInheritance: true, ngImport: i0, template: `
|
|
89
|
-
<ax-button
|
|
90
|
-
@if(
|
|
90
|
+
<ax-button [disabled]="disabled()" [color]="color()" [look]="look()" [text]="text()">
|
|
91
|
+
@if(icon() && text()){
|
|
92
|
+
<ax-prefix
|
|
93
|
+
><ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon
|
|
94
|
+
></ax-prefix>
|
|
95
|
+
} @else if(icon() && !text()) {
|
|
96
|
+
<ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon>
|
|
97
|
+
} @if(loading()){
|
|
91
98
|
<ax-loading> </ax-loading>
|
|
92
99
|
}
|
|
93
100
|
</ax-button>
|
|
94
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
101
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { 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-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXBadgeModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
102
|
}
|
|
96
103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPButtonWidgetViewComponent, decorators: [{
|
|
97
104
|
type: Component,
|
|
98
105
|
args: [{
|
|
99
106
|
selector: 'axp_button_widget',
|
|
100
107
|
template: `
|
|
101
|
-
<ax-button
|
|
102
|
-
@if(
|
|
108
|
+
<ax-button [disabled]="disabled()" [color]="color()" [look]="look()" [text]="text()">
|
|
109
|
+
@if(icon() && text()){
|
|
110
|
+
<ax-prefix
|
|
111
|
+
><ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon
|
|
112
|
+
></ax-prefix>
|
|
113
|
+
} @else if(icon() && !text()) {
|
|
114
|
+
<ax-icon> <i class="fa-solid" [class]="icon()"></i> </ax-icon>
|
|
115
|
+
} @if(loading()){
|
|
103
116
|
<ax-loading> </ax-loading>
|
|
104
117
|
}
|
|
105
118
|
</ax-button>
|
|
106
119
|
`,
|
|
107
120
|
standalone: true,
|
|
108
121
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
109
|
-
imports: [CommonModule, AXButtonModule, AXLoadingModule],
|
|
122
|
+
imports: [CommonModule, AXButtonModule, AXLoadingModule, AXDecoratorModule, AXBadgeModule],
|
|
110
123
|
inputs: [],
|
|
111
124
|
}]
|
|
112
125
|
}] });
|
|
@@ -409,6 +422,34 @@ const AXP_HAS_ICON_PROPERTY = {
|
|
|
409
422
|
},
|
|
410
423
|
visible: true,
|
|
411
424
|
};
|
|
425
|
+
const AXP_ICON_PROPERTY = {
|
|
426
|
+
name: 'icon',
|
|
427
|
+
title: 'Icon Name',
|
|
428
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
429
|
+
schema: {
|
|
430
|
+
dataType: 'string',
|
|
431
|
+
interface: {
|
|
432
|
+
name: 'icon',
|
|
433
|
+
path: 'options.icon',
|
|
434
|
+
type: AXPWidgetsCatalog.text,
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
visible: true,
|
|
438
|
+
};
|
|
439
|
+
const AXP_IS_LOADING_PROPERTY = {
|
|
440
|
+
name: 'loading',
|
|
441
|
+
title: 'Is Loading',
|
|
442
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
443
|
+
schema: {
|
|
444
|
+
dataType: 'boolean',
|
|
445
|
+
interface: {
|
|
446
|
+
name: 'loading',
|
|
447
|
+
path: 'options.loading',
|
|
448
|
+
type: AXPWidgetsCatalog.toggle,
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
visible: true,
|
|
452
|
+
};
|
|
412
453
|
const AXP_HAS_CLEAR_BUTTON_PROPERTY = {
|
|
413
454
|
name: 'hasClearButton',
|
|
414
455
|
title: 'Clear Button',
|
|
@@ -661,7 +702,6 @@ function plainTextDefaultProperty() {
|
|
|
661
702
|
group: AXP_DATA_PROPERTY_GROUP,
|
|
662
703
|
schema: {
|
|
663
704
|
dataType: 'string',
|
|
664
|
-
defaultValue: 'Sample Text',
|
|
665
705
|
interface: {
|
|
666
706
|
name: 'defaultValue',
|
|
667
707
|
path: 'defaultValue',
|
|
@@ -671,6 +711,38 @@ function plainTextDefaultProperty() {
|
|
|
671
711
|
visible: true,
|
|
672
712
|
};
|
|
673
713
|
}
|
|
714
|
+
function largeTextDefaultProperty() {
|
|
715
|
+
return {
|
|
716
|
+
name: 'defaultValue',
|
|
717
|
+
title: 'Default Value',
|
|
718
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
719
|
+
schema: {
|
|
720
|
+
dataType: 'string',
|
|
721
|
+
interface: {
|
|
722
|
+
name: 'defaultValue',
|
|
723
|
+
path: 'defaultValue',
|
|
724
|
+
type: AXPWidgetsCatalog.largeText,
|
|
725
|
+
},
|
|
726
|
+
},
|
|
727
|
+
visible: true,
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
function numberDefaultProperty() {
|
|
731
|
+
return {
|
|
732
|
+
name: 'defaultValue',
|
|
733
|
+
title: 'Default Value',
|
|
734
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
735
|
+
schema: {
|
|
736
|
+
dataType: 'number',
|
|
737
|
+
interface: {
|
|
738
|
+
name: 'defaultValue',
|
|
739
|
+
path: 'defaultValue',
|
|
740
|
+
type: AXPWidgetsCatalog.number,
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
visible: true,
|
|
744
|
+
};
|
|
745
|
+
}
|
|
674
746
|
|
|
675
747
|
const AXP_LAYOUT_GRID_PROPERTY_GROUP = {
|
|
676
748
|
name: "grid",
|
|
@@ -947,7 +1019,7 @@ const AXP_TABLE_COLUMN_WIDTH_PROPERTY = {
|
|
|
947
1019
|
group: AXP_STYLING_PROPERTY_GROUP,
|
|
948
1020
|
schema: {
|
|
949
1021
|
dataType: 'string',
|
|
950
|
-
defaultValue: '
|
|
1022
|
+
defaultValue: '300px',
|
|
951
1023
|
interface: {
|
|
952
1024
|
name: 'width',
|
|
953
1025
|
path: 'options.width',
|
|
@@ -956,6 +1028,21 @@ const AXP_TABLE_COLUMN_WIDTH_PROPERTY = {
|
|
|
956
1028
|
},
|
|
957
1029
|
visible: false,
|
|
958
1030
|
};
|
|
1031
|
+
const AXP_TABLE_COLUMN_HEIGHT_PROPERTY = {
|
|
1032
|
+
name: 'height',
|
|
1033
|
+
title: 'Height',
|
|
1034
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
1035
|
+
schema: {
|
|
1036
|
+
dataType: 'string',
|
|
1037
|
+
defaultValue: '300px',
|
|
1038
|
+
interface: {
|
|
1039
|
+
name: 'height',
|
|
1040
|
+
path: 'options.height',
|
|
1041
|
+
type: AXPWidgetsCatalog.text,
|
|
1042
|
+
},
|
|
1043
|
+
},
|
|
1044
|
+
visible: false,
|
|
1045
|
+
};
|
|
959
1046
|
|
|
960
1047
|
const AXPButtonWidget = {
|
|
961
1048
|
name: 'button-action',
|
|
@@ -969,10 +1056,12 @@ const AXPButtonWidget = {
|
|
|
969
1056
|
cloneProperty(AXP_TEXT_PROPERTY, { schema: { defaultValue: 'Click Here' } }),
|
|
970
1057
|
AXP_STYLE_COLOR_PROPERTY,
|
|
971
1058
|
AXP_STYLE_LOOK_PROPERTY,
|
|
1059
|
+
AXP_ICON_PROPERTY,
|
|
1060
|
+
AXP_IS_LOADING_PROPERTY
|
|
972
1061
|
],
|
|
973
1062
|
components: {
|
|
974
1063
|
designer: {
|
|
975
|
-
component: () => import('./acorex-platform-widgets-button-widget-designer.component-
|
|
1064
|
+
component: () => import('./acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs').then((c) => c.AXPButtonWidgetDesignerComponent),
|
|
976
1065
|
},
|
|
977
1066
|
view: {
|
|
978
1067
|
component: () => Promise.resolve().then(function () { return buttonWidgetView_component; }).then((c) => c.AXPButtonWidgetViewComponent),
|
|
@@ -1056,7 +1145,7 @@ const AXPCheckBoxWidget = {
|
|
|
1056
1145
|
component: () => Promise.resolve().then(function () { return checkboxWidgetEdit_component; }).then((c) => c.AXPCheckBoxWidgetEditComponent),
|
|
1057
1146
|
},
|
|
1058
1147
|
column: {
|
|
1059
|
-
component: () => import('./acorex-platform-widgets-checkbox-widget-column.component-
|
|
1148
|
+
component: () => import('./acorex-platform-widgets-checkbox-widget-column.component-j1jG8pCr.mjs').then((c) => c.AXPCheckBoxWidgetColumnComponent),
|
|
1060
1149
|
},
|
|
1061
1150
|
filter: {
|
|
1062
1151
|
component: () => Promise.resolve().then(function () { return checkboxWidgetEdit_component; }).then((c) => c.AXPCheckBoxWidgetEditComponent),
|
|
@@ -1064,121 +1153,41 @@ const AXPCheckBoxWidget = {
|
|
|
1064
1153
|
},
|
|
1065
1154
|
};
|
|
1066
1155
|
|
|
1067
|
-
class
|
|
1156
|
+
class AXPContactWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
1068
1157
|
constructor() {
|
|
1069
1158
|
super(...arguments);
|
|
1070
|
-
this.
|
|
1071
|
-
this.labelList = computed(() => this.options()['labelList'] || ['primary', 'secondary', 'Add New']);
|
|
1072
|
-
this.hasLabel = computed(() => this.options()['hasLabel']);
|
|
1073
|
-
this.multiple = computed(() => this.options()['multiple']);
|
|
1074
|
-
this.hasIcon = computed(() => this.options()['hasIcon']);
|
|
1075
|
-
this.internalValue = computed(() => this.valueToArray());
|
|
1076
|
-
this.clipboard = inject(AXPClipBoardService);
|
|
1077
|
-
this.chooseIcon = () => {
|
|
1078
|
-
switch (this.type()) {
|
|
1079
|
-
case 'email':
|
|
1080
|
-
return 'fa-envelope';
|
|
1081
|
-
case 'link':
|
|
1082
|
-
return 'fa-link';
|
|
1083
|
-
case 'phone':
|
|
1084
|
-
return 'fa-phone';
|
|
1085
|
-
default:
|
|
1086
|
-
return 'fa-info';
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
this.itemToArray = (item) => {
|
|
1159
|
+
this.itemToValue = (item) => {
|
|
1090
1160
|
if (typeof item === 'object')
|
|
1091
|
-
return
|
|
1092
|
-
value: item?.value ?? '',
|
|
1093
|
-
label: this.hasLabel() ? item?.label || this.labelList()[0] : undefined,
|
|
1094
|
-
icon: this.hasIcon() ? item?.icon || this.chooseIcon() : undefined,
|
|
1095
|
-
};
|
|
1161
|
+
return item?.value ?? '';
|
|
1096
1162
|
else
|
|
1097
|
-
return
|
|
1098
|
-
value: item,
|
|
1099
|
-
label: this.hasLabel() ? this.labelList()[0] : undefined,
|
|
1100
|
-
icon: this.hasIcon() ? this.chooseIcon() : undefined,
|
|
1101
|
-
};
|
|
1163
|
+
return item;
|
|
1102
1164
|
};
|
|
1103
1165
|
}
|
|
1104
|
-
|
|
1105
|
-
const
|
|
1106
|
-
if (
|
|
1107
|
-
return
|
|
1108
|
-
}
|
|
1166
|
+
getText(seperator) {
|
|
1167
|
+
const sep = seperator === 'comma' ? ',' : '\\n';
|
|
1168
|
+
if (typeof this.rawValue === 'string')
|
|
1169
|
+
return this.rawValue;
|
|
1109
1170
|
else {
|
|
1110
|
-
return
|
|
1171
|
+
return this.rawValue?.map((item) => this.itemToValue(item)).join(sep);
|
|
1111
1172
|
}
|
|
1112
1173
|
}
|
|
1113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1114
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1115
|
-
@for(item of internalValue();track $index){ @if(item){ @if(hasIcon()){
|
|
1116
|
-
<ax-icon class="ax-col-start-1 ax-col-end-2 fa-solid ax-text-neutral-400" [class]="chooseIcon()"> </ax-icon>
|
|
1117
|
-
} @let href = type() === 'link' ? item.value : type()==='phone'? 'tel:'+item.value : 'mailto:'+ item.value ;
|
|
1118
|
-
<div class="ax-col-start-2 ax-col-end-9">
|
|
1119
|
-
<a
|
|
1120
|
-
[href]="href"
|
|
1121
|
-
[target]="'_blank'"
|
|
1122
|
-
class="ax-text-blue-700 group-hover:!ax-text-primary-500 group-hover:ax-underline group-hover:ax-decoration-blue-700"
|
|
1123
|
-
>{{ item.value }}</a
|
|
1124
|
-
>
|
|
1125
|
-
<span
|
|
1126
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
1127
|
-
(click)="clipboard.copy('Email', item.value)"
|
|
1128
|
-
>
|
|
1129
|
-
<i class="fa-solid fa-copy "></i>
|
|
1130
|
-
</span>
|
|
1131
|
-
</div>
|
|
1132
|
-
@if(hasLabel()){
|
|
1133
|
-
<ax-badge
|
|
1134
|
-
class="ax-col-start-10 ax-col-end-12 ax-flex ax-justify-center ax-items-center"
|
|
1135
|
-
color="primary"
|
|
1136
|
-
[look]="'twotone'"
|
|
1137
|
-
[text]="item.label ?? ''"
|
|
1138
|
-
></ax-badge>
|
|
1139
|
-
} }}
|
|
1140
|
-
</div> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i2$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPContactWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `<span class="ax-truncate" [title]="getText('line')">{{ getText('comma') }}</span>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1141
1176
|
}
|
|
1142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetColumnComponent, decorators: [{
|
|
1143
1178
|
type: Component,
|
|
1144
1179
|
args: [{
|
|
1145
|
-
template: `<
|
|
1146
|
-
@for(item of internalValue();track $index){ @if(item){ @if(hasIcon()){
|
|
1147
|
-
<ax-icon class="ax-col-start-1 ax-col-end-2 fa-solid ax-text-neutral-400" [class]="chooseIcon()"> </ax-icon>
|
|
1148
|
-
} @let href = type() === 'link' ? item.value : type()==='phone'? 'tel:'+item.value : 'mailto:'+ item.value ;
|
|
1149
|
-
<div class="ax-col-start-2 ax-col-end-9">
|
|
1150
|
-
<a
|
|
1151
|
-
[href]="href"
|
|
1152
|
-
[target]="'_blank'"
|
|
1153
|
-
class="ax-text-blue-700 group-hover:!ax-text-primary-500 group-hover:ax-underline group-hover:ax-decoration-blue-700"
|
|
1154
|
-
>{{ item.value }}</a
|
|
1155
|
-
>
|
|
1156
|
-
<span
|
|
1157
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
1158
|
-
(click)="clipboard.copy('Email', item.value)"
|
|
1159
|
-
>
|
|
1160
|
-
<i class="fa-solid fa-copy "></i>
|
|
1161
|
-
</span>
|
|
1162
|
-
</div>
|
|
1163
|
-
@if(hasLabel()){
|
|
1164
|
-
<ax-badge
|
|
1165
|
-
class="ax-col-start-10 ax-col-end-12 ax-flex ax-justify-center ax-items-center"
|
|
1166
|
-
color="primary"
|
|
1167
|
-
[look]="'twotone'"
|
|
1168
|
-
[text]="item.label ?? ''"
|
|
1169
|
-
></ax-badge>
|
|
1170
|
-
} }}
|
|
1171
|
-
</div> `,
|
|
1180
|
+
template: `<span class="ax-truncate" [title]="getText('line')">{{ getText('comma') }}</span>`,
|
|
1172
1181
|
standalone: true,
|
|
1173
1182
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1174
|
-
imports: [CommonModule
|
|
1175
|
-
inputs: [],
|
|
1183
|
+
imports: [CommonModule],
|
|
1184
|
+
inputs: ['rawValue'],
|
|
1176
1185
|
}]
|
|
1177
1186
|
}] });
|
|
1178
1187
|
|
|
1179
|
-
var
|
|
1188
|
+
var contactWidgetColumn_component = /*#__PURE__*/Object.freeze({
|
|
1180
1189
|
__proto__: null,
|
|
1181
|
-
|
|
1190
|
+
AXPContactWidgetColumnComponent: AXPContactWidgetColumnComponent
|
|
1182
1191
|
});
|
|
1183
1192
|
|
|
1184
1193
|
class popupComponent extends AXBasePageComponent {
|
|
@@ -1243,10 +1252,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1243
1252
|
|
|
1244
1253
|
class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
1245
1254
|
constructor() {
|
|
1246
|
-
super(
|
|
1255
|
+
super();
|
|
1247
1256
|
//properties
|
|
1248
|
-
this.type = computed(() => this.options()['type']);
|
|
1249
|
-
this.labelList = computed(() => this.options()['labelList'] || ['primary', 'secondary', '
|
|
1257
|
+
this.type = computed(() => this.options()['type']?.id ?? 'email');
|
|
1258
|
+
this.labelList = computed(() => this.options()['labelList'] || ['primary', 'secondary', 'Add New']);
|
|
1250
1259
|
this.hasLabel = computed(() => this.options()['hasLabel']);
|
|
1251
1260
|
this.multiple = computed(() => this.options()['multiple']);
|
|
1252
1261
|
this.hasIcon = computed(() => this.options()['hasIcon']);
|
|
@@ -1293,6 +1302,7 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1293
1302
|
return 'fa-info';
|
|
1294
1303
|
}
|
|
1295
1304
|
};
|
|
1305
|
+
effect(() => console.log(this.type()));
|
|
1296
1306
|
}
|
|
1297
1307
|
addItem() {
|
|
1298
1308
|
const newValues = [...this.internalValue(), this.emptyValue()];
|
|
@@ -1325,7 +1335,7 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1325
1335
|
}
|
|
1326
1336
|
}
|
|
1327
1337
|
}
|
|
1328
|
-
const newValues = this.internalValue().map((item, index) =>
|
|
1338
|
+
const newValues = this.internalValue().map((item, index) => selectedIndex === index ? { ...item, [name]: value } : item);
|
|
1329
1339
|
if (this.multiple())
|
|
1330
1340
|
this.setValue(newValues);
|
|
1331
1341
|
else
|
|
@@ -1338,12 +1348,12 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1338
1348
|
return 'ax-col-start-1 ax-col-end-13 lg:ax-col-end-7';
|
|
1339
1349
|
}
|
|
1340
1350
|
else {
|
|
1341
|
-
return 'ax-col-start-1 ax-col-end-
|
|
1351
|
+
return 'ax-col-start-1 ax-col-end-11 lg:ax-col-start-7 lg:ax-col-end-12 ';
|
|
1342
1352
|
}
|
|
1343
1353
|
}
|
|
1344
1354
|
else {
|
|
1345
1355
|
if (element === 'value') {
|
|
1346
|
-
return 'ax-col-start-1 ax-col-end-
|
|
1356
|
+
return 'ax-col-start-1 ax-col-end-11';
|
|
1347
1357
|
}
|
|
1348
1358
|
}
|
|
1349
1359
|
}
|
|
@@ -1389,7 +1399,7 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1389
1399
|
cls[`ax-flex-1`] = true;
|
|
1390
1400
|
return cls;
|
|
1391
1401
|
}
|
|
1392
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetEditComponent, deps:
|
|
1402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1393
1403
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPContactWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `<div class="lg:ax-grid lg:ax-grid-cols-12 lg:ax-gap-4">
|
|
1394
1404
|
@for(item of internalValue();track $index) {
|
|
1395
1405
|
<ax-text-box
|
|
@@ -1402,7 +1412,11 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1402
1412
|
[disabled]="disabled()"
|
|
1403
1413
|
>
|
|
1404
1414
|
@for (validation of validationRules; track $index) {
|
|
1405
|
-
<ax-validation-rule
|
|
1415
|
+
<ax-validation-rule
|
|
1416
|
+
[rule]="validation.rule"
|
|
1417
|
+
[message]="validation.options?.message"
|
|
1418
|
+
[options]="validation.options"
|
|
1419
|
+
></ax-validation-rule>
|
|
1406
1420
|
}
|
|
1407
1421
|
<ax-validation-rule message="field can't be empty" rule="required"> </ax-validation-rule>
|
|
1408
1422
|
</ax-text-box>
|
|
@@ -1437,7 +1451,7 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1437
1451
|
[disabled]="disabled()"
|
|
1438
1452
|
look="twotone"
|
|
1439
1453
|
(onClick)="addItem()"
|
|
1440
|
-
class="
|
|
1454
|
+
class="ax-col-start-7 ax-col-end-13 lg:ax-col-start-10 xl:ax-col-start-11 "
|
|
1441
1455
|
>
|
|
1442
1456
|
<ax-prefix>
|
|
1443
1457
|
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
@@ -1461,7 +1475,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1461
1475
|
[disabled]="disabled()"
|
|
1462
1476
|
>
|
|
1463
1477
|
@for (validation of validationRules; track $index) {
|
|
1464
|
-
<ax-validation-rule
|
|
1478
|
+
<ax-validation-rule
|
|
1479
|
+
[rule]="validation.rule"
|
|
1480
|
+
[message]="validation.options?.message"
|
|
1481
|
+
[options]="validation.options"
|
|
1482
|
+
></ax-validation-rule>
|
|
1465
1483
|
}
|
|
1466
1484
|
<ax-validation-rule message="field can't be empty" rule="required"> </ax-validation-rule>
|
|
1467
1485
|
</ax-text-box>
|
|
@@ -1496,7 +1514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1496
1514
|
[disabled]="disabled()"
|
|
1497
1515
|
look="twotone"
|
|
1498
1516
|
(onClick)="addItem()"
|
|
1499
|
-
class="
|
|
1517
|
+
class="ax-col-start-7 ax-col-end-13 lg:ax-col-start-10 xl:ax-col-start-11 "
|
|
1500
1518
|
>
|
|
1501
1519
|
<ax-prefix>
|
|
1502
1520
|
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
@@ -1520,7 +1538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1520
1538
|
],
|
|
1521
1539
|
inputs: [],
|
|
1522
1540
|
}]
|
|
1523
|
-
}], propDecorators: { __class: [{
|
|
1541
|
+
}], ctorParameters: () => [], propDecorators: { __class: [{
|
|
1524
1542
|
type: HostBinding,
|
|
1525
1543
|
args: ['class']
|
|
1526
1544
|
}] } });
|
|
@@ -1530,81 +1548,141 @@ var contactWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
1530
1548
|
AXPContactWidgetEditComponent: AXPContactWidgetEditComponent
|
|
1531
1549
|
});
|
|
1532
1550
|
|
|
1533
|
-
class
|
|
1534
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1535
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type:
|
|
1551
|
+
class AXPContactWidgetPrintComponent extends AXPWidgetComponent {
|
|
1552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1553
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPContactWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1536
1554
|
}
|
|
1537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetPrintComponent, decorators: [{
|
|
1538
1556
|
type: Component,
|
|
1539
1557
|
args: [{
|
|
1540
1558
|
template: ``,
|
|
1541
1559
|
standalone: true,
|
|
1542
1560
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1543
|
-
imports: [CommonModule
|
|
1561
|
+
imports: [CommonModule],
|
|
1544
1562
|
inputs: []
|
|
1545
1563
|
}]
|
|
1546
1564
|
}] });
|
|
1547
1565
|
|
|
1548
|
-
var
|
|
1566
|
+
var contactWidgetPrint_component = /*#__PURE__*/Object.freeze({
|
|
1549
1567
|
__proto__: null,
|
|
1550
|
-
|
|
1568
|
+
AXPContactWidgetPrintComponent: AXPContactWidgetPrintComponent
|
|
1551
1569
|
});
|
|
1552
1570
|
|
|
1553
|
-
class
|
|
1571
|
+
class AXPContactWidgetViewComponent extends AXPWidgetComponent {
|
|
1554
1572
|
constructor() {
|
|
1555
1573
|
super(...arguments);
|
|
1556
|
-
this.
|
|
1574
|
+
this.type = computed(() => this.options()['type']);
|
|
1575
|
+
this.labelList = computed(() => this.options()['labelList'] || ['primary', 'secondary', 'Add New']);
|
|
1576
|
+
this.hasLabel = computed(() => this.options()['hasLabel']);
|
|
1577
|
+
this.multiple = computed(() => this.options()['multiple']);
|
|
1578
|
+
this.hasIcon = computed(() => this.options()['hasIcon']);
|
|
1579
|
+
this.internalValue = computed(() => this.itemToArray());
|
|
1580
|
+
this.clipboard = inject(AXPClipBoardService);
|
|
1581
|
+
this.chooseIcon = () => {
|
|
1582
|
+
switch (this.type()) {
|
|
1583
|
+
case 'email':
|
|
1584
|
+
return 'fa-envelope';
|
|
1585
|
+
case 'link':
|
|
1586
|
+
return 'fa-link';
|
|
1587
|
+
case 'phone':
|
|
1588
|
+
return 'fa-phone';
|
|
1589
|
+
default:
|
|
1590
|
+
return 'fa-info';
|
|
1591
|
+
}
|
|
1592
|
+
};
|
|
1593
|
+
this.correctItems = (item) => {
|
|
1557
1594
|
if (typeof item === 'object')
|
|
1558
|
-
return
|
|
1595
|
+
return {
|
|
1596
|
+
value: item?.value ?? '',
|
|
1597
|
+
label: this.hasLabel() ? item?.label || this.labelList()[0] : undefined,
|
|
1598
|
+
icon: this.hasIcon() ? item?.icon || this.chooseIcon() : undefined,
|
|
1599
|
+
};
|
|
1559
1600
|
else
|
|
1560
|
-
return
|
|
1601
|
+
return {
|
|
1602
|
+
value: item,
|
|
1603
|
+
label: this.hasLabel() ? this.labelList()[0] : undefined,
|
|
1604
|
+
icon: this.hasIcon() ? this.chooseIcon() : undefined,
|
|
1605
|
+
};
|
|
1561
1606
|
};
|
|
1562
1607
|
}
|
|
1563
|
-
|
|
1564
|
-
const
|
|
1565
|
-
if (
|
|
1566
|
-
return this.
|
|
1608
|
+
itemToArray() {
|
|
1609
|
+
const value = this.getValue();
|
|
1610
|
+
if (Array.isArray(value)) {
|
|
1611
|
+
return value.map((item) => this.correctItems(item));
|
|
1612
|
+
}
|
|
1567
1613
|
else {
|
|
1568
|
-
return this.
|
|
1614
|
+
return [this.correctItems(value)];
|
|
1569
1615
|
}
|
|
1570
1616
|
}
|
|
1571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1572
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
class
|
|
1591
|
-
|
|
1592
|
-
|
|
1617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1618
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPContactWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1619
|
+
@for(item of internalValue();track $index){ @let href = type() === 'link' ? item.value :
|
|
1620
|
+
type()==='phone'?'tel:'+item.value : 'mailto:'+ item.value ;
|
|
1621
|
+
<div class="ax-flex ax-gap-4 ax-items-center ax-justify-between ax-py-1">
|
|
1622
|
+
<div class="ax-flex ax-gap-4 ax-group ax-items-center ax-justify-center ax-truncate">
|
|
1623
|
+
@if(hasIcon()){
|
|
1624
|
+
<ax-icon class="fa-solid ax-text-neutral-400" [class]="chooseIcon()"> </ax-icon>
|
|
1625
|
+
}
|
|
1626
|
+
<a
|
|
1627
|
+
[href]="href"
|
|
1628
|
+
[target]="'_blank'"
|
|
1629
|
+
class="ax-truncate ax-text-blue-700 group-hover:!ax-text-primary-500 group-hover:ax-underline group-hover:ax-decoration-blue-700"
|
|
1630
|
+
>{{ item.value }}</a
|
|
1631
|
+
>
|
|
1632
|
+
<span
|
|
1633
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
1634
|
+
(click)="clipboard.copy(type(), item.value)"
|
|
1635
|
+
>
|
|
1636
|
+
<i class="fa-solid fa-copy"></i>
|
|
1637
|
+
</span>
|
|
1638
|
+
</div>
|
|
1639
|
+
@if(hasLabel()){
|
|
1640
|
+
<div><ax-badge color="primary" [look]="'twotone'" [text]="item.label ?? ''"></ax-badge></div>
|
|
1641
|
+
}
|
|
1642
|
+
</div>
|
|
1643
|
+
}
|
|
1644
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i2$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1593
1645
|
}
|
|
1594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPContactWidgetViewComponent, decorators: [{
|
|
1595
1647
|
type: Component,
|
|
1596
1648
|
args: [{
|
|
1597
|
-
template:
|
|
1649
|
+
template: `
|
|
1650
|
+
@for(item of internalValue();track $index){ @let href = type() === 'link' ? item.value :
|
|
1651
|
+
type()==='phone'?'tel:'+item.value : 'mailto:'+ item.value ;
|
|
1652
|
+
<div class="ax-flex ax-gap-4 ax-items-center ax-justify-between ax-py-1">
|
|
1653
|
+
<div class="ax-flex ax-gap-4 ax-group ax-items-center ax-justify-center ax-truncate">
|
|
1654
|
+
@if(hasIcon()){
|
|
1655
|
+
<ax-icon class="fa-solid ax-text-neutral-400" [class]="chooseIcon()"> </ax-icon>
|
|
1656
|
+
}
|
|
1657
|
+
<a
|
|
1658
|
+
[href]="href"
|
|
1659
|
+
[target]="'_blank'"
|
|
1660
|
+
class="ax-truncate ax-text-blue-700 group-hover:!ax-text-primary-500 group-hover:ax-underline group-hover:ax-decoration-blue-700"
|
|
1661
|
+
>{{ item.value }}</a
|
|
1662
|
+
>
|
|
1663
|
+
<span
|
|
1664
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
1665
|
+
(click)="clipboard.copy(type(), item.value)"
|
|
1666
|
+
>
|
|
1667
|
+
<i class="fa-solid fa-copy"></i>
|
|
1668
|
+
</span>
|
|
1669
|
+
</div>
|
|
1670
|
+
@if(hasLabel()){
|
|
1671
|
+
<div><ax-badge color="primary" [look]="'twotone'" [text]="item.label ?? ''"></ax-badge></div>
|
|
1672
|
+
}
|
|
1673
|
+
</div>
|
|
1674
|
+
}
|
|
1675
|
+
`,
|
|
1598
1676
|
standalone: true,
|
|
1599
1677
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1600
|
-
imports: [CommonModule],
|
|
1601
|
-
inputs: []
|
|
1678
|
+
imports: [CommonModule, FormsModule, AXBadgeModule, AXDecoratorModule],
|
|
1679
|
+
inputs: [],
|
|
1602
1680
|
}]
|
|
1603
1681
|
}] });
|
|
1604
1682
|
|
|
1605
|
-
var
|
|
1683
|
+
var contactWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
1606
1684
|
__proto__: null,
|
|
1607
|
-
|
|
1685
|
+
AXPContactWidgetViewComponent: AXPContactWidgetViewComponent
|
|
1608
1686
|
});
|
|
1609
1687
|
|
|
1610
1688
|
const AXPContactWidget = {
|
|
@@ -1617,12 +1695,13 @@ const AXPContactWidget = {
|
|
|
1617
1695
|
properties: [
|
|
1618
1696
|
{
|
|
1619
1697
|
name: 'type',
|
|
1620
|
-
title: 'Type',
|
|
1698
|
+
title: 'Contact Type',
|
|
1621
1699
|
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
1622
1700
|
schema: {
|
|
1623
1701
|
dataType: 'string',
|
|
1624
1702
|
nullable: false,
|
|
1625
1703
|
interface: {
|
|
1704
|
+
defaultValue: { id: 'link', title: 'Link' },
|
|
1626
1705
|
name: 'type',
|
|
1627
1706
|
path: 'options.type',
|
|
1628
1707
|
type: AXPWidgetsCatalog.select,
|
|
@@ -1652,7 +1731,6 @@ const AXPContactWidget = {
|
|
|
1652
1731
|
dataSource: [
|
|
1653
1732
|
{ id: 'primary', title: 'Primary' },
|
|
1654
1733
|
{ id: 'secondary', title: 'Secondary' },
|
|
1655
|
-
{ id: 'new', title: 'New' },
|
|
1656
1734
|
],
|
|
1657
1735
|
},
|
|
1658
1736
|
},
|
|
@@ -1673,7 +1751,7 @@ const AXPContactWidget = {
|
|
|
1673
1751
|
component: () => Promise.resolve().then(function () { return contactWidgetEdit_component; }).then((c) => c.AXPContactWidgetEditComponent),
|
|
1674
1752
|
},
|
|
1675
1753
|
filter: {
|
|
1676
|
-
component: () =>
|
|
1754
|
+
component: () => import('./acorex-platform-widgets-contact-widget-filter.component-GTwK51nJ.mjs').then((c) => c.AXPContactWidgetFilterComponent),
|
|
1677
1755
|
},
|
|
1678
1756
|
column: {
|
|
1679
1757
|
component: () => Promise.resolve().then(function () { return contactWidgetColumn_component; }).then((c) => c.AXPContactWidgetColumnComponent),
|
|
@@ -1691,9 +1769,11 @@ class AXPDateTimeBoxWidgetViewComponent extends AXPWidgetComponent {
|
|
|
1691
1769
|
constructor() {
|
|
1692
1770
|
super(...arguments);
|
|
1693
1771
|
this.formatter = inject(AXDateTimeFormatter);
|
|
1694
|
-
this.multiple = computed(() => this.options()[
|
|
1695
|
-
this.format = computed(() => this.options()[
|
|
1696
|
-
this.internalValue = computed(() => Array.isArray(this.getValue())
|
|
1772
|
+
this.multiple = computed(() => this.options()['multiple']);
|
|
1773
|
+
this.format = computed(() => this.options()['format']['id']);
|
|
1774
|
+
this.internalValue = computed(() => Array.isArray(this.getValue())
|
|
1775
|
+
? this.getValue().map((v) => this.handleFormat(v))
|
|
1776
|
+
: [this.handleFormat(this.getValue())]);
|
|
1697
1777
|
}
|
|
1698
1778
|
handleFormat(value) {
|
|
1699
1779
|
return value ? this.formatter.format(new Date(value), { format: this.format() }) : '---';
|
|
@@ -1701,14 +1781,10 @@ class AXPDateTimeBoxWidgetViewComponent extends AXPWidgetComponent {
|
|
|
1701
1781
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1702
1782
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPDateTimeBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1703
1783
|
<div>
|
|
1704
|
-
@if(multiple()){
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
}
|
|
1709
|
-
@else
|
|
1710
|
-
{
|
|
1711
|
-
<p>{{ internalValue()[0] }}</p>
|
|
1784
|
+
@if(multiple()){ @for (item of internalValue(); track $index) {
|
|
1785
|
+
<p>{{ item }}</p>
|
|
1786
|
+
} } @else {
|
|
1787
|
+
<p>{{ internalValue()[0] }}</p>
|
|
1712
1788
|
}
|
|
1713
1789
|
</div>
|
|
1714
1790
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -1718,14 +1794,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1718
1794
|
args: [{
|
|
1719
1795
|
template: `
|
|
1720
1796
|
<div>
|
|
1721
|
-
@if(multiple()){
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
}
|
|
1726
|
-
@else
|
|
1727
|
-
{
|
|
1728
|
-
<p>{{ internalValue()[0] }}</p>
|
|
1797
|
+
@if(multiple()){ @for (item of internalValue(); track $index) {
|
|
1798
|
+
<p>{{ item }}</p>
|
|
1799
|
+
} } @else {
|
|
1800
|
+
<p>{{ internalValue()[0] }}</p>
|
|
1729
1801
|
}
|
|
1730
1802
|
</div>
|
|
1731
1803
|
`,
|
|
@@ -1745,11 +1817,12 @@ class AXPDateTimeBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1745
1817
|
constructor() {
|
|
1746
1818
|
super(...arguments);
|
|
1747
1819
|
this.validationService = inject(AXValidationService);
|
|
1748
|
-
this.multiple = computed(() => this.options()[
|
|
1749
|
-
this.clearButton = computed(() => this.options()[
|
|
1750
|
-
this.format = computed(() => this.options()[
|
|
1751
|
-
this.disabled = computed(() => this.options()[
|
|
1752
|
-
this.
|
|
1820
|
+
this.multiple = computed(() => this.options()['multiple']);
|
|
1821
|
+
this.clearButton = computed(() => this.options()['clearButton']);
|
|
1822
|
+
this.format = computed(() => this.options()['format']?.['id']);
|
|
1823
|
+
this.disabled = computed(() => this.options()['disabled']);
|
|
1824
|
+
this.placeholder = computed(() => this.options()['placeholder']);
|
|
1825
|
+
this.internalValue = computed(() => Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]);
|
|
1753
1826
|
this._validationRules = [];
|
|
1754
1827
|
this.calendarFormat = computed(() => {
|
|
1755
1828
|
if (this.format() === 'date')
|
|
@@ -1799,26 +1872,32 @@ class AXPDateTimeBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1799
1872
|
(onValueChanged)="handleValueChange($event, $index)"
|
|
1800
1873
|
[disabled]="disabled()"
|
|
1801
1874
|
[format]="calendarFormat()"
|
|
1875
|
+
[placeholder]="placeholder()"
|
|
1802
1876
|
>
|
|
1803
|
-
@for (validation of validationRules; track $index)
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
{
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1877
|
+
@for (validation of validationRules; track $index) {
|
|
1878
|
+
<ax-validation-rule
|
|
1879
|
+
[rule]="validation.rule"
|
|
1880
|
+
[message]="validation.options?.message"
|
|
1881
|
+
[options]="validation.options"
|
|
1882
|
+
></ax-validation-rule>
|
|
1883
|
+
} @if(clearButton()){
|
|
1884
|
+
<ax-clear-button></ax-clear-button>
|
|
1885
|
+
} @if(multiple()) {
|
|
1886
|
+
<ax-suffix>
|
|
1887
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
1888
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
1889
|
+
</ax-button>
|
|
1890
|
+
</ax-suffix>
|
|
1817
1891
|
}
|
|
1818
1892
|
</ax-datetime-box>
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1893
|
+
} @if(multiple()){
|
|
1894
|
+
<ax-button
|
|
1895
|
+
class="ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-11 ax-col-end-13"
|
|
1896
|
+
[text]="!internalValue().length ? 'Add New' : 'Add Another'"
|
|
1897
|
+
look="twotone"
|
|
1898
|
+
(onClick)="addItem()"
|
|
1899
|
+
[disabled]="disabled()"
|
|
1900
|
+
></ax-button>
|
|
1822
1901
|
}
|
|
1823
1902
|
</div>
|
|
1824
1903
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: i4$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXDateTimeBoxModule }, { kind: "component", type: i3$2.AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "depth", "id", "type", "look", "holidayDates", "allowTyping", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onOpened", "onClosed", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", 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-sub-title, ax-placeholder, ax-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -1835,32 +1914,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1835
1914
|
(onValueChanged)="handleValueChange($event, $index)"
|
|
1836
1915
|
[disabled]="disabled()"
|
|
1837
1916
|
[format]="calendarFormat()"
|
|
1917
|
+
[placeholder]="placeholder()"
|
|
1838
1918
|
>
|
|
1839
|
-
@for (validation of validationRules; track $index)
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
{
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1919
|
+
@for (validation of validationRules; track $index) {
|
|
1920
|
+
<ax-validation-rule
|
|
1921
|
+
[rule]="validation.rule"
|
|
1922
|
+
[message]="validation.options?.message"
|
|
1923
|
+
[options]="validation.options"
|
|
1924
|
+
></ax-validation-rule>
|
|
1925
|
+
} @if(clearButton()){
|
|
1926
|
+
<ax-clear-button></ax-clear-button>
|
|
1927
|
+
} @if(multiple()) {
|
|
1928
|
+
<ax-suffix>
|
|
1929
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
1930
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
1931
|
+
</ax-button>
|
|
1932
|
+
</ax-suffix>
|
|
1853
1933
|
}
|
|
1854
1934
|
</ax-datetime-box>
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
|
|
1935
|
+
} @if(multiple()){
|
|
1936
|
+
<ax-button
|
|
1937
|
+
class="ax-col-start-9 lg:ax-col-start-10 xl:ax-col-start-11 ax-col-end-13"
|
|
1938
|
+
[text]="!internalValue().length ? 'Add New' : 'Add Another'"
|
|
1939
|
+
look="twotone"
|
|
1940
|
+
(onClick)="addItem()"
|
|
1941
|
+
[disabled]="disabled()"
|
|
1942
|
+
></ax-button>
|
|
1858
1943
|
}
|
|
1859
1944
|
</div>
|
|
1860
1945
|
`,
|
|
1861
1946
|
standalone: true,
|
|
1862
1947
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1863
|
-
imports: [
|
|
1948
|
+
imports: [
|
|
1949
|
+
CommonModule,
|
|
1950
|
+
FormsModule,
|
|
1951
|
+
AXFormModule,
|
|
1952
|
+
AXValidationModule,
|
|
1953
|
+
AXDateTimeBoxModule,
|
|
1954
|
+
AXButtonModule,
|
|
1955
|
+
AXDecoratorModule,
|
|
1956
|
+
AXValidationModule,
|
|
1957
|
+
],
|
|
1864
1958
|
inputs: [],
|
|
1865
1959
|
}]
|
|
1866
1960
|
}], propDecorators: { __class: [{
|
|
@@ -2671,7 +2765,8 @@ const AXPLargeTextWidget = {
|
|
|
2671
2765
|
AXP_DISABLED_PROPERTY,
|
|
2672
2766
|
AXP_VALIDATION_PROPERTY,
|
|
2673
2767
|
AXP_PLACEHOLDER_PROPERTY,
|
|
2674
|
-
|
|
2768
|
+
largeTextDefaultProperty(),
|
|
2769
|
+
//cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '300px' } }),
|
|
2675
2770
|
],
|
|
2676
2771
|
components: {
|
|
2677
2772
|
view: {
|
|
@@ -3289,8 +3384,8 @@ class AXPNumberBoxWidgetViewComponent extends AXPWidgetComponent {
|
|
|
3289
3384
|
constructor() {
|
|
3290
3385
|
super(...arguments);
|
|
3291
3386
|
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]));
|
|
3292
|
-
this.multiple = computed(() => this.options()[
|
|
3293
|
-
this.format = computed(() => this.options()[
|
|
3387
|
+
this.multiple = computed(() => this.options()['multiple']);
|
|
3388
|
+
this.format = computed(() => this.options()['format']);
|
|
3294
3389
|
this.formatService = inject(AXFormatService);
|
|
3295
3390
|
}
|
|
3296
3391
|
getValue() {
|
|
@@ -3302,13 +3397,10 @@ class AXPNumberBoxWidgetViewComponent extends AXPWidgetComponent {
|
|
|
3302
3397
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPNumberBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3303
3398
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPNumberBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
3304
3399
|
<div>
|
|
3305
|
-
@if(multiple()){
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
}@else
|
|
3310
|
-
{
|
|
3311
|
-
<p>{{ internalValue()[0] }}</p>
|
|
3400
|
+
@if(multiple()){ @for (item of internalValue(); track $index) {
|
|
3401
|
+
<p>{{ item }}</p>
|
|
3402
|
+
} }@else {
|
|
3403
|
+
<p>{{ internalValue()[0] }}</p>
|
|
3312
3404
|
}
|
|
3313
3405
|
</div>
|
|
3314
3406
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -3318,13 +3410,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
3318
3410
|
args: [{
|
|
3319
3411
|
template: `
|
|
3320
3412
|
<div>
|
|
3321
|
-
@if(multiple()){
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
}@else
|
|
3326
|
-
{
|
|
3327
|
-
<p>{{ internalValue()[0] }}</p>
|
|
3413
|
+
@if(multiple()){ @for (item of internalValue(); track $index) {
|
|
3414
|
+
<p>{{ item }}</p>
|
|
3415
|
+
} }@else {
|
|
3416
|
+
<p>{{ internalValue()[0] }}</p>
|
|
3328
3417
|
}
|
|
3329
3418
|
</div>
|
|
3330
3419
|
`,
|
|
@@ -3343,16 +3432,16 @@ var numberBoxWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
|
3343
3432
|
class AXPNumberBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
3344
3433
|
constructor() {
|
|
3345
3434
|
super(...arguments);
|
|
3346
|
-
this.disabled = computed(() => this.options()[
|
|
3347
|
-
this.multiple = computed(() => this.options()[
|
|
3348
|
-
this.clearButton = computed(() => this.options()[
|
|
3349
|
-
this.decimals = computed(() => this.options()[
|
|
3350
|
-
this.minValue = computed(() => this.options()[
|
|
3351
|
-
this.maxValue = computed(() => this.options()[
|
|
3352
|
-
this.placeholder = computed(() => this.options()[
|
|
3435
|
+
this.disabled = computed(() => this.options()['disabled']);
|
|
3436
|
+
this.multiple = computed(() => this.options()['multiple']);
|
|
3437
|
+
this.clearButton = computed(() => this.options()['hasClearButton'] ?? true);
|
|
3438
|
+
this.decimals = computed(() => this.options()['decimals'] ?? 0);
|
|
3439
|
+
this.minValue = computed(() => this.options()['minValue']);
|
|
3440
|
+
this.maxValue = computed(() => this.options()['maxValue']);
|
|
3441
|
+
this.placeholder = computed(() => this.options()['placeholder']);
|
|
3353
3442
|
this.validationService = inject(AXValidationService);
|
|
3354
3443
|
this.validationRules = [];
|
|
3355
|
-
this.internalValue = computed(() =>
|
|
3444
|
+
this.internalValue = computed(() => Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]);
|
|
3356
3445
|
this.validateFn = async (value, options) => {
|
|
3357
3446
|
const vn = this.validationService.ruleFor(value);
|
|
3358
3447
|
this.validationRules.forEach((v) => {
|
|
@@ -3405,32 +3494,28 @@ class AXPNumberBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
|
3405
3494
|
[disabled]="disabled()"
|
|
3406
3495
|
>
|
|
3407
3496
|
<ax-validation-rule rule="callback" [options]="{ validate: validateFn }"></ax-validation-rule>
|
|
3408
|
-
@if(clearButton())
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
</ax-button>
|
|
3417
|
-
</ax-suffix>
|
|
3497
|
+
@if(clearButton()) {
|
|
3498
|
+
<ax-clear-button></ax-clear-button>
|
|
3499
|
+
} @if(multiple()){
|
|
3500
|
+
<ax-suffix>
|
|
3501
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
3502
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
3503
|
+
</ax-button>
|
|
3504
|
+
</ax-suffix>
|
|
3418
3505
|
}
|
|
3419
3506
|
</ax-number-box>
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
</ax-prefix>
|
|
3433
|
-
</ax-button>
|
|
3507
|
+
} @if(multiple()) {
|
|
3508
|
+
<ax-button
|
|
3509
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
3510
|
+
[disabled]="disabled()"
|
|
3511
|
+
look="twotone"
|
|
3512
|
+
(onClick)="addItem()"
|
|
3513
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
3514
|
+
>
|
|
3515
|
+
<ax-prefix>
|
|
3516
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
3517
|
+
</ax-prefix>
|
|
3518
|
+
</ax-button>
|
|
3434
3519
|
}
|
|
3435
3520
|
</div>
|
|
3436
3521
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i1$4.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "hasWheel", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { 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: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", 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-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -3453,32 +3538,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
3453
3538
|
[disabled]="disabled()"
|
|
3454
3539
|
>
|
|
3455
3540
|
<ax-validation-rule rule="callback" [options]="{ validate: validateFn }"></ax-validation-rule>
|
|
3456
|
-
@if(clearButton())
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
</ax-button>
|
|
3465
|
-
</ax-suffix>
|
|
3541
|
+
@if(clearButton()) {
|
|
3542
|
+
<ax-clear-button></ax-clear-button>
|
|
3543
|
+
} @if(multiple()){
|
|
3544
|
+
<ax-suffix>
|
|
3545
|
+
<ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
|
|
3546
|
+
<ax-icon class="far fa-trash"> </ax-icon>
|
|
3547
|
+
</ax-button>
|
|
3548
|
+
</ax-suffix>
|
|
3466
3549
|
}
|
|
3467
3550
|
</ax-number-box>
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
</ax-prefix>
|
|
3481
|
-
</ax-button>
|
|
3551
|
+
} @if(multiple()) {
|
|
3552
|
+
<ax-button
|
|
3553
|
+
[text]="internalValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
3554
|
+
[disabled]="disabled()"
|
|
3555
|
+
look="twotone"
|
|
3556
|
+
(onClick)="addItem()"
|
|
3557
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
3558
|
+
>
|
|
3559
|
+
<ax-prefix>
|
|
3560
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
3561
|
+
</ax-prefix>
|
|
3562
|
+
</ax-button>
|
|
3482
3563
|
}
|
|
3483
3564
|
</div>
|
|
3484
3565
|
`,
|
|
@@ -3587,6 +3668,7 @@ const AXPNumberBoxWidget = {
|
|
|
3587
3668
|
AXP_DISABLED_PROPERTY,
|
|
3588
3669
|
AXP_VALIDATION_PROPERTY,
|
|
3589
3670
|
AXP_PLACEHOLDER_PROPERTY,
|
|
3671
|
+
numberDefaultProperty(),
|
|
3590
3672
|
cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '200px' } }),
|
|
3591
3673
|
],
|
|
3592
3674
|
components: {
|
|
@@ -3628,9 +3710,12 @@ class AXPPasswordBoxWidgetViewComponent extends AXPWidgetComponent {
|
|
|
3628
3710
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPPasswordBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
3629
3711
|
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
3630
3712
|
<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max">
|
|
3631
|
-
<span>{{
|
|
3713
|
+
<span>{{ show() ? internalValue() : '*******' }}</span>
|
|
3632
3714
|
@if(hasEyeIcon()){
|
|
3633
|
-
<span
|
|
3715
|
+
<span
|
|
3716
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
3717
|
+
(click)="toggleEye()"
|
|
3718
|
+
>
|
|
3634
3719
|
@if(!showPassword()){
|
|
3635
3720
|
<i class="fa-solid fa-eye"></i>
|
|
3636
3721
|
}@else {
|
|
@@ -3655,9 +3740,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
3655
3740
|
template: `
|
|
3656
3741
|
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
3657
3742
|
<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max">
|
|
3658
|
-
<span>{{
|
|
3743
|
+
<span>{{ show() ? internalValue() : '*******' }}</span>
|
|
3659
3744
|
@if(hasEyeIcon()){
|
|
3660
|
-
<span
|
|
3745
|
+
<span
|
|
3746
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
3747
|
+
(click)="toggleEye()"
|
|
3748
|
+
>
|
|
3661
3749
|
@if(!showPassword()){
|
|
3662
3750
|
<i class="fa-solid fa-eye"></i>
|
|
3663
3751
|
}@else {
|
|
@@ -3755,18 +3843,55 @@ var passwordBoxWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
|
3755
3843
|
AXPPasswordBoxWidgetFilterComponent: AXPPasswordBoxWidgetFilterComponent
|
|
3756
3844
|
});
|
|
3757
3845
|
|
|
3758
|
-
class AXPPasswordBoxWidgetColumnComponent extends
|
|
3846
|
+
class AXPPasswordBoxWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
3847
|
+
constructor() {
|
|
3848
|
+
super(...arguments);
|
|
3849
|
+
this.hasEyeIcon = this.options['hasEyeIcon'];
|
|
3850
|
+
this.showPassword = this.options['showPassword'];
|
|
3851
|
+
this.show = signal(!!this.rawValue);
|
|
3852
|
+
}
|
|
3853
|
+
toggleEye() {
|
|
3854
|
+
this.show.update((prev) => !prev);
|
|
3855
|
+
}
|
|
3759
3856
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPasswordBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3760
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3857
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPPasswordBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max">
|
|
3858
|
+
<span>{{ show() ? rawValue : '*******' }}</span>
|
|
3859
|
+
@if(hasEyeIcon){
|
|
3860
|
+
<span
|
|
3861
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
3862
|
+
(click)="toggleEye()"
|
|
3863
|
+
>
|
|
3864
|
+
@if(!showPassword){
|
|
3865
|
+
<i class="fa-solid fa-eye"></i>
|
|
3866
|
+
}@else {
|
|
3867
|
+
<i class="fa-solid fa-eye-slash"></i>
|
|
3868
|
+
}
|
|
3869
|
+
</span>
|
|
3870
|
+
}
|
|
3871
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3761
3872
|
}
|
|
3762
3873
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPasswordBoxWidgetColumnComponent, decorators: [{
|
|
3763
3874
|
type: Component,
|
|
3764
3875
|
args: [{
|
|
3765
|
-
template:
|
|
3876
|
+
template: `<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max">
|
|
3877
|
+
<span>{{ show() ? rawValue : '*******' }}</span>
|
|
3878
|
+
@if(hasEyeIcon){
|
|
3879
|
+
<span
|
|
3880
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
3881
|
+
(click)="toggleEye()"
|
|
3882
|
+
>
|
|
3883
|
+
@if(!showPassword){
|
|
3884
|
+
<i class="fa-solid fa-eye"></i>
|
|
3885
|
+
}@else {
|
|
3886
|
+
<i class="fa-solid fa-eye-slash"></i>
|
|
3887
|
+
}
|
|
3888
|
+
</span>
|
|
3889
|
+
}
|
|
3890
|
+
</div>`,
|
|
3766
3891
|
standalone: true,
|
|
3767
3892
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3768
3893
|
imports: [CommonModule],
|
|
3769
|
-
inputs: []
|
|
3894
|
+
inputs: ['rawValue'],
|
|
3770
3895
|
}]
|
|
3771
3896
|
}] });
|
|
3772
3897
|
|
|
@@ -4343,13 +4468,15 @@ var richTextWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
|
4343
4468
|
});
|
|
4344
4469
|
|
|
4345
4470
|
class AXPRichTextWidgetEditComponent extends AXPWidgetComponent {
|
|
4346
|
-
constructor() {
|
|
4347
|
-
super(...arguments);
|
|
4348
|
-
this._validationRules = [];
|
|
4349
|
-
}
|
|
4350
4471
|
setNgModel(event) {
|
|
4351
4472
|
this.setValue(event);
|
|
4352
4473
|
}
|
|
4474
|
+
constructor() {
|
|
4475
|
+
super();
|
|
4476
|
+
this.placeholder = computed(() => this.options()['placeholder'] ?? 'default');
|
|
4477
|
+
this._validationRules = [];
|
|
4478
|
+
effect(() => console.log(this.placeholder()));
|
|
4479
|
+
}
|
|
4353
4480
|
get validationRules() {
|
|
4354
4481
|
return this._validationRules;
|
|
4355
4482
|
}
|
|
@@ -4362,8 +4489,13 @@ class AXPRichTextWidgetEditComponent extends AXPWidgetComponent {
|
|
|
4362
4489
|
cls[`ax-flex-1`] = true;
|
|
4363
4490
|
return cls;
|
|
4364
4491
|
}
|
|
4365
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRichTextWidgetEditComponent, deps:
|
|
4366
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPRichTextWidgetEditComponent, isStandalone: true, selector: "axp-rich-text-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `<ax-wysiwyg-container
|
|
4492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRichTextWidgetEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPRichTextWidgetEditComponent, isStandalone: true, selector: "axp-rich-text-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `<ax-wysiwyg-container
|
|
4494
|
+
[placeHolder]="placeholder()"
|
|
4495
|
+
[look]="'solid'"
|
|
4496
|
+
[ngModel]="getValue()"
|
|
4497
|
+
(ngModelChange)="setNgModel($event)"
|
|
4498
|
+
>
|
|
4367
4499
|
<ax-wysiwyg-view class="ax-min-h-28"></ax-wysiwyg-view>
|
|
4368
4500
|
<ax-wysiwyg-toolbar>
|
|
4369
4501
|
<ax-wysiwyg-history></ax-wysiwyg-history>
|
|
@@ -4371,18 +4503,26 @@ class AXPRichTextWidgetEditComponent extends AXPWidgetComponent {
|
|
|
4371
4503
|
<ax-wysiwyg-colors></ax-wysiwyg-colors>
|
|
4372
4504
|
<ax-wysiwyg-list></ax-wysiwyg-list>
|
|
4373
4505
|
<ax-wysiwyg-alignment></ax-wysiwyg-alignment>
|
|
4374
|
-
<ax-wysiwyg-insert></ax-wysiwyg-insert>
|
|
4375
4506
|
</ax-wysiwyg-toolbar>
|
|
4376
4507
|
@for (validation of validationRules; track $index) {
|
|
4377
|
-
<ax-validation-rule
|
|
4508
|
+
<ax-validation-rule
|
|
4509
|
+
[rule]="validation.rule"
|
|
4510
|
+
[message]="validation.options?.message"
|
|
4511
|
+
[options]="validation.options"
|
|
4512
|
+
></ax-validation-rule>
|
|
4378
4513
|
}
|
|
4379
|
-
</ax-wysiwyg-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXWysiwygModule }, { kind: "component", type: i1$5.AXWysiwygContainerComponent, selector: "ax-wysiwyg-container", inputs: ["look"], outputs: ["onValueChanged"] }, { kind: "component", type: i1$5.AXWysiwygViewComponent, selector: "ax-wysiwyg-view", inputs: ["class"] }, { kind: "component", type: i1$5.AXWysiwygToolbarComponent, selector: "ax-wysiwyg-toolbar" }, { kind: "component", type: i1$5.AXWysiwygAlignmentComponent, selector: "ax-wysiwyg-alignment" }, { kind: "component", type: i1$5.AXWysiwygColorsComponent, selector: "ax-wysiwyg-colors" }, { kind: "component", type: i1$5.AXWysiwygFontStyleComponent, selector: "ax-wysiwyg-font-style" }, { kind: "component", type: i1$5.AXWysiwygHistoryComponent, selector: "ax-wysiwyg-history" }, { kind: "component", type: i1$5.
|
|
4514
|
+
</ax-wysiwyg-container>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXWysiwygModule }, { kind: "component", type: i1$5.AXWysiwygContainerComponent, selector: "ax-wysiwyg-container", inputs: ["look", "placeHolder"], outputs: ["onValueChanged"] }, { kind: "component", type: i1$5.AXWysiwygViewComponent, selector: "ax-wysiwyg-view", inputs: ["class"] }, { kind: "component", type: i1$5.AXWysiwygToolbarComponent, selector: "ax-wysiwyg-toolbar" }, { kind: "component", type: i1$5.AXWysiwygAlignmentComponent, selector: "ax-wysiwyg-alignment" }, { kind: "component", type: i1$5.AXWysiwygColorsComponent, selector: "ax-wysiwyg-colors" }, { kind: "component", type: i1$5.AXWysiwygFontStyleComponent, selector: "ax-wysiwyg-font-style" }, { kind: "component", type: i1$5.AXWysiwygHistoryComponent, selector: "ax-wysiwyg-history" }, { kind: "component", type: i1$5.AXWysiwygListComponent, selector: "ax-wysiwyg-list" }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4380
4515
|
}
|
|
4381
4516
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRichTextWidgetEditComponent, decorators: [{
|
|
4382
4517
|
type: Component,
|
|
4383
4518
|
args: [{
|
|
4384
4519
|
selector: 'axp-rich-text-widget',
|
|
4385
|
-
template: `<ax-wysiwyg-container
|
|
4520
|
+
template: `<ax-wysiwyg-container
|
|
4521
|
+
[placeHolder]="placeholder()"
|
|
4522
|
+
[look]="'solid'"
|
|
4523
|
+
[ngModel]="getValue()"
|
|
4524
|
+
(ngModelChange)="setNgModel($event)"
|
|
4525
|
+
>
|
|
4386
4526
|
<ax-wysiwyg-view class="ax-min-h-28"></ax-wysiwyg-view>
|
|
4387
4527
|
<ax-wysiwyg-toolbar>
|
|
4388
4528
|
<ax-wysiwyg-history></ax-wysiwyg-history>
|
|
@@ -4390,10 +4530,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
4390
4530
|
<ax-wysiwyg-colors></ax-wysiwyg-colors>
|
|
4391
4531
|
<ax-wysiwyg-list></ax-wysiwyg-list>
|
|
4392
4532
|
<ax-wysiwyg-alignment></ax-wysiwyg-alignment>
|
|
4393
|
-
<ax-wysiwyg-insert></ax-wysiwyg-insert>
|
|
4394
4533
|
</ax-wysiwyg-toolbar>
|
|
4395
4534
|
@for (validation of validationRules; track $index) {
|
|
4396
|
-
<ax-validation-rule
|
|
4535
|
+
<ax-validation-rule
|
|
4536
|
+
[rule]="validation.rule"
|
|
4537
|
+
[message]="validation.options?.message"
|
|
4538
|
+
[options]="validation.options"
|
|
4539
|
+
></ax-validation-rule>
|
|
4397
4540
|
}
|
|
4398
4541
|
</ax-wysiwyg-container>`,
|
|
4399
4542
|
standalone: true,
|
|
@@ -4402,7 +4545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
4402
4545
|
imports: [CommonModule, AXWysiwygModule, AXValidationModule, AXFormModule, FormsModule],
|
|
4403
4546
|
inputs: [],
|
|
4404
4547
|
}]
|
|
4405
|
-
}], propDecorators: { __class: [{
|
|
4548
|
+
}], ctorParameters: () => [], propDecorators: { __class: [{
|
|
4406
4549
|
type: HostBinding,
|
|
4407
4550
|
args: ['class']
|
|
4408
4551
|
}] } });
|
|
@@ -4508,7 +4651,7 @@ const AXPRichTextWidget = {
|
|
|
4508
4651
|
AXP_DISABLED_PROPERTY,
|
|
4509
4652
|
AXP_VALIDATION_PROPERTY,
|
|
4510
4653
|
AXP_PLACEHOLDER_PROPERTY,
|
|
4511
|
-
cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '300px' } }),
|
|
4654
|
+
//cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '300px' } }),
|
|
4512
4655
|
],
|
|
4513
4656
|
components: {
|
|
4514
4657
|
view: {
|
|
@@ -5015,11 +5158,25 @@ var selectionListWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
|
5015
5158
|
class AXPSelectionListWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
5016
5159
|
constructor() {
|
|
5017
5160
|
super(...arguments);
|
|
5018
|
-
this.
|
|
5019
|
-
this.
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5161
|
+
this.valueField = this.options['valueField'];
|
|
5162
|
+
this.textField = this.options['textField'];
|
|
5163
|
+
this.items = this.options['items'];
|
|
5164
|
+
this.selectedItemIds = computed(() => {
|
|
5165
|
+
return this.rawValue || [];
|
|
5166
|
+
});
|
|
5167
|
+
this.selectedItems = computed(() => {
|
|
5168
|
+
const selectedIds = this.selectedItemIds();
|
|
5169
|
+
const filteredItems = this.items.filter((item) => {
|
|
5170
|
+
const itemValue = item[this.valueField];
|
|
5171
|
+
const isSelected = selectedIds.includes(itemValue);
|
|
5172
|
+
return isSelected;
|
|
5173
|
+
});
|
|
5174
|
+
return filteredItems;
|
|
5175
|
+
});
|
|
5176
|
+
this.firstItem = computed(() => {
|
|
5177
|
+
const first = this.selectedItems()[0];
|
|
5178
|
+
return first;
|
|
5179
|
+
});
|
|
5023
5180
|
}
|
|
5024
5181
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSelectionListWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5025
5182
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPSelectionListWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ` <div class="ax-flex ax-gap-2">
|
|
@@ -5087,7 +5244,7 @@ const AXPSelectionListWidget = {
|
|
|
5087
5244
|
AXP_DISABLED_PROPERTY,
|
|
5088
5245
|
AXP_READONLY_PROPERTY,
|
|
5089
5246
|
AXP_VALIDATION_PROPERTY,
|
|
5090
|
-
cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '200px' } }),
|
|
5247
|
+
//cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '200px' } }),
|
|
5091
5248
|
],
|
|
5092
5249
|
type: 'editor',
|
|
5093
5250
|
components: {
|
|
@@ -5357,7 +5514,7 @@ const AXPTextBoxWidget = {
|
|
|
5357
5514
|
AXP_PLACEHOLDER_PROPERTY,
|
|
5358
5515
|
AXP_HAS_CLEAR_BUTTON_PROPERTY,
|
|
5359
5516
|
plainTextDefaultProperty(),
|
|
5360
|
-
cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '200px' } }),
|
|
5517
|
+
//cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '200px' } }),
|
|
5361
5518
|
],
|
|
5362
5519
|
components: {
|
|
5363
5520
|
view: {
|
|
@@ -5600,7 +5757,7 @@ const AXPToggleWidget = {
|
|
|
5600
5757
|
|
|
5601
5758
|
class AXPFileBoxWidgetColumnComponent extends AXPWidgetComponent {
|
|
5602
5759
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFileBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5603
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPFileBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5760
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPFileBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5604
5761
|
}
|
|
5605
5762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFileBoxWidgetColumnComponent, decorators: [{
|
|
5606
5763
|
type: Component,
|
|
@@ -5609,7 +5766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
5609
5766
|
standalone: true,
|
|
5610
5767
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5611
5768
|
imports: [CommonModule],
|
|
5612
|
-
inputs: []
|
|
5769
|
+
inputs: ['rawValue']
|
|
5613
5770
|
}]
|
|
5614
5771
|
}] });
|
|
5615
5772
|
|
|
@@ -6393,7 +6550,7 @@ var galleryWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
|
6393
6550
|
|
|
6394
6551
|
class AXPGalleryWidgetColumnComponent extends AXPWidgetComponent {
|
|
6395
6552
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGalleryWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6396
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPGalleryWidgetColumnComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6553
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPGalleryWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6397
6554
|
}
|
|
6398
6555
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGalleryWidgetColumnComponent, decorators: [{
|
|
6399
6556
|
type: Component,
|
|
@@ -6402,7 +6559,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
6402
6559
|
standalone: true,
|
|
6403
6560
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6404
6561
|
imports: [CommonModule],
|
|
6405
|
-
inputs: []
|
|
6562
|
+
inputs: ['rawValue']
|
|
6406
6563
|
}]
|
|
6407
6564
|
}] });
|
|
6408
6565
|
|
|
@@ -6514,12 +6671,16 @@ var mapBoxWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
|
6514
6671
|
class AXPMapBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
6515
6672
|
constructor() {
|
|
6516
6673
|
super(...arguments);
|
|
6674
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
6517
6675
|
this.markers = computed(() => this.getValue() ?? []);
|
|
6518
6676
|
this.hasDraw = computed(() => this.options()['hasDraw'] ?? false);
|
|
6519
6677
|
this.hasLocate = computed(() => this.options()['hasLocate'] ?? false);
|
|
6520
6678
|
this.maxMarker = computed(() => this.options()['maxMarker'] ?? 1);
|
|
6521
6679
|
this.zoomLevel = computed(() => this.options()['zoomLevel'] ?? 13);
|
|
6522
|
-
this.height = computed(() =>
|
|
6680
|
+
this.height = computed(() => {
|
|
6681
|
+
this.cdr.markForCheck();
|
|
6682
|
+
return this.options()['height'] ?? 300;
|
|
6683
|
+
});
|
|
6523
6684
|
this.initialLocation = computed(() => this.options()['initialLocation'] ?? { latitude: 51.505, longitude: -0.09 }, {
|
|
6524
6685
|
equal: (a, b) => {
|
|
6525
6686
|
if (a.latitude === b.latitude && a.longitude === b.longitude)
|
|
@@ -6604,7 +6765,7 @@ const AXPMapBoxWidget = {
|
|
|
6604
6765
|
minValue: 0,
|
|
6605
6766
|
maxValue: 500,
|
|
6606
6767
|
hasClearButton: false,
|
|
6607
|
-
}
|
|
6768
|
+
},
|
|
6608
6769
|
},
|
|
6609
6770
|
},
|
|
6610
6771
|
visible: true,
|
|
@@ -6624,7 +6785,7 @@ const AXPMapBoxWidget = {
|
|
|
6624
6785
|
minValue: 0,
|
|
6625
6786
|
maxValue: 100,
|
|
6626
6787
|
hasClearButton: false,
|
|
6627
|
-
}
|
|
6788
|
+
},
|
|
6628
6789
|
},
|
|
6629
6790
|
},
|
|
6630
6791
|
visible: true,
|
|
@@ -6644,7 +6805,7 @@ const AXPMapBoxWidget = {
|
|
|
6644
6805
|
minValue: 1,
|
|
6645
6806
|
maxValue: 20,
|
|
6646
6807
|
hasClearButton: false,
|
|
6647
|
-
}
|
|
6808
|
+
},
|
|
6648
6809
|
},
|
|
6649
6810
|
},
|
|
6650
6811
|
visible: true,
|
|
@@ -6698,7 +6859,7 @@ const AXPMapBoxWidget = {
|
|
|
6698
6859
|
|
|
6699
6860
|
class AXPSignatureWidgetColumnComponent extends AXPWidgetComponent {
|
|
6700
6861
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSignatureWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6701
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPSignatureWidgetColumnComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6862
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPSignatureWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6702
6863
|
}
|
|
6703
6864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSignatureWidgetColumnComponent, decorators: [{
|
|
6704
6865
|
type: Component,
|
|
@@ -6707,7 +6868,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
6707
6868
|
standalone: true,
|
|
6708
6869
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6709
6870
|
imports: [CommonModule],
|
|
6710
|
-
inputs: []
|
|
6871
|
+
inputs: ['rawValue']
|
|
6711
6872
|
}]
|
|
6712
6873
|
}] });
|
|
6713
6874
|
|
|
@@ -7372,57 +7533,176 @@ const AXPRepeaterWidget = {
|
|
|
7372
7533
|
},
|
|
7373
7534
|
};
|
|
7374
7535
|
|
|
7375
|
-
class
|
|
7376
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPColorBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7377
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPColorBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `{{ rawValue() }}`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7378
|
-
}
|
|
7379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPColorBoxWidgetViewComponent, decorators: [{
|
|
7380
|
-
type: Component,
|
|
7381
|
-
args: [{
|
|
7382
|
-
template: `{{ rawValue() }}`,
|
|
7383
|
-
standalone: true,
|
|
7384
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7385
|
-
imports: [CommonModule],
|
|
7386
|
-
inputs: []
|
|
7387
|
-
}]
|
|
7388
|
-
}] });
|
|
7389
|
-
|
|
7390
|
-
var colorBoxWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
7391
|
-
__proto__: null,
|
|
7392
|
-
AXPColorBoxWidgetViewComponent: AXPColorBoxWidgetViewComponent
|
|
7393
|
-
});
|
|
7394
|
-
|
|
7395
|
-
class AXPColorBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
7536
|
+
class AXPQrcodeWidgetViewComponent extends AXPWidgetComponent {
|
|
7396
7537
|
constructor() {
|
|
7397
7538
|
super(...arguments);
|
|
7398
|
-
this.
|
|
7399
|
-
this.
|
|
7400
|
-
this.
|
|
7401
|
-
this.
|
|
7402
|
-
this.
|
|
7539
|
+
this.content = computed(() => this.options()['content']);
|
|
7540
|
+
this.size = computed(() => this.options()['size'] ?? 200);
|
|
7541
|
+
this.level = computed(() => this.options()['level']?.id ?? 'M');
|
|
7542
|
+
this.color = computed(() => AXColorUtil.colorStringToHex(this.options()['color'] ?? '#000000'));
|
|
7543
|
+
this.outputType = computed(() => this.options()['outputType'] ?? 'svg');
|
|
7403
7544
|
}
|
|
7404
7545
|
get __class() {
|
|
7405
7546
|
const cls = {};
|
|
7547
|
+
cls[`ax-block`] = true;
|
|
7406
7548
|
cls[`ax-flex-1`] = true;
|
|
7407
7549
|
return cls;
|
|
7408
7550
|
}
|
|
7409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
7410
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type:
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
}
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7551
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPQrcodeWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7552
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPQrcodeWidgetViewComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
7553
|
+
@if(this.content()){
|
|
7554
|
+
<ax-qrcode
|
|
7555
|
+
[content]="this.content()"
|
|
7556
|
+
[size]="size()"
|
|
7557
|
+
[color]="color()"
|
|
7558
|
+
[level]="level()"
|
|
7559
|
+
[outputType]="outputType()"
|
|
7560
|
+
>
|
|
7561
|
+
</ax-qrcode>
|
|
7562
|
+
}
|
|
7563
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXQrcodeModule }, { kind: "component", type: i1$8.AXQrcodeComponent, selector: "ax-qrcode", inputs: ["content", "size", "level", "color", "backgroundColor", "outputType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7564
|
+
}
|
|
7565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPQrcodeWidgetViewComponent, decorators: [{
|
|
7566
|
+
type: Component,
|
|
7567
|
+
args: [{
|
|
7568
|
+
template: `
|
|
7569
|
+
@if(this.content()){
|
|
7570
|
+
<ax-qrcode
|
|
7571
|
+
[content]="this.content()"
|
|
7572
|
+
[size]="size()"
|
|
7573
|
+
[color]="color()"
|
|
7574
|
+
[level]="level()"
|
|
7575
|
+
[outputType]="outputType()"
|
|
7576
|
+
>
|
|
7577
|
+
</ax-qrcode>
|
|
7578
|
+
}
|
|
7579
|
+
`,
|
|
7580
|
+
standalone: true,
|
|
7581
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7582
|
+
imports: [CommonModule, AXQrcodeModule],
|
|
7583
|
+
}]
|
|
7584
|
+
}], propDecorators: { __class: [{
|
|
7585
|
+
type: HostBinding,
|
|
7586
|
+
args: ['class']
|
|
7587
|
+
}] } });
|
|
7588
|
+
|
|
7589
|
+
var qrcodeWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
7590
|
+
__proto__: null,
|
|
7591
|
+
AXPQrcodeWidgetViewComponent: AXPQrcodeWidgetViewComponent
|
|
7592
|
+
});
|
|
7593
|
+
|
|
7594
|
+
const AXPQrcodeWidget = {
|
|
7595
|
+
name: 'qrcode',
|
|
7596
|
+
title: 'QR Code',
|
|
7597
|
+
group: AXP_WIDGETS_ADVANCE_GROUP,
|
|
7598
|
+
icon: 'fa-solid fa-qrcode',
|
|
7599
|
+
description: 'Display and edit QR Codes',
|
|
7600
|
+
type: 'view',
|
|
7601
|
+
properties: [
|
|
7602
|
+
AXP_NAME_PROPERTY,
|
|
7603
|
+
cloneProperty(AXP_COLOR_PROPERTY, { schema: { interface: { defaultValue: '#000000' } } }),
|
|
7604
|
+
cloneProperty(AXP_CONTENT_PROPERTY, { schema: { interface: { defaultValue: 'http://google.com' } } }),
|
|
7605
|
+
{
|
|
7606
|
+
name: 'size',
|
|
7607
|
+
title: 'Size',
|
|
7608
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
7609
|
+
schema: {
|
|
7610
|
+
dataType: 'string',
|
|
7611
|
+
defaultValue: 200,
|
|
7612
|
+
interface: {
|
|
7613
|
+
name: 'size',
|
|
7614
|
+
path: 'options.size',
|
|
7615
|
+
type: AXPWidgetsCatalog.number,
|
|
7616
|
+
},
|
|
7617
|
+
},
|
|
7618
|
+
visible: true,
|
|
7619
|
+
},
|
|
7620
|
+
{
|
|
7621
|
+
name: 'level',
|
|
7622
|
+
title: 'Error Correction Level',
|
|
7623
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
7624
|
+
schema: {
|
|
7625
|
+
dataType: 'string',
|
|
7626
|
+
interface: {
|
|
7627
|
+
defaultValue: 'M',
|
|
7628
|
+
name: 'level',
|
|
7629
|
+
path: 'options.level',
|
|
7630
|
+
type: AXPWidgetsCatalog.select,
|
|
7631
|
+
options: {
|
|
7632
|
+
dataSource: ['L', 'M', 'Q', 'H'].map((i) => ({ title: i, id: i })),
|
|
7633
|
+
},
|
|
7634
|
+
},
|
|
7635
|
+
},
|
|
7636
|
+
visible: true,
|
|
7637
|
+
},
|
|
7638
|
+
],
|
|
7639
|
+
components: {
|
|
7640
|
+
view: {
|
|
7641
|
+
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
7642
|
+
},
|
|
7643
|
+
edit: {
|
|
7644
|
+
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
7645
|
+
},
|
|
7646
|
+
print: {
|
|
7647
|
+
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
7648
|
+
},
|
|
7649
|
+
designer: {
|
|
7650
|
+
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
7651
|
+
},
|
|
7652
|
+
},
|
|
7653
|
+
};
|
|
7654
|
+
|
|
7655
|
+
class AXPColorBoxWidgetViewComponent extends AXPWidgetComponent {
|
|
7656
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPColorBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7657
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPColorBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `{{ rawValue() }}`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7658
|
+
}
|
|
7659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPColorBoxWidgetViewComponent, decorators: [{
|
|
7660
|
+
type: Component,
|
|
7661
|
+
args: [{
|
|
7662
|
+
template: `{{ rawValue() }}`,
|
|
7663
|
+
standalone: true,
|
|
7664
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7665
|
+
imports: [CommonModule],
|
|
7666
|
+
inputs: []
|
|
7667
|
+
}]
|
|
7668
|
+
}] });
|
|
7669
|
+
|
|
7670
|
+
var colorBoxWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
7671
|
+
__proto__: null,
|
|
7672
|
+
AXPColorBoxWidgetViewComponent: AXPColorBoxWidgetViewComponent
|
|
7673
|
+
});
|
|
7674
|
+
|
|
7675
|
+
class AXPColorBoxWidgetEditComponent extends AXPWidgetComponent {
|
|
7676
|
+
constructor() {
|
|
7677
|
+
super(...arguments);
|
|
7678
|
+
this.placeholder = computed(() => this.options()["placeholder"]);
|
|
7679
|
+
this.disabled = computed(() => this.options()["disabled"]);
|
|
7680
|
+
this.readonly = computed(() => this.options()["readonly"]);
|
|
7681
|
+
this.hasClearButton = computed(() => this.options()['hasClearButton']);
|
|
7682
|
+
this.validationRules = computed(() => this.options()["validationRules"] ?? []);
|
|
7683
|
+
}
|
|
7684
|
+
get __class() {
|
|
7685
|
+
const cls = {};
|
|
7686
|
+
cls[`ax-flex-1`] = true;
|
|
7687
|
+
return cls;
|
|
7688
|
+
}
|
|
7689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPColorBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7690
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPColorBoxWidgetEditComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
7691
|
+
<ax-color-box [disabled]="disabled()" [readonly]="readonly()" [ngModel]="getValue()" [placeholder]="placeholder()" (onValueChanged)="handleValueChanged($event)">
|
|
7692
|
+
@for (validation of validationRules(); track $index) {
|
|
7693
|
+
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
7694
|
+
}
|
|
7695
|
+
@if(hasClearButton()){
|
|
7696
|
+
<ax-clear-button></ax-clear-button>
|
|
7697
|
+
}
|
|
7698
|
+
</ax-color-box>
|
|
7699
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: AXColorBoxModule }, { kind: "component", type: i2$5.AXColorBoxComponent, selector: "ax-color-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i4$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7700
|
+
}
|
|
7701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPColorBoxWidgetEditComponent, decorators: [{
|
|
7702
|
+
type: Component,
|
|
7703
|
+
args: [{
|
|
7704
|
+
template: `
|
|
7705
|
+
<ax-color-box [disabled]="disabled()" [readonly]="readonly()" [ngModel]="getValue()" [placeholder]="placeholder()" (onValueChanged)="handleValueChanged($event)">
|
|
7426
7706
|
@for (validation of validationRules(); track $index) {
|
|
7427
7707
|
<ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
|
|
7428
7708
|
}
|
|
@@ -7542,76 +7822,6 @@ const AXPColorBoxWidget = {
|
|
|
7542
7822
|
},
|
|
7543
7823
|
};
|
|
7544
7824
|
|
|
7545
|
-
class AXPTextBlockWidgetViewComponent extends AXPWidgetComponent {
|
|
7546
|
-
constructor() {
|
|
7547
|
-
super(...arguments);
|
|
7548
|
-
this.sanitizer = inject(DomSanitizer);
|
|
7549
|
-
this.content = computed(() => this.options()['content']);
|
|
7550
|
-
this.innerContent = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.content()));
|
|
7551
|
-
}
|
|
7552
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTextBlockWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7553
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPTextBlockWidgetViewComponent, isStandalone: true, selector: "axp-text-block-widget", usesInheritance: true, ngImport: i0, template: `
|
|
7554
|
-
<div [innerHTML]="innerContent()"></div>
|
|
7555
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7556
|
-
}
|
|
7557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTextBlockWidgetViewComponent, decorators: [{
|
|
7558
|
-
type: Component,
|
|
7559
|
-
args: [{
|
|
7560
|
-
selector: "axp-text-block-widget",
|
|
7561
|
-
template: `
|
|
7562
|
-
<div [innerHTML]="innerContent()"></div>
|
|
7563
|
-
`,
|
|
7564
|
-
standalone: true,
|
|
7565
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7566
|
-
imports: [CommonModule],
|
|
7567
|
-
}]
|
|
7568
|
-
}] });
|
|
7569
|
-
|
|
7570
|
-
var textBlockWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
7571
|
-
__proto__: null,
|
|
7572
|
-
AXPTextBlockWidgetViewComponent: AXPTextBlockWidgetViewComponent
|
|
7573
|
-
});
|
|
7574
|
-
|
|
7575
|
-
const AXPTextBlockWidget = {
|
|
7576
|
-
name: 'text-block-layout',
|
|
7577
|
-
title: 'Text Block',
|
|
7578
|
-
description: 'Displays text blocks',
|
|
7579
|
-
icon: 'fa-solid fa-text',
|
|
7580
|
-
group: AXP_WIDGETS_LAYOUT_GROUP,
|
|
7581
|
-
type: 'view',
|
|
7582
|
-
properties: [
|
|
7583
|
-
{
|
|
7584
|
-
name: 'content',
|
|
7585
|
-
title: 'Content',
|
|
7586
|
-
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
7587
|
-
schema: {
|
|
7588
|
-
dataType: 'string',
|
|
7589
|
-
defaultValue: 'Text Block',
|
|
7590
|
-
interface: {
|
|
7591
|
-
name: 'content',
|
|
7592
|
-
path: 'options.content',
|
|
7593
|
-
type: AXPWidgetsCatalog.richText,
|
|
7594
|
-
},
|
|
7595
|
-
},
|
|
7596
|
-
visible: true,
|
|
7597
|
-
},
|
|
7598
|
-
],
|
|
7599
|
-
components: {
|
|
7600
|
-
view: {
|
|
7601
|
-
component: () => Promise.resolve().then(function () { return textBlockWidgetView_component; }).then((c) => c.AXPTextBlockWidgetViewComponent),
|
|
7602
|
-
},
|
|
7603
|
-
edit: {
|
|
7604
|
-
component: () => Promise.resolve().then(function () { return textBlockWidgetView_component; }).then((c) => c.AXPTextBlockWidgetViewComponent),
|
|
7605
|
-
},
|
|
7606
|
-
print: {
|
|
7607
|
-
component: () => Promise.resolve().then(function () { return textBlockWidgetView_component; }).then((c) => c.AXPTextBlockWidgetViewComponent),
|
|
7608
|
-
},
|
|
7609
|
-
designer: {
|
|
7610
|
-
component: () => import('./acorex-platform-widgets-text-block-widget-designer.component-Bi9hlpvB.mjs').then((c) => c.AXPTextBlockWidgetDesignerComponent),
|
|
7611
|
-
},
|
|
7612
|
-
},
|
|
7613
|
-
};
|
|
7614
|
-
|
|
7615
7825
|
const AXPDocumentWidget = {
|
|
7616
7826
|
name: 'document-layout',
|
|
7617
7827
|
title: 'Document',
|
|
@@ -7912,125 +8122,6 @@ const AXPGridWidget = {
|
|
|
7912
8122
|
},
|
|
7913
8123
|
};
|
|
7914
8124
|
|
|
7915
|
-
class AXPQrcodeWidgetViewComponent extends AXPWidgetComponent {
|
|
7916
|
-
constructor() {
|
|
7917
|
-
super(...arguments);
|
|
7918
|
-
this.content = computed(() => this.options()['content']);
|
|
7919
|
-
this.size = computed(() => this.options()['size'] ?? 200);
|
|
7920
|
-
this.level = computed(() => this.options()['level']?.id ?? 'M');
|
|
7921
|
-
this.color = computed(() => AXColorUtil.colorStringToHex(this.options()['color'] ?? '#000000'));
|
|
7922
|
-
this.outputType = computed(() => this.options()['outputType'] ?? 'svg');
|
|
7923
|
-
}
|
|
7924
|
-
get __class() {
|
|
7925
|
-
const cls = {};
|
|
7926
|
-
cls[`ax-block`] = true;
|
|
7927
|
-
cls[`ax-flex-1`] = true;
|
|
7928
|
-
return cls;
|
|
7929
|
-
}
|
|
7930
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPQrcodeWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7931
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPQrcodeWidgetViewComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
7932
|
-
@if(this.content()){
|
|
7933
|
-
<ax-qrcode
|
|
7934
|
-
[content]="this.content()"
|
|
7935
|
-
[size]="size()"
|
|
7936
|
-
[color]="color()"
|
|
7937
|
-
[level]="level()"
|
|
7938
|
-
[outputType]="outputType()"
|
|
7939
|
-
>
|
|
7940
|
-
</ax-qrcode>
|
|
7941
|
-
}
|
|
7942
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXQrcodeModule }, { kind: "component", type: i1$8.AXQrcodeComponent, selector: "ax-qrcode", inputs: ["content", "size", "level", "color", "backgroundColor", "outputType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7943
|
-
}
|
|
7944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPQrcodeWidgetViewComponent, decorators: [{
|
|
7945
|
-
type: Component,
|
|
7946
|
-
args: [{
|
|
7947
|
-
template: `
|
|
7948
|
-
@if(this.content()){
|
|
7949
|
-
<ax-qrcode
|
|
7950
|
-
[content]="this.content()"
|
|
7951
|
-
[size]="size()"
|
|
7952
|
-
[color]="color()"
|
|
7953
|
-
[level]="level()"
|
|
7954
|
-
[outputType]="outputType()"
|
|
7955
|
-
>
|
|
7956
|
-
</ax-qrcode>
|
|
7957
|
-
}
|
|
7958
|
-
`,
|
|
7959
|
-
standalone: true,
|
|
7960
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7961
|
-
imports: [CommonModule, AXQrcodeModule],
|
|
7962
|
-
}]
|
|
7963
|
-
}], propDecorators: { __class: [{
|
|
7964
|
-
type: HostBinding,
|
|
7965
|
-
args: ['class']
|
|
7966
|
-
}] } });
|
|
7967
|
-
|
|
7968
|
-
var qrcodeWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
7969
|
-
__proto__: null,
|
|
7970
|
-
AXPQrcodeWidgetViewComponent: AXPQrcodeWidgetViewComponent
|
|
7971
|
-
});
|
|
7972
|
-
|
|
7973
|
-
const AXPQrcodeWidget = {
|
|
7974
|
-
name: 'qrcode',
|
|
7975
|
-
title: 'QR Code',
|
|
7976
|
-
group: AXP_WIDGETS_ADVANCE_GROUP,
|
|
7977
|
-
icon: 'fa-solid fa-qrcode',
|
|
7978
|
-
description: 'Display and edit QR Codes',
|
|
7979
|
-
type: 'view',
|
|
7980
|
-
properties: [
|
|
7981
|
-
AXP_NAME_PROPERTY,
|
|
7982
|
-
cloneProperty(AXP_COLOR_PROPERTY, { schema: { interface: { defaultValue: '#000000' } } }),
|
|
7983
|
-
cloneProperty(AXP_CONTENT_PROPERTY, { schema: { interface: { defaultValue: 'http://google.com' } } }),
|
|
7984
|
-
{
|
|
7985
|
-
name: 'size',
|
|
7986
|
-
title: 'Size',
|
|
7987
|
-
group: AXP_STYLING_PROPERTY_GROUP,
|
|
7988
|
-
schema: {
|
|
7989
|
-
dataType: 'string',
|
|
7990
|
-
defaultValue: 200,
|
|
7991
|
-
interface: {
|
|
7992
|
-
name: 'size',
|
|
7993
|
-
path: 'options.size',
|
|
7994
|
-
type: AXPWidgetsCatalog.number,
|
|
7995
|
-
},
|
|
7996
|
-
},
|
|
7997
|
-
visible: true,
|
|
7998
|
-
},
|
|
7999
|
-
{
|
|
8000
|
-
name: 'level',
|
|
8001
|
-
title: 'Error Correction Level',
|
|
8002
|
-
group: AXP_STYLING_PROPERTY_GROUP,
|
|
8003
|
-
schema: {
|
|
8004
|
-
dataType: 'string',
|
|
8005
|
-
interface: {
|
|
8006
|
-
defaultValue: 'M',
|
|
8007
|
-
name: 'level',
|
|
8008
|
-
path: 'options.level',
|
|
8009
|
-
type: AXPWidgetsCatalog.select,
|
|
8010
|
-
options: {
|
|
8011
|
-
dataSource: ['L', 'M', 'Q', 'H'].map((i) => ({ title: i, id: i })),
|
|
8012
|
-
},
|
|
8013
|
-
},
|
|
8014
|
-
},
|
|
8015
|
-
visible: true,
|
|
8016
|
-
},
|
|
8017
|
-
],
|
|
8018
|
-
components: {
|
|
8019
|
-
view: {
|
|
8020
|
-
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
8021
|
-
},
|
|
8022
|
-
edit: {
|
|
8023
|
-
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
8024
|
-
},
|
|
8025
|
-
print: {
|
|
8026
|
-
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
8027
|
-
},
|
|
8028
|
-
designer: {
|
|
8029
|
-
component: () => Promise.resolve().then(function () { return qrcodeWidgetView_component; }).then((c) => c.AXPQrcodeWidgetViewComponent),
|
|
8030
|
-
},
|
|
8031
|
-
},
|
|
8032
|
-
};
|
|
8033
|
-
|
|
8034
8125
|
class AXPGridItemWidgetViewComponent extends AXPWidgetComponent {
|
|
8035
8126
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridItemWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8036
8127
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPGridItemWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -8345,6 +8436,76 @@ const AXPGridRowWidget = {
|
|
|
8345
8436
|
}
|
|
8346
8437
|
};
|
|
8347
8438
|
|
|
8439
|
+
class AXPTextBlockWidgetViewComponent extends AXPWidgetComponent {
|
|
8440
|
+
constructor() {
|
|
8441
|
+
super(...arguments);
|
|
8442
|
+
this.sanitizer = inject(DomSanitizer);
|
|
8443
|
+
this.content = computed(() => this.options()['content']);
|
|
8444
|
+
this.innerContent = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.content()));
|
|
8445
|
+
}
|
|
8446
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTextBlockWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8447
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPTextBlockWidgetViewComponent, isStandalone: true, selector: "axp-text-block-widget", usesInheritance: true, ngImport: i0, template: `
|
|
8448
|
+
<div [innerHTML]="innerContent()"></div>
|
|
8449
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8450
|
+
}
|
|
8451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTextBlockWidgetViewComponent, decorators: [{
|
|
8452
|
+
type: Component,
|
|
8453
|
+
args: [{
|
|
8454
|
+
selector: "axp-text-block-widget",
|
|
8455
|
+
template: `
|
|
8456
|
+
<div [innerHTML]="innerContent()"></div>
|
|
8457
|
+
`,
|
|
8458
|
+
standalone: true,
|
|
8459
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8460
|
+
imports: [CommonModule],
|
|
8461
|
+
}]
|
|
8462
|
+
}] });
|
|
8463
|
+
|
|
8464
|
+
var textBlockWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
8465
|
+
__proto__: null,
|
|
8466
|
+
AXPTextBlockWidgetViewComponent: AXPTextBlockWidgetViewComponent
|
|
8467
|
+
});
|
|
8468
|
+
|
|
8469
|
+
const AXPTextBlockWidget = {
|
|
8470
|
+
name: 'text-block-layout',
|
|
8471
|
+
title: 'Text Block',
|
|
8472
|
+
description: 'Displays text blocks',
|
|
8473
|
+
icon: 'fa-solid fa-text',
|
|
8474
|
+
group: AXP_WIDGETS_LAYOUT_GROUP,
|
|
8475
|
+
type: 'view',
|
|
8476
|
+
properties: [
|
|
8477
|
+
{
|
|
8478
|
+
name: 'content',
|
|
8479
|
+
title: 'Content',
|
|
8480
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
8481
|
+
schema: {
|
|
8482
|
+
dataType: 'string',
|
|
8483
|
+
defaultValue: 'Text Block',
|
|
8484
|
+
interface: {
|
|
8485
|
+
name: 'content',
|
|
8486
|
+
path: 'options.content',
|
|
8487
|
+
type: AXPWidgetsCatalog.richText,
|
|
8488
|
+
},
|
|
8489
|
+
},
|
|
8490
|
+
visible: true,
|
|
8491
|
+
},
|
|
8492
|
+
],
|
|
8493
|
+
components: {
|
|
8494
|
+
view: {
|
|
8495
|
+
component: () => Promise.resolve().then(function () { return textBlockWidgetView_component; }).then((c) => c.AXPTextBlockWidgetViewComponent),
|
|
8496
|
+
},
|
|
8497
|
+
edit: {
|
|
8498
|
+
component: () => Promise.resolve().then(function () { return textBlockWidgetView_component; }).then((c) => c.AXPTextBlockWidgetViewComponent),
|
|
8499
|
+
},
|
|
8500
|
+
print: {
|
|
8501
|
+
component: () => Promise.resolve().then(function () { return textBlockWidgetView_component; }).then((c) => c.AXPTextBlockWidgetViewComponent),
|
|
8502
|
+
},
|
|
8503
|
+
designer: {
|
|
8504
|
+
component: () => import('./acorex-platform-widgets-text-block-widget-designer.component-Bi9hlpvB.mjs').then((c) => c.AXPTextBlockWidgetDesignerComponent),
|
|
8505
|
+
},
|
|
8506
|
+
},
|
|
8507
|
+
};
|
|
8508
|
+
|
|
8348
8509
|
class AXPWidgetsModule {
|
|
8349
8510
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8350
8511
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetsModule, imports: [i1$7.AXPLayoutBuilderModule] }); }
|
|
@@ -8372,9 +8533,9 @@ class AXPWidgetsModule {
|
|
|
8372
8533
|
AXPSelectionListWidget,
|
|
8373
8534
|
AXPLargeTextWidget,
|
|
8374
8535
|
AXPMapBoxWidget,
|
|
8375
|
-
AXPPhoneBoxWidget,
|
|
8376
|
-
AXPEmailBoxWidget,
|
|
8377
|
-
AXPLinkWidget,
|
|
8536
|
+
//AXPPhoneBoxWidget,
|
|
8537
|
+
//AXPEmailBoxWidget,
|
|
8538
|
+
//AXPLinkWidget,
|
|
8378
8539
|
AXPFileBoxWidget,
|
|
8379
8540
|
AXPQrcodeWidget,
|
|
8380
8541
|
AXPPasswordBoxWidget,
|
|
@@ -8414,9 +8575,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
8414
8575
|
AXPSelectionListWidget,
|
|
8415
8576
|
AXPLargeTextWidget,
|
|
8416
8577
|
AXPMapBoxWidget,
|
|
8417
|
-
AXPPhoneBoxWidget,
|
|
8418
|
-
AXPEmailBoxWidget,
|
|
8419
|
-
AXPLinkWidget,
|
|
8578
|
+
//AXPPhoneBoxWidget,
|
|
8579
|
+
//AXPEmailBoxWidget,
|
|
8580
|
+
//AXPLinkWidget,
|
|
8420
8581
|
AXPFileBoxWidget,
|
|
8421
8582
|
AXPQrcodeWidget,
|
|
8422
8583
|
AXPPasswordBoxWidget,
|
|
@@ -8437,5 +8598,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
8437
8598
|
* Generated bundle index. Do not edit.
|
|
8438
8599
|
*/
|
|
8439
8600
|
|
|
8440
|
-
export { AXPBlockWidget, AXPBlockWidgetDesignerComponent, AXPBlockWidgetViewComponent, AXPButtonWidget, AXPButtonWidgetViewComponent, AXPCheckBoxWidget, AXPCheckBoxWidgetEditComponent, AXPContactWidget, AXPContactWidgetColumnComponent, AXPContactWidgetEditComponent,
|
|
8601
|
+
export { AXPBlockWidget, AXPBlockWidgetDesignerComponent, AXPBlockWidgetViewComponent, AXPButtonWidget, AXPButtonWidgetViewComponent, AXPCheckBoxWidget, AXPCheckBoxWidgetEditComponent, AXPContactWidget, AXPContactWidgetColumnComponent, AXPContactWidgetEditComponent, AXPContactWidgetPrintComponent, AXPContactWidgetViewComponent, AXPDateTimeBoxWidget, AXPDateTimeBoxWidgetColumnComponent, AXPDateTimeBoxWidgetEditComponent, AXPDateTimeBoxWidgetFilterComponent, AXPDateTimeBoxWidgetPrintComponent, AXPDateTimeBoxWidgetViewComponent, AXPEmailBoxWidget, AXPEmailBoxWidgetColumnComponent, AXPEmailBoxWidgetEditComponent, AXPEmailBoxWidgetFilterComponent, AXPEmailBoxWidgetPrintComponent, AXPEmailBoxWidgetViewComponent, AXPFileBoxWidget, AXPFileBoxWidgetColumnComponent, AXPFileBoxWidgetEditComponent, AXPFileBoxWidgetFilterComponent, AXPFileBoxWidgetPrintComponent, AXPFileBoxWidgetViewComponent, AXPFileManagementService, AXPGalleryWidget, AXPGalleryWidgetColumnComponent, AXPGalleryWidgetEditComponent, AXPGalleryWidgetFilterComponent, AXPGalleryWidgetPrintComponent, AXPGalleryWidgetViewComponent, AXPLargeTextWidget, AXPLargeTextWidgetColumnComponent, AXPLargeTextWidgetEditComponent, AXPLargeTextWidgetFilterComponent, AXPLargeTextWidgetPrintComponent, AXPLargeTextWidgetViewComponent, AXPLinkWidget, AXPLinkWidgetColumnComponent, AXPLinkWidgetEditComponent, AXPLinkWidgetFilterComponent, AXPLinkWidgetPrintComponent, AXPLinkWidgetViewComponent, AXPMapBoxWidget, AXPMapBoxWidgetEditComponent, AXPMapBoxWidgetViewComponent, AXPNumberBoxWidget, AXPNumberBoxWidgetColumnComponent, AXPNumberBoxWidgetEditComponent, AXPNumberBoxWidgetFilterComponent, AXPNumberBoxWidgetPrintComponent, AXPNumberBoxWidgetViewComponent, AXPPageWidget, AXPPageWidgetViewComponent, AXPPasswordBoxWidget, AXPPasswordBoxWidgetColumnComponent, AXPPasswordBoxWidgetEditComponent, AXPPasswordBoxWidgetFilterComponent, AXPPasswordBoxWidgetPrintComponent, AXPPasswordBoxWidgetViewComponent, AXPPhoneBoxWidget, AXPPhoneBoxWidgetColumnComponent, AXPPhoneBoxWidgetEditComponent, AXPPhoneBoxWidgetFilterComponent, AXPPhoneBoxWidgetPrintComponent, AXPPhoneBoxWidgetViewComponent, AXPRepeaterWidget, AXPRepeaterWidgetDesignerComponent, AXPRepeaterWidgetEditComponent, AXPRepeaterWidgetPrintComponent, AXPRepeaterWidgetViewComponent, AXPRichTextWidget, AXPRichTextWidgetColumnComponent, AXPRichTextWidgetEditComponent, AXPRichTextWidgetFilterComponent, AXPRichTextWidgetPrintComponent, AXPRichTextWidgetViewComponent, AXPSelectBoxWidget, AXPSelectBoxWidgetColumnComponent, AXPSelectBoxWidgetEditComponent, AXPSelectBoxWidgetFilterComponent, AXPSelectBoxWidgetPrintComponent, AXPSelectBoxWidgetViewComponent, AXPSelectionListWidget, AXPSelectionListWidgetColumnComponent, AXPSelectionListWidgetDesignerComponent, AXPSelectionListWidgetEditComponent, AXPSelectionListWidgetFilterComponent, AXPSelectionListWidgetPrintComponent, AXPSelectionListWidgetViewComponent, AXPSignatureWidget, AXPSignatureWidgetColumnComponent, AXPSignatureWidgetEditComponent, AXPSignatureWidgetFilterComponent, AXPSignatureWidgetPrintComponent, AXPSignatureWidgetViewComponent, AXPTextBoxWidget, AXPTextBoxWidgetColumnComponent, AXPTextBoxWidgetEditComponent, AXPTextBoxWidgetFilterComponent, AXPTextBoxWidgetPrintComponent, AXPTextBoxWidgetViewComponent, AXPToggleWidget, AXPToggleWidgetColumnComponent, AXPToggleWidgetEditComponent, AXPToggleWidgetFilterComponent, AXPToggleWidgetPrintComponent, AXPToggleWidgetViewComponent, AXPWidgetsModule, AXP_ALLOW_MULTIPLE_PROPERTY, AXP_BEHAVIOR_PROPERTY_GROUP, AXP_BG_COLOR_PROPERTY, AXP_COLOR_PROPERTY, AXP_CONTENT_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DATA_PROPERTY_GROUP, AXP_DATA_SOURCE_PROPERTY, AXP_DATE_FROMAT_PROPERTY, AXP_DESCRIPTION_PROPERTY, AXP_DIRECTION_PROPERTY, AXP_DISABLED_PROPERTY, AXP_DOWNLOADABLE_PROPERTY, AXP_FALSY_TEXT_PROPERTY, AXP_FONT_SIZE_PROPERTY, AXP_HAS_CLEAR_BUTTON_PROPERTY, AXP_HAS_COPY_ICON_PROPERTY, AXP_HAS_EYE_ICON_PROPERTY, AXP_HAS_ICON_PROPERTY, AXP_HAS_LABEL_PROPERTY, AXP_ICON_PROPERTY, AXP_IS_LOADING_PROPERTY, AXP_LABEL_PROPERTY, AXP_LAYOUT_ALIGN_CONTENT_PROPERTY, AXP_LAYOUT_COLUMNS_PROPERTY, AXP_LAYOUT_COL_END_PROPERTY, AXP_LAYOUT_COL_SPAN_PROPERTY, AXP_LAYOUT_COL_START_PROPERTY, AXP_LAYOUT_FLEX_ALIGN_PROPERTY, AXP_LAYOUT_FLEX_DIRECTION_PROPERTY, AXP_LAYOUT_FLEX_JUSTIFY_PROPERTY, AXP_LAYOUT_FLEX_PROPERTIES, AXP_LAYOUT_FLEX_PROPERTY_GROUP, AXP_LAYOUT_FLEX_WRAP_PROPERTY, AXP_LAYOUT_GAP_PROPERTY, AXP_LAYOUT_GRID_ITEM_PROPERTIES, AXP_LAYOUT_GRID_PROPERTIES, AXP_LAYOUT_GRID_PROPERTY_GROUP, AXP_LAYOUT_GRID_ROW_PROPERTIES, AXP_LAYOUT_ROWS_PROPERTY, AXP_NAME_PROPERTY, AXP_PLACEHOLDER_PROPERTY, AXP_READONLY_PROPERTY, AXP_STYLE_COLOR_PROPERTY, AXP_STYLE_LOOK_PROPERTY, AXP_STYLING_PROPERTY_GROUP, AXP_TABLE_COLUMN_HEIGHT_PROPERTY, AXP_TABLE_COLUMN_WIDTH_PROPERTY, AXP_TEXT_FIELD_PROPERTY, AXP_TEXT_PROPERTY, AXP_THEME_PROPERTY, AXP_TITLE_PROPERTY, AXP_TRULY_TEXT_PROPERTY, AXP_VALIDATION_PROPERTY, AXP_VALUE_FIELD_PROPERTY, AXP_WIDGET_PROPERTY_GROUP, booleanDefaultProperty, largeTextDefaultProperty, numberDefaultProperty, plainTextDefaultProperty };
|
|
8441
8602
|
//# sourceMappingURL=acorex-platform-widgets.mjs.map
|