@everymatrix/general-multi-select 0.0.1
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/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/general-multi-select-c46368a0.js +208 -0
- package/dist/cjs/general-multi-select.cjs.entry.js +10 -0
- package/dist/cjs/general-multi-select.cjs.js +25 -0
- package/dist/cjs/index-5b495c2d.js +1262 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/general-multi-select/general-multi-select.css +144 -0
- package/dist/collection/components/general-multi-select/general-multi-select.js +319 -0
- package/dist/collection/components/general-multi-select/index.js +1 -0
- package/dist/collection/components/static/dropdown.svg +2 -0
- package/dist/collection/components/static/dropup.svg +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/general-multi-select-1ba05f04.js +206 -0
- package/dist/esm/general-multi-select.entry.js +2 -0
- package/dist/esm/general-multi-select.js +20 -0
- package/dist/esm/index-4b050939.js +1234 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/general-multi-select/app-globals-0f993ce5.js +1 -0
- package/dist/general-multi-select/general-multi-select-1ba05f04.js +1 -0
- package/dist/general-multi-select/general-multi-select.entry.js +1 -0
- package/dist/general-multi-select/general-multi-select.esm.js +1 -0
- package/dist/general-multi-select/index-4b050939.js +2 -0
- package/dist/general-multi-select/index.esm.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/static/dropdown.svg +2 -0
- package/dist/static/dropup.svg +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/packages/stencil/general-multi-select/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/packages/stencil/general-multi-select/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/packages/stencil/general-multi-select/storybook/main.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/packages/stencil/general-multi-select/storybook/preview.d.ts +70 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/tools/plugins/index.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-multi-select/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/general-multi-select/general-multi-select.d.ts +68 -0
- package/dist/types/components/general-multi-select/index.d.ts +1 -0
- package/dist/types/components.d.ts +105 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const generalMultiSelect = require('./general-multi-select-c46368a0.js');
|
|
6
|
+
require('./index-5b495c2d.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.GeneralMultiSelect = generalMultiSelect.GeneralMultiSelect;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5b495c2d.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
+
|
|
8
|
+
const defineCustomElements = async (win, options) => {
|
|
9
|
+
if (typeof window === 'undefined') return undefined;
|
|
10
|
+
await appGlobals.globalScripts();
|
|
11
|
+
return index.bootstrapLazy([["general-multi-select.cjs",[[1,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.setNonce = index.setNonce;
|
|
15
|
+
exports.defineCustomElements = defineCustomElements;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* --- Container --- */
|
|
2
|
+
.multi-select-container {
|
|
3
|
+
position: relative;
|
|
4
|
+
font-family: "Inter", sans-serif;
|
|
5
|
+
margin-top: 4px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.flex-row {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-wrap: nowrap;
|
|
14
|
+
padding: 8px 12px;
|
|
15
|
+
padding-right: 4px;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
background: var(--emw-selector-color-background, #e8ebef);
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* --- Main control (input-like area) --- */
|
|
22
|
+
.control {
|
|
23
|
+
flex: 1;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
flex-wrap: nowrap;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.control:focus-within {
|
|
31
|
+
border-color: var(--emw--color-primary, #fed275);
|
|
32
|
+
box-shadow: 0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* --- Chips --- */
|
|
36
|
+
.chip {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
background: var(--emw--color-gray-50, #f5f5f5);
|
|
40
|
+
color: var(--emw--color-typography, #555);
|
|
41
|
+
border-radius: 4px;
|
|
42
|
+
padding: 2px 8px;
|
|
43
|
+
margin-right: 6px;
|
|
44
|
+
font-size: 0.875rem;
|
|
45
|
+
line-height: 1.2;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
flex: 0 1 auto;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
.chip-text {
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* --- Overflow chip --- */
|
|
57
|
+
.overflow-chip {
|
|
58
|
+
background: var(--emw--color-gray-100, #e6e6e6);
|
|
59
|
+
color: var(--emw--color-gray-300, #333);
|
|
60
|
+
width: 20px;
|
|
61
|
+
text-align: center;
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* --- Remove button inside chips --- */
|
|
66
|
+
.remove-btn {
|
|
67
|
+
background: none;
|
|
68
|
+
border: none;
|
|
69
|
+
font-size: 1rem;
|
|
70
|
+
margin-left: 6px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
color: var(--emw--color-gray-150, #6f6f6f);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.remove-btn:hover {
|
|
76
|
+
color: var(--emw--color-error, red);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* --- Placeholder text --- */
|
|
80
|
+
.placeholder {
|
|
81
|
+
color: var(--emw--color-gray-150, #6f6f6f);
|
|
82
|
+
font-size: 0.875rem;
|
|
83
|
+
padding: 3px 8px;
|
|
84
|
+
line-height: 1.2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* --- Arrow indicator --- */
|
|
88
|
+
.arrow {
|
|
89
|
+
margin-left: auto;
|
|
90
|
+
font-size: 0.8rem;
|
|
91
|
+
width: 20px;
|
|
92
|
+
color: var(--emw--color-gray-150, #6f6f6f);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* --- Dropdown panel --- */
|
|
96
|
+
.dropdown {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: calc(100% + 4px);
|
|
99
|
+
left: 0;
|
|
100
|
+
width: 100%;
|
|
101
|
+
max-height: 240px;
|
|
102
|
+
overflow-y: auto;
|
|
103
|
+
border: 1px solid var(--emw--color-gray-100, #e6e6e6);
|
|
104
|
+
border-radius: 6px;
|
|
105
|
+
background: var(--emw--color-background, #ffffff);
|
|
106
|
+
box-shadow: 0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));
|
|
107
|
+
z-index: 10;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* --- Dropdown items --- */
|
|
111
|
+
.dropdown-item {
|
|
112
|
+
padding: 10px 14px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
font-size: 0.875rem;
|
|
115
|
+
line-height: 1.4;
|
|
116
|
+
transition: background 0.2s;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dropdown-item:hover {
|
|
120
|
+
background: var(--emw--color-gray-100, #f4f5f7);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.dropdown-item.selected {
|
|
124
|
+
background: var(--emw--color-primary-variant, #bae7ff);
|
|
125
|
+
color: var(--emw--color-primary, #0050b3);
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* --- Overflow popover --- */
|
|
130
|
+
.overflow-popover {
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: var(--overflow-top, 0px);
|
|
133
|
+
left: var(--overflow-left, 0px);
|
|
134
|
+
max-width: 200px;
|
|
135
|
+
padding: 12px;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-wrap: wrap;
|
|
138
|
+
gap: 6px;
|
|
139
|
+
border: 1px solid var(--emw--color-gray-100, #d0d5dd);
|
|
140
|
+
border-radius: 6px;
|
|
141
|
+
background: var(--emw--color-background, #ffffff);
|
|
142
|
+
box-shadow: 0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));
|
|
143
|
+
z-index: 20;
|
|
144
|
+
}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { getAssetPath, h } from "@stencil/core";
|
|
2
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
|
+
export class GeneralMultiSelect {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.handleOutsideClick = (e) => {
|
|
6
|
+
// If click happens outside our component root, close both panels
|
|
7
|
+
const path = e.composedPath();
|
|
8
|
+
if (!path.includes(this.el)) {
|
|
9
|
+
this.dropdownOpen = false;
|
|
10
|
+
this.overflowOpen = false;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
this.toggleDropdown = (e) => {
|
|
14
|
+
e.stopPropagation();
|
|
15
|
+
this.dropdownOpen = !this.dropdownOpen;
|
|
16
|
+
this.overflowOpen = false; // close overflow if open
|
|
17
|
+
};
|
|
18
|
+
this.isSelected = (value) => this.selectedValues.includes(value);
|
|
19
|
+
this.selectItem = (item) => {
|
|
20
|
+
if (!this.isSelected(item.value)) {
|
|
21
|
+
this.selectedValues = [...this.selectedValues, item.value];
|
|
22
|
+
this.change.emit(this.selectedValues);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.toggleItem = (item) => {
|
|
26
|
+
if (this.isSelected(item.value)) {
|
|
27
|
+
this.removeItem(item.value);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.selectItem(item);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this.removeItem = (value, e) => {
|
|
34
|
+
e && e.stopPropagation();
|
|
35
|
+
this.selectedValues = this.selectedValues.filter((v) => v !== value);
|
|
36
|
+
this.change.emit(this.selectedValues);
|
|
37
|
+
};
|
|
38
|
+
this.downIcon = getAssetPath('../static/dropdown.svg');
|
|
39
|
+
this.upIcon = getAssetPath('../static/dropup.svg');
|
|
40
|
+
/** Touch-capable device? */
|
|
41
|
+
this.isTouch = 'ontouchstart' in window;
|
|
42
|
+
/** Open overflow popover */
|
|
43
|
+
this.openOverflow = () => {
|
|
44
|
+
if (!this.isTouch) {
|
|
45
|
+
// hover only on non-touch
|
|
46
|
+
this.computePopoverPosition();
|
|
47
|
+
this.overflowOpen = true;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/** Close overflow popover */
|
|
51
|
+
this.closeOverflow = () => {
|
|
52
|
+
if (!this.isTouch) {
|
|
53
|
+
this.overflowOpen = false;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.toggleOverflow = (e) => {
|
|
57
|
+
e.stopPropagation();
|
|
58
|
+
this.computePopoverPosition();
|
|
59
|
+
this.overflowOpen = !this.overflowOpen;
|
|
60
|
+
};
|
|
61
|
+
this.mbSource = undefined;
|
|
62
|
+
this.clientStyling = undefined;
|
|
63
|
+
this.clientStylingUrl = undefined;
|
|
64
|
+
this.options = [];
|
|
65
|
+
this.maxVisibleChips = 2;
|
|
66
|
+
this.placeholder = '';
|
|
67
|
+
this.selectedValues = [];
|
|
68
|
+
this.dropdownOpen = false;
|
|
69
|
+
this.overflowOpen = false;
|
|
70
|
+
this.popoverStyle = { top: '0px', left: '0px' };
|
|
71
|
+
}
|
|
72
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
73
|
+
if (newValue != oldValue) {
|
|
74
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
78
|
+
if (newValue != oldValue) {
|
|
79
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
83
|
+
if (newValue != oldValue) {
|
|
84
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
componentDidLoad() {
|
|
88
|
+
if (this.stylingContainer) {
|
|
89
|
+
if (this.mbSource)
|
|
90
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
91
|
+
if (this.clientStyling)
|
|
92
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
93
|
+
if (this.clientStylingUrl)
|
|
94
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
async clear() {
|
|
98
|
+
this.selectedValues = [];
|
|
99
|
+
this.change.emit(this.selectedValues);
|
|
100
|
+
}
|
|
101
|
+
componentWillLoad() {
|
|
102
|
+
// Listen for clicks anywhere to close panels on outside click
|
|
103
|
+
document.addEventListener('click', this.handleOutsideClick);
|
|
104
|
+
}
|
|
105
|
+
disconnectedCallback() {
|
|
106
|
+
document.removeEventListener('click', this.handleOutsideClick);
|
|
107
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
108
|
+
}
|
|
109
|
+
get selectedOptions() {
|
|
110
|
+
return this.options.filter((o) => this.isSelected(o.value));
|
|
111
|
+
}
|
|
112
|
+
get visibleChips() {
|
|
113
|
+
return this.selectedOptions.slice(0, this.maxVisibleChips);
|
|
114
|
+
}
|
|
115
|
+
get hiddenChips() {
|
|
116
|
+
return this.selectedOptions.slice(this.maxVisibleChips);
|
|
117
|
+
}
|
|
118
|
+
computePopoverPosition() {
|
|
119
|
+
if (this.overflowChipEl && this.el) {
|
|
120
|
+
const { left: overflowChipElLeft } = this.overflowChipEl.getBoundingClientRect();
|
|
121
|
+
const { left: elLeft, height } = this.el.getBoundingClientRect();
|
|
122
|
+
this.popoverStyle = {
|
|
123
|
+
top: `${height - 10}px`,
|
|
124
|
+
left: `${overflowChipElLeft - elLeft}px`
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
render() {
|
|
129
|
+
var _a;
|
|
130
|
+
return (h("div", { key: '50b48397be3ede1907ab2c2abcd1cf2f43f69c13', class: "general-multi-select-container", ref: (el) => (this.stylingContainer = el) }, h("div", { key: '696a1bb1f221f8f5cf290fac040af10e2e5a115e', class: "multi-select-container", ref: (el) => (this.el = el) }, h("div", { key: '9ea92f01787b26d43054573a11896cf65065b073', class: "flex-row", onClick: this.toggleDropdown }, h("div", { key: 'f79720ca3ec383ee7f95b09483698ee18119c79a', class: "control" }, this.visibleChips.map((opt) => (h("span", { class: "chip" }, h("div", { class: "chip-text", title: opt.text }, opt.text), h("div", { class: "remove-btn", onClick: (e) => this.removeItem(opt.value, e) }, "\u00D7")))), this.hiddenChips.length > 0 && (h("span", { key: '25e9e527c33dd7a315dacb10cc51084fe69b9b7e', class: "chip overflow-chip", ref: (el) => (this.overflowChipEl = el), onMouseEnter: this.openOverflow, onMouseLeave: this.closeOverflow, onClick: this.toggleOverflow }, "\u2022\u2022\u2022")), this.selectedValues.length === 0 && h("span", { key: 'b061de660a55f7a0d41ce9aa650108d3f38a9dc0', class: "placeholder" }, this.placeholder)), h("div", { key: 'f83b6517e88b3976cdc18590f8f1233cb2515230', class: "arrow" }, h("img", { key: '1b61a49090237057b98e5ce8a4f7c1e3bfc9d4ba', class: "info-icon", src: this.dropdownOpen ? this.upIcon : this.downIcon, style: { width: '18px' } }))), this.dropdownOpen && (h("div", { key: 'e5b081007bcbdd251ce5ac235c1f19f17852c420', class: "dropdown" }, this.options.map((opt) => (h("div", { class: {
|
|
131
|
+
'dropdown-item': true,
|
|
132
|
+
selected: this.isSelected(opt.value)
|
|
133
|
+
}, onClick: () => this.toggleItem(opt) }, opt.text))))), this.overflowOpen && !!((_a = this.hiddenChips) === null || _a === void 0 ? void 0 : _a.length) && (h("div", { key: 'f8e3289042c69c569bebcd0a40d90f31261c6c12', class: "overflow-popover", style: { top: this.popoverStyle.top, left: this.popoverStyle.left }, onMouseEnter: this.openOverflow, onMouseLeave: this.closeOverflow }, this.hiddenChips.map((opt) => (h("span", { class: "chip" }, h("span", { class: "chip-text", title: opt.text }, opt.text), h("span", { class: "remove-btn", onClick: (e) => this.removeItem(opt.value, e) }, "\u00D7")))))))));
|
|
134
|
+
}
|
|
135
|
+
static get is() { return "general-multi-select"; }
|
|
136
|
+
static get encapsulation() { return "shadow"; }
|
|
137
|
+
static get originalStyleUrls() {
|
|
138
|
+
return {
|
|
139
|
+
"$": ["general-multi-select.scss"]
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
static get styleUrls() {
|
|
143
|
+
return {
|
|
144
|
+
"$": ["general-multi-select.css"]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
static get assetsDirs() { return ["../static"]; }
|
|
148
|
+
static get properties() {
|
|
149
|
+
return {
|
|
150
|
+
"mbSource": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": false,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Client custom styling via message bus"
|
|
163
|
+
},
|
|
164
|
+
"attribute": "mb-source",
|
|
165
|
+
"reflect": true
|
|
166
|
+
},
|
|
167
|
+
"clientStyling": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "string",
|
|
172
|
+
"resolved": "string",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": "Client custom styling via string"
|
|
180
|
+
},
|
|
181
|
+
"attribute": "client-styling",
|
|
182
|
+
"reflect": true
|
|
183
|
+
},
|
|
184
|
+
"clientStylingUrl": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "string",
|
|
189
|
+
"resolved": "string",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "Client custom styling via css file url"
|
|
197
|
+
},
|
|
198
|
+
"attribute": "client-styling-url",
|
|
199
|
+
"reflect": true
|
|
200
|
+
},
|
|
201
|
+
"options": {
|
|
202
|
+
"type": "unknown",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "Array<{ text: string; value: any }>",
|
|
206
|
+
"resolved": "{ text: string; value: any; }[]",
|
|
207
|
+
"references": {
|
|
208
|
+
"Array": {
|
|
209
|
+
"location": "global",
|
|
210
|
+
"id": "global::Array"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "The list of available items. Each item has `text` and `value`."
|
|
219
|
+
},
|
|
220
|
+
"defaultValue": "[]"
|
|
221
|
+
},
|
|
222
|
+
"maxVisibleChips": {
|
|
223
|
+
"type": "number",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "number",
|
|
227
|
+
"resolved": "number",
|
|
228
|
+
"references": {}
|
|
229
|
+
},
|
|
230
|
+
"required": false,
|
|
231
|
+
"optional": false,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": "How many chips to show before hiding extras"
|
|
235
|
+
},
|
|
236
|
+
"attribute": "max-visible-chips",
|
|
237
|
+
"reflect": false,
|
|
238
|
+
"defaultValue": "2"
|
|
239
|
+
},
|
|
240
|
+
"placeholder": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "string",
|
|
245
|
+
"resolved": "string",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Placeholder text when nothing is selected, need to be translated when you use this property"
|
|
253
|
+
},
|
|
254
|
+
"attribute": "placeholder",
|
|
255
|
+
"reflect": false,
|
|
256
|
+
"defaultValue": "''"
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static get states() {
|
|
261
|
+
return {
|
|
262
|
+
"selectedValues": {},
|
|
263
|
+
"dropdownOpen": {},
|
|
264
|
+
"overflowOpen": {},
|
|
265
|
+
"popoverStyle": {}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
static get events() {
|
|
269
|
+
return [{
|
|
270
|
+
"method": "change",
|
|
271
|
+
"name": "change",
|
|
272
|
+
"bubbles": true,
|
|
273
|
+
"cancelable": true,
|
|
274
|
+
"composed": true,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": "Emits when selection changes"
|
|
278
|
+
},
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "any[]",
|
|
281
|
+
"resolved": "any[]",
|
|
282
|
+
"references": {}
|
|
283
|
+
}
|
|
284
|
+
}];
|
|
285
|
+
}
|
|
286
|
+
static get methods() {
|
|
287
|
+
return {
|
|
288
|
+
"clear": {
|
|
289
|
+
"complexType": {
|
|
290
|
+
"signature": "() => Promise<void>",
|
|
291
|
+
"parameters": [],
|
|
292
|
+
"references": {
|
|
293
|
+
"Promise": {
|
|
294
|
+
"location": "global",
|
|
295
|
+
"id": "global::Promise"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"return": "Promise<void>"
|
|
299
|
+
},
|
|
300
|
+
"docs": {
|
|
301
|
+
"text": "",
|
|
302
|
+
"tags": []
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
static get watchers() {
|
|
308
|
+
return [{
|
|
309
|
+
"propName": "clientStyling",
|
|
310
|
+
"methodName": "handleClientStylingChange"
|
|
311
|
+
}, {
|
|
312
|
+
"propName": "clientStylingUrl",
|
|
313
|
+
"methodName": "handleClientStylingUrlChange"
|
|
314
|
+
}, {
|
|
315
|
+
"propName": "mbSource",
|
|
316
|
+
"methodName": "handleMbSourceChange"
|
|
317
|
+
}];
|
|
318
|
+
}
|
|
319
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GeneralMultiSelect } from './general-multi-select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" width="24" height="24" viewBox="0 0 24 24"><path d="M7 14l5-5 5 5z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/general-multi-select';
|