@acorex-platform/framework-client 0.0.10 → 0.0.15
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-framework-client-auth.mjs +285 -50
- package/fesm2022/acorex-platform-framework-client-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs → acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs} +55 -36
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common-settings-dialog.helper-DQNOCRL6.mjs +29 -0
- package/fesm2022/acorex-platform-framework-client-common-settings-dialog.helper-DQNOCRL6.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs +1576 -408
- package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-core.mjs +561 -25
- package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +154 -42
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CjnQ9hAJ.mjs} +7 -7
- package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CjnQ9hAJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-fFen8w8M.mjs +77 -0
- package/fesm2022/acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-fFen8w8M.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +2378 -1274
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +92 -84
- package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs} +6 -6
- package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-gallery-page.component-DmiB__JR.mjs +256 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-gallery-page.component-DmiB__JR.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +17599 -17114
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs +120 -70
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +302 -263
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs → acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CIwpAXbL.mjs} +2 -2
- package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CIwpAXbL.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs → acorex-platform-framework-client-layout-widgets-image-preview.popup-CazpERbX.mjs} +3 -3
- package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-CazpERbX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-DKkJi40s.mjs} +5 -5
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs.map → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-DKkJi40s.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DtYZfA79.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DtYZfA79.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-nMUtxAyy.mjs} +10 -10
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-nMUtxAyy.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DvUSZ4hJ.mjs} +5 -5
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DvUSZ4hJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BihIfkZW.mjs +61 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BihIfkZW.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +2218 -1504
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-realtime.mjs +227 -0
- package/fesm2022/acorex-platform-framework-client-realtime.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-runtime.mjs +201 -13
- package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-QIFX11dh.mjs +158 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-QIFX11dh.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BBdellyL.mjs +119 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BBdellyL.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs → acorex-platform-framework-client-themes-default-entity-master-single-view.component-CIf1VWNW.mjs} +5 -6
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-CIf1VWNW.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-C_czT_JC.mjs +48 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-C_czT_JC.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-C2Wu0YtF.mjs +42 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-C2Wu0YtF.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DRz-kVsT.mjs +19 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DRz-kVsT.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +123 -96
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs → acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs} +3 -3
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs → acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs} +3 -3
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs → acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs} +11 -2
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs → acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs} +7 -7
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs → acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs} +7 -7
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +124 -112
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-workflow.mjs +26 -483
- package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -1
- package/package.json +14 -9
- package/types/acorex-platform-framework-client-auth.d.ts +76 -5
- package/types/acorex-platform-framework-client-common.d.ts +499 -129
- package/types/acorex-platform-framework-client-core.d.ts +291 -10
- package/types/acorex-platform-framework-client-layout-builder.d.ts +81 -31
- package/types/acorex-platform-framework-client-layout-components.d.ts +295 -41
- package/types/acorex-platform-framework-client-layout-entity.d.ts +1895 -1743
- package/types/acorex-platform-framework-client-layout-views.d.ts +8 -18
- package/types/acorex-platform-framework-client-layout-widget-core.d.ts +20 -35
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +167 -33
- package/types/acorex-platform-framework-client-realtime.d.ts +100 -0
- package/types/acorex-platform-framework-client-runtime.d.ts +60 -2
- package/types/acorex-platform-framework-client-themes-default.d.ts +4 -48
- package/types/acorex-platform-framework-client-workflow.d.ts +16 -127
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs +0 -34
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs +0 -160
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs +0 -121
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs +0 -48
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs +0 -42
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs +0 -19
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs.map +0 -1
|
@@ -32,7 +32,7 @@ class AXPIconChooserWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
32
32
|
}
|
|
33
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPIconChooserWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
34
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: AXPIconChooserWidgetColumnComponent, isStandalone: true, selector: "ax-icon-chooser-column", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `
|
|
35
|
-
<div class="
|
|
35
|
+
<div class="flex items-center justify-center h-full">
|
|
36
36
|
<i [class]="icon()"></i>
|
|
37
37
|
</div>
|
|
38
38
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -42,7 +42,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
42
42
|
args: [{
|
|
43
43
|
selector: 'ax-icon-chooser-column',
|
|
44
44
|
template: `
|
|
45
|
-
<div class="
|
|
45
|
+
<div class="flex items-center justify-center h-full">
|
|
46
46
|
<i [class]="icon()"></i>
|
|
47
47
|
</div>
|
|
48
48
|
`,
|
|
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
52
52
|
}] });
|
|
53
53
|
|
|
54
54
|
export { AXPIconChooserWidgetColumnComponent };
|
|
55
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-icon-chooser-column.component-
|
|
55
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs","sources":["../../../../../libs/framework/client/themes/shared/src/lib/widgets/icon-chooser/icon-chooser-column.component.ts"],"sourcesContent":["import { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { AXPFontAwesomeIconData } from './icon-chooser.service';\n\n@Component({\n selector: 'ax-icon-chooser-column',\n template: `\n <div class=\"flex items-center justify-center h-full\">\n <i [class]=\"icon()\"></i>\n </div>\n `,\n inputs: ['rawValue'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPIconChooserWidgetColumnComponent extends AXPColumnWidgetComponent<AXPFontAwesomeIconData | string> {\n private parseValue = (\n value: AXPFontAwesomeIconData | string | undefined | null,\n ): AXPFontAwesomeIconData | undefined => {\n if (!value) {\n return undefined;\n }\n if (typeof value === 'string') {\n const parts = value.split(' ');\n if (parts.length === 1) {\n return { styleClass: 'fa-solid', iconClass: parts[0] };\n }\n if (parts.length === 2) {\n return { styleClass: parts[0], iconClass: parts[1] };\n }\n return undefined;\n }\n return value;\n };\n\n title = computed(() => {\n const parsed = this.parseValue(this.rawValue as AXPFontAwesomeIconData | string | undefined);\n return parsed?.label ?? '';\n });\n\n icon = computed(() => {\n const parsed = this.parseValue(this.rawValue as AXPFontAwesomeIconData | string | undefined);\n return parsed ? `${parsed.styleClass} ${parsed.iconClass}` : '';\n });\n}\n"],"names":[],"mappings":";;;;AAcM,MAAO,mCAAoC,SAAQ,wBAAyD,CAAA;AAVlH,IAAA,WAAA,GAAA;;AAWU,QAAA,IAAA,CAAA,UAAU,GAAG,CACnB,KAAyD,KACnB;YACtC,IAAI,CAAC,KAAK,EAAE;AACV,gBAAA,OAAO,SAAS;YAClB;AACA,YAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AAC9B,gBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,oBAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;gBACxD;AACA,gBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,oBAAA,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;gBACtD;AACA,gBAAA,OAAO,SAAS;YAClB;AACA,YAAA,OAAO,KAAK;AACd,QAAA,CAAC;AAED,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAK;YACpB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAuD,CAAC;AAC5F,YAAA,OAAO,MAAM,EAAE,KAAK,IAAI,EAAE;AAC5B,QAAA,CAAC,4EAAC;AAEF,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;YACnB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAuD,CAAC;AAC5F,YAAA,OAAO,MAAM,GAAG,CAAA,EAAG,MAAM,CAAC,UAAU,CAAA,CAAA,EAAI,MAAM,CAAC,SAAS,CAAA,CAAE,GAAG,EAAE;AACjE,QAAA,CAAC,2EAAC;AACH,IAAA;8GA7BY,mCAAmC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EARpC;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIU,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAV/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE;;;;AAIT,EAAA,CAAA;oBACD,MAAM,EAAE,CAAC,UAAU,CAAC;oBACpB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;;;"}
|
|
@@ -32,7 +32,7 @@ class AXPIconChooserWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
32
32
|
}
|
|
33
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPIconChooserWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
34
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: AXPIconChooserWidgetViewComponent, isStandalone: true, selector: "ax-icon-chooser-view", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `
|
|
35
|
-
<div class="
|
|
35
|
+
<div class="flex items-center gap-2">
|
|
36
36
|
<i [class]="icon()"></i>
|
|
37
37
|
<span>{{ title() }}</span>
|
|
38
38
|
</div>
|
|
@@ -43,7 +43,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
43
43
|
args: [{
|
|
44
44
|
selector: 'ax-icon-chooser-view',
|
|
45
45
|
template: `
|
|
46
|
-
<div class="
|
|
46
|
+
<div class="flex items-center gap-2">
|
|
47
47
|
<i [class]="icon()"></i>
|
|
48
48
|
<span>{{ title() }}</span>
|
|
49
49
|
</div>
|
|
@@ -54,4 +54,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
54
54
|
}] });
|
|
55
55
|
|
|
56
56
|
export { AXPIconChooserWidgetViewComponent };
|
|
57
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-icon-chooser-view.component-
|
|
57
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs","sources":["../../../../../libs/framework/client/themes/shared/src/lib/widgets/icon-chooser/icon-chooser-view.component.ts"],"sourcesContent":["import { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { AXPFontAwesomeIconData } from './icon-chooser.service';\n\n@Component({\n selector: 'ax-icon-chooser-view',\n template: `\n <div class=\"flex items-center gap-2\">\n <i [class]=\"icon()\"></i>\n <span>{{ title() }}</span>\n </div>\n `,\n inputs: ['rawValue'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPIconChooserWidgetViewComponent extends AXPValueWidgetComponent<AXPFontAwesomeIconData | string> {\n private parseValue = (\n value: AXPFontAwesomeIconData | string | undefined | null,\n ): AXPFontAwesomeIconData | undefined => {\n if (!value) {\n return undefined;\n }\n if (typeof value === 'string') {\n const parts = value.split(' ');\n if (parts.length === 1) {\n return { styleClass: 'fa-solid', iconClass: parts[0] };\n }\n if (parts.length === 2) {\n return { styleClass: parts[0], iconClass: parts[1] };\n }\n return undefined;\n }\n return value;\n };\n\n title = computed(() => {\n const parsed = this.parseValue(this.getValue());\n return parsed?.label ?? '';\n });\n\n icon = computed(() => {\n const parsed = this.parseValue(this.getValue());\n return parsed ? `${parsed.styleClass} ${parsed.iconClass}` : '';\n });\n}\n"],"names":[],"mappings":";;;;AAeM,MAAO,iCAAkC,SAAQ,uBAAwD,CAAA;AAX/G,IAAA,WAAA,GAAA;;AAYU,QAAA,IAAA,CAAA,UAAU,GAAG,CACnB,KAAyD,KACnB;YACtC,IAAI,CAAC,KAAK,EAAE;AACV,gBAAA,OAAO,SAAS;YAClB;AACA,YAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AAC9B,gBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,oBAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;gBACxD;AACA,gBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,oBAAA,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;gBACtD;AACA,gBAAA,OAAO,SAAS;YAClB;AACA,YAAA,OAAO,KAAK;AACd,QAAA,CAAC;AAED,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,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AAChD,iBAAA;;;;;"}
|
|
@@ -13,7 +13,7 @@ class AXPThemeSettingProvider {
|
|
|
13
13
|
async provide(context) {
|
|
14
14
|
// Define the 'Appearance Settings' group
|
|
15
15
|
context
|
|
16
|
-
.addGroup('appearance', `${I18N}.nav-title`, `${I18N}.description`, 'fa-light fa-palette', `${I18N}.title`,
|
|
16
|
+
.addGroup('appearance', `${I18N}.nav-title`, `${I18N}.description`, 'fa-light fa-palette', `${I18N}.title`, 5)
|
|
17
17
|
// Add the 'Brightness & Color' section
|
|
18
18
|
.addSection('color', `${I18N}.items.color.title`, `${I18N}.items.color.description`)
|
|
19
19
|
// Add the 'Theme Mode' setting
|
|
@@ -21,6 +21,7 @@ class AXPThemeSettingProvider {
|
|
|
21
21
|
key: AXPThemeLayoutSetting.Mode,
|
|
22
22
|
title: `${I18N}.items.color.mode.title`,
|
|
23
23
|
scope: AXPPlatformScope.User,
|
|
24
|
+
overridableAt: [],
|
|
24
25
|
isInherited: true,
|
|
25
26
|
defaultValue: AXPThemeMode.Light,
|
|
26
27
|
valueTransforms: objectKeyValueTransforms('id'),
|
|
@@ -43,6 +44,7 @@ class AXPThemeSettingProvider {
|
|
|
43
44
|
key: AXPThemeLayoutSetting.Palette,
|
|
44
45
|
title: `${I18N}.items.color.palette.title`,
|
|
45
46
|
scope: AXPPlatformScope.User,
|
|
47
|
+
overridableAt: [],
|
|
46
48
|
isInherited: true,
|
|
47
49
|
defaultValue: 'default',
|
|
48
50
|
valueTransforms: objectKeyValueTransforms('name'),
|
|
@@ -63,6 +65,7 @@ class AXPThemeSettingProvider {
|
|
|
63
65
|
key: AXPThemeLayoutSetting.MenuOrientation,
|
|
64
66
|
title: `${I18N}.items.root-menu.title`,
|
|
65
67
|
scope: AXPPlatformScope.User,
|
|
68
|
+
overridableAt: [],
|
|
66
69
|
isInherited: true,
|
|
67
70
|
defaultValue: 'vertical',
|
|
68
71
|
valueTransforms: objectKeyValueTransforms('id'),
|
|
@@ -85,6 +88,7 @@ class AXPThemeSettingProvider {
|
|
|
85
88
|
key: AXPThemeLayoutSetting.MenuVerticalMode,
|
|
86
89
|
title: `${I18N}.items.root-menu.vertical-mode.title`,
|
|
87
90
|
scope: AXPPlatformScope.User,
|
|
91
|
+
overridableAt: [],
|
|
88
92
|
isInherited: true,
|
|
89
93
|
defaultValue: AXPMenuVerticalMode.Full,
|
|
90
94
|
valueTransforms: objectKeyValueTransforms('id'),
|
|
@@ -112,6 +116,7 @@ class AXPThemeSettingProvider {
|
|
|
112
116
|
key: AXPThemeLayoutSetting.MenuBadgeVisible,
|
|
113
117
|
title: `${I18N}.items.root-menu.badge.title`,
|
|
114
118
|
scope: AXPPlatformScope.User,
|
|
119
|
+
overridableAt: [],
|
|
115
120
|
isInherited: true,
|
|
116
121
|
defaultValue: true,
|
|
117
122
|
widget: {
|
|
@@ -136,6 +141,7 @@ class AXPThemeSettingProvider {
|
|
|
136
141
|
key: AXPCommonSettings.NavigationMode,
|
|
137
142
|
title: `${I18N}.items.navigation.mode.title`,
|
|
138
143
|
scope: AXPPlatformScope.User,
|
|
144
|
+
overridableAt: [],
|
|
139
145
|
isInherited: true,
|
|
140
146
|
defaultValue: 'simple',
|
|
141
147
|
requiresPageRefresh: true,
|
|
@@ -161,6 +167,7 @@ class AXPThemeSettingProvider {
|
|
|
161
167
|
key: AXPCommonSettings.MaxOpenTabs,
|
|
162
168
|
title: `${I18N}.items.navigation.max-open-tabs.title`,
|
|
163
169
|
scope: AXPPlatformScope.User,
|
|
170
|
+
overridableAt: [],
|
|
164
171
|
isInherited: true,
|
|
165
172
|
defaultValue: 5,
|
|
166
173
|
widget: {
|
|
@@ -182,6 +189,7 @@ class AXPThemeSettingProvider {
|
|
|
182
189
|
key: AXPThemeLayoutSetting.Font,
|
|
183
190
|
title: `${I18N}.items.layout.font.title`,
|
|
184
191
|
scope: AXPPlatformScope.User,
|
|
192
|
+
overridableAt: [],
|
|
185
193
|
isInherited: true,
|
|
186
194
|
defaultValue: 'system-ui',
|
|
187
195
|
valueTransforms: objectKeyValueTransforms('id'),
|
|
@@ -205,6 +213,7 @@ class AXPThemeSettingProvider {
|
|
|
205
213
|
key: AXPThemeLayoutSetting.FontSize,
|
|
206
214
|
title: `${I18N}.items.layout.size.title`,
|
|
207
215
|
scope: AXPPlatformScope.User,
|
|
216
|
+
overridableAt: [],
|
|
208
217
|
isInherited: true,
|
|
209
218
|
defaultValue: 'medium',
|
|
210
219
|
valueTransforms: objectKeyValueTransforms('id'),
|
|
@@ -231,4 +240,4 @@ class AXPThemeSettingProvider {
|
|
|
231
240
|
}
|
|
232
241
|
|
|
233
242
|
export { AXPThemeSettingProvider };
|
|
234
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-settings.provider-
|
|
243
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs.map
|
package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs","sources":["../../../../../libs/framework/client/themes/shared/src/lib/settings.provider.ts"],"sourcesContent":["import { AXPPlatformScope, AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { Injector } from '@angular/core';\nimport { AXPCommonSettings, AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';\n\nimport { objectKeyValueTransforms } from '@acorex-platform/framework-client/core';\n\nimport { AXPThemeLayoutSetting } from './contracts/settings.keys';\nimport { AXPMenuVerticalMode, AXPThemeMode } from './contracts/theme.types';\n\nconst I18N = '@layout:settings.appearance';\nconst verticalModeVisibility = `{{ context.eval('${AXPThemeLayoutSetting.MenuOrientation}') !== 'horizontal' }}`;\nconst maxOpenTabsVisibility = `{{ context.eval('${AXPCommonSettings.NavigationMode}') !== 'simple' }}`;\n\nexport class AXPThemeSettingProvider implements AXPSettingDefinitionProvider {\n constructor(private _injector: Injector) {}\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n // Define the 'Appearance Settings' group\n context\n .addGroup(\n 'appearance',\n `${I18N}.nav-title`,\n `${I18N}.description`,\n 'fa-light fa-palette',\n `${I18N}.title`,\n 5,\n )\n\n // Add the 'Brightness & Color' section\n .addSection('color', `${I18N}.items.color.title`, `${I18N}.items.color.description`)\n\n // Add the 'Theme Mode' setting\n .addSetting({\n key: AXPThemeLayoutSetting.Mode,\n title: `${I18N}.items.color.mode.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: AXPThemeMode.Light,\n valueTransforms: objectKeyValueTransforms('id'),\n widget: {\n type: AXPWidgetsCatalog.themeModeChooser,\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.color.mode.description`,\n })\n\n .addSetting({\n key: AXPThemeLayoutSetting.Palette,\n title: `${I18N}.items.color.palette.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'default',\n valueTransforms: objectKeyValueTransforms('name'),\n widget: {\n type: 'theme-palette-chooser',\n layout: {\n stacked: true,\n },\n },\n description: `${I18N}.items.color.palette.description`,\n })\n\n // End the 'Brightness & Color' section\n .endSection()\n\n // Add the 'Root Menu' section\n .addSection('root-menu', `${I18N}.items.root-menu.title`, `${I18N}.items.root-menu.description`)\n\n // Add the 'Menu Orientation' setting\n .addSetting({\n key: AXPThemeLayoutSetting.MenuOrientation,\n title: `${I18N}.items.root-menu.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'vertical',\n valueTransforms: objectKeyValueTransforms('id'),\n widget: {\n type: AXPWidgetsCatalog.menuOrientationChooser,\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.root-menu.description`,\n })\n\n .addSetting({\n key: AXPThemeLayoutSetting.MenuVerticalMode,\n title: `${I18N}.items.root-menu.vertical-mode.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: AXPMenuVerticalMode.Full,\n valueTransforms: objectKeyValueTransforms('id'),\n widget: {\n type: AXPWidgetsCatalog.menuOrientationChooser,\n options: {\n chooser: 'vertical-mode',\n visibility: verticalModeVisibility,\n },\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.root-menu.vertical-mode.description`,\n })\n\n // Add the 'Menu Badge Visibility' setting\n .addSetting({\n key: AXPThemeLayoutSetting.MenuBadgeVisible,\n title: `${I18N}.items.root-menu.badge.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: true,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.root-menu.badge.description`,\n })\n .endSection()\n\n // Add the 'Navigation' section\n .addSection('navigation', `${I18N}.items.navigation.title`, `${I18N}.items.navigation.description`)\n .addSetting({\n key: AXPCommonSettings.NavigationMode,\n title: `${I18N}.items.navigation.mode.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'simple',\n requiresPageRefresh: true,\n widget: {\n type: AXPWidgetsCatalog.menuOrientationChooser,\n options: {\n chooser: 'navigation-mode',\n },\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.navigation.mode.description`,\n })\n .addSetting({\n key: AXPCommonSettings.MaxOpenTabs,\n title: `${I18N}.items.navigation.max-open-tabs.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 5,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 2,\n maxValue: 20,\n step: 1,\n visibility: maxOpenTabsVisibility,\n },\n },\n description: `${I18N}.items.navigation.max-open-tabs.description`,\n })\n .endSection()\n\n // Add the 'Scale & Layout' section\n .addSection('layout', `${I18N}.items.layout.title`, `${I18N}.items.layout.description`)\n\n // Add the 'Font Style' setting\n .addSetting({\n key: AXPThemeLayoutSetting.Font,\n title: `${I18N}.items.layout.font.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'system-ui',\n valueTransforms: objectKeyValueTransforms('id'),\n widget: {\n type: AXPWidgetsCatalog.fontStyleChooser,\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.layout.font.description`,\n })\n\n // Add the 'Font Size' setting\n .addSetting({\n key: AXPThemeLayoutSetting.FontSize,\n title: `${I18N}.items.layout.size.title`,\n scope: AXPPlatformScope.User,\n overridableAt: [],\n isInherited: true,\n defaultValue: 'medium',\n valueTransforms: objectKeyValueTransforms('id'),\n widget: {\n type: AXPWidgetsCatalog.fontSizeChooser,\n layout: {\n positions: {\n sm: {\n colSpan: 12,\n },\n md: {\n colSpan: 6,\n },\n },\n },\n },\n description: `${I18N}.items.layout.size.description`,\n })\n\n // End the 'Scale & Layout' section\n .endSection()\n\n // End the 'Appearance Settings' group\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;;;AASA,MAAM,IAAI,GAAG,6BAA6B;AAC1C,MAAM,sBAAsB,GAAG,CAAA,iBAAA,EAAoB,qBAAqB,CAAC,eAAe,wBAAwB;AAChH,MAAM,qBAAqB,GAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAC,cAAc,oBAAoB;MAEzF,uBAAuB,CAAA;AAClC,IAAA,WAAA,CAAoB,SAAmB,EAAA;QAAnB,IAAA,CAAA,SAAS,GAAT,SAAS;IAAa;IAE1C,MAAM,OAAO,CAAC,OAA4C,EAAA;;QAExD;AACG,aAAA,QAAQ,CACP,YAAY,EACZ,GAAG,IAAI,CAAA,UAA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AAC;AACX,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;YACD,WAAW,EAAE,CAAA,EAAG,IAAI,CAAA,8BAAA,CAAgC;SACrD;;AAGA,aAAA,UAAU;;AAGV,aAAA,QAAQ,EAAE;IACf;AACD;;;;"}
|
|
@@ -36,10 +36,10 @@ class AXPColorChooserWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
36
36
|
}
|
|
37
37
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPColorChooserWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
38
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPColorChooserWidgetColumnComponent, isStandalone: true, selector: "ax-color-chooser-column", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `
|
|
39
|
-
<div class="
|
|
39
|
+
<div class="flex items-center gap-2">
|
|
40
40
|
@if (isHex()) {
|
|
41
41
|
<div
|
|
42
|
-
class="
|
|
42
|
+
class="w-6 h-6 rounded-md flex items-center justify-center border border-solid"
|
|
43
43
|
[style.background-color]="background()"
|
|
44
44
|
[style.border-color]="border()"
|
|
45
45
|
[style.color]="color()"
|
|
@@ -48,7 +48,7 @@ class AXPColorChooserWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
48
48
|
</div>
|
|
49
49
|
} @else {
|
|
50
50
|
<div
|
|
51
|
-
class="
|
|
51
|
+
class="w-6 h-6 rounded-md flex items-center justify-center"
|
|
52
52
|
[class]="[background(), border()]"
|
|
53
53
|
>
|
|
54
54
|
<span [class]="color()">Aa</span>
|
|
@@ -63,10 +63,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
63
63
|
args: [{
|
|
64
64
|
selector: 'ax-color-chooser-column',
|
|
65
65
|
template: `
|
|
66
|
-
<div class="
|
|
66
|
+
<div class="flex items-center gap-2">
|
|
67
67
|
@if (isHex()) {
|
|
68
68
|
<div
|
|
69
|
-
class="
|
|
69
|
+
class="w-6 h-6 rounded-md flex items-center justify-center border border-solid"
|
|
70
70
|
[style.background-color]="background()"
|
|
71
71
|
[style.border-color]="border()"
|
|
72
72
|
[style.color]="color()"
|
|
@@ -75,7 +75,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
75
75
|
</div>
|
|
76
76
|
} @else {
|
|
77
77
|
<div
|
|
78
|
-
class="
|
|
78
|
+
class="w-6 h-6 rounded-md flex items-center justify-center"
|
|
79
79
|
[class]="[background(), border()]"
|
|
80
80
|
>
|
|
81
81
|
<span [class]="color()">Aa</span>
|
|
@@ -91,4 +91,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
91
91
|
}] });
|
|
92
92
|
|
|
93
93
|
export { AXPColorChooserWidgetColumnComponent };
|
|
94
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-
|
|
94
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs","sources":["../../../../../libs/framework/client/themes/shared/src/lib/widgets/theme-color-chooser/theme-color-chooser-column.component.ts"],"sourcesContent":["import { AXPColumnWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPColor } from './theme-color-chooser.service';\n\n@Component({\n selector: 'ax-color-chooser-column',\n template: `\n <div class=\"flex items-center gap-2\">\n @if (isHex()) {\n <div\n class=\"w-6 h-6 rounded-md flex items-center justify-center border border-solid\"\n [style.background-color]=\"background()\"\n [style.border-color]=\"border()\"\n [style.color]=\"color()\"\n >\n <span>Aa</span>\n </div>\n } @else {\n <div\n class=\"w-6 h-6 rounded-md flex items-center justify-center\"\n [class]=\"[background(), border()]\"\n >\n <span [class]=\"color()\">Aa</span>\n </div>\n }\n <span>{{ title() }}</span>\n </div>\n `,\n imports: [CommonModule],\n inputs: ['rawValue'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPColorChooserWidgetColumnComponent extends AXPColumnWidgetComponent<AXPColor | string | undefined> {\n private parsed(): AXPColor | null {\n const value = this.rawValue;\n if (!value) {\n return null;\n }\n if (typeof value === 'string') {\n const parts = value.trim().split(/\\s+/);\n if (parts.length === 3) {\n const [color, background, border] = parts;\n return { title: '', name: '', color, background, border };\n }\n return null;\n }\n return value as AXPColor;\n }\n\n title(): string {\n return typeof this.rawValue === 'object' ? (this.rawValue as AXPColor)?.title || '' : '';\n }\n\n isHex(): boolean {\n return this.parsed()?.background.startsWith('#') ?? false;\n }\n\n background(): string {\n return this.parsed()?.background || '';\n }\n\n color(): string {\n return this.parsed()?.color || '';\n }\n\n border(): string {\n return this.parsed()?.border || '';\n }\n}\n"],"names":[],"mappings":";;;;;AAiCM,MAAO,oCAAqC,SAAQ,wBAAuD,CAAA;IACvG,MAAM,GAAA;AACZ,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ;QAC3B,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,OAAO,IAAI;QACb;AACA,QAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;AACvC,YAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;gBACtB,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,GAAG,KAAK;AACzC,gBAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE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2FAIX,oCAAoC,EAAA,UAAA,EAAA,CAAA;kBA5BhD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;AAqBT,EAAA,CAAA;oBACD,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,MAAM,EAAE,CAAC,UAAU,CAAC;oBACpB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;;;"}
|
|
@@ -29,10 +29,10 @@ class AXPColorChooserWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
29
29
|
}
|
|
30
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPColorChooserWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
31
31
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPColorChooserWidgetViewComponent, isStandalone: true, selector: "ax-color-chooser-view", usesInheritance: true, ngImport: i0, template: `
|
|
32
|
-
<div class="
|
|
32
|
+
<div class="flex items-center gap-2">
|
|
33
33
|
@if (isHex()) {
|
|
34
34
|
<div
|
|
35
|
-
class="
|
|
35
|
+
class="w-6 h-6 rounded-md flex items-center justify-center border border-solid"
|
|
36
36
|
[style.background-color]="background()"
|
|
37
37
|
[style.border-color]="border()"
|
|
38
38
|
[style.color]="color()"
|
|
@@ -41,7 +41,7 @@ class AXPColorChooserWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
41
41
|
</div>
|
|
42
42
|
} @else {
|
|
43
43
|
<div
|
|
44
|
-
class="
|
|
44
|
+
class="w-6 h-6 rounded-md flex items-center justify-center"
|
|
45
45
|
[class]="[background(), border()]"
|
|
46
46
|
>
|
|
47
47
|
<span [class]="color()">Aa</span>
|
|
@@ -56,10 +56,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
56
56
|
args: [{
|
|
57
57
|
selector: 'ax-color-chooser-view',
|
|
58
58
|
template: `
|
|
59
|
-
<div class="
|
|
59
|
+
<div class="flex items-center gap-2">
|
|
60
60
|
@if (isHex()) {
|
|
61
61
|
<div
|
|
62
|
-
class="
|
|
62
|
+
class="w-6 h-6 rounded-md flex items-center justify-center border border-solid"
|
|
63
63
|
[style.background-color]="background()"
|
|
64
64
|
[style.border-color]="border()"
|
|
65
65
|
[style.color]="color()"
|
|
@@ -68,7 +68,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
68
68
|
</div>
|
|
69
69
|
} @else {
|
|
70
70
|
<div
|
|
71
|
-
class="
|
|
71
|
+
class="w-6 h-6 rounded-md flex items-center justify-center"
|
|
72
72
|
[class]="[background(), border()]"
|
|
73
73
|
>
|
|
74
74
|
<span [class]="color()">Aa</span>
|
|
@@ -83,4 +83,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
83
83
|
}] });
|
|
84
84
|
|
|
85
85
|
export { AXPColorChooserWidgetViewComponent };
|
|
86
|
-
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-
|
|
86
|
+
//# sourceMappingURL=acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs","sources":["../../../../../libs/framework/client/themes/shared/src/lib/widgets/theme-color-chooser/theme-color-chooser-view.component.ts"],"sourcesContent":["import { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed } from '@angular/core';\nimport { AXPColor } from './theme-color-chooser.service';\n\n@Component({\n selector: 'ax-color-chooser-view',\n template: `\n <div class=\"flex items-center gap-2\">\n @if (isHex()) {\n <div\n class=\"w-6 h-6 rounded-md flex items-center justify-center border border-solid\"\n [style.background-color]=\"background()\"\n [style.border-color]=\"border()\"\n [style.color]=\"color()\"\n >\n <span>Aa</span>\n </div>\n } @else {\n <div\n class=\"w-6 h-6 rounded-md flex items-center justify-center\"\n [class]=\"[background(), border()]\"\n >\n <span [class]=\"color()\">Aa</span>\n </div>\n }\n <span>{{ title() }}</span>\n </div>\n `,\n imports: [CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPColorChooserWidgetViewComponent extends AXPValueWidgetComponent<AXPColor | string> {\n private parsed = computed(() => {\n const value = this.getValue();\n if (!value) {\n return null;\n }\n if (typeof value === 'string') {\n const parts = value.trim().split(/\\s+/);\n if (parts.length === 3) {\n const [color, background, border] = parts;\n return { title: '', name: '', color, background, border };\n }\n return null;\n }\n return value;\n });\n\n title = computed(() => (typeof this.getValue() === 'object' ? (this.getValue() as AXPColor)?.title || '' : ''));\n\n isHex = computed(() => this.parsed()?.background.startsWith('#') ?? false);\n\n background = computed(() => this.parsed()?.background || '');\n color = computed(() => this.parsed()?.color || '');\n border = computed(() => this.parsed()?.border || '');\n}\n"],"names":[],"mappings":";;;;;AAgCM,MAAO,kCAAmC,SAAQ,uBAA0C,CAAA;AA3BlG,IAAA,WAAA,GAAA;;AA4BU,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,CAAC,MAAK;AAC7B,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;YAC7B,IAAI,CAAC,KAAK,EAAE;AACV,gBAAA,OAAO,IAAI;YACb;AACA,YAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;AACvC,gBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;oBACtB,MAAM,CAAC,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