globuswebcomponents 0.9.8 → 0.9.9
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/gb-avatar_45.cjs.entry.js +17 -17
- package/dist/cjs/gb-avatar_45.cjs.entry.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +18 -18
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +2 -2
- package/dist/collection/components/gb-sidebar/gb-sidebar.js.map +1 -1
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-pagination.js +1 -1
- package/dist/components/gb-rich-text.js +2 -2
- package/dist/components/gb-sidebar.js +1 -1
- package/dist/components/gb-sidebar.js.map +1 -1
- package/dist/components/gb-wysiwyg-toolbar.js +1 -1
- package/dist/components/{p-35406f07.js → p-55f450f8.js} +17 -17
- package/dist/components/p-55f450f8.js.map +1 -0
- package/dist/components/{p-b0acdded.js → p-f80c61bb.js} +2 -2
- package/dist/components/{p-b0acdded.js.map → p-f80c61bb.js.map} +1 -1
- package/dist/esm/gb-avatar_45.entry.js +17 -17
- package/dist/esm/gb-avatar_45.entry.js.map +1 -1
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-ebe37817.entry.js → p-bf41505d.entry.js} +2 -2
- package/dist/globuscomponents/{p-ebe37817.entry.js.map → p-bf41505d.entry.js.map} +1 -1
- package/package.json +1 -1
- package/dist/components/p-35406f07.js.map +0 -1
|
@@ -1093,20 +1093,20 @@ const GbInputDropdown = class {
|
|
|
1093
1093
|
this.leadingIcon = '';
|
|
1094
1094
|
this.icon = undefined;
|
|
1095
1095
|
this.items = [
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1096
|
+
// { name: 'Mock Item A', username: 'A', selected: false },
|
|
1097
|
+
// { name: 'Mock Item B', username: 'B', selected: false },
|
|
1098
|
+
// { name: 'Mock Item C', username: 'C', selected: false },
|
|
1099
|
+
// 45, 50, 20, 25, 90, 92, 53,
|
|
1100
|
+
// 'Activated',
|
|
1101
|
+
// 'Deactivated',
|
|
1102
1102
|
];
|
|
1103
1103
|
this.value = [
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1104
|
+
// { name: 'Mock Item A', username: 'A', selected: false },
|
|
1105
|
+
// { name: 'Mock Item B', username: 'B', selected: false },
|
|
1106
|
+
// { name: 'Mock Item C', username: 'C', selected: false },
|
|
1107
|
+
// 45, 50, 20, 25, 90,
|
|
1108
|
+
// 'Activated',
|
|
1109
|
+
// 'Deactivated',
|
|
1110
1110
|
];
|
|
1111
1111
|
this.supportingText = false;
|
|
1112
1112
|
this.color = undefined;
|
|
@@ -1330,18 +1330,18 @@ const GbInputDropdown = class {
|
|
|
1330
1330
|
const emptyStateBackground = index.getAssetPath('assets/empty-state-background.svg');
|
|
1331
1331
|
const illustration = index.getAssetPath('assets/empty-state-no-data.svg');
|
|
1332
1332
|
return [
|
|
1333
|
-
index.h("div", { key: '
|
|
1333
|
+
index.h("div", { key: 'da64b131627d76649b8b1a51c4480fbb8f007c3c', class: `input_dropdown_container ${this.type === 'tags' ? 'tag' : ''}` }, index.h("div", { key: 'ac9c13fd14c7bc91372c4195d7f407948c56af64', class: `input_with_label` }, this.showLabel && (index.h("p", { key: '3751aa0208a54d4bc0476ceffeee0ba93944ca33', class: "text-sm-regular", style: { color: '#4B5565' } }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase())), index.h("div", { key: '31379c3e008f6a35c952001d4146918079a013f3', class: `input_dropdown_div ${this.size} ${this.state} ${this.type === 'tags' ? 'tag' : ''}`, onClick: e => this.toggleDropdown(e) }, this.type === 'icon_leading' && (index.h("svg", { key: '404e6064a61fdb67dbb3e510ce86aaa0852bced2', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, index.h("path", { key: '5df4579b91664282e3c9a4e8eb626ed6afb9d04f', d: "M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z", stroke: "#697586", "stroke-width": "1.66667" }), index.h("path", { key: '243604a40608af05adaaa44900c71a9cc45be5a6', d: "M13.75 5.41667C13.75 7.48774 12.0711 9.16667 10 9.16667C7.92893 9.16667 6.25 7.48774 6.25 5.41667C6.25 3.3456 7.92893 1.66667 10 1.66667C12.0711 1.66667 13.75 3.3456 13.75 5.41667Z", stroke: "#697586", "stroke-width": "1.66667" }))), this.type === 'avatar_leading' && (index.h(index.Fragment, null, this.state === 'default' && (index.h("svg", { key: '07427cbfeb90620ec96a7e58ba47766f479bbbe4', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, index.h("path", { key: '696e5067c7629d8154c8c41d99487e863859b871', d: "M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z", stroke: "#4B5565", "stroke-width": "1.66667" }), index.h("path", { key: '44e602cfab9620fd16caefa6fa817c0d38f2d42b', d: "M13.75 5.41666C13.75 7.48772 12.0711 9.16666 10 9.16666C7.92893 9.16666 6.25 7.48772 6.25 5.41666C6.25 3.34559 7.92893 1.66666 10 1.66666C12.0711 1.66666 13.75 3.34559 13.75 5.41666Z", stroke: "#4B5565", "stroke-width": "1.66667" }))), this.state === 'filled' && (index.h("gb-avatar", { key: '3c75d9c8beed24b1aef0681bc7c3ebfde7a8e61d', size: "xs", text: this.text, color: this.color, "show-border": this.showBorder }, index.h("h1", { key: '0452d8eff691e2f5b16a641e2ec21da339c4ee2c', slot: "initials" }, this.selectedItem.name.split(' ').map(part => part.charAt(0).toUpperCase())))))), this.showLeadingIcon && index.h(index.Fragment, null, this.type === 'search' || this.type === 'tags' ? index.h("div", { class: `icon`, innerHTML: this.leadingIconSvg }) : null), this.type === 'dot_leading' && (index.h("svg", { key: 'e928ffb57ead5371b5ef56f20ba9fc78dda7309d', xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", class: `dot ${this.size}` }, index.h("circle", { key: '67aa0291f689e118e942391cca8aaf6bda60783a', cx: "5", cy: "5", r: "4", fill: "#079455" }))), index.h("div", { key: '7eabb0a9320368bc1f2665ae32a254cfbf3bf405', class: "placeholder" }, index.h(index.Fragment, null, this.state === 'default' && (index.h(index.Fragment, null, this.placeholder && (index.h("p", { key: '46e2fc8e5c1a4579a389d214a5ab81b1d8db175b', class: "text-md-regular", style: { color: '#CDD5DF' } }, this.placeholder)))), this.state === 'filled' && (index.h(index.Fragment, null, index.h("div", { key: 'ab741314786bcfade596b9dbfc4f9a6900ad6560', class: `content` }, index.h("div", { key: 'fb15f8f0f8232847cb10bc995103669f2ed5d54d', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags' ? (index.h(index.Fragment, null, this.value.length === 0 ? (index.h(index.Fragment, null, this.selectedItems.map((item, index$1) => typeof item === 'object' ? (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, index.h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), index.h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
|
|
1334
1334
|
.split(' ')
|
|
1335
1335
|
.map(part => part.charAt(0).toUpperCase())
|
|
1336
1336
|
.join(''))))) : (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, index.h("p", { class: "text-xs-medium" }, item))))))) : (index.h(index.Fragment, null, this.value.map((item, index$1) => typeof item === 'object' ? (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, index.h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), index.h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
|
|
1337
1337
|
.split(' ')
|
|
1338
1338
|
.map(part => part.charAt(0).toUpperCase())
|
|
1339
|
-
.join(''))))) : (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, index.h("p", { class: "text-xs-medium" }, item))))))))) : (index.h(index.Fragment, null, this.value.length === 0 ? ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.name) || this.selectedItem : index.h(index.Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (index.h("div", { key: '
|
|
1339
|
+
.join(''))))) : (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, index.h("p", { class: "text-xs-medium" }, item))))))))) : (index.h(index.Fragment, null, this.value.length === 0 ? ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.name) || this.selectedItem : index.h(index.Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (index.h("div", { key: 'd0afee1bad1201f16d30fef13f1fd766e9329e92', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type !== 'tags' && (index.h(index.Fragment, null, this.value.length === 0 ? (index.h(index.Fragment, null, "@", this.selectedItem.username)) : (index.h(index.Fragment, null, this.value.map((item) => typeof item === 'object' && item.username)))))))))), this.state === 'disabled' && (index.h(index.Fragment, null, index.h("div", { key: 'daf7db1f2d094beb038bd67babec4cea1cd319f7', class: `content` }, index.h("div", { key: '22869ca475247454328b3a3ee00d428dbd4fea63', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags' ? (index.h(index.Fragment, null, this.value.map((item, index$1) => typeof item === 'object' ? (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, index.h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), index.h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
|
|
1340
1340
|
.split(' ')
|
|
1341
1341
|
.map(part => part.charAt(0).toUpperCase())
|
|
1342
|
-
.join(''))))) : (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, index.h("p", { class: "text-xs-medium" }, item))))))) : (index.h(index.Fragment, null, index.h(index.Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (index.h("div", { key: '
|
|
1342
|
+
.join(''))))) : (index.h("div", { class: "added_tag", key: index$1 }, index.h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, index.h("p", { class: "text-xs-medium" }, item))))))) : (index.h(index.Fragment, null, index.h(index.Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (index.h("div", { key: '056c387a557f0343af264eafa2524abb88e8e225', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type !== 'tags' && (index.h(index.Fragment, null, this.value.length === 0 ? (index.h(index.Fragment, null, "@", this.selectedItem.username)) : (index.h(index.Fragment, null, this.value.map((item) => typeof item === 'object' && (index.h(index.Fragment, null, "@", item.username)))))))))))))), this.showHelpIcon && (index.h("div", { key: '566377b60738e0b62b906223459401a1da4189bf', class: `help_icon` }, index.h("gb-help-tooltip", { key: '4bb3c1f1bdf63cd50f8a5ceaf618d4cd6850e6c3', "show-supporting-text": true }, index.h("slot", { key: '61ca253bbe7a7828d93d90278c390d7a3070d46d', name: "tooltip_label", slot: "label" }), index.h("slot", { key: '2508d3bf99138c323ff1a8b5ffd5adcdcfc63c21', name: "tooltip_supporting_text", slot: "supporting_text" })))), this.type !== 'search' && (index.h("div", { key: '467e11b4657145186a05820997cb9ba27ea38a39', class: `dropdown_icon ${this.dropdownOpen ? 'opened' : ''}` }, index.h("svg", { key: 'a39ac24586ef63905a85d6ef70923809887833f0', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: `${this.state}` }, index.h("path", { key: '26dd5d8288787e876a7a453b8a8651182aea8379', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#697586", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))), index.h(index.Fragment, null, this.dropdownOpen && (index.h("div", { key: 'e1dfcefad56a003535bebf6ced0d342ccda37f7e', class: `dropdown_menu ${this.menuPosition}`, ref: el => (this.dropdownRef = el), onClick: e => e.stopPropagation() }, this.showSearchInput && (index.h("div", { key: '0dfe2c5fe5d6a2c8c82113e6e5534fa75e2b0ca1', class: "dropdown_search_field" }, index.h("gb-input-field", { key: 'caa4c9264eff403cd01ebf0f6858e9aa846557e0', size: "sm", value: this.inputValue, "show-close-button": this.inputValue ? true : false, "icon-swap": "assets/search-01.svg", placeholder: "Search banks", type: "icon_leading", labelText: "label", idOfInput: "3", onInputValueChanged: this.searchItems.bind(this) }))), this.searchItem ? (index.h(index.Fragment, null, this.searchItem !== '' && this.searchResults.length > 0 ? (index.h(index.Fragment, null, this.searchResults.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (index.h("p", { slot: "name" }, item))))))) : this.searchItem !== '' && this.searchResults.length === 0 ? (
|
|
1343
1343
|
//Empty state for when there are no search results
|
|
1344
|
-
index.h("div", { class: "empty_state" }, index.h("img", { src: emptyStateBackground, class: "background", alt: "" }), index.h("div", { class: "message_background" }, index.h("img", { src: illustration, alt: "", class: "illustration" }), index.h("p", { class: "message text-md-semi-bold" }, "No results available")))) : null)) : (index.h(index.Fragment, null, this.type === 'tags' ? (index.h(index.Fragment, null, this.selectedItems.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: true, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (index.h("p", { slot: "name" }, item))))), this.unselectedItems.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: false, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (index.h("p", { slot: "name" }, item))))))) : (index.h(index.Fragment, null, this.items.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), color: this.color, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (typeof item !== 'object' && index.h("p", { slot: "name" }, item)))))))))))))), this.showHintText && (index.h("p", { key: '
|
|
1344
|
+
index.h("div", { class: "empty_state" }, index.h("img", { src: emptyStateBackground, class: "background", alt: "" }), index.h("div", { class: "message_background" }, index.h("img", { src: illustration, alt: "", class: "illustration" }), index.h("p", { class: "message text-md-semi-bold" }, "No results available")))) : null)) : (index.h(index.Fragment, null, this.type === 'tags' ? (index.h(index.Fragment, null, this.selectedItems.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: true, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (index.h("p", { slot: "name" }, item))))), this.unselectedItems.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: false, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (index.h("p", { slot: "name" }, item))))))) : (index.h(index.Fragment, null, this.items.map(item => (index.h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: reusableModels.StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), color: this.color, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (index.h(index.Fragment, null, index.h("p", { slot: "name" }, item.name), index.h("p", { slot: "supporting_text" }, "@", item.username))) : (typeof item !== 'object' && index.h("p", { slot: "name" }, item)))))))))))))), this.showHintText && (index.h("p", { key: '57c34f96d4b50d8e9ea990b0913adee79742907d', class: "text-sm-regular", style: { color: '#697586' } }, this.hintText))),
|
|
1345
1345
|
];
|
|
1346
1346
|
}
|
|
1347
1347
|
get el() { return index.getElement(this); }
|
|
@@ -1963,7 +1963,7 @@ const GbSidebar = class {
|
|
|
1963
1963
|
this.eighthItemLabel = '';
|
|
1964
1964
|
this.ninthItemLabel = '';
|
|
1965
1965
|
this.tenthItemLabel = '';
|
|
1966
|
-
this.activeIndex =
|
|
1966
|
+
this.activeIndex = 0;
|
|
1967
1967
|
this.leadingIconSvg = '';
|
|
1968
1968
|
}
|
|
1969
1969
|
async loadIcon(iconName) {
|