@acorex/components 20.2.21 → 21.0.0-next.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/drawer/README.md +2 -2
- package/drawer/index.d.ts +32 -57
- package/drawer-legacy/README.md +3 -0
- package/drawer-legacy/index.d.ts +86 -0
- package/fesm2022/acorex-components-color-palette.mjs +1 -1
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +1 -1
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer-legacy.mjs +218 -0
- package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -0
- package/fesm2022/acorex-components-drawer.mjs +58 -143
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box-legacy.mjs +412 -0
- package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -0
- package/fesm2022/acorex-components-number-box.mjs +97 -310
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +1 -1
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +2 -2
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +28 -28
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list-legacy.mjs +220 -0
- package/fesm2022/acorex-components-selection-list-legacy.mjs.map +1 -0
- package/fesm2022/acorex-components-selection-list.mjs +14 -69
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/number-box/README.md +2 -2
- package/number-box/index.d.ts +31 -171
- package/number-box-legacy/README.md +3 -0
- package/number-box-legacy/index.d.ts +191 -0
- package/package.json +20 -20
- package/rrule/index.d.ts +3 -3
- package/selection-list/README.md +2 -2
- package/selection-list/index.d.ts +16 -57
- package/selection-list-legacy/README.md +3 -0
- package/selection-list-legacy/index.d.ts +93 -0
- package/drawer-2/README.md +0 -3
- package/drawer-2/index.d.ts +0 -62
- package/fesm2022/acorex-components-drawer-2.mjs +0 -134
- package/fesm2022/acorex-components-drawer-2.mjs.map +0 -1
- package/fesm2022/acorex-components-number-box-2.mjs +0 -183
- package/fesm2022/acorex-components-number-box-2.mjs.map +0 -1
- package/fesm2022/acorex-components-selection-list-2.mjs +0 -165
- package/fesm2022/acorex-components-selection-list-2.mjs.map +0 -1
- package/number-box-2/README.md +0 -3
- package/number-box-2/index.d.ts +0 -41
- package/selection-list-2/README.md +0 -3
- package/selection-list-2/index.d.ts +0 -52
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { MXSelectionValueComponent, AXComponent, AXFocusableComponent, AXValuableComponent, MXSelectionBridgeService, AX_SELECTION_DATA_TOKEN } from '@acorex/cdk/common';
|
|
2
|
+
import * as i1 from '@acorex/core/translation';
|
|
3
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
4
|
+
import { NgTemplateOutlet, AsyncPipe, CommonModule } from '@angular/common';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { input, forwardRef, HostBinding, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
7
|
+
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
8
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
9
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
10
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
11
|
+
import { AXRadioModule } from '@acorex/components/radio';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
15
|
+
*
|
|
16
|
+
* @category Components
|
|
17
|
+
*/
|
|
18
|
+
//TODO: on parent click (card style) -> checkbox or radio change value
|
|
19
|
+
class AXSelectionListLegacyComponent extends MXSelectionValueComponent {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
/**
|
|
23
|
+
* sets the direction of the component.
|
|
24
|
+
* @param {AXDirection} value
|
|
25
|
+
*/
|
|
26
|
+
this.direction = input('horizontal', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
27
|
+
/**
|
|
28
|
+
* The custom template used for rendering content.
|
|
29
|
+
*
|
|
30
|
+
* @param {TemplateRef<unknown>} customTemplate
|
|
31
|
+
*/
|
|
32
|
+
this.customTemplate = input(...(ngDevMode ? [undefined, { debugName: "customTemplate" }] : []));
|
|
33
|
+
/** @ignore */
|
|
34
|
+
this._showControl = true;
|
|
35
|
+
/** @ignore */
|
|
36
|
+
this._items = [];
|
|
37
|
+
/** @ignore */
|
|
38
|
+
this._hintField = 'hint';
|
|
39
|
+
/**
|
|
40
|
+
* Defines the visual appearance of the selection list.
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue 'solid'
|
|
43
|
+
*/
|
|
44
|
+
this.look = 'solid';
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @param {void}
|
|
48
|
+
* Gets the current state of the control visibility.
|
|
49
|
+
*/
|
|
50
|
+
get showControl() {
|
|
51
|
+
return this._showControl;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @param {boolean} v
|
|
55
|
+
* Sets the visibility state of the control.
|
|
56
|
+
*/
|
|
57
|
+
set showControl(v) {
|
|
58
|
+
this.setOption({
|
|
59
|
+
name: 'showControl',
|
|
60
|
+
value: v,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Gets the list of items.
|
|
65
|
+
* @param {void}
|
|
66
|
+
*/
|
|
67
|
+
get items() {
|
|
68
|
+
return this._items;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Sets the list of items.
|
|
72
|
+
*
|
|
73
|
+
* @param {any[]} v
|
|
74
|
+
*/
|
|
75
|
+
set items(v) {
|
|
76
|
+
this.softClearSelectionCache();
|
|
77
|
+
this.setOption({
|
|
78
|
+
name: 'items',
|
|
79
|
+
value: v,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Gets the field used for displaying hints.
|
|
84
|
+
*/
|
|
85
|
+
get hintField() {
|
|
86
|
+
return this._hintField;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Sets the field used for displaying hints.
|
|
90
|
+
*
|
|
91
|
+
* @param {string} v
|
|
92
|
+
*/
|
|
93
|
+
set hintField(v) {
|
|
94
|
+
this.setOption({
|
|
95
|
+
name: 'hintField',
|
|
96
|
+
value: v,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves an item from the list by its key.
|
|
101
|
+
*
|
|
102
|
+
* @param {unknown} key - The key to search for.
|
|
103
|
+
*/
|
|
104
|
+
getItemByKey(key) {
|
|
105
|
+
return this.items.find((c) => c == this.value || c[this.valueField] == key);
|
|
106
|
+
}
|
|
107
|
+
/** @ignore */
|
|
108
|
+
_handleOnItemValueChange(item, e) {
|
|
109
|
+
if (this.readonly || this.disabled) {
|
|
110
|
+
e.preventDefault();
|
|
111
|
+
e.stopPropagation();
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
e.target.checked ? this.selectItems(item) : this.unselectItems(item);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/** @ignore */
|
|
118
|
+
get __hostClass() {
|
|
119
|
+
return [
|
|
120
|
+
`ax-look-${this.look}`,
|
|
121
|
+
`${this.disabled ? 'ax-state-disabled' : ''}`,
|
|
122
|
+
`${this.readonly ? 'ax-state-readonly' : ''}`,
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListLegacyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
126
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.6", type: AXSelectionListLegacyComponent, isStandalone: true, selector: "ax-selection-list-legacy", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: false, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: false, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: false, isRequired: false, transformFunction: null }, readonlyField: { classPropertyName: "readonlyField", publicName: "readonlyField", isSignal: false, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: false, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: "customTemplate", publicName: "customTemplate", isSignal: true, isRequired: false, transformFunction: null }, showControl: { classPropertyName: "showControl", publicName: "showControl", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
|
|
127
|
+
{ provide: AXComponent, useExisting: AXSelectionListLegacyComponent },
|
|
128
|
+
{ provide: AXFocusableComponent, useExisting: AXSelectionListLegacyComponent },
|
|
129
|
+
{ provide: AXValuableComponent, useExisting: AXSelectionListLegacyComponent },
|
|
130
|
+
{
|
|
131
|
+
provide: NG_VALUE_ACCESSOR,
|
|
132
|
+
useExisting: forwardRef(() => AXSelectionListLegacyComponent),
|
|
133
|
+
multi: true,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
provide: AX_SELECTION_DATA_TOKEN,
|
|
137
|
+
useClass: MXSelectionBridgeService,
|
|
138
|
+
},
|
|
139
|
+
], usesInheritance: true, ngImport: i0, template: "<ul class=\"ax-{{ direction() }}\">\n @for (item of items; let i = $index; track i) {\n <li [class.ax-state-selected]=\"isItemSelected(item)\" [class.ax-state-disabled]=\"item.disabled\">\n <label [class.ax-hide-control]=\"!showControl\">\n @if (multiple) {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-checkbox\"\n type=\"checkbox\"\n (change)=\"_handleOnItemValueChange(item, $event)\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n } @else {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-radio\"\n type=\"radio\"\n [attr.name]=\"id\"\n (change)=\"_handleOnItemValueChange(item, $event)\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n }\n\n @if (customTemplate()) {\n <div>\n <ng-container\n [ngTemplateOutlet]=\"customTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: { data: item } }\"\n >\n </ng-container>\n </div>\n } @else {\n <div>\n {{ getDisplayText(item) | translate | async }}\n @if (item[hintField]) {\n <p class=\"ax-hint-text\">\n {{ item[hintField] | translate | async }}\n </p>\n }\n </div>\n }\n </label>\n </li>\n }\n</ul>\n<ng-content select=\"ax-validation-rule\"> </ng-content>\n", styles: [".ax-dark ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,.ax-dark ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{background-color:rgba(var(--ax-sys-color-primary-darkest-surface),.25)}ax-selection-list-legacy.ax-look-divided ul.ax-vertical li:last-child label,ax-selection-list-legacy.ax-look-divided ul.ax-horizontal li:last-child label{border-style:none}ax-selection-list-legacy.ax-look-divided ul.ax-vertical>li label{border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-bottom:.875rem}ax-selection-list-legacy.ax-look-divided ul.ax-horizontal>li label{border-inline-end-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul{gap:.75rem}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li label{border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{border-color:rgba(var(--ax-sys-color-primary-surface));background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}ax-selection-list-legacy.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-selection-list-legacy ul{display:flex;flex-wrap:wrap}ax-selection-list-legacy ul.ax-vertical{flex-direction:column}ax-selection-list-legacy ul.ax-horizontal{flex-direction:row}ax-selection-list-legacy ul li{cursor:pointer;-webkit-user-select:none;user-select:none}ax-selection-list-legacy ul li label{display:flex;cursor:pointer;align-items:flex-start;padding:.5rem .75rem}ax-selection-list-legacy ul li label.ax-hide-control .ax-checkbox,ax-selection-list-legacy ul li label.ax-hide-control .ax-radio{display:none}ax-selection-list-legacy ul li label.ax-hide-control>div{margin-inline-start:0px}ax-selection-list-legacy ul li label .ax-checkbox,ax-selection-list-legacy ul li label .ax-radio{margin-top:.25rem}ax-selection-list-legacy ul li label>div{margin-inline-start:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:rgba(var(--ax-sys-color-on-lightest-surface))}ax-selection-list-legacy ul li label>div .ax-hint-text{margin-top:.25rem;font-weight:400;color:rgb(var(--ax-sys-color-on-lightest-surface),.75)}ax-selection-list-legacy ul li.ax-state-disabled{opacity:.5}ax-selection-list-legacy ul li.ax-state-disabled *{cursor:not-allowed}ax-selection-list-legacy.ax-state-error{color:rgba(var(--ax-sys-color-danger-surface))}ax-selection-list-legacy.ax-state-error .ax-checkbox-checkmark,ax-selection-list-legacy.ax-state-error .ax-radio-checkmark{border-color:rgba(var(--ax-sys-color-danger-surface))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
140
|
+
}
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListLegacyComponent, decorators: [{
|
|
142
|
+
type: Component,
|
|
143
|
+
args: [{ selector: 'ax-selection-list-legacy', inputs: [
|
|
144
|
+
'id',
|
|
145
|
+
'name',
|
|
146
|
+
'disabled',
|
|
147
|
+
'readonly',
|
|
148
|
+
'tabIndex',
|
|
149
|
+
'size',
|
|
150
|
+
'value',
|
|
151
|
+
'valueField',
|
|
152
|
+
'textField',
|
|
153
|
+
'disabledField',
|
|
154
|
+
'readonlyField',
|
|
155
|
+
'multiple',
|
|
156
|
+
], outputs: ['onValueChanged', 'onBlur', 'onFocus'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
157
|
+
{ provide: AXComponent, useExisting: AXSelectionListLegacyComponent },
|
|
158
|
+
{ provide: AXFocusableComponent, useExisting: AXSelectionListLegacyComponent },
|
|
159
|
+
{ provide: AXValuableComponent, useExisting: AXSelectionListLegacyComponent },
|
|
160
|
+
{
|
|
161
|
+
provide: NG_VALUE_ACCESSOR,
|
|
162
|
+
useExisting: forwardRef(() => AXSelectionListLegacyComponent),
|
|
163
|
+
multi: true,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
provide: AX_SELECTION_DATA_TOKEN,
|
|
167
|
+
useClass: MXSelectionBridgeService,
|
|
168
|
+
},
|
|
169
|
+
], imports: [NgTemplateOutlet, AsyncPipe, AXTranslationModule], template: "<ul class=\"ax-{{ direction() }}\">\n @for (item of items; let i = $index; track i) {\n <li [class.ax-state-selected]=\"isItemSelected(item)\" [class.ax-state-disabled]=\"item.disabled\">\n <label [class.ax-hide-control]=\"!showControl\">\n @if (multiple) {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-checkbox\"\n type=\"checkbox\"\n (change)=\"_handleOnItemValueChange(item, $event)\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n } @else {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-radio\"\n type=\"radio\"\n [attr.name]=\"id\"\n (change)=\"_handleOnItemValueChange(item, $event)\"\n [checked]=\"isItemSelected(item)\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n }\n\n @if (customTemplate()) {\n <div>\n <ng-container\n [ngTemplateOutlet]=\"customTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: { data: item } }\"\n >\n </ng-container>\n </div>\n } @else {\n <div>\n {{ getDisplayText(item) | translate | async }}\n @if (item[hintField]) {\n <p class=\"ax-hint-text\">\n {{ item[hintField] | translate | async }}\n </p>\n }\n </div>\n }\n </label>\n </li>\n }\n</ul>\n<ng-content select=\"ax-validation-rule\"> </ng-content>\n", styles: [".ax-dark ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,.ax-dark ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{background-color:rgba(var(--ax-sys-color-primary-darkest-surface),.25)}ax-selection-list-legacy.ax-look-divided ul.ax-vertical li:last-child label,ax-selection-list-legacy.ax-look-divided ul.ax-horizontal li:last-child label{border-style:none}ax-selection-list-legacy.ax-look-divided ul.ax-vertical>li label{border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-bottom:.875rem}ax-selection-list-legacy.ax-look-divided ul.ax-horizontal>li label{border-inline-end-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul{gap:.75rem}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li label{border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{border-color:rgba(var(--ax-sys-color-primary-surface));background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}ax-selection-list-legacy.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-selection-list-legacy ul{display:flex;flex-wrap:wrap}ax-selection-list-legacy ul.ax-vertical{flex-direction:column}ax-selection-list-legacy ul.ax-horizontal{flex-direction:row}ax-selection-list-legacy ul li{cursor:pointer;-webkit-user-select:none;user-select:none}ax-selection-list-legacy ul li label{display:flex;cursor:pointer;align-items:flex-start;padding:.5rem .75rem}ax-selection-list-legacy ul li label.ax-hide-control .ax-checkbox,ax-selection-list-legacy ul li label.ax-hide-control .ax-radio{display:none}ax-selection-list-legacy ul li label.ax-hide-control>div{margin-inline-start:0px}ax-selection-list-legacy ul li label .ax-checkbox,ax-selection-list-legacy ul li label .ax-radio{margin-top:.25rem}ax-selection-list-legacy ul li label>div{margin-inline-start:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:rgba(var(--ax-sys-color-on-lightest-surface))}ax-selection-list-legacy ul li label>div .ax-hint-text{margin-top:.25rem;font-weight:400;color:rgb(var(--ax-sys-color-on-lightest-surface),.75)}ax-selection-list-legacy ul li.ax-state-disabled{opacity:.5}ax-selection-list-legacy ul li.ax-state-disabled *{cursor:not-allowed}ax-selection-list-legacy.ax-state-error{color:rgba(var(--ax-sys-color-danger-surface))}ax-selection-list-legacy.ax-state-error .ax-checkbox-checkmark,ax-selection-list-legacy.ax-state-error .ax-radio-checkmark{border-color:rgba(var(--ax-sys-color-danger-surface))}\n"] }]
|
|
170
|
+
}], propDecorators: { direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], customTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTemplate", required: false }] }], showControl: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}], items: [{
|
|
173
|
+
type: Input
|
|
174
|
+
}], look: [{
|
|
175
|
+
type: Input
|
|
176
|
+
}], __hostClass: [{
|
|
177
|
+
type: HostBinding,
|
|
178
|
+
args: ['class']
|
|
179
|
+
}] } });
|
|
180
|
+
|
|
181
|
+
class AXSelectionListLegacyModule {
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListLegacyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
183
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListLegacyModule, imports: [CommonModule,
|
|
184
|
+
FormsModule,
|
|
185
|
+
AXCheckBoxModule,
|
|
186
|
+
AXRadioModule,
|
|
187
|
+
AXLabelModule,
|
|
188
|
+
AXFormModule,
|
|
189
|
+
AXSelectionListLegacyComponent], exports: [AXSelectionListLegacyComponent] }); }
|
|
190
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListLegacyModule, imports: [CommonModule,
|
|
191
|
+
FormsModule,
|
|
192
|
+
AXCheckBoxModule,
|
|
193
|
+
AXRadioModule,
|
|
194
|
+
AXLabelModule,
|
|
195
|
+
AXFormModule,
|
|
196
|
+
AXSelectionListLegacyComponent] }); }
|
|
197
|
+
}
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListLegacyModule, decorators: [{
|
|
199
|
+
type: NgModule,
|
|
200
|
+
args: [{
|
|
201
|
+
imports: [
|
|
202
|
+
CommonModule,
|
|
203
|
+
FormsModule,
|
|
204
|
+
AXCheckBoxModule,
|
|
205
|
+
AXRadioModule,
|
|
206
|
+
AXLabelModule,
|
|
207
|
+
AXFormModule,
|
|
208
|
+
AXSelectionListLegacyComponent,
|
|
209
|
+
],
|
|
210
|
+
exports: [AXSelectionListLegacyComponent],
|
|
211
|
+
providers: [],
|
|
212
|
+
}]
|
|
213
|
+
}] });
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Generated bundle index. Do not edit.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
export { AXSelectionListLegacyComponent, AXSelectionListLegacyModule };
|
|
220
|
+
//# sourceMappingURL=acorex-components-selection-list-legacy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-components-selection-list-legacy.mjs","sources":["../tmp-esm2022/selection-list-legacy/lib/selection-list.component.js","../tmp-esm2022/selection-list-legacy/lib/selection-list.module.js","../tmp-esm2022/selection-list-legacy/acorex-components-selection-list-legacy.js"],"sourcesContent":["import { AXComponent, AXFocusableComponent, AXValuableComponent, AX_SELECTION_DATA_TOKEN, MXSelectionBridgeService, MXSelectionValueComponent, } from '@acorex/cdk/common';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation, forwardRef, input, } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@acorex/core/translation\";\n/**\n * The Button is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n//TODO: on parent click (card style) -> checkbox or radio change value\nexport class AXSelectionListLegacyComponent extends MXSelectionValueComponent {\n constructor() {\n super(...arguments);\n /**\n * sets the direction of the component.\n * @param {AXDirection} value\n */\n this.direction = input('horizontal', ...(ngDevMode ? [{ debugName: \"direction\" }] : []));\n /**\n * The custom template used for rendering content.\n *\n * @param {TemplateRef<unknown>} customTemplate\n */\n this.customTemplate = input(...(ngDevMode ? [undefined, { debugName: \"customTemplate\" }] : []));\n /** @ignore */\n this._showControl = true;\n /** @ignore */\n this._items = [];\n /** @ignore */\n this._hintField = 'hint';\n /**\n * Defines the visual appearance of the selection list.\n *\n * @defaultValue 'solid'\n */\n this.look = 'solid';\n }\n /**\n * @param {void}\n * Gets the current state of the control visibility.\n */\n get showControl() {\n return this._showControl;\n }\n /**\n * @param {boolean} v\n * Sets the visibility state of the control.\n */\n set showControl(v) {\n this.setOption({\n name: 'showControl',\n value: v,\n });\n }\n /**\n * Gets the list of items.\n * @param {void}\n */\n get items() {\n return this._items;\n }\n /**\n * Sets the list of items.\n *\n * @param {any[]} v\n */\n set items(v) {\n this.softClearSelectionCache();\n this.setOption({\n name: 'items',\n value: v,\n });\n }\n /**\n * Gets the field used for displaying hints.\n */\n get hintField() {\n return this._hintField;\n }\n /**\n * Sets the field used for displaying hints.\n *\n * @param {string} v\n */\n set hintField(v) {\n this.setOption({\n name: 'hintField',\n value: v,\n });\n }\n /**\n * Retrieves an item from the list by its key.\n *\n * @param {unknown} key - The key to search for.\n */\n getItemByKey(key) {\n return this.items.find((c) => c == this.value || c[this.valueField] == key);\n }\n /** @ignore */\n _handleOnItemValueChange(item, e) {\n if (this.readonly || this.disabled) {\n e.preventDefault();\n e.stopPropagation();\n }\n else {\n e.target.checked ? this.selectItems(item) : this.unselectItems(item);\n }\n }\n /** @ignore */\n get __hostClass() {\n return [\n `ax-look-${this.look}`,\n `${this.disabled ? 'ax-state-disabled' : ''}`,\n `${this.readonly ? 'ax-state-readonly' : ''}`,\n ];\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.6\", ngImport: i0, type: AXSelectionListLegacyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.6\", type: AXSelectionListLegacyComponent, isStandalone: true, selector: \"ax-selection-list-legacy\", inputs: { id: { classPropertyName: \"id\", publicName: \"id\", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: \"disabled\", publicName: \"disabled\", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: \"readonly\", publicName: \"readonly\", isSignal: false, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: \"tabIndex\", publicName: \"tabIndex\", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: \"size\", publicName: \"size\", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: false, isRequired: false, transformFunction: null }, valueField: { classPropertyName: \"valueField\", publicName: \"valueField\", isSignal: false, isRequired: false, transformFunction: null }, textField: { classPropertyName: \"textField\", publicName: \"textField\", isSignal: false, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: \"disabledField\", publicName: \"disabledField\", isSignal: false, isRequired: false, transformFunction: null }, readonlyField: { classPropertyName: \"readonlyField\", publicName: \"readonlyField\", isSignal: false, isRequired: false, transformFunction: null }, multiple: { classPropertyName: \"multiple\", publicName: \"multiple\", isSignal: false, isRequired: false, transformFunction: null }, direction: { classPropertyName: \"direction\", publicName: \"direction\", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: \"customTemplate\", publicName: \"customTemplate\", isSignal: true, isRequired: false, transformFunction: null }, showControl: { classPropertyName: \"showControl\", publicName: \"showControl\", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: \"items\", publicName: \"items\", isSignal: false, isRequired: false, transformFunction: null }, look: { classPropertyName: \"look\", publicName: \"look\", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onValueChanged: \"onValueChanged\", onBlur: \"onBlur\", onFocus: \"onFocus\" }, host: { properties: { \"class\": \"this.__hostClass\" } }, providers: [\n { provide: AXComponent, useExisting: AXSelectionListLegacyComponent },\n { provide: AXFocusableComponent, useExisting: AXSelectionListLegacyComponent },\n { provide: AXValuableComponent, useExisting: AXSelectionListLegacyComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXSelectionListLegacyComponent),\n multi: true,\n },\n {\n provide: AX_SELECTION_DATA_TOKEN,\n useClass: MXSelectionBridgeService,\n },\n ], usesInheritance: true, ngImport: i0, template: \"<ul class=\\\"ax-{{ direction() }}\\\">\\n @for (item of items; let i = $index; track i) {\\n <li [class.ax-state-selected]=\\\"isItemSelected(item)\\\" [class.ax-state-disabled]=\\\"item.disabled\\\">\\n <label [class.ax-hide-control]=\\\"!showControl\\\">\\n @if (multiple) {\\n <input\\n [id]=\\\"id + '-' + i\\\"\\n class=\\\"ax-checkbox\\\"\\n type=\\\"checkbox\\\"\\n (change)=\\\"_handleOnItemValueChange(item, $event)\\\"\\n [checked]=\\\"isItemSelected(item)\\\"\\n [disabled]=\\\"disabled || item[disabledField] || readonly\\\"\\n />\\n } @else {\\n <input\\n [id]=\\\"id + '-' + i\\\"\\n class=\\\"ax-radio\\\"\\n type=\\\"radio\\\"\\n [attr.name]=\\\"id\\\"\\n (change)=\\\"_handleOnItemValueChange(item, $event)\\\"\\n [checked]=\\\"isItemSelected(item)\\\"\\n [disabled]=\\\"disabled || item[disabledField] || readonly\\\"\\n />\\n }\\n\\n @if (customTemplate()) {\\n <div>\\n <ng-container\\n [ngTemplateOutlet]=\\\"customTemplate()\\\"\\n [ngTemplateOutletContext]=\\\"{ $implicit: { data: item } }\\\"\\n >\\n </ng-container>\\n </div>\\n } @else {\\n <div>\\n {{ getDisplayText(item) | translate | async }}\\n @if (item[hintField]) {\\n <p class=\\\"ax-hint-text\\\">\\n {{ item[hintField] | translate | async }}\\n </p>\\n }\\n </div>\\n }\\n </label>\\n </li>\\n }\\n</ul>\\n<ng-content select=\\\"ax-validation-rule\\\"> </ng-content>\\n\", styles: [\".ax-dark ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,.ax-dark ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{background-color:rgba(var(--ax-sys-color-primary-darkest-surface),.25)}ax-selection-list-legacy.ax-look-divided ul.ax-vertical li:last-child label,ax-selection-list-legacy.ax-look-divided ul.ax-horizontal li:last-child label{border-style:none}ax-selection-list-legacy.ax-look-divided ul.ax-vertical>li label{border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-bottom:.875rem}ax-selection-list-legacy.ax-look-divided ul.ax-horizontal>li label{border-inline-end-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul{gap:.75rem}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li label{border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{border-color:rgba(var(--ax-sys-color-primary-surface));background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}ax-selection-list-legacy.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-selection-list-legacy ul{display:flex;flex-wrap:wrap}ax-selection-list-legacy ul.ax-vertical{flex-direction:column}ax-selection-list-legacy ul.ax-horizontal{flex-direction:row}ax-selection-list-legacy ul li{cursor:pointer;-webkit-user-select:none;user-select:none}ax-selection-list-legacy ul li label{display:flex;cursor:pointer;align-items:flex-start;padding:.5rem .75rem}ax-selection-list-legacy ul li label.ax-hide-control .ax-checkbox,ax-selection-list-legacy ul li label.ax-hide-control .ax-radio{display:none}ax-selection-list-legacy ul li label.ax-hide-control>div{margin-inline-start:0px}ax-selection-list-legacy ul li label .ax-checkbox,ax-selection-list-legacy ul li label .ax-radio{margin-top:.25rem}ax-selection-list-legacy ul li label>div{margin-inline-start:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:rgba(var(--ax-sys-color-on-lightest-surface))}ax-selection-list-legacy ul li label>div .ax-hint-text{margin-top:.25rem;font-weight:400;color:rgb(var(--ax-sys-color-on-lightest-surface),.75)}ax-selection-list-legacy ul li.ax-state-disabled{opacity:.5}ax-selection-list-legacy ul li.ax-state-disabled *{cursor:not-allowed}ax-selection-list-legacy.ax-state-error{color:rgba(var(--ax-sys-color-danger-surface))}ax-selection-list-legacy.ax-state-error .ax-checkbox-checkmark,ax-selection-list-legacy.ax-state-error .ax-radio-checkmark{border-color:rgba(var(--ax-sys-color-danger-surface))}\\n\"], dependencies: [{ kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"ngmodule\", type: AXTranslationModule }, { kind: \"pipe\", type: AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i1.AXTranslatorPipe, name: \"translate\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.6\", ngImport: i0, type: AXSelectionListLegacyComponent, decorators: [{\n type: Component,\n args: [{ selector: 'ax-selection-list-legacy', inputs: [\n 'id',\n 'name',\n 'disabled',\n 'readonly',\n 'tabIndex',\n 'size',\n 'value',\n 'valueField',\n 'textField',\n 'disabledField',\n 'readonlyField',\n 'multiple',\n ], outputs: ['onValueChanged', 'onBlur', 'onFocus'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [\n { provide: AXComponent, useExisting: AXSelectionListLegacyComponent },\n { provide: AXFocusableComponent, useExisting: AXSelectionListLegacyComponent },\n { provide: AXValuableComponent, useExisting: AXSelectionListLegacyComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXSelectionListLegacyComponent),\n multi: true,\n },\n {\n provide: AX_SELECTION_DATA_TOKEN,\n useClass: MXSelectionBridgeService,\n },\n ], imports: [NgTemplateOutlet, AsyncPipe, AXTranslationModule], template: \"<ul class=\\\"ax-{{ direction() }}\\\">\\n @for (item of items; let i = $index; track i) {\\n <li [class.ax-state-selected]=\\\"isItemSelected(item)\\\" [class.ax-state-disabled]=\\\"item.disabled\\\">\\n <label [class.ax-hide-control]=\\\"!showControl\\\">\\n @if (multiple) {\\n <input\\n [id]=\\\"id + '-' + i\\\"\\n class=\\\"ax-checkbox\\\"\\n type=\\\"checkbox\\\"\\n (change)=\\\"_handleOnItemValueChange(item, $event)\\\"\\n [checked]=\\\"isItemSelected(item)\\\"\\n [disabled]=\\\"disabled || item[disabledField] || readonly\\\"\\n />\\n } @else {\\n <input\\n [id]=\\\"id + '-' + i\\\"\\n class=\\\"ax-radio\\\"\\n type=\\\"radio\\\"\\n [attr.name]=\\\"id\\\"\\n (change)=\\\"_handleOnItemValueChange(item, $event)\\\"\\n [checked]=\\\"isItemSelected(item)\\\"\\n [disabled]=\\\"disabled || item[disabledField] || readonly\\\"\\n />\\n }\\n\\n @if (customTemplate()) {\\n <div>\\n <ng-container\\n [ngTemplateOutlet]=\\\"customTemplate()\\\"\\n [ngTemplateOutletContext]=\\\"{ $implicit: { data: item } }\\\"\\n >\\n </ng-container>\\n </div>\\n } @else {\\n <div>\\n {{ getDisplayText(item) | translate | async }}\\n @if (item[hintField]) {\\n <p class=\\\"ax-hint-text\\\">\\n {{ item[hintField] | translate | async }}\\n </p>\\n }\\n </div>\\n }\\n </label>\\n </li>\\n }\\n</ul>\\n<ng-content select=\\\"ax-validation-rule\\\"> </ng-content>\\n\", styles: [\".ax-dark ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,.ax-dark ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{background-color:rgba(var(--ax-sys-color-primary-darkest-surface),.25)}ax-selection-list-legacy.ax-look-divided ul.ax-vertical li:last-child label,ax-selection-list-legacy.ax-look-divided ul.ax-horizontal li:last-child label{border-style:none}ax-selection-list-legacy.ax-look-divided ul.ax-vertical>li label{border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-bottom:.875rem}ax-selection-list-legacy.ax-look-divided ul.ax-horizontal>li label{border-inline-end-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul{gap:.75rem}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li label{border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list-legacy.ax-look-card ul.ax-vertical>li.ax-state-selected label,ax-selection-list-legacy.ax-look-card ul.ax-horizontal>li.ax-state-selected label{border-color:rgba(var(--ax-sys-color-primary-surface));background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}ax-selection-list-legacy.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-selection-list-legacy ul{display:flex;flex-wrap:wrap}ax-selection-list-legacy ul.ax-vertical{flex-direction:column}ax-selection-list-legacy ul.ax-horizontal{flex-direction:row}ax-selection-list-legacy ul li{cursor:pointer;-webkit-user-select:none;user-select:none}ax-selection-list-legacy ul li label{display:flex;cursor:pointer;align-items:flex-start;padding:.5rem .75rem}ax-selection-list-legacy ul li label.ax-hide-control .ax-checkbox,ax-selection-list-legacy ul li label.ax-hide-control .ax-radio{display:none}ax-selection-list-legacy ul li label.ax-hide-control>div{margin-inline-start:0px}ax-selection-list-legacy ul li label .ax-checkbox,ax-selection-list-legacy ul li label .ax-radio{margin-top:.25rem}ax-selection-list-legacy ul li label>div{margin-inline-start:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:rgba(var(--ax-sys-color-on-lightest-surface))}ax-selection-list-legacy ul li label>div .ax-hint-text{margin-top:.25rem;font-weight:400;color:rgb(var(--ax-sys-color-on-lightest-surface),.75)}ax-selection-list-legacy ul li.ax-state-disabled{opacity:.5}ax-selection-list-legacy ul li.ax-state-disabled *{cursor:not-allowed}ax-selection-list-legacy.ax-state-error{color:rgba(var(--ax-sys-color-danger-surface))}ax-selection-list-legacy.ax-state-error .ax-checkbox-checkmark,ax-selection-list-legacy.ax-state-error .ax-radio-checkmark{border-color:rgba(var(--ax-sys-color-danger-surface))}\\n\"] }]\n }], propDecorators: { direction: [{ type: i0.Input, args: [{ isSignal: true, alias: \"direction\", required: false }] }], customTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: \"customTemplate\", required: false }] }], showControl: [{\n type: Input\n }], items: [{\n type: Input\n }], look: [{\n type: Input\n }], __hostClass: [{\n type: HostBinding,\n args: ['class']\n }] } });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcG9uZW50cy9zZWxlY3Rpb24tbGlzdC1sZWdhY3kvc3JjL2xpYi9zZWxlY3Rpb24tbGlzdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21wb25lbnRzL3NlbGVjdGlvbi1saXN0LWxlZ2FjeS9zcmMvbGliL3NlbGVjdGlvbi1saXN0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXS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GlmIChtdWx0aXBsZSkge1xuICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgW2lkXT1cImlkICsgJy0nICsgaVwiXG4gICAgICAgICAgICBjbGFzcz1cImF4LWNoZWNrYm94XCJcbiAgICAgICAgICAgIHR5cGU9XCJjaGVja2JveFwiXG4gICAgICAgICAgICAoY2hhbmdlKT1cIl9oYW5kbGVPbkl0ZW1WYWx1ZUNoYW5nZShpdGVtLCAkZXZlbnQpXCJcbiAgICAgICAgICAgIFtjaGVja2VkXT1cImlzSXRlbVNlbGVjdGVkKGl0ZW0pXCJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZCB8fCBpdGVtW2Rpc2FibGVkRmllbGRdIHx8IHJlYWRvbmx5XCJcbiAgICAgICAgICAvPlxuICAgICAgICB9IEBlbHNlIHtcbiAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgIFtpZF09XCJpZCArICctJyArIGlcIlxuICAgICAgICAgICAgY2xhc3M9XCJheC1yYWRpb1wiXG4gICAgICAgICAgICB0eXBlPVwicmFkaW9cIlxuICAgICAgICAgICAgW2F0dHIubmFtZV09XCJpZFwiXG4gICAgICAgICAgICAoY2hhbmdlKT1cIl9oYW5kbGVPbkl0ZW1WYWx1ZUNoYW5nZShpdGVtLCAkZXZlbnQpXCJcbiAgICAgICAgICAgIFtjaGVja2VkXT1cImlzSXRlbVNlbGVjdGVkKGl0ZW0pXCJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZCB8fCBpdGVtW2Rpc2FibGVkRmllbGRdIHx8IHJlYWRvbmx5XCJcbiAgICAgICAgICAvPlxuICAgICAgICB9XG5cbiAgICAgICAgQGlmIChjdXN0b21UZW1wbGF0ZSgpKSB7XG4gICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXJcbiAgICAgICAgICAgICAgW25nVGVtcGxhdGVPdXRsZXRdPVwiY3VzdG9tVGVtcGxhdGUoKVwiXG4gICAgICAgICAgICAgIFtuZ1RlbXBsYXRlT3V0bGV0Q29udGV4dF09XCJ7ICRpbXBsaWNpdDogeyBkYXRhOiBpdGVtIH0gfVwiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgfSBAZWxzZSB7XG4gICAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIHt7IGdldERpc3BsYXlUZXh0KGl0ZW0pIHwgdHJhbnNsYXRlIHwgYXN5bmMgfX1cbiAgICAgICAgICAgIEBpZiAoaXRlbVtoaW50RmllbGRdKSB7XG4gICAgICAgICAgICAgIDxwIGNsYXNzPVwiYXgtaGludC10ZXh0XCI+XG4gICAgICAgICAgICAgICAge3sgaXRlbVtoaW50RmllbGRdIHwgdHJhbnNsYXRlIHwgYXN5bmMgfX1cbiAgICAgICAgICAgICAgPC9wPlxuICAgICAgICAgICAgfVxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICB9XG4gICAgICA8L2xhYmVsPlxuICAgIDwvbGk+XG4gIH1cbjwvdWw+XG48bmctY29udGVudCBzZWxlY3Q9XCJheC12YWxpZGF0aW9uLXJ1bGVcIj4gPC9uZy1jb250ZW50PlxuIl19","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXSelectionListLegacyComponent } from './selection-list.component';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXRadioModule } from '@acorex/components/radio';\nimport * as i0 from \"@angular/core\";\nexport class AXSelectionListLegacyModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.6\", ngImport: i0, type: AXSelectionListLegacyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.6\", ngImport: i0, type: AXSelectionListLegacyModule, imports: [CommonModule,\n FormsModule,\n AXCheckBoxModule,\n AXRadioModule,\n AXLabelModule,\n AXFormModule,\n AXSelectionListLegacyComponent], exports: [AXSelectionListLegacyComponent] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.6\", ngImport: i0, type: AXSelectionListLegacyModule, imports: [CommonModule,\n FormsModule,\n AXCheckBoxModule,\n AXRadioModule,\n AXLabelModule,\n AXFormModule,\n AXSelectionListLegacyComponent] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.6\", ngImport: i0, type: AXSelectionListLegacyModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n CommonModule,\n FormsModule,\n AXCheckBoxModule,\n AXRadioModule,\n AXLabelModule,\n AXFormModule,\n AXSelectionListLegacyComponent,\n ],\n exports: [AXSelectionListLegacyComponent],\n providers: [],\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWxpc3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcG9uZW50cy9zZWxlY3Rpb24tbGlzdC1sZWdhY3kvc3JjL2xpYi9zZWxlY3Rpb24tbGlzdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRTVFLE9BQU8sRUFBRSxnQkFB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fSBmcm9tICcuL3NlbGVjdGlvbi1saXN0LmNvbXBvbmVudCc7XG5cbmltcG9ydCB7IEFYQ2hlY2tCb3hNb2R1bGUgfSBmcm9tICdAYWNvcmV4L2NvbXBvbmVudHMvY2hlY2stYm94JztcbmltcG9ydCB7IEFYRm9ybU1vZHVsZSB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9mb3JtJztcbmltcG9ydCB7IEFYTGFiZWxNb2R1bGUgfSBmcm9tICdAYWNvcmV4L2NvbXBvbmVudHMvbGFiZWwnO1xuaW1wb3J0IHsgQVhSYWRpb01vZHVsZSB9IGZyb20gJ0BhY29yZXgvY29tcG9uZW50cy9yYWRpbyc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgRm9ybXNNb2R1bGUsXG4gICAgQVhDaGVja0JveE1vZHVsZSxcbiAgICBBWFJhZGlvTW9kdWxlLFxuICAgIEFYTGFiZWxNb2R1bGUsXG4gICAgQVhGb3JtTW9kdWxlLFxuICAgIEFYU2VsZWN0aW9uTGlzdExlZ2FjeUNvbXBvbmVudCxcbiAgXSxcbiAgZXhwb3J0czogW0FYU2VsZWN0aW9uTGlzdExlZ2FjeUNvbXBvbmVudF0sXG4gIHByb3ZpZGVyczogW10sXG59KVxuZXhwb3J0IGNsYXNzIEFYU2VsZWN0aW9uTGlzdExlZ2FjeU1vZHVsZSB7fVxuIl19","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvbXBvbmVudHMtc2VsZWN0aW9uLWxpc3QtbGVnYWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcG9uZW50cy9zZWxlY3Rpb24tbGlzdC1sZWdhY3kvc3JjL2Fjb3JleC1jb21wb25lbnRzLXNlbGV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AAY,YAAY;AACxB,YAAY,8BAA8B,CAAC,EAAE,OAAO,EAAE,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC;AAC1F,IAAI,SAAS,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,EAAE,CAAC,YAAY;AAClK,YAAY,WAAW;AACvB,YAAY,gBAAgB;AAC5B,YAAY,aAAa;AACzB,YAAY,aAAa;AACzB,YAAY,YAAY;AACxB,YAAY,8BAA8B,CAAC,EAAE,CAAC,CAAC;AAC/C;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,QAAQ;AAC1B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,OAAO,EAAE;AAC7B,wBAAwB,YAAY;AACpC,wBAAwB,WAAW;AACnC,wBAAwB,gBAAgB;AACxC,wBAAwB,aAAa;AACrC,wBAAwB,aAAa;AACrC,wBAAwB,YAAY;AACpC,wBAAwB,8BAA8B;AACtD,qBAAqB;AACrB,oBAAoB,OAAO,EAAE,CAAC,8BAA8B,CAAC;AAC7D,oBAAoB,SAAS,EAAE,EAAE;AACjC,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;ACzCb;AACA;AACA;;;;"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { MXSelectionValueComponent, AXComponent, AXFocusableComponent, AXValuableComponent, MXSelectionBridgeService, AX_SELECTION_DATA_TOKEN } from '@acorex/cdk/common';
|
|
2
|
-
import * as i1 from '@acorex/
|
|
2
|
+
import * as i1 from '@acorex/cdk/selection';
|
|
3
|
+
import { AXSelectionCdkModule } from '@acorex/cdk/selection';
|
|
4
|
+
import * as i3 from '@acorex/core/translation';
|
|
3
5
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
4
|
-
import
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import { NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
8
|
import * as i0 from '@angular/core';
|
|
6
9
|
import { input, forwardRef, HostBinding, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
7
10
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
@@ -15,63 +18,31 @@ import { AXRadioModule } from '@acorex/components/radio';
|
|
|
15
18
|
*
|
|
16
19
|
* @category Components
|
|
17
20
|
*/
|
|
18
|
-
//TODO: on parent click (card style) -> checkbox or radio change value
|
|
19
21
|
class AXSelectionListComponent extends MXSelectionValueComponent {
|
|
20
22
|
constructor() {
|
|
21
23
|
super(...arguments);
|
|
22
|
-
/**
|
|
23
|
-
* sets the direction of the component.
|
|
24
|
-
* @param {AXDirection} value
|
|
25
|
-
*/
|
|
26
24
|
this.direction = input('horizontal', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
27
|
-
/**
|
|
28
|
-
* The custom template used for rendering content.
|
|
29
|
-
*
|
|
30
|
-
* @param {TemplateRef<unknown>} customTemplate
|
|
31
|
-
*/
|
|
32
25
|
this.customTemplate = input(...(ngDevMode ? [undefined, { debugName: "customTemplate" }] : []));
|
|
33
|
-
|
|
26
|
+
this.look = input('solid', ...(ngDevMode ? [{ debugName: "look" }] : []));
|
|
34
27
|
this._showControl = true;
|
|
35
|
-
/** @ignore */
|
|
36
28
|
this._items = [];
|
|
37
|
-
/** @ignore */
|
|
38
29
|
this._hintField = 'hint';
|
|
39
|
-
/**
|
|
40
|
-
* Defines the visual appearance of the selection list.
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue 'solid'
|
|
43
|
-
*/
|
|
44
|
-
this.look = 'solid';
|
|
45
30
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
31
|
+
changeState(e) {
|
|
32
|
+
this.commitValue(e, true);
|
|
33
|
+
}
|
|
50
34
|
get showControl() {
|
|
51
35
|
return this._showControl;
|
|
52
36
|
}
|
|
53
|
-
/**
|
|
54
|
-
* @param {boolean} v
|
|
55
|
-
* Sets the visibility state of the control.
|
|
56
|
-
*/
|
|
57
37
|
set showControl(v) {
|
|
58
38
|
this.setOption({
|
|
59
39
|
name: 'showControl',
|
|
60
40
|
value: v,
|
|
61
41
|
});
|
|
62
42
|
}
|
|
63
|
-
/**
|
|
64
|
-
* Gets the list of items.
|
|
65
|
-
* @param {void}
|
|
66
|
-
*/
|
|
67
43
|
get items() {
|
|
68
44
|
return this._items;
|
|
69
45
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Sets the list of items.
|
|
72
|
-
*
|
|
73
|
-
* @param {any[]} v
|
|
74
|
-
*/
|
|
75
46
|
set items(v) {
|
|
76
47
|
this.softClearSelectionCache();
|
|
77
48
|
this.setOption({
|
|
@@ -79,51 +50,27 @@ class AXSelectionListComponent extends MXSelectionValueComponent {
|
|
|
79
50
|
value: v,
|
|
80
51
|
});
|
|
81
52
|
}
|
|
82
|
-
/**
|
|
83
|
-
* Gets the field used for displaying hints.
|
|
84
|
-
*/
|
|
85
53
|
get hintField() {
|
|
86
54
|
return this._hintField;
|
|
87
55
|
}
|
|
88
|
-
/**
|
|
89
|
-
* Sets the field used for displaying hints.
|
|
90
|
-
*
|
|
91
|
-
* @param {string} v
|
|
92
|
-
*/
|
|
93
56
|
set hintField(v) {
|
|
94
57
|
this.setOption({
|
|
95
58
|
name: 'hintField',
|
|
96
59
|
value: v,
|
|
97
60
|
});
|
|
98
61
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Retrieves an item from the list by its key.
|
|
101
|
-
*
|
|
102
|
-
* @param {unknown} key - The key to search for.
|
|
103
|
-
*/
|
|
104
62
|
getItemByKey(key) {
|
|
105
63
|
return this.items.find((c) => c == this.value || c[this.valueField] == key);
|
|
106
64
|
}
|
|
107
|
-
/** @ignore */
|
|
108
|
-
_handleOnItemValueChange(item, e) {
|
|
109
|
-
if (this.readonly || this.disabled) {
|
|
110
|
-
e.preventDefault();
|
|
111
|
-
e.stopPropagation();
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
e.target.checked ? this.selectItems(item) : this.unselectItems(item);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/** @ignore */
|
|
118
65
|
get __hostClass() {
|
|
119
66
|
return [
|
|
120
|
-
`ax-look-${this.look}`,
|
|
67
|
+
`ax-look-${this.look()}`,
|
|
121
68
|
`${this.disabled ? 'ax-state-disabled' : ''}`,
|
|
122
69
|
`${this.readonly ? 'ax-state-readonly' : ''}`,
|
|
123
70
|
];
|
|
124
71
|
}
|
|
125
72
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
126
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.6", type: AXSelectionListComponent, isStandalone: true, selector: "ax-selection-list", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: false, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: false, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: false, isRequired: false, transformFunction: null }, readonlyField: { classPropertyName: "readonlyField", publicName: "readonlyField", isSignal: false, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: false, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: "customTemplate", publicName: "customTemplate", isSignal: true, isRequired: false, transformFunction: null },
|
|
73
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.6", type: AXSelectionListComponent, isStandalone: true, selector: "ax-selection-list", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: false, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: false, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: false, isRequired: false, transformFunction: null }, readonlyField: { classPropertyName: "readonlyField", publicName: "readonlyField", isSignal: false, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: false, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: "customTemplate", publicName: "customTemplate", isSignal: true, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null }, showControl: { classPropertyName: "showControl", publicName: "showControl", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
|
|
127
74
|
{ provide: AXComponent, useExisting: AXSelectionListComponent },
|
|
128
75
|
{ provide: AXFocusableComponent, useExisting: AXSelectionListComponent },
|
|
129
76
|
{ provide: AXValuableComponent, useExisting: AXSelectionListComponent },
|
|
@@ -136,7 +83,7 @@ class AXSelectionListComponent extends MXSelectionValueComponent {
|
|
|
136
83
|
provide: AX_SELECTION_DATA_TOKEN,
|
|
137
84
|
useClass: MXSelectionBridgeService,
|
|
138
85
|
},
|
|
139
|
-
], usesInheritance: true, ngImport: i0, template: "<ul
|
|
86
|
+
], usesInheritance: true, ngImport: i0, template: "<ul\n [selectedKeys]=\"value\"\n (selectedKeysChange)=\"changeState($event)\"\n class=\"ax-{{ direction() }}\"\n axSelectionGroup\n [multiple]=\"multiple\"\n [disable]=\"disabled || readonly\"\n>\n @for (item of items; let i = $index; track item.id) {\n <li\n axSelectionItem\n #a=\"axSelectionItem\"\n [key]=\"item.id\"\n [class.ax-state-selected]=\"a.isActive()\"\n [class.ax-state-disabled]=\"item.disabled\"\n [disable]=\"item.disabled\"\n >\n <label [class.ax-hide-control]=\"!showControl\">\n @if (multiple) {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-checkbox\"\n type=\"checkbox\"\n [checked]=\"a.isActive()\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n } @else {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-radio\"\n type=\"radio\"\n [attr.name]=\"id\"\n [checked]=\"a.isActive()\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n }\n\n @if (customTemplate()) {\n <div>\n <ng-container\n [ngTemplateOutlet]=\"customTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: { data: item } }\"\n >\n </ng-container>\n </div>\n } @else {\n <div>\n <p class=\"ax-title-text\">{{ getDisplayText(item) | translate | async }}</p>\n\n @if (item[hintField]) {\n <p class=\"ax-hint-text\">\n {{ item[hintField] | translate | async }}\n </p>\n }\n </div>\n }\n </label>\n </li>\n }\n</ul>\n<ng-content select=\"ax-validation-rule\"> </ng-content>\n", styles: [".ax-dark ax-selection-list.ax-look-card ul.ax-vertical>li.ax-state-selected label,.ax-dark ax-selection-list.ax-look-card ul.ax-horizontal>li.ax-state-selected label{background-color:rgba(var(--ax-sys-color-primary-darkest-surface),.25)}ax-selection-list ul.ax-horizontal .ax-title-text,ax-selection-list ul.ax-horizontal .ax-hint-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:5rem}ax-selection-list.ax-look-divided ul.ax-vertical li:last-child label,ax-selection-list.ax-look-divided ul.ax-horizontal li:last-child label{border-style:none}ax-selection-list.ax-look-divided ul.ax-vertical>li label{border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-bottom:.875rem}ax-selection-list.ax-look-divided ul.ax-horizontal>li label{border-inline-end-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list.ax-look-card ul{gap:.75rem}ax-selection-list.ax-look-card ul.ax-vertical>li label,ax-selection-list.ax-look-card ul.ax-horizontal>li label{border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list.ax-look-card ul.ax-vertical>li.ax-state-selected label,ax-selection-list.ax-look-card ul.ax-horizontal>li.ax-state-selected label{border-color:rgba(var(--ax-sys-color-primary-surface));background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}ax-selection-list.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-selection-list ul{display:flex;flex-wrap:wrap}ax-selection-list ul.ax-vertical{flex-direction:column}ax-selection-list ul.ax-horizontal{flex-direction:row}ax-selection-list ul li{cursor:pointer;-webkit-user-select:none;user-select:none}ax-selection-list ul li label{display:flex;cursor:pointer;align-items:flex-start;padding:.5rem .75rem}ax-selection-list ul li label.ax-hide-control .ax-checkbox,ax-selection-list ul li label.ax-hide-control .ax-radio{display:none}ax-selection-list ul li label.ax-hide-control>div{margin-inline-start:0px}ax-selection-list ul li label .ax-checkbox,ax-selection-list ul li label .ax-radio{margin-top:.25rem}ax-selection-list ul li label>div{margin-inline-start:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:rgba(var(--ax-sys-color-on-lightest-surface))}ax-selection-list ul li label>div .ax-hint-text{margin-top:.25rem;font-weight:400;color:rgb(var(--ax-sys-color-on-lightest-surface),.75)}ax-selection-list ul li.ax-state-disabled{opacity:.5}ax-selection-list ul li.ax-state-disabled *{cursor:not-allowed}ax-selection-list.ax-state-error{color:rgba(var(--ax-sys-color-danger-surface))}ax-selection-list.ax-state-error .ax-checkbox-checkmark,ax-selection-list.ax-state-error .ax-radio-checkmark{border-color:rgba(var(--ax-sys-color-danger-surface))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXSelectionCdkModule }, { kind: "directive", type: i1.AXSelectionGroupDirective, selector: "[axSelectionGroup]", inputs: ["multiple", "disable", "selectedKeys"], outputs: ["selectedKeysChange"], exportAs: ["axSelectionGroup"] }, { kind: "directive", type: i1.AXSelectionItemDirective, selector: "[axSelectionItem]", inputs: ["key", "disable"], outputs: ["onClick", "disableChange"], exportAs: ["axSelectionItem"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
140
87
|
}
|
|
141
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: AXSelectionListComponent, decorators: [{
|
|
142
89
|
type: Component,
|
|
@@ -166,13 +113,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
166
113
|
provide: AX_SELECTION_DATA_TOKEN,
|
|
167
114
|
useClass: MXSelectionBridgeService,
|
|
168
115
|
},
|
|
169
|
-
], imports: [NgTemplateOutlet,
|
|
170
|
-
}], propDecorators: { direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], customTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTemplate", required: false }] }], showControl: [{
|
|
116
|
+
], imports: [NgTemplateOutlet, AXSelectionCdkModule, CommonModule, AXTranslationModule], template: "<ul\n [selectedKeys]=\"value\"\n (selectedKeysChange)=\"changeState($event)\"\n class=\"ax-{{ direction() }}\"\n axSelectionGroup\n [multiple]=\"multiple\"\n [disable]=\"disabled || readonly\"\n>\n @for (item of items; let i = $index; track item.id) {\n <li\n axSelectionItem\n #a=\"axSelectionItem\"\n [key]=\"item.id\"\n [class.ax-state-selected]=\"a.isActive()\"\n [class.ax-state-disabled]=\"item.disabled\"\n [disable]=\"item.disabled\"\n >\n <label [class.ax-hide-control]=\"!showControl\">\n @if (multiple) {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-checkbox\"\n type=\"checkbox\"\n [checked]=\"a.isActive()\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n } @else {\n <input\n [id]=\"id + '-' + i\"\n class=\"ax-radio\"\n type=\"radio\"\n [attr.name]=\"id\"\n [checked]=\"a.isActive()\"\n [disabled]=\"disabled || item[disabledField] || readonly\"\n />\n }\n\n @if (customTemplate()) {\n <div>\n <ng-container\n [ngTemplateOutlet]=\"customTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: { data: item } }\"\n >\n </ng-container>\n </div>\n } @else {\n <div>\n <p class=\"ax-title-text\">{{ getDisplayText(item) | translate | async }}</p>\n\n @if (item[hintField]) {\n <p class=\"ax-hint-text\">\n {{ item[hintField] | translate | async }}\n </p>\n }\n </div>\n }\n </label>\n </li>\n }\n</ul>\n<ng-content select=\"ax-validation-rule\"> </ng-content>\n", styles: [".ax-dark ax-selection-list.ax-look-card ul.ax-vertical>li.ax-state-selected label,.ax-dark ax-selection-list.ax-look-card ul.ax-horizontal>li.ax-state-selected label{background-color:rgba(var(--ax-sys-color-primary-darkest-surface),.25)}ax-selection-list ul.ax-horizontal .ax-title-text,ax-selection-list ul.ax-horizontal .ax-hint-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:5rem}ax-selection-list.ax-look-divided ul.ax-vertical li:last-child label,ax-selection-list.ax-look-divided ul.ax-horizontal li:last-child label{border-style:none}ax-selection-list.ax-look-divided ul.ax-vertical>li label{border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-bottom:.875rem}ax-selection-list.ax-look-divided ul.ax-horizontal>li label{border-inline-end-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list.ax-look-card ul{gap:.75rem}ax-selection-list.ax-look-card ul.ax-vertical>li label,ax-selection-list.ax-look-card ul.ax-horizontal>li label{border-radius:var(--ax-sys-border-radius);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}ax-selection-list.ax-look-card ul.ax-vertical>li.ax-state-selected label,ax-selection-list.ax-look-card ul.ax-horizontal>li.ax-state-selected label{border-color:rgba(var(--ax-sys-color-primary-surface));background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}ax-selection-list.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-selection-list ul{display:flex;flex-wrap:wrap}ax-selection-list ul.ax-vertical{flex-direction:column}ax-selection-list ul.ax-horizontal{flex-direction:row}ax-selection-list ul li{cursor:pointer;-webkit-user-select:none;user-select:none}ax-selection-list ul li label{display:flex;cursor:pointer;align-items:flex-start;padding:.5rem .75rem}ax-selection-list ul li label.ax-hide-control .ax-checkbox,ax-selection-list ul li label.ax-hide-control .ax-radio{display:none}ax-selection-list ul li label.ax-hide-control>div{margin-inline-start:0px}ax-selection-list ul li label .ax-checkbox,ax-selection-list ul li label .ax-radio{margin-top:.25rem}ax-selection-list ul li label>div{margin-inline-start:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:rgba(var(--ax-sys-color-on-lightest-surface))}ax-selection-list ul li label>div .ax-hint-text{margin-top:.25rem;font-weight:400;color:rgb(var(--ax-sys-color-on-lightest-surface),.75)}ax-selection-list ul li.ax-state-disabled{opacity:.5}ax-selection-list ul li.ax-state-disabled *{cursor:not-allowed}ax-selection-list.ax-state-error{color:rgba(var(--ax-sys-color-danger-surface))}ax-selection-list.ax-state-error .ax-checkbox-checkmark,ax-selection-list.ax-state-error .ax-radio-checkmark{border-color:rgba(var(--ax-sys-color-danger-surface))}\n"] }]
|
|
117
|
+
}], propDecorators: { direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], customTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTemplate", required: false }] }], look: [{ type: i0.Input, args: [{ isSignal: true, alias: "look", required: false }] }], showControl: [{
|
|
171
118
|
type: Input
|
|
172
119
|
}], items: [{
|
|
173
120
|
type: Input
|
|
174
|
-
}], look: [{
|
|
175
|
-
type: Input
|
|
176
121
|
}], __hostClass: [{
|
|
177
122
|
type: HostBinding,
|
|
178
123
|
args: ['class']
|