@acorex/platform 20.0.9 → 20.0.10
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-builder.mjs +2 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-_-ol0LYC.mjs → acorex-platform-themes-default-entity-master-list-view.component-CElBGzRM.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CElBGzRM.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs +51 -0
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs +48 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +234 -17
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +561 -169
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +2 -0
- package/package.json +5 -5
- package/widgets/index.d.ts +89 -5
- package/workflow/index.d.ts +5 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-_-ol0LYC.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs","sources":["../tmp-esm2022/themes/shared/lib/widgets/color-chooser/color-chooser-view.component.js"],"sourcesContent":["import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common\";\nexport class AXPColorChooserViewComponent extends AXPColumnWidgetComponent {\n constructor() {\n super(...arguments);\n this.title = computed(() => this.rawValue?.title || '');\n this.background = computed(() => this.rawValue?.background || '');\n this.color = computed(() => this.rawValue?.color || '');\n this.border = computed(() => this.rawValue?.border || '');\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.7\", ngImport: i0, type: AXPColorChooserViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.7\", type: AXPColorChooserViewComponent, isStandalone: true, selector: \"ax-color-chooser-column\", inputs: { rawValue: \"rawValue\" }, usesInheritance: true, ngImport: i0, template: `\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div\n class=\"ax-w-6 ax-h-6 ax-rounded-md ax-flex ax-items-center ax-justify-center\"\n [ngClass]=\"[background(), border()]\"\n >\n <span [ngClass]=\"color()\">Aa</span>\n </div>\n <span>{{ title() }}</span>\n </div>\n `, isInline: true, dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.7\", ngImport: i0, type: AXPColorChooserViewComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'ax-color-chooser-column',\n template: `\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div\n class=\"ax-w-6 ax-h-6 ax-rounded-md ax-flex ax-items-center ax-justify-center\"\n [ngClass]=\"[background(), border()]\"\n >\n <span [ngClass]=\"color()\">Aa</span>\n </div>\n <span>{{ title() }}</span>\n </div>\n `,\n imports: [CommonModule],\n inputs: ['rawValue'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sb3ItY2hvb3Nlci12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vdGhlbWVzL3NoYXJlZC9zcmMvbGliL3dpZGdldHMvY29sb3ItY2hvb3Nlci9jb2xvci1jaG9vc2VyLXZpZXcuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBcUI3RSxNQUFNLE9BQU8sNEJBQTZCLFNBQVEsd0JBQWtDO0lBbEJwRjs7UUFtQkUsVUFBSyxHQUFHLFFBQVEsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLEtBQUssSUFBSSxFQUFFLENBQUMsQ0FBQztRQUNuRCxlQUFVLEdBQUcsUUFBUSxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsVUFBVSxJQUFJLEVBQUUsQ0FBQyxDQUFDO1FBQzdELFVBQUssR0FBRyxRQUFRLENBQUMsR0FBRyxFQUFFLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxLQUFLLElBQUksRUFBRSxDQUFDLENBQUM7UUFDbkQsV0FBTSxHQUFHLFFBQVEsQ0FBQyxHQU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O,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,CAAC;AACnO;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,UAAU,EAAE,CAAC;AACtI,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,QAAQ,EAAE,yBAAyB;AACvD,oBAAoB,QAAQ,EAAE;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,oBAAoB,OAAO,EAAE,CAAC,YAAY,CAAC;AAC3C,oBAAoB,MAAM,EAAE,CAAC,UAAU,CAAC;AACxC,oBAAoB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AACnE,oBAAoB,UAAU,EAAE,IAAI;AACpC,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class AXPIconChooserViewComponent extends AXPColumnWidgetComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.title = computed(() => {
|
|
9
|
+
const value = this.rawValue;
|
|
10
|
+
if (value) {
|
|
11
|
+
return value.label;
|
|
12
|
+
}
|
|
13
|
+
return '';
|
|
14
|
+
});
|
|
15
|
+
this.icon = computed(() => {
|
|
16
|
+
const value = this.rawValue;
|
|
17
|
+
if (value) {
|
|
18
|
+
return `${value.styleClass} ${value.iconClass}`;
|
|
19
|
+
}
|
|
20
|
+
return '';
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPIconChooserViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: AXPIconChooserViewComponent, isStandalone: true, selector: "ax-icon-chooser-column", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `
|
|
25
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
26
|
+
<i [class]="icon()"></i>
|
|
27
|
+
<span>{{ title() }}</span>
|
|
28
|
+
</div>
|
|
29
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPIconChooserViewComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: 'ax-icon-chooser-column',
|
|
35
|
+
template: `
|
|
36
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
37
|
+
<i [class]="icon()"></i>
|
|
38
|
+
<span>{{ title() }}</span>
|
|
39
|
+
</div>
|
|
40
|
+
`,
|
|
41
|
+
inputs: ['rawValue'],
|
|
42
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
43
|
+
standalone: true,
|
|
44
|
+
}]
|
|
45
|
+
}] });
|
|
46
|
+
|
|
47
|
+
export { AXPIconChooserViewComponent };
|
|
48
|
+
//# sourceMappingURL=acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs","sources":["../tmp-esm2022/themes/shared/lib/widgets/icon-chooser/icon-chooser-view.component.js"],"sourcesContent":["import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXPIconChooserViewComponent extends AXPColumnWidgetComponent {\n constructor() {\n super(...arguments);\n this.title = computed(() => {\n const value = this.rawValue;\n if (value) {\n return value.label;\n }\n return '';\n });\n this.icon = computed(() => {\n const value = this.rawValue;\n if (value) {\n return `${value.styleClass} ${value.iconClass}`;\n }\n return '';\n });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.7\", ngImport: i0, type: AXPIconChooserViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"20.0.7\", type: AXPIconChooserViewComponent, isStandalone: true, selector: \"ax-icon-chooser-column\", inputs: { rawValue: \"rawValue\" }, usesInheritance: true, ngImport: i0, template: `\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <i [class]=\"icon()\"></i>\n <span>{{ title() }}</span>\n </div>\n `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.7\", ngImport: i0, type: AXPIconChooserViewComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'ax-icon-chooser-column',\n template: `\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <i [class]=\"icon()\"></i>\n <span>{{ title() }}</span>\n </div>\n `,\n inputs: ['rawValue'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1jaG9vc2VyLXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS90aGVtZXMvc2hh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,EAAE,EAAE,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC,CAAC;AAC/L,IAAI,SAAS,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,2BAA2B,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE;AACxQ;AACA;AACA;AACA;AACA,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,CAAC;AAC3E;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,2BAA2B,EAAE,UAAU,EAAE,CAAC;AACrI,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,QAAQ,EAAE,wBAAwB;AACtD,oBAAoB,QAAQ,EAAE;AAC9B;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,oBAAoB,MAAM,EAAE,CAAC,UAAU,CAAC;AACxC,oBAAoB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AACnE,oBAAoB,UAAU,EAAE,IAAI;AACpC,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -7,7 +7,7 @@ import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
|
-
import { computed, inject, Component, InjectionToken,
|
|
10
|
+
import { computed, inject, Component, InjectionToken, Injectable, signal, ChangeDetectionStrategy, effect, Input, Injector, NgModule } from '@angular/core';
|
|
11
11
|
import { AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
12
12
|
import { signalStore, withState, withComputed, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
13
13
|
import { timer, firstValueFrom, fromEvent, Subscription, filter } from 'rxjs';
|
|
@@ -18,18 +18,23 @@ import { AXPPlatformScope } from '@acorex/platform/core';
|
|
|
18
18
|
import * as i2$1 from '@acorex/core/translation';
|
|
19
19
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
20
20
|
import * as i3$1 from '@acorex/platform/layout/builder';
|
|
21
|
-
import { AXPValueWidgetComponent,
|
|
22
|
-
import * as i2$
|
|
21
|
+
import { AXPValueWidgetComponent, AXPWidgetGroupEnum, AXP_WIDGETS_LAYOUT_CATEGORY, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
22
|
+
import * as i2$4 from '@acorex/platform/layout/components';
|
|
23
23
|
import { AXPComponentSlotModule } from '@acorex/platform/layout/components';
|
|
24
|
-
import
|
|
24
|
+
import * as i2$2 from '@acorex/components/form';
|
|
25
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
26
|
+
import * as i4$1 from '@acorex/components/search-box';
|
|
27
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
28
|
+
import * as i1$1 from '@acorex/components/select-box';
|
|
29
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
30
|
+
import * as i5 from '@angular/forms';
|
|
25
31
|
import { FormsModule } from '@angular/forms';
|
|
26
32
|
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY } from '@acorex/platform/widgets';
|
|
33
|
+
import { AXSelectionCdkModule } from '@acorex/cdk/selection';
|
|
27
34
|
import { AXPopupService } from '@acorex/components/popup';
|
|
28
|
-
import * as i2$
|
|
35
|
+
import * as i2$3 from '@acorex/components/button-group';
|
|
29
36
|
import { AXButtonGroupModule } from '@acorex/components/button-group';
|
|
30
37
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
31
|
-
import * as i1$1 from '@acorex/components/search-box';
|
|
32
|
-
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
33
38
|
|
|
34
39
|
var AXPThemeLayoutSetting;
|
|
35
40
|
(function (AXPThemeLayoutSetting) {
|
|
@@ -528,6 +533,206 @@ class AXPThemePaletteProviderDefault {
|
|
|
528
533
|
}
|
|
529
534
|
}
|
|
530
535
|
|
|
536
|
+
class AXPColorProvider {
|
|
537
|
+
}
|
|
538
|
+
function titleCase(str) {
|
|
539
|
+
return str.replace(/-/g, ' ').replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
|
|
540
|
+
}
|
|
541
|
+
function generateDefaultColors() {
|
|
542
|
+
const colors = [];
|
|
543
|
+
const styles = ['primary', 'secondary', 'success', 'warning', 'danger'];
|
|
544
|
+
const variants = [
|
|
545
|
+
'lightest',
|
|
546
|
+
'lighter',
|
|
547
|
+
'light',
|
|
548
|
+
'surface',
|
|
549
|
+
'dark',
|
|
550
|
+
'darker',
|
|
551
|
+
'darkest',
|
|
552
|
+
// ,'default'
|
|
553
|
+
];
|
|
554
|
+
for (const style of styles) {
|
|
555
|
+
for (const variant of variants) {
|
|
556
|
+
let name;
|
|
557
|
+
let colorClass;
|
|
558
|
+
// if (variant === 'default') {
|
|
559
|
+
// name = `${style}-${variant}`;
|
|
560
|
+
// colorClass = `ax-text-${style}-${variant}`;
|
|
561
|
+
// } else {
|
|
562
|
+
name = `${style}-${variant}`;
|
|
563
|
+
colorClass = `ax-text-${style}-on-${variant}`;
|
|
564
|
+
// }
|
|
565
|
+
colors.push({
|
|
566
|
+
title: titleCase(variant === 'surface' ? style : titleCase(name)),
|
|
567
|
+
name: name,
|
|
568
|
+
color: colorClass,
|
|
569
|
+
background: `ax-bg-${name}`,
|
|
570
|
+
border: `ax-border-${name}`,
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return colors;
|
|
575
|
+
}
|
|
576
|
+
const DEFAULT_COLORS = generateDefaultColors();
|
|
577
|
+
class AXPColorProviderDefault extends AXPColorProvider {
|
|
578
|
+
async provide() {
|
|
579
|
+
return DEFAULT_COLORS;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
const AXP_COLOR_PROVIDER = new InjectionToken('AXP_COLOR_PROVIDER');
|
|
583
|
+
class AXPColorChooserService {
|
|
584
|
+
constructor() {
|
|
585
|
+
this.defaultProvider = new AXPColorProviderDefault();
|
|
586
|
+
this.providers = (() => {
|
|
587
|
+
const injected = inject(AXP_COLOR_PROVIDER, { optional: true });
|
|
588
|
+
if (!injected) {
|
|
589
|
+
return [this.defaultProvider];
|
|
590
|
+
}
|
|
591
|
+
const providers = Array.isArray(injected) ? injected : [injected];
|
|
592
|
+
return [...providers, this.defaultProvider];
|
|
593
|
+
})();
|
|
594
|
+
this.cache = null;
|
|
595
|
+
}
|
|
596
|
+
async getColors() {
|
|
597
|
+
if (this.cache) {
|
|
598
|
+
return this.cache;
|
|
599
|
+
}
|
|
600
|
+
const allColors = [];
|
|
601
|
+
for (const resolver of this.providers) {
|
|
602
|
+
const result = await resolver.provide();
|
|
603
|
+
allColors.push(...result);
|
|
604
|
+
}
|
|
605
|
+
const uniqueColors = allColors.filter((color, index, self) => index === self.findIndex((c) => c.title === color.title));
|
|
606
|
+
this.cache = uniqueColors;
|
|
607
|
+
return uniqueColors;
|
|
608
|
+
}
|
|
609
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPColorChooserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
610
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPColorChooserService, providedIn: 'root' }); }
|
|
611
|
+
}
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPColorChooserService, decorators: [{
|
|
613
|
+
type: Injectable,
|
|
614
|
+
args: [{
|
|
615
|
+
providedIn: 'root',
|
|
616
|
+
}]
|
|
617
|
+
}] });
|
|
618
|
+
|
|
619
|
+
class AXPColorChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
620
|
+
constructor() {
|
|
621
|
+
super(...arguments);
|
|
622
|
+
this.colors = signal([]);
|
|
623
|
+
this.colorService = inject(AXPColorChooserService);
|
|
624
|
+
}
|
|
625
|
+
async ngOnInit() {
|
|
626
|
+
this.colors.set(await this.colorService.getColors());
|
|
627
|
+
}
|
|
628
|
+
handleValueChange(name) {
|
|
629
|
+
if (!name) {
|
|
630
|
+
this.setValue(undefined);
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
const color = this.colors().find((c) => c.name === name);
|
|
634
|
+
this.setValue(color);
|
|
635
|
+
}
|
|
636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPColorChooserWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
637
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: AXPColorChooserWidgetComponent, isStandalone: true, selector: "ax-color-chooser-widget", usesInheritance: true, ngImport: i0, template: `
|
|
638
|
+
<div class="ax-p-4">
|
|
639
|
+
<ax-form [messageStyle]="'float'" [updateOn]="'change'">
|
|
640
|
+
<ax-form-field>
|
|
641
|
+
<ax-select-box
|
|
642
|
+
[dataSource]="colors()"
|
|
643
|
+
textField="title"
|
|
644
|
+
valueField="name"
|
|
645
|
+
[placeholder]="options()?.placeholder || 'Select a color...'"
|
|
646
|
+
[itemTemplate]="customItemTemplate"
|
|
647
|
+
[ngModel]="getValue()?.name"
|
|
648
|
+
(ngModelChange)="handleValueChange($event)"
|
|
649
|
+
>
|
|
650
|
+
<ng-template #customItemTemplate let-item>
|
|
651
|
+
<div class="ax-flex ax-items-center ax-gap-2 ax-p-2">
|
|
652
|
+
<div
|
|
653
|
+
class="ax-w-6 ax-h-6 ax-rounded-md ax-flex ax-items-center ax-justify-center ax-border ax-border-dashed ax-border-black dark:ax-border-white"
|
|
654
|
+
[ngClass]="item.data.background"
|
|
655
|
+
>
|
|
656
|
+
<span [ngClass]="item.data.color">Aa</span>
|
|
657
|
+
</div>
|
|
658
|
+
<span>{{ item.data.title }}</span>
|
|
659
|
+
</div>
|
|
660
|
+
</ng-template>
|
|
661
|
+
<ax-search-box look="fill"></ax-search-box>
|
|
662
|
+
<ax-validation-rule message="field can't be empty" rule="required"></ax-validation-rule>
|
|
663
|
+
</ax-select-box>
|
|
664
|
+
</ax-form-field>
|
|
665
|
+
</ax-form>
|
|
666
|
+
</div>
|
|
667
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i1$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2$2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2$2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i2$2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i4$1.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
668
|
+
}
|
|
669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPColorChooserWidgetComponent, decorators: [{
|
|
670
|
+
type: Component,
|
|
671
|
+
args: [{
|
|
672
|
+
selector: 'ax-color-chooser-widget',
|
|
673
|
+
template: `
|
|
674
|
+
<div class="ax-p-4">
|
|
675
|
+
<ax-form [messageStyle]="'float'" [updateOn]="'change'">
|
|
676
|
+
<ax-form-field>
|
|
677
|
+
<ax-select-box
|
|
678
|
+
[dataSource]="colors()"
|
|
679
|
+
textField="title"
|
|
680
|
+
valueField="name"
|
|
681
|
+
[placeholder]="options()?.placeholder || 'Select a color...'"
|
|
682
|
+
[itemTemplate]="customItemTemplate"
|
|
683
|
+
[ngModel]="getValue()?.name"
|
|
684
|
+
(ngModelChange)="handleValueChange($event)"
|
|
685
|
+
>
|
|
686
|
+
<ng-template #customItemTemplate let-item>
|
|
687
|
+
<div class="ax-flex ax-items-center ax-gap-2 ax-p-2">
|
|
688
|
+
<div
|
|
689
|
+
class="ax-w-6 ax-h-6 ax-rounded-md ax-flex ax-items-center ax-justify-center ax-border ax-border-dashed ax-border-black dark:ax-border-white"
|
|
690
|
+
[ngClass]="item.data.background"
|
|
691
|
+
>
|
|
692
|
+
<span [ngClass]="item.data.color">Aa</span>
|
|
693
|
+
</div>
|
|
694
|
+
<span>{{ item.data.title }}</span>
|
|
695
|
+
</div>
|
|
696
|
+
</ng-template>
|
|
697
|
+
<ax-search-box look="fill"></ax-search-box>
|
|
698
|
+
<ax-validation-rule message="field can't be empty" rule="required"></ax-validation-rule>
|
|
699
|
+
</ax-select-box>
|
|
700
|
+
</ax-form-field>
|
|
701
|
+
</ax-form>
|
|
702
|
+
</div>
|
|
703
|
+
`,
|
|
704
|
+
standalone: true,
|
|
705
|
+
imports: [AXSelectBoxModule, AXFormModule, CommonModule, AXSearchBoxModule, AXButtonModule, FormsModule],
|
|
706
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
707
|
+
}]
|
|
708
|
+
}] });
|
|
709
|
+
|
|
710
|
+
var colorChooserWidget_component = /*#__PURE__*/Object.freeze({
|
|
711
|
+
__proto__: null,
|
|
712
|
+
AXPColorChooserWidgetComponent: AXPColorChooserWidgetComponent
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
const AXPColorChooserWidgetConfig = {
|
|
716
|
+
name: 'color-chooser',
|
|
717
|
+
title: 'Color Chooser',
|
|
718
|
+
icon: 'fa-solid fa-palette',
|
|
719
|
+
type: 'editor',
|
|
720
|
+
categories: AXP_WIDGETS_LAYOUT_CATEGORY,
|
|
721
|
+
groups: [AXPWidgetGroupEnum.FormElement],
|
|
722
|
+
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],
|
|
723
|
+
components: {
|
|
724
|
+
edit: {
|
|
725
|
+
component: () => Promise.resolve().then(function () { return colorChooserWidget_component; }).then((c) => c.AXPColorChooserWidgetComponent),
|
|
726
|
+
},
|
|
727
|
+
column: {
|
|
728
|
+
component: () => import('./acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs').then((c) => c.AXPColorChooserViewComponent),
|
|
729
|
+
},
|
|
730
|
+
view: {
|
|
731
|
+
component: () => import('./acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs').then((c) => c.AXPColorChooserViewComponent),
|
|
732
|
+
},
|
|
733
|
+
},
|
|
734
|
+
};
|
|
735
|
+
|
|
531
736
|
class AXPFontSizeChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
532
737
|
constructor() {
|
|
533
738
|
super(...arguments);
|
|
@@ -818,7 +1023,11 @@ class AXPIconChooserPopupComponent extends AXBasePageComponent {
|
|
|
818
1023
|
this.filteredIcons = result;
|
|
819
1024
|
}
|
|
820
1025
|
selectIcon(icon) {
|
|
821
|
-
this.close(
|
|
1026
|
+
this.close({
|
|
1027
|
+
label: icon.label,
|
|
1028
|
+
styleClass: this.selectedIconType,
|
|
1029
|
+
iconClass: `fa-${icon.name}`,
|
|
1030
|
+
});
|
|
822
1031
|
}
|
|
823
1032
|
getIconClass(icon) {
|
|
824
1033
|
return `${this.selectedIconType} fa-${icon.name}`;
|
|
@@ -861,7 +1070,7 @@ class AXPIconChooserPopupComponent extends AXBasePageComponent {
|
|
|
861
1070
|
|
|
862
1071
|
<div class="ax-flex-1 ax-overflow-y-auto ax-pr-2">
|
|
863
1072
|
<div
|
|
864
|
-
class="ax-grid ax-gap-
|
|
1073
|
+
class="ax-grid ax-gap-1"
|
|
865
1074
|
[ngClass]="
|
|
866
1075
|
selectedViewMode === 'square'
|
|
867
1076
|
? 'ax-grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]'
|
|
@@ -891,7 +1100,7 @@ class AXPIconChooserPopupComponent extends AXBasePageComponent {
|
|
|
891
1100
|
</div>
|
|
892
1101
|
</div>
|
|
893
1102
|
</div>
|
|
894
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type:
|
|
1103
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i4$1.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonGroupModule }, { kind: "component", type: i2$3.AXButtonGroupComponent, selector: "ax-button-group", inputs: ["disabled", "color", "look", "selection"], outputs: ["onBlur", "onFocus", "lookChange", "colorChange", "disabledChange", "onClick", "selectionChange", "selectedButtonChange"] }, { kind: "component", type: i2$3.AXButtonGroupItemComponent, selector: "ax-button-group-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
895
1104
|
}
|
|
896
1105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPIconChooserPopupComponent, decorators: [{
|
|
897
1106
|
type: Component,
|
|
@@ -934,7 +1143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
934
1143
|
|
|
935
1144
|
<div class="ax-flex-1 ax-overflow-y-auto ax-pr-2">
|
|
936
1145
|
<div
|
|
937
|
-
class="ax-grid ax-gap-
|
|
1146
|
+
class="ax-grid ax-gap-1"
|
|
938
1147
|
[ngClass]="
|
|
939
1148
|
selectedViewMode === 'square'
|
|
940
1149
|
? 'ax-grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]'
|
|
@@ -996,7 +1205,7 @@ class AXPIconChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
996
1205
|
}
|
|
997
1206
|
}
|
|
998
1207
|
deleteIcon() {
|
|
999
|
-
this.setValue(
|
|
1208
|
+
this.setValue(undefined);
|
|
1000
1209
|
}
|
|
1001
1210
|
editIcon() {
|
|
1002
1211
|
this.openPopup();
|
|
@@ -1013,7 +1222,7 @@ class AXPIconChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
1013
1222
|
[class]="getValue() ? 'ax-border-e ax-cursor-default' : 'icon-container ax-cursor-pointer'"
|
|
1014
1223
|
(click)="addIcon()"
|
|
1015
1224
|
>
|
|
1016
|
-
<i [class]="getValue()
|
|
1225
|
+
<i [class]="getValue() ? getValue().styleClass + ' ' + getValue().iconClass : 'fa-solid fa-plus'"></i>
|
|
1017
1226
|
</div>
|
|
1018
1227
|
|
|
1019
1228
|
<!-- Right: Edit & Delete (only if value exists) -->
|
|
@@ -1031,7 +1240,7 @@ class AXPIconChooserWidgetComponent extends AXPValueWidgetComponent {
|
|
|
1031
1240
|
</div>
|
|
1032
1241
|
}
|
|
1033
1242
|
</div>
|
|
1034
|
-
</div> `, isInline: true, styles: ["
|
|
1243
|
+
</div> `, isInline: true, styles: [".icon-container{background-color:rgba(var(--ax-sys-color-primary-300),10%);background-image:linear-gradient(135deg,rgba(var(--ax-sys-color-primary-300),50%) 10%,transparent 0,transparent 50%,rgba(var(--ax-sys-color-primary-300),50%) 0,rgba(var(--ax-sys-color-primary-300),50%) 60%,transparent 0,transparent);background-size:7.5px 7.5px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1035
1244
|
}
|
|
1036
1245
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPIconChooserWidgetComponent, decorators: [{
|
|
1037
1246
|
type: Component,
|
|
@@ -1046,7 +1255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1046
1255
|
[class]="getValue() ? 'ax-border-e ax-cursor-default' : 'icon-container ax-cursor-pointer'"
|
|
1047
1256
|
(click)="addIcon()"
|
|
1048
1257
|
>
|
|
1049
|
-
<i [class]="getValue()
|
|
1258
|
+
<i [class]="getValue() ? getValue().styleClass + ' ' + getValue().iconClass : 'fa-solid fa-plus'"></i>
|
|
1050
1259
|
</div>
|
|
1051
1260
|
|
|
1052
1261
|
<!-- Right: Edit & Delete (only if value exists) -->
|
|
@@ -1064,7 +1273,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1064
1273
|
</div>
|
|
1065
1274
|
}
|
|
1066
1275
|
</div>
|
|
1067
|
-
</div> `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, styles: ["
|
|
1276
|
+
</div> `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, styles: [".icon-container{background-color:rgba(var(--ax-sys-color-primary-300),10%);background-image:linear-gradient(135deg,rgba(var(--ax-sys-color-primary-300),50%) 10%,transparent 0,transparent 50%,rgba(var(--ax-sys-color-primary-300),50%) 0,rgba(var(--ax-sys-color-primary-300),50%) 60%,transparent 0,transparent);background-size:7.5px 7.5px}\n"] }]
|
|
1068
1277
|
}] });
|
|
1069
1278
|
|
|
1070
1279
|
var iconChooserWidget_component = /*#__PURE__*/Object.freeze({
|
|
@@ -1084,6 +1293,12 @@ const AXPIconChooserWidget = {
|
|
|
1084
1293
|
edit: {
|
|
1085
1294
|
component: () => Promise.resolve().then(function () { return iconChooserWidget_component; }).then((c) => c.AXPIconChooserWidgetComponent),
|
|
1086
1295
|
},
|
|
1296
|
+
column: {
|
|
1297
|
+
component: () => import('./acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs').then((c) => c.AXPIconChooserViewComponent),
|
|
1298
|
+
},
|
|
1299
|
+
view: {
|
|
1300
|
+
component: () => import('./acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs').then((c) => c.AXPIconChooserViewComponent),
|
|
1301
|
+
},
|
|
1087
1302
|
},
|
|
1088
1303
|
};
|
|
1089
1304
|
|
|
@@ -1311,7 +1526,7 @@ class AXPThemesSharedModule {
|
|
|
1311
1526
|
});
|
|
1312
1527
|
}
|
|
1313
1528
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPThemesSharedModule, deps: [{ token: i1$2.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1314
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: AXPThemesSharedModule, imports: [i2$
|
|
1529
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: AXPThemesSharedModule, imports: [i2$4.AXPComponentSlotModule, i3$1.AXPLayoutBuilderModule] }); }
|
|
1315
1530
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXPThemesSharedModule, providers: [
|
|
1316
1531
|
{
|
|
1317
1532
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
@@ -1339,6 +1554,7 @@ class AXPThemesSharedModule {
|
|
|
1339
1554
|
AXPFontSizeChooserWidget,
|
|
1340
1555
|
AXPFontStyleChooserWidget,
|
|
1341
1556
|
AXPIconChooserWidget,
|
|
1557
|
+
AXPColorChooserWidgetConfig,
|
|
1342
1558
|
],
|
|
1343
1559
|
})] }); }
|
|
1344
1560
|
}
|
|
@@ -1363,6 +1579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1363
1579
|
AXPFontSizeChooserWidget,
|
|
1364
1580
|
AXPFontStyleChooserWidget,
|
|
1365
1581
|
AXPIconChooserWidget,
|
|
1582
|
+
AXPColorChooserWidgetConfig,
|
|
1366
1583
|
],
|
|
1367
1584
|
}),
|
|
1368
1585
|
],
|