@acorex/platform 20.3.0-next.13 → 20.3.0-next.14
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-layout-entity.mjs +18 -2
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +4 -2
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +34 -14
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/layout/widgets/index.d.ts +3 -0
- package/package.json +5 -5
|
@@ -91,7 +91,7 @@ import * as i1$e from '@acorex/components/qrcode';
|
|
|
91
91
|
import { AXQrcodeModule } from '@acorex/components/qrcode';
|
|
92
92
|
import { AXColorUtil } from '@acorex/core/utils';
|
|
93
93
|
import { AXTimeDurationFormatter, AXCalendarService } from '@acorex/core/date-time';
|
|
94
|
-
import * as
|
|
94
|
+
import * as i3$8 from '@acorex/components/time-duration';
|
|
95
95
|
import { AXTimeDurationModule } from '@acorex/components/time-duration';
|
|
96
96
|
import * as i1$f from '@acorex/components/collapse';
|
|
97
97
|
import { AXCollapseModule } from '@acorex/components/collapse';
|
|
@@ -2100,6 +2100,7 @@ class AXPDateTimeBoxWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
2100
2100
|
this.settingService = inject(AXPSettingService);
|
|
2101
2101
|
this.convertedValue = signal(this.rawValue, ...(ngDevMode ? [{ debugName: "convertedValue" }] : []));
|
|
2102
2102
|
this.multiple = this.options['multiple'] || false;
|
|
2103
|
+
this.dateMode = computed(() => this.options['mode'] || 'short', ...(ngDevMode ? [{ debugName: "dateMode" }] : []));
|
|
2103
2104
|
this.format = computed(() => {
|
|
2104
2105
|
const rawValue = this.options['format'];
|
|
2105
2106
|
if (typeof rawValue == 'string')
|
|
@@ -2129,13 +2130,13 @@ class AXPDateTimeBoxWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
2129
2130
|
async handleFormat(value) {
|
|
2130
2131
|
let mode = '';
|
|
2131
2132
|
if (this.format() == 'date') {
|
|
2132
|
-
mode = await this.settingService.get(
|
|
2133
|
+
mode = await this.settingService.get(`regional:${this.dateMode()}-date`);
|
|
2133
2134
|
}
|
|
2134
2135
|
else if (this.format() == 'time') {
|
|
2135
|
-
mode = await this.settingService.get(
|
|
2136
|
+
mode = await this.settingService.get(`regional:${this.dateMode()}-time`);
|
|
2136
2137
|
}
|
|
2137
2138
|
else if (this.format() == 'datetime') {
|
|
2138
|
-
mode = `${await this.settingService.get(
|
|
2139
|
+
mode = `${await this.settingService.get(`regional:${this.dateMode()}-date`)} ${await this.settingService.get(`regional:${this.dateMode()}-time`)}`;
|
|
2139
2140
|
}
|
|
2140
2141
|
return value
|
|
2141
2142
|
? this.formatter.format(new Date(value), this.format(), {
|
|
@@ -2176,6 +2177,7 @@ class AXPDateTimeBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2176
2177
|
this.settingService = inject(AXPSettingService);
|
|
2177
2178
|
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
2178
2179
|
this.clearButton = computed(() => this.options()['clearButton'], ...(ngDevMode ? [{ debugName: "clearButton" }] : []));
|
|
2180
|
+
this.dateMode = computed(() => this.options()['mode'] || 'short', ...(ngDevMode ? [{ debugName: "dateMode" }] : []));
|
|
2179
2181
|
this.format = computed(() => {
|
|
2180
2182
|
const rawValue = this.options()['format'];
|
|
2181
2183
|
if (typeof rawValue == 'string')
|
|
@@ -2195,13 +2197,13 @@ class AXPDateTimeBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2195
2197
|
this.#effect = effect(async () => {
|
|
2196
2198
|
let mode = '';
|
|
2197
2199
|
if (this.format() == 'date') {
|
|
2198
|
-
mode = await this.settingService.get(
|
|
2200
|
+
mode = await this.settingService.get(`regional:${this.dateMode()}-date`);
|
|
2199
2201
|
}
|
|
2200
2202
|
else if (this.format() == 'time') {
|
|
2201
|
-
mode = await this.settingService.get(
|
|
2203
|
+
mode = await this.settingService.get(`regional:${this.dateMode()}-time`);
|
|
2202
2204
|
}
|
|
2203
2205
|
else if (this.format() == 'datetime') {
|
|
2204
|
-
mode = `${await this.settingService.get(
|
|
2206
|
+
mode = `${await this.settingService.get(`regional:${this.dateMode()}-date`)} ${await this.settingService.get(`regional:${this.dateMode()}-time`)}`;
|
|
2205
2207
|
}
|
|
2206
2208
|
this.calendarFormat.set(mode);
|
|
2207
2209
|
}, ...(ngDevMode ? [{ debugName: "#effect" }] : []));
|
|
@@ -2347,6 +2349,7 @@ class AXPDateTimeBoxWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
2347
2349
|
this.formatter = inject(AXFormatService);
|
|
2348
2350
|
this.settingService = inject(AXPSettingService);
|
|
2349
2351
|
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
2352
|
+
this.dateMode = computed(() => this.options()['mode'] || 'short', ...(ngDevMode ? [{ debugName: "dateMode" }] : []));
|
|
2350
2353
|
this.convertedValue = signal(null, ...(ngDevMode ? [{ debugName: "convertedValue" }] : []));
|
|
2351
2354
|
this.format = computed(() => {
|
|
2352
2355
|
const rawValue = this.options()['format'];
|
|
@@ -2377,13 +2380,13 @@ class AXPDateTimeBoxWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
2377
2380
|
async handleFormat(value) {
|
|
2378
2381
|
let mode = '';
|
|
2379
2382
|
if (this.format() == 'date') {
|
|
2380
|
-
mode = await this.settingService.get(
|
|
2383
|
+
mode = await this.settingService.get(`regional:${this.dateMode()}-date`);
|
|
2381
2384
|
}
|
|
2382
2385
|
else if (this.format() == 'time') {
|
|
2383
|
-
mode = await this.settingService.get(
|
|
2386
|
+
mode = await this.settingService.get(`regional:${this.dateMode()}-time`);
|
|
2384
2387
|
}
|
|
2385
2388
|
else if (this.format() == 'datetime') {
|
|
2386
|
-
mode = `${await this.settingService.get(
|
|
2389
|
+
mode = `${await this.settingService.get(`regional:${this.dateMode()}-date`)} ${await this.settingService.get(`regional:${this.dateMode()}-time`)}`;
|
|
2387
2390
|
}
|
|
2388
2391
|
return value
|
|
2389
2392
|
? this.formatter.format(new Date(value), this.format(), {
|
|
@@ -16481,6 +16484,9 @@ class AXPListToolbarWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
16481
16484
|
this.initialFilters = computed(() => this.getValue()?.filters || [], ...(ngDevMode ? [{ debugName: "initialFilters" }] : []));
|
|
16482
16485
|
this.initialColumns = computed(() => this.getValue()?.columns ?? [], ...(ngDevMode ? [{ debugName: "initialColumns" }] : []));
|
|
16483
16486
|
this.initialSorts = computed(() => this.getValue()?.sorts ?? [], ...(ngDevMode ? [{ debugName: "initialSorts" }] : []));
|
|
16487
|
+
this.eff = effect(() => {
|
|
16488
|
+
console.log('options:', this.options());
|
|
16489
|
+
}, ...(ngDevMode ? [{ debugName: "eff" }] : []));
|
|
16484
16490
|
}
|
|
16485
16491
|
//actions
|
|
16486
16492
|
onFiltersChanged(filters) {
|
|
@@ -16699,7 +16705,7 @@ class AXPTimerDurationWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
16699
16705
|
this.setValue(e.value);
|
|
16700
16706
|
}
|
|
16701
16707
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTimerDurationWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
16702
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
16708
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPTimerDurationWidgetEditComponent, isStandalone: true, selector: "axp-time-duration-widget-edit", usesInheritance: true, ngImport: i0, template: `<ax-time-duration
|
|
16703
16709
|
[ngModel]="getValue()"
|
|
16704
16710
|
(onValueChanged)="handleChangeValue($event)"
|
|
16705
16711
|
[valueStart]="from()"
|
|
@@ -16707,7 +16713,14 @@ class AXPTimerDurationWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
16707
16713
|
[label]="label()"
|
|
16708
16714
|
[disabled]="disabled()"
|
|
16709
16715
|
>
|
|
16710
|
-
|
|
16716
|
+
@for (validation of validationRules(); track $index) {
|
|
16717
|
+
<ax-validation-rule
|
|
16718
|
+
[rule]="validation.rule"
|
|
16719
|
+
[message]="validation.options?.message"
|
|
16720
|
+
[options]="validation.options"
|
|
16721
|
+
></ax-validation-rule>
|
|
16722
|
+
}
|
|
16723
|
+
</ax-time-duration>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i3$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTimeDurationModule }, { kind: "component", type: i3$8.AXTimeDurationComponent, selector: "ax-time-duration", inputs: ["disabled", "tabIndex", "readonly", "look", "valueStart", "valueEnd", "label", "maskDigits"], outputs: ["onValueChanged"] }, { kind: "ngmodule", type: AXValidationModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16711
16724
|
}
|
|
16712
16725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTimerDurationWidgetEditComponent, decorators: [{
|
|
16713
16726
|
type: Component,
|
|
@@ -16721,9 +16734,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
16721
16734
|
[label]="label()"
|
|
16722
16735
|
[disabled]="disabled()"
|
|
16723
16736
|
>
|
|
16737
|
+
@for (validation of validationRules(); track $index) {
|
|
16738
|
+
<ax-validation-rule
|
|
16739
|
+
[rule]="validation.rule"
|
|
16740
|
+
[message]="validation.options?.message"
|
|
16741
|
+
[options]="validation.options"
|
|
16742
|
+
></ax-validation-rule>
|
|
16743
|
+
}
|
|
16724
16744
|
</ax-time-duration>`,
|
|
16725
16745
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16726
|
-
imports: [FormsModule, AXTimeDurationModule],
|
|
16746
|
+
imports: [FormsModule, AXFormModule, AXTimeDurationModule, AXValidationModule],
|
|
16727
16747
|
}]
|
|
16728
16748
|
}] });
|
|
16729
16749
|
|
|
@@ -17740,7 +17760,7 @@ var fieldsetWidgetDesigner_component = /*#__PURE__*/Object.freeze({
|
|
|
17740
17760
|
class AXPFieldsetWidgetViewComponent extends AXPLayoutBaseWidgetComponent {
|
|
17741
17761
|
constructor() {
|
|
17742
17762
|
super(...arguments);
|
|
17743
|
-
this.title = computed(() => this.options()['title'] || '
|
|
17763
|
+
this.title = computed(() => this.options()['title'] || '', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
17744
17764
|
this.description = computed(() => this.options()['description'], ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
17745
17765
|
this.icon = computed(() => this.options()['icon'] || '', ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
17746
17766
|
this.collapsible = computed(() => this.options()['collapsible'] || false, ...(ngDevMode ? [{ debugName: "collapsible" }] : []));
|