@acorex/platform 21.0.0-next.64 → 21.0.0-next.67
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/fesm2022/acorex-platform-common.mjs +94 -18
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +42 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +29 -7
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +282 -108
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs +383 -0
- package/fesm2022/acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs → acorex-platform-layout-entity-file-list-popup.component-_yrP5SQe.mjs} +15 -18
- package/fesm2022/acorex-platform-layout-entity-file-list-popup.component-_yrP5SQe.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +3339 -301
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +0 -1
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +1377 -4
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +8938 -11693
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs → acorex-platform-themes-default-entity-master-create-view.component-CWLfNqV0.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-CWLfNqV0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs → acorex-platform-themes-default-entity-master-modify-view.component-C7cT82K2.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-C7cT82K2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs → acorex-platform-themes-default-entity-master-single-view.component-Br9p5aXT.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-Br9p5aXT.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +685 -287
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-BgXYCFia.mjs → acorex-platform-themes-shared-settings.provider-BjuzSe0T.mjs} +29 -2
- package/fesm2022/acorex-platform-themes-shared-settings.provider-BjuzSe0T.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +94 -24
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +176 -26
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +74 -10
- package/types/acorex-platform-core.d.ts +63 -2
- package/types/acorex-platform-layout-builder.d.ts +7 -1
- package/types/acorex-platform-layout-components.d.ts +162 -36
- package/types/acorex-platform-layout-entity.d.ts +704 -14
- package/types/acorex-platform-layout-views.d.ts +28 -0
- package/types/acorex-platform-layout-widget-core.d.ts +156 -3
- package/types/acorex-platform-layout-widgets.d.ts +29 -393
- package/types/acorex-platform-themes-default.d.ts +137 -30
- package/types/acorex-platform-themes-shared.d.ts +23 -1
- package/types/acorex-platform-workflow.d.ts +91 -4
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-BgXYCFia.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { signal, computed, Injectable, InjectionToken, inject, ElementRef, effect, untracked, EventEmitter, Injector, ChangeDetectorRef, ViewChild, Input, Output, ChangeDetectionStrategy, Component, input, output, ViewContainerRef, Directive, NgModule } from '@angular/core';
|
|
3
|
-
import { convertArrayToDataSource, AXDataSource } from '@acorex/cdk/common';
|
|
3
|
+
import { convertArrayToDataSource, AXDataSource, AX_STYLE_COLOR_TYPES, AX_STYLE_LOOK_TYPES } from '@acorex/cdk/common';
|
|
4
4
|
import { AXPContextStore, AXPDataSourceDefinitionProviderService, extractValue, AXPExpressionEvaluatorService, getSmart } from '@acorex/platform/core';
|
|
5
5
|
export { normalizeDefinitionCategories } from '@acorex/platform/core';
|
|
6
6
|
import { set, merge, cloneDeep, isNil, get, isEqual, isUndefined, isObjectLike, sum, isEmpty, isString } from 'lodash-es';
|
|
@@ -11,7 +11,7 @@ import * as i2 from '@acorex/core/translation';
|
|
|
11
11
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
12
12
|
import { PortalModule } from '@angular/cdk/portal';
|
|
13
13
|
import * as i1 from '@angular/common';
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
14
|
+
import { CommonModule, NgComponentOutlet } from '@angular/common';
|
|
15
15
|
import { AXDataTableColumnComponent, AXBaseDataTable } from '@acorex/components/data-table';
|
|
16
16
|
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
17
17
|
|
|
@@ -204,7 +204,7 @@ const AXPWidgetsCatalog = {
|
|
|
204
204
|
textBlockLayout: 'text-block-layout',
|
|
205
205
|
alertBoxLayout: 'alert-box-layout',
|
|
206
206
|
badgeLayout: 'badge-layout',
|
|
207
|
-
|
|
207
|
+
attachments: 'attachments',
|
|
208
208
|
fileTypeExtension: 'file-type-extension',
|
|
209
209
|
map: 'map',
|
|
210
210
|
imageMarker: 'image-marker',
|
|
@@ -3174,6 +3174,162 @@ const AXP_WIDGETS_CATEGORIES = [
|
|
|
3174
3174
|
AXP_WIDGETS_AI_CATEGORY,
|
|
3175
3175
|
];
|
|
3176
3176
|
|
|
3177
|
+
/**
|
|
3178
|
+
* Standalone cell renderer using the same column-mode widget pipeline as {@link AXPWidgetColumnRendererComponent}.
|
|
3179
|
+
*/
|
|
3180
|
+
class AXPWidgetColumnCellComponent {
|
|
3181
|
+
constructor() {
|
|
3182
|
+
this.caption = '';
|
|
3183
|
+
this.mergedOptions = signal({}, ...(ngDevMode ? [{ debugName: "mergedOptions" }] : /* istanbul ignore next */ []));
|
|
3184
|
+
this.rowInjectorsCache = new Map();
|
|
3185
|
+
this.hasExpressions = false;
|
|
3186
|
+
this.pendingEvaluations = new Set();
|
|
3187
|
+
this.changeDetectionScheduled = false;
|
|
3188
|
+
this.injector = inject(Injector);
|
|
3189
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
3190
|
+
this.widgetRegistry = inject(AXPWidgetRegistryService);
|
|
3191
|
+
this.expressionEvaluator = inject(AXPExpressionEvaluatorService);
|
|
3192
|
+
}
|
|
3193
|
+
async ngOnInit() {
|
|
3194
|
+
await this.resolveComponent();
|
|
3195
|
+
}
|
|
3196
|
+
ngOnChanges(changes) {
|
|
3197
|
+
if (changes['node'] && !changes['node'].firstChange) {
|
|
3198
|
+
void this.resolveComponent();
|
|
3199
|
+
}
|
|
3200
|
+
if (changes['rowData'] && !changes['rowData'].firstChange) {
|
|
3201
|
+
this.rowInjectorsCache.clear();
|
|
3202
|
+
this.cdr.markForCheck();
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
getInputs(data) {
|
|
3206
|
+
return {
|
|
3207
|
+
rawValue: get(data, this.node.path),
|
|
3208
|
+
rowData: data,
|
|
3209
|
+
};
|
|
3210
|
+
}
|
|
3211
|
+
getRowInjector(data) {
|
|
3212
|
+
const cacheKey = this.getCacheKey(data);
|
|
3213
|
+
let rowInjector = this.rowInjectorsCache.get(cacheKey);
|
|
3214
|
+
if (!rowInjector) {
|
|
3215
|
+
if (!this.hasExpressions) {
|
|
3216
|
+
rowInjector = this.createRowInjector(this.mergedOptions());
|
|
3217
|
+
this.rowInjectorsCache.set(cacheKey, rowInjector);
|
|
3218
|
+
return rowInjector;
|
|
3219
|
+
}
|
|
3220
|
+
if (!this.pendingEvaluations.has(cacheKey)) {
|
|
3221
|
+
this.pendingEvaluations.add(cacheKey);
|
|
3222
|
+
const scope = {
|
|
3223
|
+
...(data ?? {}),
|
|
3224
|
+
context: {
|
|
3225
|
+
eval: (path) => getSmart(data, path),
|
|
3226
|
+
},
|
|
3227
|
+
};
|
|
3228
|
+
void this.expressionEvaluator.evaluate(this.mergedOptions(), scope).then((evaluatedOptions) => {
|
|
3229
|
+
const newInjector = this.createRowInjector(evaluatedOptions);
|
|
3230
|
+
this.rowInjectorsCache.delete(cacheKey);
|
|
3231
|
+
this.rowInjectorsCache.set(cacheKey, newInjector);
|
|
3232
|
+
this.pendingEvaluations.delete(cacheKey);
|
|
3233
|
+
this.scheduleChangeDetection();
|
|
3234
|
+
}).catch(() => {
|
|
3235
|
+
this.pendingEvaluations.delete(cacheKey);
|
|
3236
|
+
});
|
|
3237
|
+
}
|
|
3238
|
+
rowInjector = this.createRowInjector(this.mergedOptions());
|
|
3239
|
+
this.rowInjectorsCache.set(cacheKey, rowInjector);
|
|
3240
|
+
}
|
|
3241
|
+
return rowInjector;
|
|
3242
|
+
}
|
|
3243
|
+
async resolveComponent() {
|
|
3244
|
+
const widget = this.widgetRegistry.resolve(this.node.type);
|
|
3245
|
+
const mode = 'column';
|
|
3246
|
+
this.component = await widget?.components[mode]?.component();
|
|
3247
|
+
const props = widget?.components[mode]?.properties
|
|
3248
|
+
?.filter((c) => c.schema.defaultValue)
|
|
3249
|
+
.map((c) => ({ [c.name]: c.schema.defaultValue }))
|
|
3250
|
+
.reduce((acc, curr) => ({ ...acc, ...curr }), {});
|
|
3251
|
+
this.mergedOptions.set(merge(props, this.node.options) || {});
|
|
3252
|
+
this.hasExpressions = this.checkForExpressions(this.mergedOptions());
|
|
3253
|
+
this.rowInjectorsCache.clear();
|
|
3254
|
+
this.cdr.markForCheck();
|
|
3255
|
+
}
|
|
3256
|
+
createRowInjector(options) {
|
|
3257
|
+
return Injector.create({
|
|
3258
|
+
parent: this.injector,
|
|
3259
|
+
providers: [
|
|
3260
|
+
{
|
|
3261
|
+
provide: AXP_WIDGET_COLUMN_TOKEN,
|
|
3262
|
+
useValue: {
|
|
3263
|
+
path: this.node.path,
|
|
3264
|
+
options,
|
|
3265
|
+
caption: this.caption,
|
|
3266
|
+
},
|
|
3267
|
+
},
|
|
3268
|
+
],
|
|
3269
|
+
});
|
|
3270
|
+
}
|
|
3271
|
+
getCacheKey(data) {
|
|
3272
|
+
const id = data['id'];
|
|
3273
|
+
if (id != null) {
|
|
3274
|
+
return `row-${String(id)}`;
|
|
3275
|
+
}
|
|
3276
|
+
return `row-${Object.keys(data).length}`;
|
|
3277
|
+
}
|
|
3278
|
+
checkForExpressions(obj) {
|
|
3279
|
+
if (typeof obj === 'string') {
|
|
3280
|
+
return this.expressionEvaluator.isExpression(obj);
|
|
3281
|
+
}
|
|
3282
|
+
if (Array.isArray(obj)) {
|
|
3283
|
+
return obj.some((item) => this.checkForExpressions(item));
|
|
3284
|
+
}
|
|
3285
|
+
if (obj && typeof obj === 'object') {
|
|
3286
|
+
return Object.values(obj).some((value) => this.checkForExpressions(value));
|
|
3287
|
+
}
|
|
3288
|
+
return false;
|
|
3289
|
+
}
|
|
3290
|
+
scheduleChangeDetection() {
|
|
3291
|
+
if (this.changeDetectionScheduled) {
|
|
3292
|
+
return;
|
|
3293
|
+
}
|
|
3294
|
+
this.changeDetectionScheduled = true;
|
|
3295
|
+
requestAnimationFrame(() => {
|
|
3296
|
+
this.cdr.markForCheck();
|
|
3297
|
+
this.changeDetectionScheduled = false;
|
|
3298
|
+
});
|
|
3299
|
+
}
|
|
3300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPWidgetColumnCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPWidgetColumnCellComponent, isStandalone: true, selector: "axp-widget-column-cell", inputs: { node: "node", rowData: "rowData", caption: "caption" }, usesOnChanges: true, ngImport: i0, template: `
|
|
3302
|
+
@if (component && rowData) {
|
|
3303
|
+
<ng-container
|
|
3304
|
+
*ngComponentOutlet="component; injector: getRowInjector(rowData); inputs: getInputs(rowData)"
|
|
3305
|
+
></ng-container>
|
|
3306
|
+
}
|
|
3307
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3308
|
+
}
|
|
3309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPWidgetColumnCellComponent, decorators: [{
|
|
3310
|
+
type: Component,
|
|
3311
|
+
args: [{
|
|
3312
|
+
selector: 'axp-widget-column-cell',
|
|
3313
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3314
|
+
imports: [NgComponentOutlet],
|
|
3315
|
+
template: `
|
|
3316
|
+
@if (component && rowData) {
|
|
3317
|
+
<ng-container
|
|
3318
|
+
*ngComponentOutlet="component; injector: getRowInjector(rowData); inputs: getInputs(rowData)"
|
|
3319
|
+
></ng-container>
|
|
3320
|
+
}
|
|
3321
|
+
`,
|
|
3322
|
+
}]
|
|
3323
|
+
}], propDecorators: { node: [{
|
|
3324
|
+
type: Input,
|
|
3325
|
+
args: [{ required: true }]
|
|
3326
|
+
}], rowData: [{
|
|
3327
|
+
type: Input,
|
|
3328
|
+
args: [{ required: true }]
|
|
3329
|
+
}], caption: [{
|
|
3330
|
+
type: Input
|
|
3331
|
+
}] } });
|
|
3332
|
+
|
|
3177
3333
|
var AXPWidgetGroupEnum;
|
|
3178
3334
|
(function (AXPWidgetGroupEnum) {
|
|
3179
3335
|
AXPWidgetGroupEnum["FormElement"] = "form-element";
|
|
@@ -3187,9 +3343,1226 @@ var AXPWidgetGroupEnum;
|
|
|
3187
3343
|
AXPWidgetGroupEnum["BaseWidget"] = "base-widget";
|
|
3188
3344
|
})(AXPWidgetGroupEnum || (AXPWidgetGroupEnum = {}));
|
|
3189
3345
|
|
|
3346
|
+
const AXP_STYLING_PROPERTY_GROUP = {
|
|
3347
|
+
name: 'styling',
|
|
3348
|
+
order: 1,
|
|
3349
|
+
title: 'Styling',
|
|
3350
|
+
};
|
|
3351
|
+
const AXP_DATA_PROPERTY_GROUP = {
|
|
3352
|
+
name: 'data',
|
|
3353
|
+
order: 7,
|
|
3354
|
+
title: 'Data',
|
|
3355
|
+
};
|
|
3356
|
+
const AXP_BEHAVIOR_PROPERTY_GROUP = {
|
|
3357
|
+
name: 'behavior',
|
|
3358
|
+
order: 2,
|
|
3359
|
+
title: 'Behavior',
|
|
3360
|
+
};
|
|
3361
|
+
const AXP_WIDGET_PROPERTY_GROUP = {
|
|
3362
|
+
name: 'widget',
|
|
3363
|
+
order: 0,
|
|
3364
|
+
title: 'Widget',
|
|
3365
|
+
};
|
|
3366
|
+
const AXP_VALIDATION_PROPERTY_GROUP = {
|
|
3367
|
+
name: 'validation',
|
|
3368
|
+
order: 4,
|
|
3369
|
+
title: 'Validation',
|
|
3370
|
+
};
|
|
3371
|
+
const AXP_APPEARANCE_PROPERTY_GROUP = {
|
|
3372
|
+
name: 'appearance',
|
|
3373
|
+
order: 2,
|
|
3374
|
+
title: 'Appearance',
|
|
3375
|
+
};
|
|
3376
|
+
const AXP_ANIMATION_PROPERTY_GROUP = {
|
|
3377
|
+
name: 'animation',
|
|
3378
|
+
order: 5,
|
|
3379
|
+
title: 'Animation',
|
|
3380
|
+
};
|
|
3381
|
+
const AXP_TRIGGERS_PROPERTY_GROUP = {
|
|
3382
|
+
name: 'triggers',
|
|
3383
|
+
order: 3,
|
|
3384
|
+
title: 'Triggers',
|
|
3385
|
+
};
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* Single property that edits all data-source-related options (dataSource, valueField, textField, filters)
|
|
3389
|
+
* in one dedicated widget. Uses path: 'options' and setValue with merge (same pattern as flex-options).
|
|
3390
|
+
*/
|
|
3391
|
+
const AXP_DATA_SOURCE_OPTIONS_PROPERTY = {
|
|
3392
|
+
name: 'dataSourceOptions',
|
|
3393
|
+
title: 'Data Source',
|
|
3394
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3395
|
+
showLabel: false,
|
|
3396
|
+
schema: {
|
|
3397
|
+
dataType: 'object',
|
|
3398
|
+
interface: {
|
|
3399
|
+
name: 'dataSourceOptions',
|
|
3400
|
+
path: 'options',
|
|
3401
|
+
type: 'data-source-options',
|
|
3402
|
+
options: {},
|
|
3403
|
+
},
|
|
3404
|
+
},
|
|
3405
|
+
visible: true,
|
|
3406
|
+
};
|
|
3407
|
+
// export const AXP_DATA_SOURCE_PROPERTY: AXPWidgetProperty = {
|
|
3408
|
+
// name: 'dataSource',
|
|
3409
|
+
// title: 'Data Source',
|
|
3410
|
+
// group: AXP_DATA_PROPERTY_GROUP,
|
|
3411
|
+
// schema: {
|
|
3412
|
+
// dataType: 'object',
|
|
3413
|
+
// interface: {
|
|
3414
|
+
// name: 'dataSource',
|
|
3415
|
+
// path: 'options.dataSource',
|
|
3416
|
+
// type: AXPWidgetsCatalog.select,
|
|
3417
|
+
// valueTransforms: objectKeyValueTransforms('name'),
|
|
3418
|
+
// options: {
|
|
3419
|
+
// valueField: 'name',
|
|
3420
|
+
// textField: 'title',
|
|
3421
|
+
// dataSource: 'dataSources',
|
|
3422
|
+
// hasClearButton: true,
|
|
3423
|
+
// allowSearch: true,
|
|
3424
|
+
// },
|
|
3425
|
+
// },
|
|
3426
|
+
// },
|
|
3427
|
+
// visible: true,
|
|
3428
|
+
// };
|
|
3429
|
+
// export const AXP_DATA_SOURCE_VALUE_FIELD: AXPWidgetProperty = {
|
|
3430
|
+
// name: 'valueField',
|
|
3431
|
+
// title: 'Value Field',
|
|
3432
|
+
// group: AXP_DATA_PROPERTY_GROUP,
|
|
3433
|
+
// schema: {
|
|
3434
|
+
// dataType: 'string',
|
|
3435
|
+
// interface: {
|
|
3436
|
+
// name: 'valueField',
|
|
3437
|
+
// path: 'options.valueField',
|
|
3438
|
+
// type: AXPWidgetsCatalog.text,
|
|
3439
|
+
// options: {
|
|
3440
|
+
// hasClearButton: true,
|
|
3441
|
+
// },
|
|
3442
|
+
// triggers: [
|
|
3443
|
+
// {
|
|
3444
|
+
// event: `{{ events.context('options.dataSource') }}`,
|
|
3445
|
+
// action: `{{ context.set('options.valueField',widget.find('dataSource').output('item').valueField?.name); }}`,
|
|
3446
|
+
// },
|
|
3447
|
+
// ],
|
|
3448
|
+
// },
|
|
3449
|
+
// },
|
|
3450
|
+
// visible: true,
|
|
3451
|
+
// };
|
|
3452
|
+
// export const AXP_DATA_SOURCE_TEXT_FIELD: AXPWidgetProperty = {
|
|
3453
|
+
// name: 'textField',
|
|
3454
|
+
// title: 'Text Field',
|
|
3455
|
+
// group: AXP_DATA_PROPERTY_GROUP,
|
|
3456
|
+
// schema: {
|
|
3457
|
+
// dataType: 'string',
|
|
3458
|
+
// interface: {
|
|
3459
|
+
// name: 'textField',
|
|
3460
|
+
// path: 'options.textField',
|
|
3461
|
+
// type: AXPWidgetsCatalog.text,
|
|
3462
|
+
// options: {
|
|
3463
|
+
// hasClearButton: true,
|
|
3464
|
+
// },
|
|
3465
|
+
// triggers: [
|
|
3466
|
+
// {
|
|
3467
|
+
// event: `{{ events.context('options.dataSource') }}`,
|
|
3468
|
+
// action: `{{ context.set('options.textField',widget.find('dataSource').output('item').textField?.name); }}`,
|
|
3469
|
+
// },
|
|
3470
|
+
// ],
|
|
3471
|
+
// },
|
|
3472
|
+
// },
|
|
3473
|
+
// visible: true,
|
|
3474
|
+
// };
|
|
3475
|
+
// /** Use AXP_DATA_SOURCE_OPTIONS_PROPERTY for a single unified data-source editor, or the three below for separate fields. */
|
|
3476
|
+
// export const AXP_DATA_SOURCE_PROPERTIES = [
|
|
3477
|
+
// AXP_DATA_SOURCE_PROPERTY,
|
|
3478
|
+
// AXP_DATA_SOURCE_VALUE_FIELD,
|
|
3479
|
+
// AXP_DATA_SOURCE_TEXT_FIELD,
|
|
3480
|
+
// ];
|
|
3481
|
+
|
|
3482
|
+
const AXP_NAME_PROPERTY = createStringProperty({
|
|
3483
|
+
name: 'name',
|
|
3484
|
+
title: 'Name',
|
|
3485
|
+
group: AXP_WIDGET_PROPERTY_GROUP,
|
|
3486
|
+
});
|
|
3487
|
+
const AXP_THEME_PROPERTY = {
|
|
3488
|
+
name: 'theme',
|
|
3489
|
+
title: 'Theme',
|
|
3490
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3491
|
+
schema: {
|
|
3492
|
+
dataType: 'string',
|
|
3493
|
+
defaultValue: { id: 'default', title: 'Default' },
|
|
3494
|
+
interface: {
|
|
3495
|
+
name: 'theme',
|
|
3496
|
+
path: 'options.theme',
|
|
3497
|
+
type: AXPWidgetsCatalog.select,
|
|
3498
|
+
options: {
|
|
3499
|
+
dataSource: [
|
|
3500
|
+
{
|
|
3501
|
+
id: 'default',
|
|
3502
|
+
title: 'Default',
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
id: 'light',
|
|
3506
|
+
title: 'Light',
|
|
3507
|
+
},
|
|
3508
|
+
{
|
|
3509
|
+
id: 'dark',
|
|
3510
|
+
title: 'Dark',
|
|
3511
|
+
},
|
|
3512
|
+
],
|
|
3513
|
+
},
|
|
3514
|
+
},
|
|
3515
|
+
},
|
|
3516
|
+
visible: true,
|
|
3517
|
+
};
|
|
3518
|
+
const AXP_DIRECTION_PROPERTY = {
|
|
3519
|
+
name: 'direction',
|
|
3520
|
+
title: 'Direction',
|
|
3521
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3522
|
+
schema: {
|
|
3523
|
+
dataType: 'string',
|
|
3524
|
+
defaultValue: { id: 'horizontal' },
|
|
3525
|
+
interface: {
|
|
3526
|
+
name: 'direction',
|
|
3527
|
+
path: 'options.direction',
|
|
3528
|
+
type: AXPWidgetsCatalog.select,
|
|
3529
|
+
options: {
|
|
3530
|
+
dataSource: [
|
|
3531
|
+
{
|
|
3532
|
+
id: 'horizontal',
|
|
3533
|
+
title: 'Horizontal',
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
id: 'vertical',
|
|
3537
|
+
title: 'Vertical',
|
|
3538
|
+
},
|
|
3539
|
+
],
|
|
3540
|
+
},
|
|
3541
|
+
},
|
|
3542
|
+
},
|
|
3543
|
+
visible: true,
|
|
3544
|
+
};
|
|
3545
|
+
const AXP_COLOR_PROPERTY = {
|
|
3546
|
+
name: 'color',
|
|
3547
|
+
title: 'Color',
|
|
3548
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3549
|
+
schema: {
|
|
3550
|
+
dataType: 'string',
|
|
3551
|
+
interface: {
|
|
3552
|
+
path: 'options.color',
|
|
3553
|
+
options: {
|
|
3554
|
+
hasClearButton: true,
|
|
3555
|
+
},
|
|
3556
|
+
type: AXPWidgetsCatalog.color,
|
|
3557
|
+
},
|
|
3558
|
+
},
|
|
3559
|
+
visible: true,
|
|
3560
|
+
};
|
|
3561
|
+
const AXP_FONT_SIZE_PROPERTY = {
|
|
3562
|
+
name: 'fontSize',
|
|
3563
|
+
title: 'Font Size',
|
|
3564
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3565
|
+
schema: {
|
|
3566
|
+
dataType: 'string',
|
|
3567
|
+
defaultValue: '12px',
|
|
3568
|
+
interface: {
|
|
3569
|
+
name: 'fontSize',
|
|
3570
|
+
path: 'options.fontSize',
|
|
3571
|
+
type: AXPWidgetsCatalog.text,
|
|
3572
|
+
},
|
|
3573
|
+
},
|
|
3574
|
+
visible: true,
|
|
3575
|
+
};
|
|
3576
|
+
const AXP_BG_COLOR_PROPERTY = {
|
|
3577
|
+
name: 'backgroundColor',
|
|
3578
|
+
title: 'Background Color',
|
|
3579
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3580
|
+
schema: {
|
|
3581
|
+
dataType: 'string',
|
|
3582
|
+
interface: {
|
|
3583
|
+
path: 'options.backgroundColor',
|
|
3584
|
+
options: {
|
|
3585
|
+
hasClearButton: true,
|
|
3586
|
+
},
|
|
3587
|
+
type: AXPWidgetsCatalog.color,
|
|
3588
|
+
},
|
|
3589
|
+
},
|
|
3590
|
+
visible: true,
|
|
3591
|
+
};
|
|
3592
|
+
|
|
3593
|
+
const AXP_CONTENT_PROPERTY = createStringProperty({
|
|
3594
|
+
name: 'content',
|
|
3595
|
+
title: 'Content',
|
|
3596
|
+
path: 'options.content',
|
|
3597
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3598
|
+
});
|
|
3599
|
+
const AXP_PLACEHOLDER_PROPERTY = createStringProperty({
|
|
3600
|
+
name: 'placeholder',
|
|
3601
|
+
title: 'Placeholder',
|
|
3602
|
+
path: 'options.placeholder',
|
|
3603
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3604
|
+
});
|
|
3605
|
+
const AXP_DATA_PATH_PROPERTY = createStringProperty({
|
|
3606
|
+
name: 'path',
|
|
3607
|
+
title: 'Data Path',
|
|
3608
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3609
|
+
});
|
|
3610
|
+
const AXP_DISABLED_PROPERTY = createBooleanProperty({
|
|
3611
|
+
name: 'disabled',
|
|
3612
|
+
title: 'Disabled',
|
|
3613
|
+
path: 'options.disabled',
|
|
3614
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3615
|
+
});
|
|
3616
|
+
const AXP_READONLY_PROPERTY = createBooleanProperty({
|
|
3617
|
+
name: 'readonly',
|
|
3618
|
+
title: 'Readonly',
|
|
3619
|
+
path: 'options.readonly',
|
|
3620
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3621
|
+
});
|
|
3622
|
+
const AXP_ALLOW_MULTIPLE_PROPERTY = createBooleanProperty({
|
|
3623
|
+
name: 'multiple',
|
|
3624
|
+
title: 'Multiple',
|
|
3625
|
+
path: 'options.multiple',
|
|
3626
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3627
|
+
});
|
|
3628
|
+
const AXP_ALLOW_CLEAR_PROPERTY = createBooleanProperty({
|
|
3629
|
+
name: 'allowClear',
|
|
3630
|
+
title: 'Allow Clear',
|
|
3631
|
+
path: 'options.allowClear',
|
|
3632
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3633
|
+
});
|
|
3634
|
+
const AXP_HAS_LABEL_PROPERTY = createBooleanProperty({
|
|
3635
|
+
name: 'hasLabel',
|
|
3636
|
+
title: 'Label',
|
|
3637
|
+
path: 'options.hasLabel',
|
|
3638
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3639
|
+
defaultValue: true,
|
|
3640
|
+
});
|
|
3641
|
+
const AXP_HAS_ICON_PROPERTY = createBooleanProperty({
|
|
3642
|
+
name: 'hasIcon',
|
|
3643
|
+
title: 'Icon',
|
|
3644
|
+
path: 'options.hasIcon',
|
|
3645
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3646
|
+
defaultValue: true,
|
|
3647
|
+
});
|
|
3648
|
+
const AXP_ICON_PROPERTY = createStringProperty({
|
|
3649
|
+
name: 'icon',
|
|
3650
|
+
title: 'Icon Name',
|
|
3651
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3652
|
+
path: 'options.icon',
|
|
3653
|
+
});
|
|
3654
|
+
const AXP_IS_LOADING_PROPERTY = createBooleanProperty({
|
|
3655
|
+
name: 'loading',
|
|
3656
|
+
title: 'Is Loading',
|
|
3657
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3658
|
+
path: 'options.loading',
|
|
3659
|
+
});
|
|
3660
|
+
const AXP_HAS_CLEAR_BUTTON_PROPERTY = createBooleanProperty({
|
|
3661
|
+
name: 'hasClearButton',
|
|
3662
|
+
title: 'Clear Button',
|
|
3663
|
+
path: 'options.hasClearButton',
|
|
3664
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3665
|
+
defaultValue: false,
|
|
3666
|
+
});
|
|
3667
|
+
const AXP_ALLOW_SEARCH_PROPERTY = createBooleanProperty({
|
|
3668
|
+
name: 'allowSearch',
|
|
3669
|
+
title: 'Allow Search',
|
|
3670
|
+
path: 'options.allowSearch',
|
|
3671
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3672
|
+
defaultValue: false,
|
|
3673
|
+
});
|
|
3674
|
+
const AXP_HAS_COPY_ICON_PROPERTY = createBooleanProperty({
|
|
3675
|
+
name: 'hasCopyIcon',
|
|
3676
|
+
title: 'Copy Icon',
|
|
3677
|
+
path: 'options.hasCopyIcon',
|
|
3678
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3679
|
+
defaultValue: true,
|
|
3680
|
+
});
|
|
3681
|
+
const AXP_HAS_EYE_ICON_PROPERTY = createBooleanProperty({
|
|
3682
|
+
name: 'hasEyeIcon',
|
|
3683
|
+
title: 'Eye Icon',
|
|
3684
|
+
path: 'options.hasEyeIcon',
|
|
3685
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3686
|
+
defaultValue: true,
|
|
3687
|
+
});
|
|
3688
|
+
const AXP_DOWNLOADABLE_PROPERTY = createBooleanProperty({
|
|
3689
|
+
name: 'downloadable',
|
|
3690
|
+
title: 'Downloadable',
|
|
3691
|
+
path: 'options.downloadable',
|
|
3692
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3693
|
+
defaultValue: true,
|
|
3694
|
+
});
|
|
3695
|
+
// Converted with createStringProperty
|
|
3696
|
+
const AXP_TRULY_TEXT_PROPERTY = createStringProperty({
|
|
3697
|
+
name: 'trulyText',
|
|
3698
|
+
title: 'Truly Text',
|
|
3699
|
+
path: 'options.trulyText',
|
|
3700
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3701
|
+
});
|
|
3702
|
+
const AXP_FALSY_TEXT_PROPERTY = createStringProperty({
|
|
3703
|
+
name: 'falsyText',
|
|
3704
|
+
title: 'Falsy Text',
|
|
3705
|
+
path: 'options.falsyText',
|
|
3706
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3707
|
+
});
|
|
3708
|
+
const AXP_TEXT_PROPERTY = createStringProperty({
|
|
3709
|
+
name: 'text',
|
|
3710
|
+
title: 'Text',
|
|
3711
|
+
path: 'options.text',
|
|
3712
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3713
|
+
});
|
|
3714
|
+
const AXP_TITLE_PROPERTY = createStringProperty({
|
|
3715
|
+
name: 'title',
|
|
3716
|
+
title: 'Title',
|
|
3717
|
+
path: 'options.title',
|
|
3718
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3719
|
+
});
|
|
3720
|
+
const AXP_LABEL_PROPERTY = createStringProperty({
|
|
3721
|
+
name: 'label',
|
|
3722
|
+
title: 'Label',
|
|
3723
|
+
path: 'options.label',
|
|
3724
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3725
|
+
defaultValue: '',
|
|
3726
|
+
});
|
|
3727
|
+
const AXP_VALUE_FIELD_PROPERTY = createStringProperty({
|
|
3728
|
+
name: 'valueField',
|
|
3729
|
+
title: 'Value Field',
|
|
3730
|
+
path: 'options.valueField',
|
|
3731
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3732
|
+
defaultValue: 'id',
|
|
3733
|
+
});
|
|
3734
|
+
const AXP_TEXT_FIELD_PROPERTY = createStringProperty({
|
|
3735
|
+
name: 'textField',
|
|
3736
|
+
title: 'Text Field',
|
|
3737
|
+
path: 'options.textField',
|
|
3738
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3739
|
+
defaultValue: 'title',
|
|
3740
|
+
});
|
|
3741
|
+
const AXP_DESCRIPTION_PROPERTY = createStringProperty({
|
|
3742
|
+
name: 'description',
|
|
3743
|
+
title: 'Description',
|
|
3744
|
+
path: 'options.description',
|
|
3745
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3746
|
+
});
|
|
3747
|
+
const AXP_STYLE_COLOR_PROPERTY = createSelectProperty({
|
|
3748
|
+
name: 'color',
|
|
3749
|
+
title: 'Color',
|
|
3750
|
+
dataSource: AX_STYLE_COLOR_TYPES,
|
|
3751
|
+
defaultValue: 'primary',
|
|
3752
|
+
path: 'options.color',
|
|
3753
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3754
|
+
});
|
|
3755
|
+
const AXP_STYLE_LOOK_PROPERTY = createSelectProperty({
|
|
3756
|
+
name: 'look',
|
|
3757
|
+
title: 'Look',
|
|
3758
|
+
dataSource: AX_STYLE_LOOK_TYPES,
|
|
3759
|
+
defaultValue: 'solid',
|
|
3760
|
+
path: 'options.look',
|
|
3761
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3762
|
+
});
|
|
3763
|
+
const AXP_TEXT_ALIGN_PROPERTY = createSelectProperty({
|
|
3764
|
+
name: 'textAlign',
|
|
3765
|
+
title: 'Text Align',
|
|
3766
|
+
path: 'options.textAlign',
|
|
3767
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3768
|
+
defaultValue: { id: 'left', title: 'Left' },
|
|
3769
|
+
dataSource: [
|
|
3770
|
+
{ id: 'left', title: 'Left' },
|
|
3771
|
+
{ id: 'center', title: 'Center' },
|
|
3772
|
+
{ id: 'right', title: 'Right' },
|
|
3773
|
+
{ id: 'justify', title: 'Justify' },
|
|
3774
|
+
],
|
|
3775
|
+
});
|
|
3776
|
+
const AXP_VERTICAL_ALIGN_PROPERTY = createSelectProperty({
|
|
3777
|
+
name: 'verticalAlign',
|
|
3778
|
+
title: 'Vertical Align',
|
|
3779
|
+
path: 'options.verticalAlign',
|
|
3780
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
3781
|
+
defaultValue: { id: 'top', title: 'Top' },
|
|
3782
|
+
dataSource: [
|
|
3783
|
+
{ id: 'top', title: 'Top' },
|
|
3784
|
+
{ id: 'middle', title: 'Middle' },
|
|
3785
|
+
{ id: 'bottom', title: 'Bottom' },
|
|
3786
|
+
{ id: 'baseline', title: 'Baseline' },
|
|
3787
|
+
],
|
|
3788
|
+
});
|
|
3789
|
+
const AXP_DATE_FORMAT_PROPERTY = createSelectProperty({
|
|
3790
|
+
name: 'format',
|
|
3791
|
+
title: 'Format',
|
|
3792
|
+
dataSource: [
|
|
3793
|
+
{ id: 'date', title: 'Date' },
|
|
3794
|
+
{ id: 'datetime', title: 'DateTime' },
|
|
3795
|
+
{ id: 'time', title: 'Time' },
|
|
3796
|
+
],
|
|
3797
|
+
defaultValue: { id: 'date', title: 'Date' },
|
|
3798
|
+
path: 'options.format',
|
|
3799
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3800
|
+
});
|
|
3801
|
+
const AXP_DATE_DEPTH_PROPERTY = createSelectProperty({
|
|
3802
|
+
name: 'depth',
|
|
3803
|
+
title: 'Input Depth',
|
|
3804
|
+
dataSource: [
|
|
3805
|
+
{ id: 'year', title: 'Year' },
|
|
3806
|
+
{ id: 'month', title: 'Month' },
|
|
3807
|
+
{ id: 'day', title: 'Day' },
|
|
3808
|
+
],
|
|
3809
|
+
path: 'options.depth',
|
|
3810
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3811
|
+
defaultValue: { id: 'day', title: 'Day' },
|
|
3812
|
+
});
|
|
3813
|
+
/** Max span in days between from/to when filter operation is `between`. */
|
|
3814
|
+
const AXP_DATE_RANGE_LIMIT_PROPERTY = createNumberProperty({
|
|
3815
|
+
name: 'limit',
|
|
3816
|
+
title: 'Range Limit (Days)',
|
|
3817
|
+
path: 'options.limit',
|
|
3818
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3819
|
+
});
|
|
3820
|
+
function booleanDefaultProperty(defaultValue = false) {
|
|
3821
|
+
return {
|
|
3822
|
+
name: 'defaultValue',
|
|
3823
|
+
title: 'Default Value',
|
|
3824
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3825
|
+
schema: {
|
|
3826
|
+
dataType: 'boolean',
|
|
3827
|
+
defaultValue: defaultValue,
|
|
3828
|
+
interface: {
|
|
3829
|
+
name: 'defaultValue',
|
|
3830
|
+
path: 'defaultValue',
|
|
3831
|
+
type: AXPWidgetsCatalog.toggle,
|
|
3832
|
+
},
|
|
3833
|
+
},
|
|
3834
|
+
visible: true,
|
|
3835
|
+
};
|
|
3836
|
+
}
|
|
3837
|
+
function plainTextDefaultProperty() {
|
|
3838
|
+
return {
|
|
3839
|
+
name: 'defaultValue',
|
|
3840
|
+
title: 'Default Value',
|
|
3841
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3842
|
+
schema: {
|
|
3843
|
+
dataType: 'string',
|
|
3844
|
+
interface: {
|
|
3845
|
+
name: 'defaultValue',
|
|
3846
|
+
path: 'defaultValue',
|
|
3847
|
+
type: AXPWidgetsCatalog.text,
|
|
3848
|
+
options: {
|
|
3849
|
+
placeholder: '@layout-designer:property-editor.placeholders.default-value-plain-text',
|
|
3850
|
+
},
|
|
3851
|
+
},
|
|
3852
|
+
},
|
|
3853
|
+
visible: true,
|
|
3854
|
+
};
|
|
3855
|
+
}
|
|
3856
|
+
function largeTextDefaultProperty() {
|
|
3857
|
+
return {
|
|
3858
|
+
name: 'defaultValue',
|
|
3859
|
+
title: 'Default Value',
|
|
3860
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3861
|
+
schema: {
|
|
3862
|
+
dataType: 'string',
|
|
3863
|
+
interface: {
|
|
3864
|
+
name: 'defaultValue',
|
|
3865
|
+
path: 'defaultValue',
|
|
3866
|
+
type: AXPWidgetsCatalog.largeText,
|
|
3867
|
+
options: {
|
|
3868
|
+
placeholder: '@layout-designer:property-editor.placeholders.default-value-large-text',
|
|
3869
|
+
},
|
|
3870
|
+
},
|
|
3871
|
+
},
|
|
3872
|
+
visible: true,
|
|
3873
|
+
};
|
|
3874
|
+
}
|
|
3875
|
+
function richTextDefaultProperty() {
|
|
3876
|
+
return {
|
|
3877
|
+
name: 'defaultValue',
|
|
3878
|
+
title: 'Default Value',
|
|
3879
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3880
|
+
schema: {
|
|
3881
|
+
dataType: 'string',
|
|
3882
|
+
interface: {
|
|
3883
|
+
name: 'defaultValue',
|
|
3884
|
+
path: 'defaultValue',
|
|
3885
|
+
type: AXPWidgetsCatalog.richText,
|
|
3886
|
+
options: {
|
|
3887
|
+
placeholder: '@layout-designer:property-editor.placeholders.default-value-rich-text',
|
|
3888
|
+
},
|
|
3889
|
+
},
|
|
3890
|
+
},
|
|
3891
|
+
visible: true,
|
|
3892
|
+
};
|
|
3893
|
+
}
|
|
3894
|
+
/**
|
|
3895
|
+
* Default value editor for select-editor: uses `context.options(key)` so the default picker reads
|
|
3896
|
+
* the **host** widget's options from the shared context (not the nested property field's `widget`).
|
|
3897
|
+
*/
|
|
3898
|
+
function selectEditorDefaultValueProperty() {
|
|
3899
|
+
return {
|
|
3900
|
+
name: 'defaultValue',
|
|
3901
|
+
title: 'Default Value',
|
|
3902
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3903
|
+
schema: {
|
|
3904
|
+
dataType: 'object',
|
|
3905
|
+
interface: {
|
|
3906
|
+
name: 'defaultValue',
|
|
3907
|
+
path: 'defaultValue',
|
|
3908
|
+
type: AXPWidgetsCatalog.select,
|
|
3909
|
+
options: {
|
|
3910
|
+
placeholder: '@layout-designer:property-editor.placeholders.default-value-select',
|
|
3911
|
+
dataSource: '{{ context.options("dataSource") }}',
|
|
3912
|
+
valueField: '{{ context.options("valueField") }}',
|
|
3913
|
+
textField: '{{ context.options("textField") }}',
|
|
3914
|
+
multiple: '{{ context.options("multiple") }}',
|
|
3915
|
+
hasClearButton: true,
|
|
3916
|
+
},
|
|
3917
|
+
},
|
|
3918
|
+
},
|
|
3919
|
+
visible: true,
|
|
3920
|
+
};
|
|
3921
|
+
}
|
|
3922
|
+
/**
|
|
3923
|
+
* Default value editor for selection-list-editor: uses the select widget in the designer so picking
|
|
3924
|
+
* a default matches select UX while still binding to the host's dataSource / fields via `context.options`.
|
|
3925
|
+
*/
|
|
3926
|
+
function selectionListEditorDefaultValueProperty() {
|
|
3927
|
+
return {
|
|
3928
|
+
name: 'defaultValue',
|
|
3929
|
+
title: 'Default Value',
|
|
3930
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3931
|
+
schema: {
|
|
3932
|
+
dataType: 'object',
|
|
3933
|
+
interface: {
|
|
3934
|
+
name: 'defaultValue',
|
|
3935
|
+
path: 'defaultValue',
|
|
3936
|
+
type: AXPWidgetsCatalog.select,
|
|
3937
|
+
options: {
|
|
3938
|
+
placeholder: '@layout-designer:property-editor.placeholders.default-value-select',
|
|
3939
|
+
dataSource: '{{ context.options("dataSource") }}',
|
|
3940
|
+
valueField: '{{ context.options("valueField") }}',
|
|
3941
|
+
textField: '{{ context.options("textField") }}',
|
|
3942
|
+
multiple: '{{ context.options("multiple") }}',
|
|
3943
|
+
hasClearButton: true,
|
|
3944
|
+
},
|
|
3945
|
+
},
|
|
3946
|
+
},
|
|
3947
|
+
visible: true,
|
|
3948
|
+
};
|
|
3949
|
+
}
|
|
3950
|
+
function numberDefaultProperty() {
|
|
3951
|
+
return {
|
|
3952
|
+
name: 'defaultValue',
|
|
3953
|
+
title: 'Default Value',
|
|
3954
|
+
group: AXP_DATA_PROPERTY_GROUP,
|
|
3955
|
+
schema: {
|
|
3956
|
+
dataType: 'number',
|
|
3957
|
+
interface: {
|
|
3958
|
+
name: 'defaultValue',
|
|
3959
|
+
path: 'defaultValue',
|
|
3960
|
+
type: AXPWidgetsCatalog.number,
|
|
3961
|
+
options: {
|
|
3962
|
+
placeholder: '@layout-designer:property-editor.placeholders.default-value-number',
|
|
3963
|
+
},
|
|
3964
|
+
},
|
|
3965
|
+
},
|
|
3966
|
+
visible: true,
|
|
3967
|
+
};
|
|
3968
|
+
}
|
|
3969
|
+
function numberMinValueProperty(value) {
|
|
3970
|
+
return {
|
|
3971
|
+
name: 'minValue',
|
|
3972
|
+
title: 'Min Value',
|
|
3973
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3974
|
+
order: 9,
|
|
3975
|
+
schema: {
|
|
3976
|
+
dataType: 'number',
|
|
3977
|
+
defaultValue: value,
|
|
3978
|
+
interface: {
|
|
3979
|
+
name: 'minValue',
|
|
3980
|
+
path: 'options.minValue',
|
|
3981
|
+
type: AXPWidgetsCatalog.number,
|
|
3982
|
+
options: {
|
|
3983
|
+
placeholder: '@layout-designer:property-editor.placeholders.number-min-value',
|
|
3984
|
+
},
|
|
3985
|
+
},
|
|
3986
|
+
},
|
|
3987
|
+
visible: true,
|
|
3988
|
+
};
|
|
3989
|
+
}
|
|
3990
|
+
function numberMaxValueProperty(value) {
|
|
3991
|
+
return {
|
|
3992
|
+
name: 'maxValue',
|
|
3993
|
+
title: 'Max Value',
|
|
3994
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
3995
|
+
order: 10,
|
|
3996
|
+
schema: {
|
|
3997
|
+
dataType: 'number',
|
|
3998
|
+
defaultValue: value,
|
|
3999
|
+
interface: {
|
|
4000
|
+
name: 'maxValue',
|
|
4001
|
+
path: 'options.maxValue',
|
|
4002
|
+
type: AXPWidgetsCatalog.number,
|
|
4003
|
+
options: {
|
|
4004
|
+
placeholder: '@layout-designer:property-editor.placeholders.number-max-value',
|
|
4005
|
+
},
|
|
4006
|
+
},
|
|
4007
|
+
},
|
|
4008
|
+
visible: true,
|
|
4009
|
+
};
|
|
4010
|
+
}
|
|
4011
|
+
const AXP_MULTI_LANGUAGE_PROPERTY = createBooleanProperty({
|
|
4012
|
+
name: 'multiLanguage',
|
|
4013
|
+
title: 'Multi Language',
|
|
4014
|
+
path: 'options.multiLanguage',
|
|
4015
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4016
|
+
defaultValue: false,
|
|
4017
|
+
});
|
|
4018
|
+
const AXP_SPIN_BUTTON_PROPERTY = createBooleanProperty({
|
|
4019
|
+
name: 'spinButton',
|
|
4020
|
+
title: 'Spin Button',
|
|
4021
|
+
path: 'options.spinButton',
|
|
4022
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4023
|
+
});
|
|
4024
|
+
const AXP_NUMBER_SEPARATOR_PROPERTY = createStringProperty({
|
|
4025
|
+
name: 'seprator',
|
|
4026
|
+
title: 'Thousands Separator',
|
|
4027
|
+
path: 'options.seprator',
|
|
4028
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4029
|
+
});
|
|
4030
|
+
const AXP_DEFAULT_ROW_COUNT_PROPERTY = createNumberProperty({
|
|
4031
|
+
name: 'defaultRowCount',
|
|
4032
|
+
title: 'Default Row Count',
|
|
4033
|
+
path: 'options.defaultRowCount',
|
|
4034
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4035
|
+
});
|
|
4036
|
+
const AXP_MIN_LINE_COUNT_PROPERTY = createNumberProperty({
|
|
4037
|
+
name: 'minLineCount',
|
|
4038
|
+
title: 'Min Line Count',
|
|
4039
|
+
path: 'options.minLineCount',
|
|
4040
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4041
|
+
});
|
|
4042
|
+
const AXP_MAX_LINE_COUNT_PROPERTY = createNumberProperty({
|
|
4043
|
+
name: 'maxLineCount',
|
|
4044
|
+
title: 'Max Line Count',
|
|
4045
|
+
path: 'options.maxLineCount',
|
|
4046
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4047
|
+
});
|
|
4048
|
+
const AXP_FIT_LINE_COUNT_PROPERTY = createBooleanProperty({
|
|
4049
|
+
name: 'fitLineCount',
|
|
4050
|
+
title: 'Fit Line Count',
|
|
4051
|
+
path: 'options.fitLineCount',
|
|
4052
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4053
|
+
});
|
|
4054
|
+
const AXP_SHOW_PASSWORD_PROPERTY = createBooleanProperty({
|
|
4055
|
+
name: 'showPassword',
|
|
4056
|
+
title: 'Show Password',
|
|
4057
|
+
path: 'options.showPassword',
|
|
4058
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4059
|
+
});
|
|
4060
|
+
const AXP_TRIGGERS_PROPERTY = {
|
|
4061
|
+
name: 'triggers',
|
|
4062
|
+
title: 'Triggers',
|
|
4063
|
+
group: AXP_TRIGGERS_PROPERTY_GROUP,
|
|
4064
|
+
showLabel: false,
|
|
4065
|
+
schema: {
|
|
4066
|
+
dataType: 'object',
|
|
4067
|
+
interface: {
|
|
4068
|
+
name: 'triggers',
|
|
4069
|
+
path: 'triggers',
|
|
4070
|
+
type: 'triggers-editor',
|
|
4071
|
+
},
|
|
4072
|
+
},
|
|
4073
|
+
visible: true,
|
|
4074
|
+
};
|
|
4075
|
+
|
|
4076
|
+
const AXP_LAYOUT_GRID_PROPERTY_GROUP = {
|
|
4077
|
+
name: 'grid',
|
|
4078
|
+
order: 1,
|
|
4079
|
+
title: 'Grid Layout',
|
|
4080
|
+
};
|
|
4081
|
+
const AXP_LAYOUT_FLEX_PROPERTY_GROUP = {
|
|
4082
|
+
name: 'flex',
|
|
4083
|
+
order: 1,
|
|
4084
|
+
title: 'Flex Layout',
|
|
4085
|
+
};
|
|
4086
|
+
const AXP_BOX_MODEL_PROPERTY_GROUP = {
|
|
4087
|
+
name: 'box',
|
|
4088
|
+
order: 1,
|
|
4089
|
+
title: 'Box Model',
|
|
4090
|
+
};
|
|
4091
|
+
const AXP_LAYOUT_TABLE_PROPERTY_GROUP = {
|
|
4092
|
+
name: 'table',
|
|
4093
|
+
order: 1,
|
|
4094
|
+
title: 'Table Layout',
|
|
4095
|
+
};
|
|
4096
|
+
const AXP_LAYOUT_GAP_PROPERTY = {
|
|
4097
|
+
name: 'gap',
|
|
4098
|
+
title: 'Gap',
|
|
4099
|
+
group: AXP_LAYOUT_GRID_PROPERTY_GROUP,
|
|
4100
|
+
schema: {
|
|
4101
|
+
dataType: 'number',
|
|
4102
|
+
defaultValue: 2,
|
|
4103
|
+
interface: {
|
|
4104
|
+
name: 'gap',
|
|
4105
|
+
path: 'options.gap',
|
|
4106
|
+
type: AXPWidgetsCatalog.number,
|
|
4107
|
+
options: {
|
|
4108
|
+
minValue: 0,
|
|
4109
|
+
maxValue: 12,
|
|
4110
|
+
},
|
|
4111
|
+
},
|
|
4112
|
+
},
|
|
4113
|
+
visible: true,
|
|
4114
|
+
};
|
|
4115
|
+
const AXP_LAYOUT_COLUMNS_PROPERTY = {
|
|
4116
|
+
name: 'cols',
|
|
4117
|
+
title: 'Columns',
|
|
4118
|
+
group: AXP_LAYOUT_GRID_PROPERTY_GROUP,
|
|
4119
|
+
schema: {
|
|
4120
|
+
dataType: 'number',
|
|
4121
|
+
defaultValue: 1,
|
|
4122
|
+
interface: {
|
|
4123
|
+
name: 'cols',
|
|
4124
|
+
path: 'options.cols',
|
|
4125
|
+
type: AXPWidgetsCatalog.number,
|
|
4126
|
+
options: {
|
|
4127
|
+
minValue: 1,
|
|
4128
|
+
maxValue: 12,
|
|
4129
|
+
},
|
|
4130
|
+
},
|
|
4131
|
+
},
|
|
4132
|
+
visible: true,
|
|
4133
|
+
};
|
|
4134
|
+
const AXP_LAYOUT_ROWS_PROPERTY = {
|
|
4135
|
+
name: 'rows',
|
|
4136
|
+
title: 'Rows',
|
|
4137
|
+
group: AXP_LAYOUT_GRID_PROPERTY_GROUP,
|
|
4138
|
+
schema: {
|
|
4139
|
+
dataType: 'number',
|
|
4140
|
+
defaultValue: 1,
|
|
4141
|
+
interface: {
|
|
4142
|
+
name: 'rows',
|
|
4143
|
+
path: 'options.rows',
|
|
4144
|
+
type: AXPWidgetsCatalog.number,
|
|
4145
|
+
options: {
|
|
4146
|
+
minValue: 1,
|
|
4147
|
+
maxValue: 100,
|
|
4148
|
+
},
|
|
4149
|
+
},
|
|
4150
|
+
},
|
|
4151
|
+
visible: true,
|
|
4152
|
+
};
|
|
4153
|
+
const AXP_LAYOUT_GRID_PROPERTIES = [
|
|
4154
|
+
AXP_LAYOUT_GAP_PROPERTY,
|
|
4155
|
+
AXP_LAYOUT_COLUMNS_PROPERTY,
|
|
4156
|
+
AXP_LAYOUT_ROWS_PROPERTY,
|
|
4157
|
+
];
|
|
4158
|
+
const AXP_LAYOUT_GRID_ROW_PROPERTIES = [
|
|
4159
|
+
AXP_LAYOUT_GAP_PROPERTY,
|
|
4160
|
+
cloneProperty(AXP_LAYOUT_COLUMNS_PROPERTY, { schema: { defaultValue: 12 } }),
|
|
4161
|
+
];
|
|
4162
|
+
const AXP_LAYOUT_GRID_ITEM_PROPERTY = {
|
|
4163
|
+
name: 'gridItem',
|
|
4164
|
+
title: 'Grid Item',
|
|
4165
|
+
group: AXP_LAYOUT_GRID_PROPERTY_GROUP,
|
|
4166
|
+
schema: {
|
|
4167
|
+
dataType: 'object',
|
|
4168
|
+
interface: {
|
|
4169
|
+
name: 'gridItem',
|
|
4170
|
+
path: 'options',
|
|
4171
|
+
type: AXPWidgetsCatalog.gridItemOptions,
|
|
4172
|
+
options: {},
|
|
4173
|
+
},
|
|
4174
|
+
},
|
|
4175
|
+
visible: true,
|
|
4176
|
+
};
|
|
4177
|
+
const AXP_LAYOUT_SPACING_PROPERTY = {
|
|
4178
|
+
name: 'spacing',
|
|
4179
|
+
title: 'Spacing',
|
|
4180
|
+
group: AXP_BOX_MODEL_PROPERTY_GROUP,
|
|
4181
|
+
schema: {
|
|
4182
|
+
dataType: 'object',
|
|
4183
|
+
interface: {
|
|
4184
|
+
name: 'spacing',
|
|
4185
|
+
path: 'options.spacing',
|
|
4186
|
+
type: AXPWidgetsCatalog.spacing,
|
|
4187
|
+
options: {},
|
|
4188
|
+
},
|
|
4189
|
+
},
|
|
4190
|
+
visible: true,
|
|
4191
|
+
};
|
|
4192
|
+
const AXP_LAYOUT_BORDER_PROPERTY = {
|
|
4193
|
+
name: 'border',
|
|
4194
|
+
title: 'Border',
|
|
4195
|
+
group: AXP_BOX_MODEL_PROPERTY_GROUP,
|
|
4196
|
+
schema: {
|
|
4197
|
+
dataType: 'object',
|
|
4198
|
+
interface: {
|
|
4199
|
+
name: 'border',
|
|
4200
|
+
path: 'options.border',
|
|
4201
|
+
type: AXPWidgetsCatalog.border,
|
|
4202
|
+
options: {},
|
|
4203
|
+
},
|
|
4204
|
+
},
|
|
4205
|
+
visible: true,
|
|
4206
|
+
};
|
|
4207
|
+
const AXP_LAYOUT_FLEX_PROPERTY = {
|
|
4208
|
+
name: 'flex',
|
|
4209
|
+
title: 'Flex',
|
|
4210
|
+
group: AXP_LAYOUT_FLEX_PROPERTY_GROUP,
|
|
4211
|
+
schema: {
|
|
4212
|
+
dataType: 'object',
|
|
4213
|
+
interface: {
|
|
4214
|
+
name: 'flex',
|
|
4215
|
+
path: 'options',
|
|
4216
|
+
type: AXPWidgetsCatalog.flexOptions,
|
|
4217
|
+
options: {},
|
|
4218
|
+
},
|
|
4219
|
+
},
|
|
4220
|
+
visible: true,
|
|
4221
|
+
};
|
|
4222
|
+
const AXP_LAYOUT_FLEX_ITEM_PROPERTY = {
|
|
4223
|
+
name: 'flexItem',
|
|
4224
|
+
title: 'Flex Item',
|
|
4225
|
+
group: AXP_LAYOUT_FLEX_PROPERTY_GROUP,
|
|
4226
|
+
schema: {
|
|
4227
|
+
dataType: 'object',
|
|
4228
|
+
interface: {
|
|
4229
|
+
name: 'flexItem',
|
|
4230
|
+
path: 'options',
|
|
4231
|
+
type: AXPWidgetsCatalog.flexItemOptions,
|
|
4232
|
+
options: {},
|
|
4233
|
+
},
|
|
4234
|
+
},
|
|
4235
|
+
visible: true,
|
|
4236
|
+
};
|
|
4237
|
+
const AXP_LAYOUT_GRID_PROPERTY = {
|
|
4238
|
+
name: 'grid',
|
|
4239
|
+
title: 'Grid',
|
|
4240
|
+
group: AXP_LAYOUT_GRID_PROPERTY_GROUP,
|
|
4241
|
+
schema: {
|
|
4242
|
+
dataType: 'object',
|
|
4243
|
+
interface: {
|
|
4244
|
+
name: 'grid',
|
|
4245
|
+
path: 'options.grid',
|
|
4246
|
+
type: AXPWidgetsCatalog.gridOptions,
|
|
4247
|
+
options: {},
|
|
4248
|
+
},
|
|
4249
|
+
},
|
|
4250
|
+
visible: true,
|
|
4251
|
+
};
|
|
4252
|
+
const AXP_TABLE_COLUMNS_PROPERTY = {
|
|
4253
|
+
name: 'columns',
|
|
4254
|
+
title: 'Columns',
|
|
4255
|
+
group: AXP_LAYOUT_TABLE_PROPERTY_GROUP,
|
|
4256
|
+
schema: {
|
|
4257
|
+
dataType: 'number',
|
|
4258
|
+
defaultValue: 3,
|
|
4259
|
+
interface: {
|
|
4260
|
+
name: 'columns',
|
|
4261
|
+
path: 'options.columns',
|
|
4262
|
+
type: AXPWidgetsCatalog.number,
|
|
4263
|
+
options: {
|
|
4264
|
+
minValue: 1,
|
|
4265
|
+
maxValue: 12,
|
|
4266
|
+
},
|
|
4267
|
+
},
|
|
4268
|
+
},
|
|
4269
|
+
visible: true,
|
|
4270
|
+
};
|
|
4271
|
+
// Removed rowHeight/rows from table properties
|
|
4272
|
+
const AXP_TABLE_ITEM_COLSPAN_PROPERTY = {
|
|
4273
|
+
name: 'colSpan',
|
|
4274
|
+
title: 'Column Span',
|
|
4275
|
+
group: AXP_LAYOUT_TABLE_PROPERTY_GROUP,
|
|
4276
|
+
schema: {
|
|
4277
|
+
dataType: 'number',
|
|
4278
|
+
defaultValue: 1,
|
|
4279
|
+
interface: {
|
|
4280
|
+
name: 'colSpan',
|
|
4281
|
+
path: 'options.colSpan',
|
|
4282
|
+
type: AXPWidgetsCatalog.number,
|
|
4283
|
+
options: {
|
|
4284
|
+
minValue: 1,
|
|
4285
|
+
maxValue: 24,
|
|
4286
|
+
},
|
|
4287
|
+
},
|
|
4288
|
+
},
|
|
4289
|
+
visible: true,
|
|
4290
|
+
};
|
|
4291
|
+
const AXP_TABLE_ITEM_ROWSPAN_PROPERTY = {
|
|
4292
|
+
name: 'rowSpan',
|
|
4293
|
+
title: 'Row Span',
|
|
4294
|
+
group: AXP_LAYOUT_TABLE_PROPERTY_GROUP,
|
|
4295
|
+
schema: {
|
|
4296
|
+
dataType: 'number',
|
|
4297
|
+
defaultValue: 1,
|
|
4298
|
+
interface: {
|
|
4299
|
+
name: 'rowSpan',
|
|
4300
|
+
path: 'options.rowSpan',
|
|
4301
|
+
type: AXPWidgetsCatalog.number,
|
|
4302
|
+
options: {
|
|
4303
|
+
minValue: 1,
|
|
4304
|
+
maxValue: 100,
|
|
4305
|
+
},
|
|
4306
|
+
},
|
|
4307
|
+
},
|
|
4308
|
+
visible: true,
|
|
4309
|
+
};
|
|
4310
|
+
// Removed header/footer/sticky related table properties
|
|
4311
|
+
const AXP_LAYOUT_ADVANCED_GRID_PROPERTY = {
|
|
4312
|
+
name: 'advancedGrid',
|
|
4313
|
+
title: 'Advanced Grid',
|
|
4314
|
+
group: AXP_LAYOUT_GRID_PROPERTY_GROUP,
|
|
4315
|
+
schema: {
|
|
4316
|
+
dataType: 'object',
|
|
4317
|
+
interface: {
|
|
4318
|
+
name: 'advancedGrid',
|
|
4319
|
+
path: 'options.advancedGrid',
|
|
4320
|
+
type: AXPWidgetsCatalog.advancedGridOptions,
|
|
4321
|
+
options: {},
|
|
4322
|
+
},
|
|
4323
|
+
},
|
|
4324
|
+
visible: true,
|
|
4325
|
+
};
|
|
4326
|
+
const AXP_LAYOUT_SHOW_HEADER_PROPERTY = createBooleanProperty({
|
|
4327
|
+
name: 'showHeader',
|
|
4328
|
+
title: 'Show Header',
|
|
4329
|
+
group: AXP_BEHAVIOR_PROPERTY_GROUP,
|
|
4330
|
+
path: 'options.showHeader',
|
|
4331
|
+
defaultValue: true,
|
|
4332
|
+
});
|
|
4333
|
+
const AXP_LAYOUT_DIRECTION_PROPERTY = {
|
|
4334
|
+
name: 'direction',
|
|
4335
|
+
title: 'Direction',
|
|
4336
|
+
group: AXP_BOX_MODEL_PROPERTY_GROUP,
|
|
4337
|
+
order: 99,
|
|
4338
|
+
schema: {
|
|
4339
|
+
dataType: 'string',
|
|
4340
|
+
interface: {
|
|
4341
|
+
name: 'direction',
|
|
4342
|
+
path: 'options.direction',
|
|
4343
|
+
type: AXPWidgetsCatalog.direction,
|
|
4344
|
+
options: {},
|
|
4345
|
+
},
|
|
4346
|
+
},
|
|
4347
|
+
visible: true,
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
const TABLE_COLUMN_ALIGN_DATA_SOURCE = [
|
|
4351
|
+
{ id: 'start', title: 'Start' },
|
|
4352
|
+
{ id: 'center', title: 'Center' },
|
|
4353
|
+
{ id: 'end', title: 'End' },
|
|
4354
|
+
];
|
|
4355
|
+
const AXP_TABLE_COLUMN_HEADER_ALIGN_PROPERTY = {
|
|
4356
|
+
name: 'alignHeader',
|
|
4357
|
+
title: 'Header alignment',
|
|
4358
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
4359
|
+
schema: {
|
|
4360
|
+
dataType: 'string',
|
|
4361
|
+
defaultValue: 'start',
|
|
4362
|
+
interface: {
|
|
4363
|
+
name: 'alignHeader',
|
|
4364
|
+
path: 'options.align.header',
|
|
4365
|
+
type: AXPWidgetsCatalog.select,
|
|
4366
|
+
options: {
|
|
4367
|
+
dataSource: [...TABLE_COLUMN_ALIGN_DATA_SOURCE],
|
|
4368
|
+
},
|
|
4369
|
+
},
|
|
4370
|
+
},
|
|
4371
|
+
visible: true,
|
|
4372
|
+
};
|
|
4373
|
+
const AXP_TABLE_COLUMN_CELL_ALIGN_PROPERTY = {
|
|
4374
|
+
name: 'alignCell',
|
|
4375
|
+
title: 'Cell alignment',
|
|
4376
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
4377
|
+
schema: {
|
|
4378
|
+
dataType: 'string',
|
|
4379
|
+
defaultValue: 'start',
|
|
4380
|
+
interface: {
|
|
4381
|
+
name: 'alignCell',
|
|
4382
|
+
path: 'options.align.cell',
|
|
4383
|
+
type: AXPWidgetsCatalog.select,
|
|
4384
|
+
options: {
|
|
4385
|
+
dataSource: [...TABLE_COLUMN_ALIGN_DATA_SOURCE],
|
|
4386
|
+
},
|
|
4387
|
+
},
|
|
4388
|
+
},
|
|
4389
|
+
visible: true,
|
|
4390
|
+
};
|
|
4391
|
+
/** Optional column designer fields; spread next to `AXP_TABLE_COLUMN_WIDTH_PROPERTY` where needed. */
|
|
4392
|
+
const AXP_TABLE_COLUMN_ALIGNMENT_PROPERTIES = [
|
|
4393
|
+
AXP_TABLE_COLUMN_HEADER_ALIGN_PROPERTY,
|
|
4394
|
+
AXP_TABLE_COLUMN_CELL_ALIGN_PROPERTY,
|
|
4395
|
+
];
|
|
4396
|
+
const AXP_TABLE_COLUMN_WIDTH_PROPERTY = {
|
|
4397
|
+
name: 'width',
|
|
4398
|
+
title: 'Width',
|
|
4399
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
4400
|
+
schema: {
|
|
4401
|
+
dataType: 'string',
|
|
4402
|
+
defaultValue: '300px',
|
|
4403
|
+
interface: {
|
|
4404
|
+
name: 'width',
|
|
4405
|
+
path: 'options.width',
|
|
4406
|
+
type: AXPWidgetsCatalog.text,
|
|
4407
|
+
},
|
|
4408
|
+
},
|
|
4409
|
+
visible: true,
|
|
4410
|
+
};
|
|
4411
|
+
const AXP_TABLE_COLUMN_HEIGHT_PROPERTY = {
|
|
4412
|
+
name: 'height',
|
|
4413
|
+
title: 'Height',
|
|
4414
|
+
group: AXP_STYLING_PROPERTY_GROUP,
|
|
4415
|
+
schema: {
|
|
4416
|
+
dataType: 'string',
|
|
4417
|
+
defaultValue: '300px',
|
|
4418
|
+
interface: {
|
|
4419
|
+
name: 'height',
|
|
4420
|
+
path: 'options.height',
|
|
4421
|
+
type: AXPWidgetsCatalog.text,
|
|
4422
|
+
},
|
|
4423
|
+
},
|
|
4424
|
+
visible: true,
|
|
4425
|
+
};
|
|
4426
|
+
|
|
4427
|
+
const AXP_REQUIRED_VALIDATION_PROPERTY = {
|
|
4428
|
+
name: 'requiredValidation',
|
|
4429
|
+
title: 'Required',
|
|
4430
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4431
|
+
schema: {
|
|
4432
|
+
dataType: 'object',
|
|
4433
|
+
interface: {
|
|
4434
|
+
name: 'requiredValidation',
|
|
4435
|
+
path: 'options.validations.required',
|
|
4436
|
+
type: AXPWidgetsCatalog.requiredValidation,
|
|
4437
|
+
defaultValue: false,
|
|
4438
|
+
},
|
|
4439
|
+
},
|
|
4440
|
+
visible: true,
|
|
4441
|
+
};
|
|
4442
|
+
const AXP_MIN_LENGTH_VALIDATION_PROPERTY = {
|
|
4443
|
+
name: 'minLengthValidation',
|
|
4444
|
+
title: 'Minimum Length',
|
|
4445
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4446
|
+
schema: {
|
|
4447
|
+
dataType: 'object',
|
|
4448
|
+
interface: {
|
|
4449
|
+
name: 'minLengthValidation',
|
|
4450
|
+
path: 'options.validations.minLength',
|
|
4451
|
+
type: AXPWidgetsCatalog.minLengthValidation,
|
|
4452
|
+
defaultValue: null,
|
|
4453
|
+
},
|
|
4454
|
+
},
|
|
4455
|
+
visible: true,
|
|
4456
|
+
};
|
|
4457
|
+
const AXP_MAX_LENGTH_VALIDATION_PROPERTY = {
|
|
4458
|
+
name: 'maxLengthValidation',
|
|
4459
|
+
title: 'Maximum Length',
|
|
4460
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4461
|
+
schema: {
|
|
4462
|
+
dataType: 'object',
|
|
4463
|
+
interface: {
|
|
4464
|
+
name: 'maxLengthValidation',
|
|
4465
|
+
path: 'options.validations.maxLength',
|
|
4466
|
+
type: AXPWidgetsCatalog.maxLengthValidation,
|
|
4467
|
+
defaultValue: null,
|
|
4468
|
+
},
|
|
4469
|
+
},
|
|
4470
|
+
visible: true,
|
|
4471
|
+
};
|
|
4472
|
+
const AXP_REGULAR_EXPRESSION_VALIDATION_PROPERTY = {
|
|
4473
|
+
name: 'regularExpressionValidation',
|
|
4474
|
+
title: 'Regular Expression',
|
|
4475
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4476
|
+
schema: {
|
|
4477
|
+
dataType: 'object',
|
|
4478
|
+
interface: {
|
|
4479
|
+
name: 'regularExpressionValidation',
|
|
4480
|
+
path: 'options.validations.regex',
|
|
4481
|
+
type: AXPWidgetsCatalog.regularExpressionValidation,
|
|
4482
|
+
defaultValue: false,
|
|
4483
|
+
},
|
|
4484
|
+
},
|
|
4485
|
+
visible: true,
|
|
4486
|
+
};
|
|
4487
|
+
const AXP_LESS_THAN_VALIDATION_PROPERTY = {
|
|
4488
|
+
name: 'lessThanValidation',
|
|
4489
|
+
title: 'Less Than',
|
|
4490
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4491
|
+
schema: {
|
|
4492
|
+
dataType: 'object',
|
|
4493
|
+
interface: {
|
|
4494
|
+
name: 'lessThanValidation',
|
|
4495
|
+
path: 'options.validations.lessThan',
|
|
4496
|
+
type: AXPWidgetsCatalog.lessThanValidation,
|
|
4497
|
+
defaultValue: false,
|
|
4498
|
+
},
|
|
4499
|
+
},
|
|
4500
|
+
visible: true,
|
|
4501
|
+
};
|
|
4502
|
+
const AXP_GREATER_THAN_VALIDATION_PROPERTY = {
|
|
4503
|
+
name: 'greaterThanValidation',
|
|
4504
|
+
title: 'Greater Than',
|
|
4505
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4506
|
+
schema: {
|
|
4507
|
+
dataType: 'object',
|
|
4508
|
+
interface: {
|
|
4509
|
+
name: 'greaterThanValidation',
|
|
4510
|
+
path: 'options.validations.greaterThan',
|
|
4511
|
+
type: AXPWidgetsCatalog.greaterThanValidation,
|
|
4512
|
+
defaultValue: false,
|
|
4513
|
+
},
|
|
4514
|
+
},
|
|
4515
|
+
visible: true,
|
|
4516
|
+
};
|
|
4517
|
+
const AXP_BETWEEN_VALIDATION_PROPERTY = {
|
|
4518
|
+
name: 'betweenValidation',
|
|
4519
|
+
title: 'Between',
|
|
4520
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4521
|
+
schema: {
|
|
4522
|
+
dataType: 'object',
|
|
4523
|
+
interface: {
|
|
4524
|
+
name: 'betweenValidation',
|
|
4525
|
+
path: 'options.validations.between',
|
|
4526
|
+
type: AXPWidgetsCatalog.betweenValidation,
|
|
4527
|
+
defaultValue: false,
|
|
4528
|
+
},
|
|
4529
|
+
},
|
|
4530
|
+
visible: true,
|
|
4531
|
+
};
|
|
4532
|
+
const AXP_EQUAL_VALIDATION_PROPERTY = {
|
|
4533
|
+
name: 'equalValidation',
|
|
4534
|
+
title: 'Equal',
|
|
4535
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4536
|
+
schema: {
|
|
4537
|
+
dataType: 'object',
|
|
4538
|
+
interface: {
|
|
4539
|
+
name: 'equalValidation',
|
|
4540
|
+
path: 'options.validations.equal',
|
|
4541
|
+
type: AXPWidgetsCatalog.equalValidation,
|
|
4542
|
+
defaultValue: false,
|
|
4543
|
+
},
|
|
4544
|
+
},
|
|
4545
|
+
visible: true,
|
|
4546
|
+
};
|
|
4547
|
+
const AXP_CALLBACK_VALIDATION_PROPERTY = {
|
|
4548
|
+
name: 'callbackValidation',
|
|
4549
|
+
title: 'Callback',
|
|
4550
|
+
group: AXP_VALIDATION_PROPERTY_GROUP,
|
|
4551
|
+
schema: {
|
|
4552
|
+
dataType: 'object',
|
|
4553
|
+
interface: {
|
|
4554
|
+
name: 'callbackValidation',
|
|
4555
|
+
path: 'options.validations.callback',
|
|
4556
|
+
type: AXPWidgetsCatalog.callbackValidation,
|
|
4557
|
+
defaultValue: false,
|
|
4558
|
+
},
|
|
4559
|
+
},
|
|
4560
|
+
visible: true,
|
|
4561
|
+
};
|
|
4562
|
+
|
|
3190
4563
|
/**
|
|
3191
4564
|
* Generated bundle index. Do not edit.
|
|
3192
4565
|
*/
|
|
3193
4566
|
|
|
3194
|
-
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ACTION_SUB_CONTROLS, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_ADVANCE_SUB_DATA, AXP_WIDGETS_ADVANCE_SUB_INPUT, AXP_WIDGETS_ADVANCE_SUB_MEDIA, AXP_WIDGETS_ADVANCE_SUB_TOOLS, AXP_WIDGETS_AI_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_EDITOR_SUB_CHOICE, AXP_WIDGETS_EDITOR_SUB_COMPOSITE, AXP_WIDGETS_EDITOR_SUB_CONFIG, AXP_WIDGETS_EDITOR_SUB_DATETIME, AXP_WIDGETS_EDITOR_SUB_NUMERIC, AXP_WIDGETS_EDITOR_SUB_RICH, AXP_WIDGETS_EDITOR_SUB_TEXT_INPUTS, AXP_WIDGETS_EDITOR_SUB_VISUAL, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGETS_LAYOUT_SUB_GRID, AXP_WIDGETS_LAYOUT_SUB_LISTS, AXP_WIDGETS_LAYOUT_SUB_SHELL, AXP_WIDGETS_LAYOUT_SUB_SURFACES, AXP_WIDGETS_LAYOUT_SUB_TABS, AXP_WIDGETS_LAYOUT_SUB_UTILITY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_DEFINITION_PROVIDER, AXP_WIDGET_TOKEN, buildWidgetRegistryMapFromProviders, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints, mapAXPPropertyToWidgetProperty, normalizeWidgetCategories };
|
|
4567
|
+
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnCellComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_ALLOW_CLEAR_PROPERTY, AXP_ALLOW_MULTIPLE_PROPERTY, AXP_ALLOW_SEARCH_PROPERTY, AXP_ANIMATION_PROPERTY_GROUP, AXP_APPEARANCE_PROPERTY_GROUP, AXP_BEHAVIOR_PROPERTY_GROUP, AXP_BETWEEN_VALIDATION_PROPERTY, AXP_BG_COLOR_PROPERTY, AXP_BOX_MODEL_PROPERTY_GROUP, AXP_CALLBACK_VALIDATION_PROPERTY, AXP_COLOR_PROPERTY, AXP_CONTENT_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DATA_PROPERTY_GROUP, AXP_DATA_SOURCE_OPTIONS_PROPERTY, AXP_DATE_DEPTH_PROPERTY, AXP_DATE_FORMAT_PROPERTY, AXP_DATE_RANGE_LIMIT_PROPERTY, AXP_DEFAULT_ROW_COUNT_PROPERTY, AXP_DESCRIPTION_PROPERTY, AXP_DIRECTION_PROPERTY, AXP_DISABLED_PROPERTY, AXP_DOWNLOADABLE_PROPERTY, AXP_EQUAL_VALIDATION_PROPERTY, AXP_FALSY_TEXT_PROPERTY, AXP_FIT_LINE_COUNT_PROPERTY, AXP_FONT_SIZE_PROPERTY, AXP_GREATER_THAN_VALIDATION_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_ADVANCED_GRID_PROPERTY, AXP_LAYOUT_BORDER_PROPERTY, AXP_LAYOUT_COLUMNS_PROPERTY, AXP_LAYOUT_DIRECTION_PROPERTY, AXP_LAYOUT_FLEX_ITEM_PROPERTY, AXP_LAYOUT_FLEX_PROPERTY, AXP_LAYOUT_FLEX_PROPERTY_GROUP, AXP_LAYOUT_GAP_PROPERTY, AXP_LAYOUT_GRID_ITEM_PROPERTY, AXP_LAYOUT_GRID_PROPERTIES, AXP_LAYOUT_GRID_PROPERTY, AXP_LAYOUT_GRID_PROPERTY_GROUP, AXP_LAYOUT_GRID_ROW_PROPERTIES, AXP_LAYOUT_ROWS_PROPERTY, AXP_LAYOUT_SHOW_HEADER_PROPERTY, AXP_LAYOUT_SPACING_PROPERTY, AXP_LAYOUT_TABLE_PROPERTY_GROUP, AXP_LESS_THAN_VALIDATION_PROPERTY, AXP_MAX_LENGTH_VALIDATION_PROPERTY, AXP_MAX_LINE_COUNT_PROPERTY, AXP_MIN_LENGTH_VALIDATION_PROPERTY, AXP_MIN_LINE_COUNT_PROPERTY, AXP_MULTI_LANGUAGE_PROPERTY, AXP_NAME_PROPERTY, AXP_NUMBER_SEPARATOR_PROPERTY, AXP_PLACEHOLDER_PROPERTY, AXP_READONLY_PROPERTY, AXP_REGULAR_EXPRESSION_VALIDATION_PROPERTY, AXP_REQUIRED_VALIDATION_PROPERTY, AXP_SHOW_PASSWORD_PROPERTY, AXP_SPIN_BUTTON_PROPERTY, AXP_STYLE_COLOR_PROPERTY, AXP_STYLE_LOOK_PROPERTY, AXP_STYLING_PROPERTY_GROUP, AXP_TABLE_COLUMNS_PROPERTY, AXP_TABLE_COLUMN_ALIGNMENT_PROPERTIES, AXP_TABLE_COLUMN_CELL_ALIGN_PROPERTY, AXP_TABLE_COLUMN_HEADER_ALIGN_PROPERTY, AXP_TABLE_COLUMN_HEIGHT_PROPERTY, AXP_TABLE_COLUMN_WIDTH_PROPERTY, AXP_TABLE_ITEM_COLSPAN_PROPERTY, AXP_TABLE_ITEM_ROWSPAN_PROPERTY, AXP_TEXT_ALIGN_PROPERTY, AXP_TEXT_FIELD_PROPERTY, AXP_TEXT_PROPERTY, AXP_THEME_PROPERTY, AXP_TITLE_PROPERTY, AXP_TRIGGERS_PROPERTY, AXP_TRIGGERS_PROPERTY_GROUP, AXP_TRULY_TEXT_PROPERTY, AXP_VALIDATION_PROPERTY_GROUP, AXP_VALUE_FIELD_PROPERTY, AXP_VERTICAL_ALIGN_PROPERTY, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ACTION_SUB_CONTROLS, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_ADVANCE_SUB_DATA, AXP_WIDGETS_ADVANCE_SUB_INPUT, AXP_WIDGETS_ADVANCE_SUB_MEDIA, AXP_WIDGETS_ADVANCE_SUB_TOOLS, AXP_WIDGETS_AI_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_EDITOR_SUB_CHOICE, AXP_WIDGETS_EDITOR_SUB_COMPOSITE, AXP_WIDGETS_EDITOR_SUB_CONFIG, AXP_WIDGETS_EDITOR_SUB_DATETIME, AXP_WIDGETS_EDITOR_SUB_NUMERIC, AXP_WIDGETS_EDITOR_SUB_RICH, AXP_WIDGETS_EDITOR_SUB_TEXT_INPUTS, AXP_WIDGETS_EDITOR_SUB_VISUAL, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGETS_LAYOUT_SUB_GRID, AXP_WIDGETS_LAYOUT_SUB_LISTS, AXP_WIDGETS_LAYOUT_SUB_SHELL, AXP_WIDGETS_LAYOUT_SUB_SURFACES, AXP_WIDGETS_LAYOUT_SUB_TABS, AXP_WIDGETS_LAYOUT_SUB_UTILITY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_DEFINITION_PROVIDER, AXP_WIDGET_PROPERTY_GROUP, AXP_WIDGET_TOKEN, booleanDefaultProperty, buildWidgetRegistryMapFromProviders, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints, largeTextDefaultProperty, mapAXPPropertyToWidgetProperty, normalizeWidgetCategories, numberDefaultProperty, numberMaxValueProperty, numberMinValueProperty, plainTextDefaultProperty, richTextDefaultProperty, selectEditorDefaultValueProperty, selectionListEditorDefaultValueProperty };
|
|
3195
4568
|
//# sourceMappingURL=acorex-platform-layout-widget-core.mjs.map
|