@shoper/phoenix_design_system 1.1.4-2 → 1.1.4-20
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/form/file_picker/file/file.js +64 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file/file.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker.js +146 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker_constants.js +38 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker_constants.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker_icon.js +30 -0
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker_icon.js.map +1 -0
- package/build/cjs/packages/phoenix/src/components/form/input/input.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/input/input_control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js +1 -5
- package/build/cjs/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select.js +9 -20
- package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select_constants.js +2 -6
- package/build/cjs/packages/phoenix/src/components/form/select/select_constants.js.map +1 -1
- package/build/cjs/packages/phoenix/src/index.js +21 -0
- package/build/cjs/packages/phoenix/src/index.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/file_picker/file/file.d.ts +12 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file/file.js +62 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file/file.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.d.ts +26 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.js +144 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_constants.d.ts +24 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_constants.js +30 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_constants.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_icon.d.ts +7 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_icon.js +28 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_icon.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_types.d.ts +3 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_types.js +2 -0
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_types.js.map +1 -0
- package/build/esm/packages/phoenix/src/components/form/input/input.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js +3 -7
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler_constants.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/select.js +9 -20
- package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.d.ts +1 -5
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.js +2 -6
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.js.map +1 -1
- package/build/esm/packages/phoenix/src/index.d.ts +3 -0
- package/build/esm/packages/phoenix/src/index.js +3 -0
- package/build/esm/packages/phoenix/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../../../../../../../external/tslib/tslib.es6.js');
|
|
6
|
+
var lit = require('lit');
|
|
7
|
+
var decorators = require('lit/decorators');
|
|
8
|
+
var phoenix_light_lit_element = require('../../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
9
|
+
var phoenix_custom_element = require('../../../../core/decorators/phoenix_custom_element.js');
|
|
10
|
+
var file_picker_constants = require('../file_picker_constants.js');
|
|
11
|
+
var control_props_sync_consumer_controller = require('../../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
|
|
12
|
+
|
|
13
|
+
exports.HFile = class HFile extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this._handleClick = (event) => {
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
const removeItemEvent = new CustomEvent(file_picker_constants.FILE_ITEM_EVENT_NAMES.removed, {
|
|
19
|
+
bubbles: true,
|
|
20
|
+
detail: {
|
|
21
|
+
containerId: this.containerId
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
this.dispatchEvent(removeItemEvent);
|
|
25
|
+
};
|
|
26
|
+
new control_props_sync_consumer_controller.ControlPropsSyncConsumerController({
|
|
27
|
+
host: this
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
super.connectedCallback();
|
|
32
|
+
this.classList.add(file_picker_constants.FILE_ITEM_CSS_CLASSES.file);
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return lit.html `
|
|
36
|
+
<span class="${file_picker_constants.FILE_ITEM_CSS_CLASSES.fileName}">${this.name}</span>
|
|
37
|
+
<button class="${file_picker_constants.FILE_ITEM_CSS_CLASSES.fileRemoveButton}" @click="${this._handleClick}">
|
|
38
|
+
${this.removeButtonIconName ? lit.html ` <h-file-picker-icon name="${this.removeButtonIconName}" />` : lit.nothing}
|
|
39
|
+
${this.removeButtonText}
|
|
40
|
+
</button>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
tslib_es6.__decorate([
|
|
45
|
+
decorators.property({ type: String }),
|
|
46
|
+
tslib_es6.__metadata("design:type", String)
|
|
47
|
+
], exports.HFile.prototype, "name", void 0);
|
|
48
|
+
tslib_es6.__decorate([
|
|
49
|
+
decorators.property({ type: String, attribute: 'container-id' }),
|
|
50
|
+
tslib_es6.__metadata("design:type", String)
|
|
51
|
+
], exports.HFile.prototype, "containerId", void 0);
|
|
52
|
+
tslib_es6.__decorate([
|
|
53
|
+
decorators.property({ type: String }),
|
|
54
|
+
tslib_es6.__metadata("design:type", String)
|
|
55
|
+
], exports.HFile.prototype, "removeButtonText", void 0);
|
|
56
|
+
tslib_es6.__decorate([
|
|
57
|
+
decorators.property({ type: String }),
|
|
58
|
+
tslib_es6.__metadata("design:type", String)
|
|
59
|
+
], exports.HFile.prototype, "removeButtonIconName", void 0);
|
|
60
|
+
exports.HFile = tslib_es6.__decorate([
|
|
61
|
+
phoenix_custom_element.phoenixCustomElement('h-file'),
|
|
62
|
+
tslib_es6.__metadata("design:paramtypes", [])
|
|
63
|
+
], exports.HFile);
|
|
64
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,kDAAsD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,146 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
|
|
6
|
+
var lit = require('lit');
|
|
7
|
+
var decorators = require('lit/decorators');
|
|
8
|
+
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
9
|
+
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
10
|
+
var index = require('../../../../external/classnames/index.js');
|
|
11
|
+
var ref_js = require('lit-html/directives/ref.js');
|
|
12
|
+
var file_picker_constants = require('./file_picker_constants.js');
|
|
13
|
+
var control_props_sync_provider_controller = require('../controllers/props_synchronizing/control_props_sync_provider_controller.js');
|
|
14
|
+
var ifDefined = require('lit/directives/if-defined');
|
|
15
|
+
|
|
16
|
+
exports.HFilePicker = class HFilePicker extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this._$fileInputRef = ref_js.createRef();
|
|
20
|
+
this._handleChangeEvent = (event) => {
|
|
21
|
+
this.fileName = this._getFileName(event);
|
|
22
|
+
this.classList.add(file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerHasValue);
|
|
23
|
+
};
|
|
24
|
+
this._getFileName = (event) => {
|
|
25
|
+
const targetElement = event.currentTarget;
|
|
26
|
+
const fileList = targetElement.files;
|
|
27
|
+
return fileList[0].name;
|
|
28
|
+
};
|
|
29
|
+
this._removeFileItem = (event) => {
|
|
30
|
+
const { containerId } = event.detail;
|
|
31
|
+
const $fileInput = this._$fileInputRef.value;
|
|
32
|
+
if (this.controlId === containerId) {
|
|
33
|
+
this.fileName = '';
|
|
34
|
+
if ($fileInput)
|
|
35
|
+
$fileInput.value = '';
|
|
36
|
+
}
|
|
37
|
+
this.classList.remove(file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerHasValue);
|
|
38
|
+
};
|
|
39
|
+
new control_props_sync_provider_controller.ControlPropsSyncProviderController({
|
|
40
|
+
host: this,
|
|
41
|
+
propsToSync: [...Object.values(file_picker_constants.FILE_ITEM_PROPS_TO_SYNC)]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
this._addEventListeners();
|
|
47
|
+
this.classList.add(file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePicker);
|
|
48
|
+
const cssClasses = index['default']({
|
|
49
|
+
[file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerDisabled]: this.disabled,
|
|
50
|
+
[file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerRequired]: this.required,
|
|
51
|
+
[file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerError]: this.error
|
|
52
|
+
});
|
|
53
|
+
if (cssClasses)
|
|
54
|
+
this.classList.add(cssClasses);
|
|
55
|
+
}
|
|
56
|
+
disconnectedCallback() {
|
|
57
|
+
super.disconnectedCallback();
|
|
58
|
+
this._removeEventListeners();
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
super.render();
|
|
62
|
+
return lit.html `
|
|
63
|
+
<input
|
|
64
|
+
${ref_js.ref(this._$fileInputRef)}
|
|
65
|
+
type="file"
|
|
66
|
+
class="${file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerInput}"
|
|
67
|
+
id="${ifDefined.ifDefined(this.controlId)}"
|
|
68
|
+
name="${ifDefined.ifDefined(this.controlName)}"
|
|
69
|
+
value="${ifDefined.ifDefined(this.value)}"
|
|
70
|
+
?disabled="${this.disabled}"
|
|
71
|
+
?required="${this.required}"
|
|
72
|
+
accept="${ifDefined.ifDefined(this.formats)}"
|
|
73
|
+
@change="${this._handleChangeEvent}"
|
|
74
|
+
hidden
|
|
75
|
+
/>
|
|
76
|
+
|
|
77
|
+
${!this.fileName
|
|
78
|
+
? lit.html `<label class="${file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerLabel}" for="${ifDefined.ifDefined(this.controlId)}">
|
|
79
|
+
${this.labelIconName ? lit.html ` <h-file-picker-icon name="${this.labelIconName}" />` : lit.nothing}
|
|
80
|
+
${this.labelText}
|
|
81
|
+
</label>`
|
|
82
|
+
: lit.nothing}
|
|
83
|
+
|
|
84
|
+
${this.fileName ? lit.html `<h-file name="${this.fileName}" container-id="${this.controlId}" />` : lit.nothing}
|
|
85
|
+
`;
|
|
86
|
+
}
|
|
87
|
+
_addEventListeners() {
|
|
88
|
+
document.addEventListener(file_picker_constants.FILE_ITEM_EVENT_NAMES.removed, this._removeFileItem);
|
|
89
|
+
}
|
|
90
|
+
_removeEventListeners() {
|
|
91
|
+
document.removeEventListener(file_picker_constants.FILE_ITEM_EVENT_NAMES.removed, this._removeFileItem);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
tslib_es6.__decorate([
|
|
95
|
+
decorators.property({ type: String, attribute: 'control-id', reflect: true }),
|
|
96
|
+
tslib_es6.__metadata("design:type", String)
|
|
97
|
+
], exports.HFilePicker.prototype, "controlId", void 0);
|
|
98
|
+
tslib_es6.__decorate([
|
|
99
|
+
decorators.property({ type: String, attribute: 'control-name' }),
|
|
100
|
+
tslib_es6.__metadata("design:type", String)
|
|
101
|
+
], exports.HFilePicker.prototype, "controlName", void 0);
|
|
102
|
+
tslib_es6.__decorate([
|
|
103
|
+
decorators.property({ type: Boolean }),
|
|
104
|
+
tslib_es6.__metadata("design:type", Boolean)
|
|
105
|
+
], exports.HFilePicker.prototype, "disabled", void 0);
|
|
106
|
+
tslib_es6.__decorate([
|
|
107
|
+
decorators.property({ type: Boolean }),
|
|
108
|
+
tslib_es6.__metadata("design:type", Boolean)
|
|
109
|
+
], exports.HFilePicker.prototype, "required", void 0);
|
|
110
|
+
tslib_es6.__decorate([
|
|
111
|
+
decorators.property({ type: Boolean }),
|
|
112
|
+
tslib_es6.__metadata("design:type", Boolean)
|
|
113
|
+
], exports.HFilePicker.prototype, "error", void 0);
|
|
114
|
+
tslib_es6.__decorate([
|
|
115
|
+
decorators.property({ type: String }),
|
|
116
|
+
tslib_es6.__metadata("design:type", String)
|
|
117
|
+
], exports.HFilePicker.prototype, "value", void 0);
|
|
118
|
+
tslib_es6.__decorate([
|
|
119
|
+
decorators.property({ type: String, attribute: 'label-text' }),
|
|
120
|
+
tslib_es6.__metadata("design:type", String)
|
|
121
|
+
], exports.HFilePicker.prototype, "labelText", void 0);
|
|
122
|
+
tslib_es6.__decorate([
|
|
123
|
+
decorators.property({ type: String, attribute: 'label-icon-name' }),
|
|
124
|
+
tslib_es6.__metadata("design:type", String)
|
|
125
|
+
], exports.HFilePicker.prototype, "labelIconName", void 0);
|
|
126
|
+
tslib_es6.__decorate([
|
|
127
|
+
decorators.property({ type: String, attribute: 'remove-button-text' }),
|
|
128
|
+
tslib_es6.__metadata("design:type", String)
|
|
129
|
+
], exports.HFilePicker.prototype, "removeButtonText", void 0);
|
|
130
|
+
tslib_es6.__decorate([
|
|
131
|
+
decorators.property({ type: String, attribute: 'remove-button-icon-name' }),
|
|
132
|
+
tslib_es6.__metadata("design:type", String)
|
|
133
|
+
], exports.HFilePicker.prototype, "removeButtonIconName", void 0);
|
|
134
|
+
tslib_es6.__decorate([
|
|
135
|
+
decorators.property({ type: String }),
|
|
136
|
+
tslib_es6.__metadata("design:type", String)
|
|
137
|
+
], exports.HFilePicker.prototype, "formats", void 0);
|
|
138
|
+
tslib_es6.__decorate([
|
|
139
|
+
decorators.state(),
|
|
140
|
+
tslib_es6.__metadata("design:type", String)
|
|
141
|
+
], exports.HFilePicker.prototype, "fileName", void 0);
|
|
142
|
+
exports.HFilePicker = tslib_es6.__decorate([
|
|
143
|
+
phoenix_custom_element.phoenixCustomElement('h-file-picker'),
|
|
144
|
+
tslib_es6.__metadata("design:paramtypes", [])
|
|
145
|
+
], exports.HFilePicker);
|
|
146
|
+
//# sourceMappingURL=file_picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA,oBAAoB,0CAA8C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const baseFileItemClass = 'file';
|
|
6
|
+
const FILE_ITEM_CSS_CLASSES = {
|
|
7
|
+
file: baseFileItemClass,
|
|
8
|
+
fileName: `${baseFileItemClass}__name`,
|
|
9
|
+
fileRemoveButton: `${baseFileItemClass}__remove-button`
|
|
10
|
+
};
|
|
11
|
+
const FILE_ITEM_EVENT_NAMES = {
|
|
12
|
+
removed: 'fileItemRemoved'
|
|
13
|
+
};
|
|
14
|
+
const FILE_ITEM_PROPS_TO_SYNC = {
|
|
15
|
+
removeButtonText: 'removeButtonText',
|
|
16
|
+
removeButtonIconName: 'removeButtonIconName'
|
|
17
|
+
};
|
|
18
|
+
const baseFilePickerControlClass = 'file-picker';
|
|
19
|
+
const FILE_PICKER_CONTROL_CSS_CLASSES = {
|
|
20
|
+
filePicker: baseFilePickerControlClass,
|
|
21
|
+
filePickerDisabled: `${baseFilePickerControlClass}_disabled`,
|
|
22
|
+
filePickerRequired: `${baseFilePickerControlClass}_required`,
|
|
23
|
+
filePickerError: `${baseFilePickerControlClass}_error`,
|
|
24
|
+
filePickerHasValue: `${baseFilePickerControlClass}_has-value`,
|
|
25
|
+
filePickerInput: `${baseFilePickerControlClass}__input`,
|
|
26
|
+
filePickerLabel: `${baseFilePickerControlClass}__label`
|
|
27
|
+
};
|
|
28
|
+
const baseFilePickerIconClass = 'file-picker-icon';
|
|
29
|
+
const FILE_PICKER_ICON_CSS_CLASSES = {
|
|
30
|
+
filePickerIcon: baseFilePickerIconClass
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.FILE_ITEM_CSS_CLASSES = FILE_ITEM_CSS_CLASSES;
|
|
34
|
+
exports.FILE_ITEM_EVENT_NAMES = FILE_ITEM_EVENT_NAMES;
|
|
35
|
+
exports.FILE_ITEM_PROPS_TO_SYNC = FILE_ITEM_PROPS_TO_SYNC;
|
|
36
|
+
exports.FILE_PICKER_CONTROL_CSS_CLASSES = FILE_PICKER_CONTROL_CSS_CLASSES;
|
|
37
|
+
exports.FILE_PICKER_ICON_CSS_CLASSES = FILE_PICKER_ICON_CSS_CLASSES;
|
|
38
|
+
//# sourceMappingURL=file_picker_constants.js.map
|
package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker_constants.js.map
ADDED
|
@@ -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;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,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
|
|
6
|
+
var lit = require('lit');
|
|
7
|
+
var decorators = require('lit/decorators');
|
|
8
|
+
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
9
|
+
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
10
|
+
var icon_constants = require('../../icon/icon_constants.js');
|
|
11
|
+
var file_picker_constants = require('./file_picker_constants.js');
|
|
12
|
+
|
|
13
|
+
exports.HFilePickerIcon = class HFilePickerIcon extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
14
|
+
connectedCallback() {
|
|
15
|
+
super.connectedCallback();
|
|
16
|
+
this.classList.add(file_picker_constants.FILE_PICKER_ICON_CSS_CLASSES.filePickerIcon, icon_constants.ICON_CSS_CLASSES.icon);
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
super.render();
|
|
20
|
+
return lit.html ` <h-icon icon-name=${this.iconName}></h-icon> `;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
tslib_es6.__decorate([
|
|
24
|
+
decorators.property({ type: String }),
|
|
25
|
+
tslib_es6.__metadata("design:type", String)
|
|
26
|
+
], exports.HFilePickerIcon.prototype, "iconName", void 0);
|
|
27
|
+
exports.HFilePickerIcon = tslib_es6.__decorate([
|
|
28
|
+
phoenix_custom_element.phoenixCustomElement('h-file-picker-icon')
|
|
29
|
+
], exports.HFilePickerIcon);
|
|
30
|
+
//# sourceMappingURL=file_picker_icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -7,9 +7,9 @@ var decorators = require('lit/decorators');
|
|
|
7
7
|
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
8
8
|
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
9
9
|
var index = require('../../../../external/classnames/index.js');
|
|
10
|
-
var input_constants = require('./input_constants.js');
|
|
11
10
|
var control_props_sync_controller_constants = require('../controllers/props_synchronizing/control_props_sync_controller_constants.js');
|
|
12
11
|
var control_props_sync_provider_controller = require('../controllers/props_synchronizing/control_props_sync_provider_controller.js');
|
|
12
|
+
var input_constants = require('./input_constants.js');
|
|
13
13
|
|
|
14
14
|
exports.HInput = class HInput extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
15
15
|
constructor() {
|
|
@@ -7,8 +7,8 @@ var lit = require('lit');
|
|
|
7
7
|
var decorators = require('lit/decorators');
|
|
8
8
|
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
9
9
|
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
10
|
-
var input_constants = require('./input_constants.js');
|
|
11
10
|
var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
|
|
11
|
+
var input_constants = require('./input_constants.js');
|
|
12
12
|
var ifDefined_js = require('lit-html/directives/if-defined.js');
|
|
13
13
|
|
|
14
14
|
exports.HInputControl = class HInputControl extends phoenix_light_lit_element.PhoenixLightLitElement {
|
package/build/cjs/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js
CHANGED
|
@@ -32,7 +32,7 @@ exports.HSelectToggler = class HSelectToggler extends phoenix_light_lit_element.
|
|
|
32
32
|
}
|
|
33
33
|
connectedCallback() {
|
|
34
34
|
super.connectedCallback();
|
|
35
|
-
|
|
35
|
+
this.setAttribute('slot', select_constants.SELECT_SLOT_NAMES.input);
|
|
36
36
|
this.setAttribute('role', 'textbox');
|
|
37
37
|
this.classList.add(select_toggler_constants.SELECT_TOGGLER_CSS_CLASSES.selectToggler);
|
|
38
38
|
this._subscribeObserver();
|
|
@@ -75,10 +75,6 @@ exports.HSelectToggler = class HSelectToggler extends phoenix_light_lit_element.
|
|
|
75
75
|
`;
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
tslib_es6.__decorate([
|
|
79
|
-
decorators.property({ attribute: true }),
|
|
80
|
-
tslib_es6.__metadata("design:type", String)
|
|
81
|
-
], exports.HSelectToggler.prototype, "placeholder", void 0);
|
|
82
78
|
tslib_es6.__decorate([
|
|
83
79
|
decorators.state(),
|
|
84
80
|
tslib_es6.__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -13,7 +13,6 @@ var icon = require('../../icon/icon.js');
|
|
|
13
13
|
var select_constants = require('./select_constants.js');
|
|
14
14
|
var observer = require('../../../core/classes/observer/observer.js');
|
|
15
15
|
var observable_directive = require('../../../directives/observable_directive.js');
|
|
16
|
-
var select_toggler = require('./components/toggler/select_toggler.js');
|
|
17
16
|
var context_provider_controller = require('../../../core/context/context_provider_controller.js');
|
|
18
17
|
var ref_js = require('lit-html/directives/ref.js');
|
|
19
18
|
var debounce = require('../../../../../../external/lodash/debounce.js');
|
|
@@ -201,22 +200,13 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
201
200
|
name=${this.controlName}
|
|
202
201
|
offset=${this.offset}
|
|
203
202
|
>
|
|
204
|
-
<h-dropdown-toggler name=${this.controlName}>
|
|
205
|
-
<h-select-toggler>
|
|
206
|
-
<span slot="placeholder">${this.getSlot(select_constants.SELECT_SLOT_NAMES.toggler)}</span>
|
|
207
|
-
</h-select-toggler>
|
|
208
|
-
</h-dropdown-toggler>
|
|
203
|
+
<h-dropdown-toggler name=${this.controlName}> ${this.getSlot(select_constants.SELECT_SLOT_NAMES.input)} </h-dropdown-toggler>
|
|
209
204
|
|
|
210
205
|
<h-dropdown-content class=${select_constants.SELECT_CSS_CLASSES.selectContent} ${ref_js.ref(this._$dropdownContent)} name=${this.controlName}>
|
|
211
|
-
<h-select-close-btn
|
|
212
|
-
class="${select_constants.SELECT_CSS_CLASSES.selectCloseMobileButton}"
|
|
213
|
-
@selectCloseBtn.close=${this._closeSelect}
|
|
214
|
-
></h-select-close-btn>
|
|
215
|
-
|
|
216
|
-
<p class=${select_constants.SELECT_CSS_CLASSES.selectLabel}>${this.getSlot(select_constants.SELECT_SLOT_NAMES.toggler)}</p>
|
|
206
|
+
<h-select-close-btn @selectCloseBtn.close=${this._closeSelect}></h-select-close-btn>
|
|
217
207
|
|
|
218
208
|
${options.length > select_constants.MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
219
|
-
? lit.html
|
|
209
|
+
? lit.html `<h-select-search
|
|
220
210
|
class=${select_constants.SELECT_CSS_CLASSES.selectSearch}
|
|
221
211
|
${ref_js.ref(this._$search)}
|
|
222
212
|
.value=${this._searchValue}
|
|
@@ -235,7 +225,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
235
225
|
`
|
|
236
226
|
: lit.nothing}
|
|
237
227
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
238
|
-
? lit.html
|
|
228
|
+
? lit.html `<div>
|
|
239
229
|
<p class=${select_constants.SELECT_CSS_CLASSES.selectNoResult}>
|
|
240
230
|
Brak wyników dla: <em class=${select_constants.SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
241
231
|
</p>
|
|
@@ -244,10 +234,10 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
244
234
|
${this.multiselect && this._selectController.selectedOptionsCount >= 1
|
|
245
235
|
? lit.html `
|
|
246
236
|
<section class=${select_constants.SELECT_CSS_CLASSES.selectFooter}>
|
|
247
|
-
<button class="
|
|
248
|
-
<h-select-close-btn class="
|
|
249
|
-
>ok
|
|
250
|
-
|
|
237
|
+
<button class="btn btn_secondary btn_xs" @click=${this._clearOptions}>clear</button>
|
|
238
|
+
<h-select-close-btn class="btn btn_primary btn_xs" @selectCloseBtn.close=${this._closeSelect}
|
|
239
|
+
>ok</h-select-close-btn
|
|
240
|
+
>
|
|
251
241
|
</section>
|
|
252
242
|
`
|
|
253
243
|
: lit.nothing}
|
|
@@ -261,8 +251,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
261
251
|
exports.HSelect._components = {
|
|
262
252
|
search: select_search.HSelectSearch,
|
|
263
253
|
icon: icon.HIcon,
|
|
264
|
-
closeBtn: select_close_btn.HSelectCloseBtn
|
|
265
|
-
toggler: select_toggler.HSelectToggler
|
|
254
|
+
closeBtn: select_close_btn.HSelectCloseBtn
|
|
266
255
|
};
|
|
267
256
|
tslib_es6.__decorate([
|
|
268
257
|
decorators_js.property({ type: String }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;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,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,7 +8,7 @@ const SELECT_CONTEXTS = {
|
|
|
8
8
|
};
|
|
9
9
|
const SELECT_SLOT_NAMES = {
|
|
10
10
|
content: 'content',
|
|
11
|
-
|
|
11
|
+
input: 'input'
|
|
12
12
|
};
|
|
13
13
|
const SELECT_EVENT_NAMES = {
|
|
14
14
|
selectOption: 'selectOption.select',
|
|
@@ -27,11 +27,7 @@ const SELECT_CSS_CLASSES = {
|
|
|
27
27
|
selectContent: `${baseSelectClass}__content`,
|
|
28
28
|
selectFooter: `${baseSelectClass}__footer`,
|
|
29
29
|
selectNoResult: `${baseSelectClass}__no-result`,
|
|
30
|
-
selectSearchedPhrase: `${baseSelectClass}__searched-phrase
|
|
31
|
-
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
32
|
-
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
33
|
-
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
34
|
-
selectLabel: `${baseSelectClass}__label`
|
|
30
|
+
selectSearchedPhrase: `${baseSelectClass}__searched-phrase`
|
|
35
31
|
};
|
|
36
32
|
|
|
37
33
|
exports.MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH = MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH;
|
|
@@ -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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -23,6 +23,9 @@ var dropdown_toggler = require('./components/dropdown/dropdown_toggler.js');
|
|
|
23
23
|
var relative_position_controller = require('./controllers/relative_position_controller/relative_position_controller.js');
|
|
24
24
|
var dropdown = require('./components/dropdown/dropdown.js');
|
|
25
25
|
var select = require('./components/form/select/select.js');
|
|
26
|
+
var file = require('./components/form/file_picker/file/file.js');
|
|
27
|
+
var file_picker_icon = require('./components/form/file_picker/file_picker_icon.js');
|
|
28
|
+
var file_picker = require('./components/form/file_picker/file_picker.js');
|
|
26
29
|
var modal = require('./components/modal/modal.js');
|
|
27
30
|
var modal_opener = require('./components/modal/modal_opener.js');
|
|
28
31
|
var modal_body = require('./components/modal/modal_body.js');
|
|
@@ -162,6 +165,24 @@ Object.defineProperty(exports, 'HSelect', {
|
|
|
162
165
|
return select.HSelect;
|
|
163
166
|
}
|
|
164
167
|
});
|
|
168
|
+
Object.defineProperty(exports, 'HFile', {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return file.HFile;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, 'HFilePickerIcon', {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return file_picker_icon.HFilePickerIcon;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, 'HFilePicker', {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return file_picker.HFilePicker;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
165
186
|
Object.defineProperty(exports, 'HModal', {
|
|
166
187
|
enumerable: true,
|
|
167
188
|
get: function () {
|
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,12 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { PhoenixLightLitElement } from "../../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
3
|
+
export declare class HFile extends PhoenixLightLitElement {
|
|
4
|
+
name: string;
|
|
5
|
+
containerId: string;
|
|
6
|
+
removeButtonText: string;
|
|
7
|
+
removeButtonIconName: string;
|
|
8
|
+
constructor();
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
protected render(): TemplateResult;
|
|
11
|
+
private _handleClick;
|
|
12
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { html, nothing } from 'lit';
|
|
3
|
+
import { property } 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 { FILE_ITEM_EVENT_NAMES, FILE_ITEM_CSS_CLASSES } from '../file_picker_constants.js';
|
|
7
|
+
import { ControlPropsSyncConsumerController } from '../../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
8
|
+
|
|
9
|
+
let HFile = class HFile extends PhoenixLightLitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this._handleClick = (event) => {
|
|
13
|
+
event.preventDefault();
|
|
14
|
+
const removeItemEvent = new CustomEvent(FILE_ITEM_EVENT_NAMES.removed, {
|
|
15
|
+
bubbles: true,
|
|
16
|
+
detail: {
|
|
17
|
+
containerId: this.containerId
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
this.dispatchEvent(removeItemEvent);
|
|
21
|
+
};
|
|
22
|
+
new ControlPropsSyncConsumerController({
|
|
23
|
+
host: this
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
this.classList.add(FILE_ITEM_CSS_CLASSES.file);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return html `
|
|
32
|
+
<span class="${FILE_ITEM_CSS_CLASSES.fileName}">${this.name}</span>
|
|
33
|
+
<button class="${FILE_ITEM_CSS_CLASSES.fileRemoveButton}" @click="${this._handleClick}">
|
|
34
|
+
${this.removeButtonIconName ? html ` <h-file-picker-icon name="${this.removeButtonIconName}" />` : nothing}
|
|
35
|
+
${this.removeButtonText}
|
|
36
|
+
</button>
|
|
37
|
+
`;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
__decorate([
|
|
41
|
+
property({ type: String }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], HFile.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
property({ type: String, attribute: 'container-id' }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], HFile.prototype, "containerId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ type: String }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], HFile.prototype, "removeButtonText", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
property({ type: String }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], HFile.prototype, "removeButtonIconName", void 0);
|
|
56
|
+
HFile = __decorate([
|
|
57
|
+
phoenixCustomElement('h-file'),
|
|
58
|
+
__metadata("design:paramtypes", [])
|
|
59
|
+
], HFile);
|
|
60
|
+
|
|
61
|
+
export { HFile };
|
|
62
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,kDAAsD;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,26 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
3
|
+
export declare class HFilePicker extends PhoenixLightLitElement {
|
|
4
|
+
controlId: string;
|
|
5
|
+
controlName: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
required: boolean;
|
|
8
|
+
error: boolean;
|
|
9
|
+
value: string;
|
|
10
|
+
labelText: string;
|
|
11
|
+
labelIconName: string;
|
|
12
|
+
removeButtonText: string;
|
|
13
|
+
removeButtonIconName: string;
|
|
14
|
+
formats: string;
|
|
15
|
+
fileName: string;
|
|
16
|
+
private _$fileInputRef;
|
|
17
|
+
constructor();
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
protected render(): TemplateResult;
|
|
21
|
+
private _addEventListeners;
|
|
22
|
+
private _removeEventListeners;
|
|
23
|
+
private _handleChangeEvent;
|
|
24
|
+
private _getFileName;
|
|
25
|
+
private _removeFileItem;
|
|
26
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { html, nothing } 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 classnames from '../../../../external/classnames/index.js';
|
|
7
|
+
import { createRef, ref } from 'lit-html/directives/ref.js';
|
|
8
|
+
import { FILE_PICKER_CONTROL_CSS_CLASSES, FILE_ITEM_PROPS_TO_SYNC, FILE_ITEM_EVENT_NAMES } from './file_picker_constants.js';
|
|
9
|
+
import { ControlPropsSyncProviderController } from '../controllers/props_synchronizing/control_props_sync_provider_controller.js';
|
|
10
|
+
import { ifDefined } from 'lit/directives/if-defined';
|
|
11
|
+
|
|
12
|
+
let HFilePicker = class HFilePicker extends PhoenixLightLitElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this._$fileInputRef = createRef();
|
|
16
|
+
this._handleChangeEvent = (event) => {
|
|
17
|
+
this.fileName = this._getFileName(event);
|
|
18
|
+
this.classList.add(FILE_PICKER_CONTROL_CSS_CLASSES.filePickerHasValue);
|
|
19
|
+
};
|
|
20
|
+
this._getFileName = (event) => {
|
|
21
|
+
const targetElement = event.currentTarget;
|
|
22
|
+
const fileList = targetElement.files;
|
|
23
|
+
return fileList[0].name;
|
|
24
|
+
};
|
|
25
|
+
this._removeFileItem = (event) => {
|
|
26
|
+
const { containerId } = event.detail;
|
|
27
|
+
const $fileInput = this._$fileInputRef.value;
|
|
28
|
+
if (this.controlId === containerId) {
|
|
29
|
+
this.fileName = '';
|
|
30
|
+
if ($fileInput)
|
|
31
|
+
$fileInput.value = '';
|
|
32
|
+
}
|
|
33
|
+
this.classList.remove(FILE_PICKER_CONTROL_CSS_CLASSES.filePickerHasValue);
|
|
34
|
+
};
|
|
35
|
+
new ControlPropsSyncProviderController({
|
|
36
|
+
host: this,
|
|
37
|
+
propsToSync: [...Object.values(FILE_ITEM_PROPS_TO_SYNC)]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
connectedCallback() {
|
|
41
|
+
super.connectedCallback();
|
|
42
|
+
this._addEventListeners();
|
|
43
|
+
this.classList.add(FILE_PICKER_CONTROL_CSS_CLASSES.filePicker);
|
|
44
|
+
const cssClasses = classnames({
|
|
45
|
+
[FILE_PICKER_CONTROL_CSS_CLASSES.filePickerDisabled]: this.disabled,
|
|
46
|
+
[FILE_PICKER_CONTROL_CSS_CLASSES.filePickerRequired]: this.required,
|
|
47
|
+
[FILE_PICKER_CONTROL_CSS_CLASSES.filePickerError]: this.error
|
|
48
|
+
});
|
|
49
|
+
if (cssClasses)
|
|
50
|
+
this.classList.add(cssClasses);
|
|
51
|
+
}
|
|
52
|
+
disconnectedCallback() {
|
|
53
|
+
super.disconnectedCallback();
|
|
54
|
+
this._removeEventListeners();
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
super.render();
|
|
58
|
+
return html `
|
|
59
|
+
<input
|
|
60
|
+
${ref(this._$fileInputRef)}
|
|
61
|
+
type="file"
|
|
62
|
+
class="${FILE_PICKER_CONTROL_CSS_CLASSES.filePickerInput}"
|
|
63
|
+
id="${ifDefined(this.controlId)}"
|
|
64
|
+
name="${ifDefined(this.controlName)}"
|
|
65
|
+
value="${ifDefined(this.value)}"
|
|
66
|
+
?disabled="${this.disabled}"
|
|
67
|
+
?required="${this.required}"
|
|
68
|
+
accept="${ifDefined(this.formats)}"
|
|
69
|
+
@change="${this._handleChangeEvent}"
|
|
70
|
+
hidden
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
${!this.fileName
|
|
74
|
+
? html `<label class="${FILE_PICKER_CONTROL_CSS_CLASSES.filePickerLabel}" for="${ifDefined(this.controlId)}">
|
|
75
|
+
${this.labelIconName ? html ` <h-file-picker-icon name="${this.labelIconName}" />` : nothing}
|
|
76
|
+
${this.labelText}
|
|
77
|
+
</label>`
|
|
78
|
+
: nothing}
|
|
79
|
+
|
|
80
|
+
${this.fileName ? html `<h-file name="${this.fileName}" container-id="${this.controlId}" />` : nothing}
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
_addEventListeners() {
|
|
84
|
+
document.addEventListener(FILE_ITEM_EVENT_NAMES.removed, this._removeFileItem);
|
|
85
|
+
}
|
|
86
|
+
_removeEventListeners() {
|
|
87
|
+
document.removeEventListener(FILE_ITEM_EVENT_NAMES.removed, this._removeFileItem);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
__decorate([
|
|
91
|
+
property({ type: String, attribute: 'control-id', reflect: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], HFilePicker.prototype, "controlId", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
property({ type: String, attribute: 'control-name' }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], HFilePicker.prototype, "controlName", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
property({ type: Boolean }),
|
|
100
|
+
__metadata("design:type", Boolean)
|
|
101
|
+
], HFilePicker.prototype, "disabled", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
property({ type: Boolean }),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], HFilePicker.prototype, "required", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
property({ type: Boolean }),
|
|
108
|
+
__metadata("design:type", Boolean)
|
|
109
|
+
], HFilePicker.prototype, "error", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
property({ type: String }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], HFilePicker.prototype, "value", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
property({ type: String, attribute: 'label-text' }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], HFilePicker.prototype, "labelText", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
property({ type: String, attribute: 'label-icon-name' }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], HFilePicker.prototype, "labelIconName", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: String, attribute: 'remove-button-text' }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], HFilePicker.prototype, "removeButtonText", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
property({ type: String, attribute: 'remove-button-icon-name' }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], HFilePicker.prototype, "removeButtonIconName", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
property({ type: String }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], HFilePicker.prototype, "formats", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
state(),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], HFilePicker.prototype, "fileName", void 0);
|
|
138
|
+
HFilePicker = __decorate([
|
|
139
|
+
phoenixCustomElement('h-file-picker'),
|
|
140
|
+
__metadata("design:paramtypes", [])
|
|
141
|
+
], HFilePicker);
|
|
142
|
+
|
|
143
|
+
export { HFilePicker };
|
|
144
|
+
//# sourceMappingURL=file_picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA,uBAAuB,0CAA8C;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,24 @@
|
|
|
1
|
+
export declare const FILE_ITEM_CSS_CLASSES: {
|
|
2
|
+
readonly file: "file";
|
|
3
|
+
readonly fileName: "file__name";
|
|
4
|
+
readonly fileRemoveButton: "file__remove-button";
|
|
5
|
+
};
|
|
6
|
+
export declare const FILE_ITEM_EVENT_NAMES: {
|
|
7
|
+
readonly removed: "fileItemRemoved";
|
|
8
|
+
};
|
|
9
|
+
export declare const FILE_ITEM_PROPS_TO_SYNC: {
|
|
10
|
+
readonly removeButtonText: "removeButtonText";
|
|
11
|
+
readonly removeButtonIconName: "removeButtonIconName";
|
|
12
|
+
};
|
|
13
|
+
export declare const FILE_PICKER_CONTROL_CSS_CLASSES: {
|
|
14
|
+
readonly filePicker: "file-picker";
|
|
15
|
+
readonly filePickerDisabled: "file-picker_disabled";
|
|
16
|
+
readonly filePickerRequired: "file-picker_required";
|
|
17
|
+
readonly filePickerError: "file-picker_error";
|
|
18
|
+
readonly filePickerHasValue: "file-picker_has-value";
|
|
19
|
+
readonly filePickerInput: "file-picker__input";
|
|
20
|
+
readonly filePickerLabel: "file-picker__label";
|
|
21
|
+
};
|
|
22
|
+
export declare const FILE_PICKER_ICON_CSS_CLASSES: {
|
|
23
|
+
readonly filePickerIcon: "file-picker-icon";
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const baseFileItemClass = 'file';
|
|
2
|
+
const FILE_ITEM_CSS_CLASSES = {
|
|
3
|
+
file: baseFileItemClass,
|
|
4
|
+
fileName: `${baseFileItemClass}__name`,
|
|
5
|
+
fileRemoveButton: `${baseFileItemClass}__remove-button`
|
|
6
|
+
};
|
|
7
|
+
const FILE_ITEM_EVENT_NAMES = {
|
|
8
|
+
removed: 'fileItemRemoved'
|
|
9
|
+
};
|
|
10
|
+
const FILE_ITEM_PROPS_TO_SYNC = {
|
|
11
|
+
removeButtonText: 'removeButtonText',
|
|
12
|
+
removeButtonIconName: 'removeButtonIconName'
|
|
13
|
+
};
|
|
14
|
+
const baseFilePickerControlClass = 'file-picker';
|
|
15
|
+
const FILE_PICKER_CONTROL_CSS_CLASSES = {
|
|
16
|
+
filePicker: baseFilePickerControlClass,
|
|
17
|
+
filePickerDisabled: `${baseFilePickerControlClass}_disabled`,
|
|
18
|
+
filePickerRequired: `${baseFilePickerControlClass}_required`,
|
|
19
|
+
filePickerError: `${baseFilePickerControlClass}_error`,
|
|
20
|
+
filePickerHasValue: `${baseFilePickerControlClass}_has-value`,
|
|
21
|
+
filePickerInput: `${baseFilePickerControlClass}__input`,
|
|
22
|
+
filePickerLabel: `${baseFilePickerControlClass}__label`
|
|
23
|
+
};
|
|
24
|
+
const baseFilePickerIconClass = 'file-picker-icon';
|
|
25
|
+
const FILE_PICKER_ICON_CSS_CLASSES = {
|
|
26
|
+
filePickerIcon: baseFilePickerIconClass
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { FILE_ITEM_CSS_CLASSES, FILE_ITEM_EVENT_NAMES, FILE_ITEM_PROPS_TO_SYNC, FILE_PICKER_CONTROL_CSS_CLASSES, FILE_PICKER_ICON_CSS_CLASSES };
|
|
30
|
+
//# sourceMappingURL=file_picker_constants.js.map
|
package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker_constants.js.map
ADDED
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
3
|
+
export declare class HFilePickerIcon extends PhoenixLightLitElement {
|
|
4
|
+
iconName: string;
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
protected render(): TemplateResult;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import { property } 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 { ICON_CSS_CLASSES } from '../../icon/icon_constants.js';
|
|
7
|
+
import { FILE_PICKER_ICON_CSS_CLASSES } from './file_picker_constants.js';
|
|
8
|
+
|
|
9
|
+
let HFilePickerIcon = class HFilePickerIcon extends PhoenixLightLitElement {
|
|
10
|
+
connectedCallback() {
|
|
11
|
+
super.connectedCallback();
|
|
12
|
+
this.classList.add(FILE_PICKER_ICON_CSS_CLASSES.filePickerIcon, ICON_CSS_CLASSES.icon);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
super.render();
|
|
16
|
+
return html ` <h-icon icon-name=${this.iconName}></h-icon> `;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
property({ type: String }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], HFilePickerIcon.prototype, "iconName", void 0);
|
|
23
|
+
HFilePickerIcon = __decorate([
|
|
24
|
+
phoenixCustomElement('h-file-picker-icon')
|
|
25
|
+
], HFilePickerIcon);
|
|
26
|
+
|
|
27
|
+
export { HFilePickerIcon };
|
|
28
|
+
//# sourceMappingURL=file_picker_icon.js.map
|
|
@@ -0,0 +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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file_picker_types.js","sourceRoot":"","sources":["../../../../../../../../src/components/form/file_picker/file_picker_types.ts"],"names":[],"mappings":""}
|
|
@@ -3,9 +3,9 @@ import { property } from 'lit/decorators';
|
|
|
3
3
|
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
4
4
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
5
5
|
import classnames from '../../../../external/classnames/index.js';
|
|
6
|
-
import { INPUT_CONTROL_TYPES, INPUT_PROPS_TO_SYNC, INPUT_CONTROL_CSS_CLASSES } from './input_constants.js';
|
|
7
6
|
import { BASE_FORM_CONTROL_PROPS } from '../controllers/props_synchronizing/control_props_sync_controller_constants.js';
|
|
8
7
|
import { ControlPropsSyncProviderController } from '../controllers/props_synchronizing/control_props_sync_provider_controller.js';
|
|
8
|
+
import { INPUT_CONTROL_TYPES, INPUT_PROPS_TO_SYNC, INPUT_CONTROL_CSS_CLASSES } from './input_constants.js';
|
|
9
9
|
|
|
10
10
|
let HInput = class HInput extends PhoenixLightLitElement {
|
|
11
11
|
constructor() {
|
|
@@ -3,8 +3,8 @@ import { html } from 'lit';
|
|
|
3
3
|
import { property } from 'lit/decorators';
|
|
4
4
|
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
|
-
import { INPUT_CONTROL_TYPES, INPUT_CONTROL_EVENTS, INPUT_CONTROL_CSS_CLASSES } from './input_constants.js';
|
|
7
6
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
7
|
+
import { INPUT_CONTROL_TYPES, INPUT_CONTROL_EVENTS, INPUT_CONTROL_CSS_CLASSES } from './input_constants.js';
|
|
8
8
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
9
9
|
|
|
10
10
|
let HInputControl = class HInputControl extends PhoenixLightLitElement {
|
package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { SelectOption } from "../../model/select_option";
|
|
|
3
3
|
import { TemplateResult } from 'lit-html';
|
|
4
4
|
import { BehaviorSubject } from "../../../../../core/classes/behavior_subject/behavior_subject";
|
|
5
5
|
export declare class HSelectToggler extends PhoenixLightLitElement {
|
|
6
|
-
placeholder: string;
|
|
7
6
|
selectedOptions$: BehaviorSubject<SelectOption[]> | null;
|
|
8
7
|
isMultiselect: boolean;
|
|
9
8
|
private _contextConsumer;
|
package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { state } from 'lit/decorators';
|
|
3
3
|
import { PhoenixLightLitElement } from '../../../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
4
4
|
import { phoenixCustomElement } from '../../../../../core/decorators/phoenix_custom_element.js';
|
|
5
5
|
import { SELECT_INPUT_PLACEHOLDER_SLOT_NAME, SELECT_RELATED_COMPONENTS_NAMES } from '../select_components_constatns.js';
|
|
6
6
|
import { html } from 'lit-html';
|
|
7
7
|
import { ContextConsumerController } from '../../../../../core/context/context_consumer_controller.js';
|
|
8
|
-
import { SELECT_EVENT_NAMES, SELECT_CONTEXTS } from '../../select_constants.js';
|
|
8
|
+
import { SELECT_EVENT_NAMES, SELECT_SLOT_NAMES, SELECT_CONTEXTS } from '../../select_constants.js';
|
|
9
9
|
import { Observer } from '../../../../../core/classes/observer/observer.js';
|
|
10
10
|
import { observe } from '../../../../../directives/observable_directive.js';
|
|
11
11
|
import { SELECT_TOGGLER_CSS_CLASSES } from './select_toggler_constants.js';
|
|
@@ -28,7 +28,7 @@ let HSelectToggler = class HSelectToggler extends PhoenixLightLitElement {
|
|
|
28
28
|
}
|
|
29
29
|
connectedCallback() {
|
|
30
30
|
super.connectedCallback();
|
|
31
|
-
|
|
31
|
+
this.setAttribute('slot', SELECT_SLOT_NAMES.input);
|
|
32
32
|
this.setAttribute('role', 'textbox');
|
|
33
33
|
this.classList.add(SELECT_TOGGLER_CSS_CLASSES.selectToggler);
|
|
34
34
|
this._subscribeObserver();
|
|
@@ -71,10 +71,6 @@ let HSelectToggler = class HSelectToggler extends PhoenixLightLitElement {
|
|
|
71
71
|
`;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
__decorate([
|
|
75
|
-
property({ attribute: true }),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], HSelectToggler.prototype, "placeholder", void 0);
|
|
78
74
|
__decorate([
|
|
79
75
|
state(),
|
|
80
76
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,qDAAyD;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -9,7 +9,6 @@ import { HIcon } from '../../icon/icon.js';
|
|
|
9
9
|
import { SELECT_SLOT_NAMES, SELECT_CSS_CLASSES, SELECT_CONTEXTS, SELECT_EVENT_NAMES, MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH, SELECT_RESIZE_DEBOUNCE_TIME } from './select_constants.js';
|
|
10
10
|
import { Observer } from '../../../core/classes/observer/observer.js';
|
|
11
11
|
import { observe } from '../../../directives/observable_directive.js';
|
|
12
|
-
import { HSelectToggler } from './components/toggler/select_toggler.js';
|
|
13
12
|
import { ContextProviderController } from '../../../core/context/context_provider_controller.js';
|
|
14
13
|
import { createRef, ref } from 'lit-html/directives/ref.js';
|
|
15
14
|
import debounce_1 from '../../../../../../external/lodash/debounce.js';
|
|
@@ -197,22 +196,13 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
197
196
|
name=${this.controlName}
|
|
198
197
|
offset=${this.offset}
|
|
199
198
|
>
|
|
200
|
-
<h-dropdown-toggler name=${this.controlName}>
|
|
201
|
-
<h-select-toggler>
|
|
202
|
-
<span slot="placeholder">${this.getSlot(SELECT_SLOT_NAMES.toggler)}</span>
|
|
203
|
-
</h-select-toggler>
|
|
204
|
-
</h-dropdown-toggler>
|
|
199
|
+
<h-dropdown-toggler name=${this.controlName}> ${this.getSlot(SELECT_SLOT_NAMES.input)} </h-dropdown-toggler>
|
|
205
200
|
|
|
206
201
|
<h-dropdown-content class=${SELECT_CSS_CLASSES.selectContent} ${ref(this._$dropdownContent)} name=${this.controlName}>
|
|
207
|
-
<h-select-close-btn
|
|
208
|
-
class="${SELECT_CSS_CLASSES.selectCloseMobileButton}"
|
|
209
|
-
@selectCloseBtn.close=${this._closeSelect}
|
|
210
|
-
></h-select-close-btn>
|
|
211
|
-
|
|
212
|
-
<p class=${SELECT_CSS_CLASSES.selectLabel}>${this.getSlot(SELECT_SLOT_NAMES.toggler)}</p>
|
|
202
|
+
<h-select-close-btn @selectCloseBtn.close=${this._closeSelect}></h-select-close-btn>
|
|
213
203
|
|
|
214
204
|
${options.length > MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
215
|
-
? html
|
|
205
|
+
? html `<h-select-search
|
|
216
206
|
class=${SELECT_CSS_CLASSES.selectSearch}
|
|
217
207
|
${ref(this._$search)}
|
|
218
208
|
.value=${this._searchValue}
|
|
@@ -231,7 +221,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
231
221
|
`
|
|
232
222
|
: nothing}
|
|
233
223
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
234
|
-
? html
|
|
224
|
+
? html `<div>
|
|
235
225
|
<p class=${SELECT_CSS_CLASSES.selectNoResult}>
|
|
236
226
|
Brak wyników dla: <em class=${SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
237
227
|
</p>
|
|
@@ -240,10 +230,10 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
240
230
|
${this.multiselect && this._selectController.selectedOptionsCount >= 1
|
|
241
231
|
? html `
|
|
242
232
|
<section class=${SELECT_CSS_CLASSES.selectFooter}>
|
|
243
|
-
<button class="
|
|
244
|
-
<h-select-close-btn class="
|
|
245
|
-
>ok
|
|
246
|
-
|
|
233
|
+
<button class="btn btn_secondary btn_xs" @click=${this._clearOptions}>clear</button>
|
|
234
|
+
<h-select-close-btn class="btn btn_primary btn_xs" @selectCloseBtn.close=${this._closeSelect}
|
|
235
|
+
>ok</h-select-close-btn
|
|
236
|
+
>
|
|
247
237
|
</section>
|
|
248
238
|
`
|
|
249
239
|
: nothing}
|
|
@@ -257,8 +247,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
257
247
|
HSelect._components = {
|
|
258
248
|
search: HSelectSearch,
|
|
259
249
|
icon: HIcon,
|
|
260
|
-
closeBtn: HSelectCloseBtn
|
|
261
|
-
toggler: HSelectToggler
|
|
250
|
+
closeBtn: HSelectCloseBtn
|
|
262
251
|
};
|
|
263
252
|
__decorate([
|
|
264
253
|
property({ type: String }),
|
|
@@ -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
|
|
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,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,7 +4,7 @@ export declare const SELECT_CONTEXTS: {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const SELECT_SLOT_NAMES: {
|
|
6
6
|
readonly content: "content";
|
|
7
|
-
readonly
|
|
7
|
+
readonly input: "input";
|
|
8
8
|
};
|
|
9
9
|
export declare const SELECT_EVENT_NAMES: {
|
|
10
10
|
readonly selectOption: "selectOption.select";
|
|
@@ -23,8 +23,4 @@ export declare const SELECT_CSS_CLASSES: {
|
|
|
23
23
|
readonly selectFooter: "select__footer";
|
|
24
24
|
readonly selectNoResult: "select__no-result";
|
|
25
25
|
readonly selectSearchedPhrase: "select__searched-phrase";
|
|
26
|
-
readonly selectCloseMobileButton: "select__close-mobile-btn";
|
|
27
|
-
readonly selectClearButton: "select__clear-btn";
|
|
28
|
-
readonly selectCloseButton: "select__close-btn";
|
|
29
|
-
readonly selectLabel: "select__label";
|
|
30
26
|
};
|
|
@@ -4,7 +4,7 @@ const SELECT_CONTEXTS = {
|
|
|
4
4
|
};
|
|
5
5
|
const SELECT_SLOT_NAMES = {
|
|
6
6
|
content: 'content',
|
|
7
|
-
|
|
7
|
+
input: 'input'
|
|
8
8
|
};
|
|
9
9
|
const SELECT_EVENT_NAMES = {
|
|
10
10
|
selectOption: 'selectOption.select',
|
|
@@ -23,11 +23,7 @@ const SELECT_CSS_CLASSES = {
|
|
|
23
23
|
selectContent: `${baseSelectClass}__content`,
|
|
24
24
|
selectFooter: `${baseSelectClass}__footer`,
|
|
25
25
|
selectNoResult: `${baseSelectClass}__no-result`,
|
|
26
|
-
selectSearchedPhrase: `${baseSelectClass}__searched-phrase
|
|
27
|
-
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
28
|
-
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
29
|
-
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
30
|
-
selectLabel: `${baseSelectClass}__label`
|
|
26
|
+
selectSearchedPhrase: `${baseSelectClass}__searched-phrase`
|
|
31
27
|
};
|
|
32
28
|
|
|
33
29
|
export { MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH, SELECT_CONTEXTS, SELECT_CSS_CLASSES, SELECT_EVENT_NAMES, SELECT_RESIZE_DEBOUNCE_TIME, SELECT_SLOT_NAMES };
|
|
@@ -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;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;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -3,6 +3,9 @@ export { HOptionContent } from "./components/form/select/components/option/selec
|
|
|
3
3
|
export { HOptions } from "./components/form/select/components/select_options";
|
|
4
4
|
export { HSelectToggler } from "./components/form/select/components/toggler/select_toggler";
|
|
5
5
|
export { HSelect } from "./components/form/select/select";
|
|
6
|
+
export { HFile } from "./components/form/file_picker/file/file";
|
|
7
|
+
export { HFilePickerIcon } from "./components/form/file_picker/file_picker_icon";
|
|
8
|
+
export { HFilePicker } from "./components/form/file_picker/file_picker";
|
|
6
9
|
export { DEFAULT_SLOT_NAME } from "./core/phoenix_light_lit_element/phoenix_light_lit_elements_constants";
|
|
7
10
|
export { IPhoenixWebComponentClass } from "./global_types";
|
|
8
11
|
export { ContextProviderController } from "./core/context/context_provider_controller";
|
|
@@ -19,6 +19,9 @@ export { HDropdownToggler } from './components/dropdown/dropdown_toggler.js';
|
|
|
19
19
|
export { RelativePositionController } from './controllers/relative_position_controller/relative_position_controller.js';
|
|
20
20
|
export { HDropdown } from './components/dropdown/dropdown.js';
|
|
21
21
|
export { HSelect } from './components/form/select/select.js';
|
|
22
|
+
export { HFile } from './components/form/file_picker/file/file.js';
|
|
23
|
+
export { HFilePickerIcon } from './components/form/file_picker/file_picker_icon.js';
|
|
24
|
+
export { HFilePicker } from './components/form/file_picker/file_picker.js';
|
|
22
25
|
export { HModal } from './components/modal/modal.js';
|
|
23
26
|
export { HModalOpener } from './components/modal/modal_opener.js';
|
|
24
27
|
export { HModalBody } from './components/modal/modal_body.js';
|
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|