@shoper/phoenix_design_system 1.18.8-1 → 1.18.8-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/build/cjs/packages/phoenix/src/components/details/details.js +33 -0
- package/build/cjs/packages/phoenix/src/components/details/details.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/details/details_constants.js +20 -0
- package/build/cjs/packages/phoenix/src/components/details/details_constants.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/details/details_content.js +23 -0
- package/build/cjs/packages/phoenix/src/components/details/details_content.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/details/details_group.js +151 -0
- package/build/cjs/packages/phoenix/src/components/details/details_group.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/details/details_toggler.js +19 -0
- package/build/cjs/packages/phoenix/src/components/details/details_toggler.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/form/select/model/select_option.js +1 -2
- package/build/cjs/packages/phoenix/src/components/form/select/model/select_option.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/model/select_option_mapper.js +2 -3
- package/build/cjs/packages/phoenix/src/components/form/select/model/select_option_mapper.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select.js +13 -85
- package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select_utils.js +2 -22
- package/build/cjs/packages/phoenix/src/components/form/select/select_utils.js.map +1 -1
- package/build/cjs/packages/phoenix/src/index.js +32 -0
- package/build/cjs/packages/phoenix/src/index.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/details/details.d.ts +8 -0
- package/build/esm/packages/phoenix/src/components/details/details.js +31 -0
- package/build/esm/packages/phoenix/src/components/details/details.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/details/details_constants.d.ts +11 -0
- package/build/esm/packages/phoenix/src/components/details/details_constants.js +14 -0
- package/build/esm/packages/phoenix/src/components/details/details_constants.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/details/details_content.d.ts +6 -0
- package/build/esm/packages/phoenix/src/components/details/details_content.js +21 -0
- package/build/esm/packages/phoenix/src/components/details/details_content.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/details/details_group.d.ts +21 -0
- package/build/esm/packages/phoenix/src/components/details/details_group.js +149 -0
- package/build/esm/packages/phoenix/src/components/details/details_group.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/details/details_toggler.d.ts +5 -0
- package/build/esm/packages/phoenix/src/components/details/details_toggler.js +17 -0
- package/build/esm/packages/phoenix/src/components/details/details_toggler.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/details/details_types.d.ts +12 -0
- package/build/esm/packages/phoenix/src/components/details/details_types.js +2 -0
- package/build/esm/packages/phoenix/src/components/details/details_types.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/form/select/model/select_option.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/model/select_option.js +1 -2
- package/build/esm/packages/phoenix/src/components/form/select/model/select_option.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/model/select_option_mapper.js +2 -3
- package/build/esm/packages/phoenix/src/components/form/select/model/select_option_mapper.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/model/select_option_types.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/select.d.ts +0 -5
- package/build/esm/packages/phoenix/src/components/form/select/select.js +13 -85
- package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/select_utils.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/select_utils.js +2 -22
- package/build/esm/packages/phoenix/src/components/form/select/select_utils.js.map +1 -1
- package/build/esm/packages/phoenix/src/index.d.ts +5 -0
- package/build/esm/packages/phoenix/src/index.js +5 -0
- package/build/esm/packages/phoenix/src/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
2
|
+
import './details_types';
|
|
3
|
+
import type { TAccordionMode } from "../accordion/accordion_types";
|
|
4
|
+
export declare class HDetails extends PhoenixLightLitElement {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
mode: TAccordionMode;
|
|
7
|
+
updated(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { property } from 'lit/decorators';
|
|
3
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
4
|
+
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
5
|
+
import { ACCORDION_MODE } from '../accordion/accordion_constants.js';
|
|
6
|
+
import { DETAILS_EVENTS } from './details_constants.js';
|
|
7
|
+
|
|
8
|
+
let HDetails = class HDetails extends PhoenixLightLitElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
this.mode = ACCORDION_MODE.multi;
|
|
13
|
+
}
|
|
14
|
+
updated() {
|
|
15
|
+
this.dispatchEvent(new Event(DETAILS_EVENTS.update));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
property({ type: Boolean, reflect: true }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], HDetails.prototype, "disabled", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
property({ type: String }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], HDetails.prototype, "mode", void 0);
|
|
26
|
+
HDetails = __decorate([
|
|
27
|
+
phoenixCustomElement('h-details')
|
|
28
|
+
], HDetails);
|
|
29
|
+
|
|
30
|
+
export { HDetails };
|
|
31
|
+
//# sourceMappingURL=details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const DETAILS_EVENTS: {
|
|
2
|
+
readonly toggle: "toggle";
|
|
3
|
+
readonly update: "update";
|
|
4
|
+
};
|
|
5
|
+
export declare const DETAILS_CSS_CLASSES: {
|
|
6
|
+
readonly smoothDetails: "smooth-details";
|
|
7
|
+
readonly isOpen: "is-open";
|
|
8
|
+
readonly contentWrapper: "content-wrapper";
|
|
9
|
+
readonly content: "content";
|
|
10
|
+
};
|
|
11
|
+
export declare const DETAILS_TRANSITION_DURATION = 400;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const DETAILS_EVENTS = {
|
|
2
|
+
toggle: 'toggle',
|
|
3
|
+
update: 'update'
|
|
4
|
+
};
|
|
5
|
+
const DETAILS_CSS_CLASSES = {
|
|
6
|
+
smoothDetails: 'smooth-details',
|
|
7
|
+
isOpen: 'is-open',
|
|
8
|
+
contentWrapper: 'content-wrapper',
|
|
9
|
+
content: 'content'
|
|
10
|
+
};
|
|
11
|
+
const DETAILS_TRANSITION_DURATION = 400;
|
|
12
|
+
|
|
13
|
+
export { DETAILS_CSS_CLASSES, DETAILS_EVENTS, DETAILS_TRANSITION_DURATION };
|
|
14
|
+
//# sourceMappingURL=details_constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
3
|
+
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
|
+
|
|
5
|
+
let HDetailsContent = class HDetailsContent extends PhoenixLightLitElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.slot = this.hasAttribute('slot') ? this.slot : 'content';
|
|
9
|
+
}
|
|
10
|
+
connectedCallback() {
|
|
11
|
+
super.connectedCallback();
|
|
12
|
+
this.classList.add('content-wrapper');
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
HDetailsContent = __decorate([
|
|
16
|
+
phoenixCustomElement('h-details-content'),
|
|
17
|
+
__metadata("design:paramtypes", [])
|
|
18
|
+
], HDetailsContent);
|
|
19
|
+
|
|
20
|
+
export { HDetailsContent };
|
|
21
|
+
//# sourceMappingURL=details_content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
2
|
+
import './details_types';
|
|
3
|
+
export declare class HDetailsGroup extends PhoenixLightLitElement {
|
|
4
|
+
opened: boolean;
|
|
5
|
+
private _isDisabled;
|
|
6
|
+
private _mode;
|
|
7
|
+
private _$detailsWrapper;
|
|
8
|
+
private _togglerId;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
private _syncWithDetailsWrapper;
|
|
12
|
+
toggle(details?: HTMLElement): void;
|
|
13
|
+
show(details?: HTMLElement): void;
|
|
14
|
+
hide(details?: HTMLElement): void;
|
|
15
|
+
private _hideOtherDetailsGroups;
|
|
16
|
+
private _dispatchToggleEvent;
|
|
17
|
+
enable(): void;
|
|
18
|
+
disable(): void;
|
|
19
|
+
private _summaryClickHandler;
|
|
20
|
+
protected render(): unknown;
|
|
21
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import { property, state } from 'lit/decorators';
|
|
4
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
5
|
+
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
6
|
+
import v4 from '../../../../../external/uuid/dist/esm-browser/v4.js';
|
|
7
|
+
import { ACCORDION_MODE } from '../accordion/accordion_constants.js';
|
|
8
|
+
import { DETAILS_EVENTS, DETAILS_CSS_CLASSES, DETAILS_TRANSITION_DURATION } from './details_constants.js';
|
|
9
|
+
|
|
10
|
+
let HDetailsGroup = class HDetailsGroup extends PhoenixLightLitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.opened = false;
|
|
14
|
+
this._isDisabled = false;
|
|
15
|
+
this._mode = ACCORDION_MODE.multi;
|
|
16
|
+
this._$detailsWrapper = null;
|
|
17
|
+
this._togglerId = v4();
|
|
18
|
+
this._syncWithDetailsWrapper = () => {
|
|
19
|
+
if (!this._$detailsWrapper)
|
|
20
|
+
return;
|
|
21
|
+
this._mode = this._$detailsWrapper.mode;
|
|
22
|
+
if (this._$detailsWrapper.disabled && !this._isDisabled) {
|
|
23
|
+
this.disable();
|
|
24
|
+
this.show();
|
|
25
|
+
}
|
|
26
|
+
else if (!this._$detailsWrapper.disabled && this._isDisabled) {
|
|
27
|
+
this.enable();
|
|
28
|
+
this.hide();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
this._hideOtherDetailsGroups = () => {
|
|
32
|
+
var _a;
|
|
33
|
+
if (this._isDisabled)
|
|
34
|
+
return;
|
|
35
|
+
(_a = this._$detailsWrapper) === null || _a === void 0 ? void 0 : _a.querySelectorAll('h-details-group').forEach(($detailsGroup) => {
|
|
36
|
+
if ($detailsGroup === this)
|
|
37
|
+
return;
|
|
38
|
+
$detailsGroup.hide();
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
this._summaryClickHandler = (ev) => {
|
|
42
|
+
ev.preventDefault();
|
|
43
|
+
if (this._isDisabled)
|
|
44
|
+
return;
|
|
45
|
+
const $summary = ev.currentTarget;
|
|
46
|
+
const $details = $summary.parentNode;
|
|
47
|
+
this.toggle($details);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
connectedCallback() {
|
|
51
|
+
var _a;
|
|
52
|
+
super.connectedCallback();
|
|
53
|
+
if (this.opened) {
|
|
54
|
+
this.show();
|
|
55
|
+
}
|
|
56
|
+
this._$detailsWrapper = this.closest('h-details');
|
|
57
|
+
(_a = this._$detailsWrapper) === null || _a === void 0 ? void 0 : _a.addEventListener(DETAILS_EVENTS.update, this._syncWithDetailsWrapper);
|
|
58
|
+
this._syncWithDetailsWrapper();
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
var _a;
|
|
62
|
+
super.disconnectedCallback();
|
|
63
|
+
(_a = this._$detailsWrapper) === null || _a === void 0 ? void 0 : _a.removeEventListener(DETAILS_EVENTS.update, this._syncWithDetailsWrapper);
|
|
64
|
+
}
|
|
65
|
+
toggle(details) {
|
|
66
|
+
if (this._mode === ACCORDION_MODE.single)
|
|
67
|
+
this._hideOtherDetailsGroups();
|
|
68
|
+
const $details = details || this.querySelector('details');
|
|
69
|
+
if (!$details)
|
|
70
|
+
return;
|
|
71
|
+
const isOpen = $details.hasAttribute('open');
|
|
72
|
+
isOpen ? this.hide($details) : this.show($details);
|
|
73
|
+
}
|
|
74
|
+
show(details) {
|
|
75
|
+
if (this._mode === ACCORDION_MODE.single)
|
|
76
|
+
this._hideOtherDetailsGroups();
|
|
77
|
+
const $details = details || this.querySelector('details');
|
|
78
|
+
if (!$details)
|
|
79
|
+
return;
|
|
80
|
+
$details.setAttribute('open', '');
|
|
81
|
+
requestAnimationFrame(() => {
|
|
82
|
+
$details.classList.add(DETAILS_CSS_CLASSES.isOpen);
|
|
83
|
+
});
|
|
84
|
+
this._dispatchToggleEvent($details, true);
|
|
85
|
+
}
|
|
86
|
+
hide(details) {
|
|
87
|
+
const $details = details || this.querySelector('details');
|
|
88
|
+
if (!$details)
|
|
89
|
+
return;
|
|
90
|
+
$details.classList.remove(DETAILS_CSS_CLASSES.isOpen);
|
|
91
|
+
setTimeout(() => {
|
|
92
|
+
$details.removeAttribute('open');
|
|
93
|
+
}, DETAILS_TRANSITION_DURATION);
|
|
94
|
+
this._dispatchToggleEvent($details, false);
|
|
95
|
+
}
|
|
96
|
+
_dispatchToggleEvent(details, open) {
|
|
97
|
+
this.emitCustomEvent(DETAILS_EVENTS.toggle, {
|
|
98
|
+
detail: { open, target: details }
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
enable() {
|
|
102
|
+
if (this._isDisabled) {
|
|
103
|
+
this.hide();
|
|
104
|
+
this._isDisabled = false;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
disable() {
|
|
108
|
+
if (!this._isDisabled) {
|
|
109
|
+
this.show();
|
|
110
|
+
this._isDisabled = true;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return html `
|
|
115
|
+
<details
|
|
116
|
+
class="smooth-details"
|
|
117
|
+
aria-disabled="${this._isDisabled ? 'true' : 'false'}"
|
|
118
|
+
aria-labelledby="${this._togglerId}"
|
|
119
|
+
>
|
|
120
|
+
<summary
|
|
121
|
+
id="${this._togglerId}"
|
|
122
|
+
@click=${this._summaryClickHandler}
|
|
123
|
+
>
|
|
124
|
+
${this.getSlot('toggler')}
|
|
125
|
+
</summary>
|
|
126
|
+
|
|
127
|
+
${this.getSlot('content')}
|
|
128
|
+
</details>
|
|
129
|
+
`;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
__decorate([
|
|
133
|
+
property({ type: Boolean, reflect: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], HDetailsGroup.prototype, "opened", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
state(),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], HDetailsGroup.prototype, "_isDisabled", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
state(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], HDetailsGroup.prototype, "_mode", void 0);
|
|
144
|
+
HDetailsGroup = __decorate([
|
|
145
|
+
phoenixCustomElement('h-details-group')
|
|
146
|
+
], HDetailsGroup);
|
|
147
|
+
|
|
148
|
+
export { HDetailsGroup };
|
|
149
|
+
//# sourceMappingURL=details_group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA,eAAe,qDAAyD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
3
|
+
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
|
+
|
|
5
|
+
let HDetailsToggler = class HDetailsToggler extends PhoenixLightLitElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.slot = this.hasAttribute('slot') ? this.slot : 'toggler';
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
HDetailsToggler = __decorate([
|
|
12
|
+
phoenixCustomElement('h-details-toggler'),
|
|
13
|
+
__metadata("design:paramtypes", [])
|
|
14
|
+
], HDetailsToggler);
|
|
15
|
+
|
|
16
|
+
export { HDetailsToggler };
|
|
17
|
+
//# sourceMappingURL=details_toggler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HDetailsGroup } from './details_group';
|
|
2
|
+
import type { HDetailsContent } from './details_content';
|
|
3
|
+
import type { HDetailsToggler } from './details_toggler';
|
|
4
|
+
import type { HDetails } from './details';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'h-details': HDetails;
|
|
8
|
+
'h-details-group': HDetailsGroup;
|
|
9
|
+
'h-details-toggler': HDetailsToggler;
|
|
10
|
+
'h-details-content': HDetailsContent;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details_types.js","sourceRoot":"","sources":["../../../../../../../src/components/details/details_types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
class SelectOption {
|
|
2
|
-
constructor({ selected = false, hidden = false, disabled = false, value, content, inactive = false
|
|
2
|
+
constructor({ selected = false, hidden = false, disabled = false, value, content, inactive = false }) {
|
|
3
3
|
this.value = value;
|
|
4
4
|
this.selected = selected;
|
|
5
5
|
this.hidden = hidden;
|
|
6
6
|
this.disabled = disabled;
|
|
7
7
|
this.content = content;
|
|
8
8
|
this.inactive = inactive;
|
|
9
|
-
this.isPlaceholder = isPlaceholder;
|
|
10
9
|
}
|
|
11
10
|
static create(options) {
|
|
12
11
|
return new SelectOption(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -6,7 +6,7 @@ class SelectOptionMapper {
|
|
|
6
6
|
const $optionContent = $option.querySelector(SELECT_RELATED_COMPONENTS_NAMES.optionContent);
|
|
7
7
|
const optionContentText = ($optionContent === null || $optionContent === void 0 ? void 0 : $optionContent.textContent) || ($optionContent === null || $optionContent === void 0 ? void 0 : $optionContent.innerText);
|
|
8
8
|
const value = $option.getAttribute('value');
|
|
9
|
-
if (value
|
|
9
|
+
if (!value)
|
|
10
10
|
throw new Error('h-option must contain a unique value');
|
|
11
11
|
if (!optionContentText)
|
|
12
12
|
throw new Error('h-options must contains a h-option-content element inside');
|
|
@@ -16,8 +16,7 @@ class SelectOptionMapper {
|
|
|
16
16
|
hidden: $option.hasAttribute('hidden'),
|
|
17
17
|
inactive: $option.hasAttribute('inactive'),
|
|
18
18
|
content: optionContentText,
|
|
19
|
-
selected: $option.hasAttribute('selected')
|
|
20
|
-
isPlaceholder: $option.hasAttribute('placeholder')
|
|
19
|
+
selected: $option.hasAttribute('selected')
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
}
|
package/build/esm/packages/phoenix/src/components/form/select/model/select_option_mapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -23,7 +23,6 @@ export declare class HSelect extends PhoenixLightLitElement {
|
|
|
23
23
|
optionsList?: TSelectOption[];
|
|
24
24
|
noDeselect: boolean;
|
|
25
25
|
assistiveTitleId: string;
|
|
26
|
-
isDevSelectPlaceholderFlagEnabled: boolean;
|
|
27
26
|
translations: Record<string, string>;
|
|
28
27
|
private _selectOptionsId;
|
|
29
28
|
get selectedIndex(): number;
|
|
@@ -54,10 +53,6 @@ export declare class HSelect extends PhoenixLightLitElement {
|
|
|
54
53
|
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
55
54
|
private _updateOptions;
|
|
56
55
|
private _getOptions;
|
|
57
|
-
private _addPlaceholderOptionIfNeeded;
|
|
58
|
-
private get _canAddPlaceholder();
|
|
59
|
-
private _createPlaceholderOption;
|
|
60
|
-
private _injectOptionIntoDOM;
|
|
61
56
|
private _setupEvents;
|
|
62
57
|
private _handleOptionDeselect;
|
|
63
58
|
private _updateOptionsView;
|
|
@@ -39,7 +39,6 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
39
39
|
this.type = SELECT_TYPES.select;
|
|
40
40
|
this.noDeselect = false;
|
|
41
41
|
this.assistiveTitleId = '';
|
|
42
|
-
this.isDevSelectPlaceholderFlagEnabled = false;
|
|
43
42
|
this.translations = {};
|
|
44
43
|
this._selectOptionsId = v4();
|
|
45
44
|
this._searchValue = '';
|
|
@@ -54,7 +53,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
54
53
|
const $options = this._getOptions();
|
|
55
54
|
this._$options = $options.reduce((acc, $option) => {
|
|
56
55
|
const value = $option.getAttribute('value');
|
|
57
|
-
if (value
|
|
56
|
+
if (!value)
|
|
58
57
|
throw Error('Select option must hava a value');
|
|
59
58
|
if (acc.has(value))
|
|
60
59
|
throw Error('Select options must hava a unique values.');
|
|
@@ -111,24 +110,12 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
111
110
|
if (!this.$searchLabel)
|
|
112
111
|
return;
|
|
113
112
|
(_a = this.$searchLabel.querySelector(`[id="value-label"]`)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
valueLabelSpan.className = 'sr-only';
|
|
121
|
-
valueLabelSpan.textContent = options.reduce((totalSelectedContent, currentOption) => totalSelectedContent + currentOption.content, '');
|
|
122
|
-
this.$searchLabel.appendChild(valueLabelSpan);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
this.$searchLabel.innerHTML = `
|
|
126
|
-
${(_b = this.$searchLabel) === null || _b === void 0 ? void 0 : _b.innerHTML}
|
|
127
|
-
<span id="value-label" class="sr-only">
|
|
128
|
-
${options.reduce((totalSelectedContent, currentOption) => (totalSelectedContent += currentOption.content), '')}
|
|
129
|
-
</span>
|
|
130
|
-
`;
|
|
131
|
-
}
|
|
113
|
+
this.$searchLabel.innerHTML = `
|
|
114
|
+
${(_b = this.$searchLabel) === null || _b === void 0 ? void 0 : _b.innerHTML}
|
|
115
|
+
<span id="value-label" class="sr-only">
|
|
116
|
+
${options.reduce((totalSelectedContent, currentOption) => (totalSelectedContent += currentOption.content), '')}
|
|
117
|
+
</span>
|
|
118
|
+
`;
|
|
132
119
|
};
|
|
133
120
|
this._handleOptionClicked = ({ detail }) => {
|
|
134
121
|
if (!(detail === null || detail === void 0 ? void 0 : detail.$option))
|
|
@@ -226,9 +213,6 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
226
213
|
}
|
|
227
214
|
if (changedProperties.has('optionsList')) {
|
|
228
215
|
this._updateOptions();
|
|
229
|
-
if (this.isDevSelectPlaceholderFlagEnabled) {
|
|
230
|
-
this._addPlaceholderOptionIfNeeded();
|
|
231
|
-
}
|
|
232
216
|
}
|
|
233
217
|
if (this._$optionsList.value) {
|
|
234
218
|
(_a = this.listBoxController) === null || _a === void 0 ? void 0 : _a.hostDisconnected();
|
|
@@ -277,9 +261,6 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
277
261
|
this._selectedOptionsAriaObserver = new Observer((selectedOptions) => this._updateLabelAria(selectedOptions));
|
|
278
262
|
this._selectController.selectedOptions$.subscribe(this._selectedOptionsAriaObserver);
|
|
279
263
|
this._updateOptions();
|
|
280
|
-
if (this.isDevSelectPlaceholderFlagEnabled) {
|
|
281
|
-
this._addPlaceholderOptionIfNeeded();
|
|
282
|
-
}
|
|
283
264
|
this._setupEvents();
|
|
284
265
|
}
|
|
285
266
|
attributeChangedCallback(name, _old, value) {
|
|
@@ -292,50 +273,6 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
292
273
|
this.disabled ? this.classList.add(SELECT_CSS_CLASSES.selectDisabled) : this.classList.remove(SELECT_CSS_CLASSES.selectDisabled);
|
|
293
274
|
}
|
|
294
275
|
}
|
|
295
|
-
_addPlaceholderOptionIfNeeded() {
|
|
296
|
-
if (!this._canAddPlaceholder)
|
|
297
|
-
return;
|
|
298
|
-
const $placeholderOption = this._createPlaceholderOption();
|
|
299
|
-
this._injectOptionIntoDOM($placeholderOption);
|
|
300
|
-
this._updateOptions();
|
|
301
|
-
}
|
|
302
|
-
get _canAddPlaceholder() {
|
|
303
|
-
var _a;
|
|
304
|
-
if (this.multiple || this.required)
|
|
305
|
-
return false;
|
|
306
|
-
const hasSelection = (((_a = this._selectController.selectedOptions$.getValue()) === null || _a === void 0 ? void 0 : _a.length) || 0) > 0;
|
|
307
|
-
if (hasSelection)
|
|
308
|
-
return false;
|
|
309
|
-
const hasExistingPlaceholder = !!this.querySelector('h-option[placeholder]');
|
|
310
|
-
return !hasExistingPlaceholder;
|
|
311
|
-
}
|
|
312
|
-
_createPlaceholderOption() {
|
|
313
|
-
const $option = document.createElement('h-option');
|
|
314
|
-
$option.setAttribute('value', '');
|
|
315
|
-
$option.setAttribute('selected', 'true');
|
|
316
|
-
$option.setAttribute('placeholder', 'true');
|
|
317
|
-
$option.setAttribute('slot', SELECT_SLOT_NAMES.content);
|
|
318
|
-
const $content = document.createElement(SELECT_RELATED_COMPONENTS_NAMES.optionContent);
|
|
319
|
-
if (typeof this.$placeholder === 'string') {
|
|
320
|
-
$content.textContent = this.$placeholder;
|
|
321
|
-
}
|
|
322
|
-
else if (this.$placeholder instanceof Node) {
|
|
323
|
-
Array.from(this.$placeholder.childNodes).forEach(node => {
|
|
324
|
-
$content.appendChild(node.cloneNode(true));
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
$option.appendChild($content);
|
|
328
|
-
return $option;
|
|
329
|
-
}
|
|
330
|
-
_injectOptionIntoDOM($option) {
|
|
331
|
-
const $firstOption = this.querySelector(SELECT_RELATED_COMPONENTS_NAMES.option);
|
|
332
|
-
if ($firstOption) {
|
|
333
|
-
this.insertBefore($option, $firstOption);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
this.appendChild($option);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
276
|
_setupEvents() {
|
|
340
277
|
this.addEventListener(SELECT_EVENT_NAMES.deselectOption, this._handleOptionDeselect);
|
|
341
278
|
this.addEventListener(SELECT_CLOSE_BTN_EVENT_NAMES.close, this._closeSelect);
|
|
@@ -416,7 +353,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
416
353
|
return fragment;
|
|
417
354
|
}
|
|
418
355
|
render() {
|
|
419
|
-
var _a, _b, _c, _d, _e
|
|
356
|
+
var _a, _b, _c, _d, _e;
|
|
420
357
|
const options = (_a = this._selectController.options$.getValue()) !== null && _a !== void 0 ? _a : [];
|
|
421
358
|
const isSearchEnabled = !this.searchDisabled && options.length > MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH;
|
|
422
359
|
return html `
|
|
@@ -440,7 +377,6 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
440
377
|
aria-activedescendant
|
|
441
378
|
role="combobox"
|
|
442
379
|
aria-controls="${this._selectOptionsId}"
|
|
443
|
-
aria-labelledby="${this.assistiveTitleId}"
|
|
444
380
|
>
|
|
445
381
|
${this.getSlot(SELECT_SLOT_NAMES.toggler)}
|
|
446
382
|
</h-dropdown-toggler>
|
|
@@ -453,18 +389,14 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
453
389
|
>
|
|
454
390
|
<h-select-close-btn class="${SELECT_CSS_CLASSES.selectCloseMobileButton}" @close=${this._closeSelect}></h-select-close-btn>
|
|
455
391
|
|
|
456
|
-
<div class=${SELECT_CSS_CLASSES.selectLabel}>
|
|
457
|
-
${this.isDevSelectPlaceholderFlagEnabled ?
|
|
458
|
-
(_b = this.$searchLabel) === null || _b === void 0 ? void 0 : _b.cloneNode(true) :
|
|
459
|
-
html `${this._getClonedPlaceholderElement()}`}
|
|
460
|
-
</div>
|
|
392
|
+
<div class=${SELECT_CSS_CLASSES.selectLabel}>${html `${this._getClonedPlaceholderElement()}`}</div>
|
|
461
393
|
|
|
462
394
|
${isSearchEnabled
|
|
463
395
|
? html ` <h-select-search
|
|
464
396
|
class=${SELECT_CSS_CLASSES.selectSearch}
|
|
465
397
|
${ref(this.$search)}
|
|
466
398
|
.value=${this._searchValue}
|
|
467
|
-
placeholder=${((
|
|
399
|
+
placeholder=${((_b = this.translations) === null || _b === void 0 ? void 0 : _b.search) || SELECT_DEFAULT_TRANSLATIONS.SEARCH}
|
|
468
400
|
@search=${this._handleSearch}
|
|
469
401
|
></h-select-search>`
|
|
470
402
|
: nothing}
|
|
@@ -485,7 +417,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
485
417
|
${this._searchNoResult()
|
|
486
418
|
? html ` <div>
|
|
487
419
|
<p class=${SELECT_CSS_CLASSES.selectNoResult}>
|
|
488
|
-
${((
|
|
420
|
+
${((_c = this.translations) === null || _c === void 0 ? void 0 : _c.noResultsFor) || SELECT_DEFAULT_TRANSLATIONS.NO_RESULTS_FOR}:
|
|
489
421
|
<em class=${SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
490
422
|
</p>
|
|
491
423
|
</div>`
|
|
@@ -494,11 +426,11 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
494
426
|
? html `
|
|
495
427
|
<section class=${SELECT_CSS_CLASSES.selectFooter}>
|
|
496
428
|
<button class="${SELECT_CSS_CLASSES.selectClearButton}" @click=${this._clearOptions}>
|
|
497
|
-
${((
|
|
429
|
+
${((_d = this.translations) === null || _d === void 0 ? void 0 : _d.reset) || SELECT_DEFAULT_TRANSLATIONS.RESET}
|
|
498
430
|
</button>
|
|
499
431
|
<h-select-close-btn class="${SELECT_CSS_CLASSES.selectCloseButton}" @close=${this._closeSelect}
|
|
500
432
|
><span slot=${SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME}
|
|
501
|
-
>${((
|
|
433
|
+
>${((_e = this.translations) === null || _e === void 0 ? void 0 : _e.choose) || SELECT_DEFAULT_TRANSLATIONS.CHOOSE}</span
|
|
502
434
|
>
|
|
503
435
|
</h-select-close-btn>
|
|
504
436
|
</section>
|
|
@@ -572,10 +504,6 @@ __decorate([
|
|
|
572
504
|
property({ type: String, attribute: 'assistive-title-id' }),
|
|
573
505
|
__metadata("design:type", String)
|
|
574
506
|
], HSelect.prototype, "assistiveTitleId", void 0);
|
|
575
|
-
__decorate([
|
|
576
|
-
property({ type: Boolean, attribute: 'is-dev-select-placeholder-flag-enabled' }),
|
|
577
|
-
__metadata("design:type", Boolean)
|
|
578
|
-
], HSelect.prototype, "isDevSelectPlaceholderFlagEnabled", void 0);
|
|
579
507
|
__decorate([
|
|
580
508
|
property({
|
|
581
509
|
converter: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,wDAA4D;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,wDAA4D;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -8,5 +8,4 @@ export declare class SelectControlUtils {
|
|
|
8
8
|
static appendHTMLOption($option: HOption, $list: HOptions, position?: number): void;
|
|
9
9
|
static getFirstIndexSelectedOption(options: HOption[]): number;
|
|
10
10
|
static getLastIndexOfSelectedOption(options: HOption[]): number;
|
|
11
|
-
static extractSelectValue($select: HTMLSelectElement): string | string[] | null | undefined;
|
|
12
11
|
}
|