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.
@@ -1 +1 @@
1
- {"file":"p-b0acdded.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,kgpEAAkgpE,CAAC;AAC/hpE,+BAAe,mBAAmB;;MCOrB,gBAAgB;;;;;;;;;;;;;;;;;IAazB,MAAM;QACF,QACI,4DAAK,KAAK,EAAE,IAAI,CAAC,UAAU,IACtB,IAAI,CAAC,YAAY,KACd,0EAAmB,IAAI,EAAC,IAAI,GAAqB,CACpD,EACD,4DAAK,KAAK,EAAC,OAAO,IACb,IAAI,CAAC,IAAI,KACN,+EAAwB,IAAI,EAAC,MAAM,GAA0B,CAChE,EACA,IAAI,CAAC,MAAM,KACR,+EAAwB,IAAI,EAAC,QAAQ,GAA0B,CAClE,EACA,IAAI,CAAC,EAAE,KACJ,+EAAwB,IAAI,EAAC,IAAI,GAA0B,CAC9D,EACA,IAAI,CAAC,EAAE,KACJ,+EAAwB,IAAI,EAAC,IAAI,GAA0B,CAC9D,EACA,IAAI,CAAC,KAAK,KACP,+EAAwB,IAAI,EAAC,OAAO,GAA0B,CACjE,EACA,IAAI,CAAC,IAAI,KACN,+EAAwB,IAAI,EAAC,MAAM,GAA0B,CAChE,EACA,IAAI,CAAC,KAAK,KACP,+EAAwB,IAAI,EAAC,OAAO,GAA0B,CACjE,EACA,IAAI,CAAC,UAAU,KACZ,+EAAwB,IAAI,EAAC,aAAa,GAA0B,CACvE,EACA,IAAI,CAAC,UAAU,KACZ,+EAAwB,IAAI,EAAC,cAAc,GAA0B,CACxE,CACC,CACJ,EACT;KACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.css?tag=gb-wysiwyg-toolbar&encapsulation=shadow","src/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.tsx"],"sourcesContent":["@import './../../global/global.css';","import { Component, Prop, h } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: 'gb-wysiwyg-toolbar',\r\n styleUrl: 'gb-WYSIWYG-toolbar.css',\r\n shadow: true\r\n})\r\n\r\nexport class GbWysiwygToolbar {\r\n @Prop() breakpoint: 'desktop' | 'mobile';\r\n @Prop() fontSelector: boolean;\r\n @Prop() bold: boolean;\r\n @Prop() italic: boolean;\r\n @Prop() h1: boolean;\r\n @Prop() h2: boolean;\r\n @Prop() quote: boolean;\r\n @Prop() link: boolean;\r\n @Prop() image: boolean;\r\n @Prop() bulletList: boolean;\r\n @Prop() numberList: boolean;\r\n\r\n render() {\r\n return (\r\n <div class={this.breakpoint}>\r\n {this.fontSelector && (\r\n <gb-input-dropdown size=\"sm\"></gb-input-dropdown>\r\n )}\r\n <div class=\"icons\">\r\n {this.bold && (\r\n <gb-wysiwyg-editor-icon type=\"bold\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.italic && ( \r\n <gb-wysiwyg-editor-icon type=\"italic\"></gb-wysiwyg-editor-icon>\r\n )} \r\n {this.h1 &&(\r\n <gb-wysiwyg-editor-icon type=\"H1\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.h2 && (\r\n <gb-wysiwyg-editor-icon type=\"H2\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.quote && (\r\n <gb-wysiwyg-editor-icon type=\"quote\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.link && (\r\n <gb-wysiwyg-editor-icon type=\"link\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.image && (\r\n <gb-wysiwyg-editor-icon type=\"photo\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.bulletList && (\r\n <gb-wysiwyg-editor-icon type=\"list_bullet\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.numberList && (\r\n <gb-wysiwyg-editor-icon type=\"list_numbers\"></gb-wysiwyg-editor-icon>\r\n )}\r\n </div>\r\n </div>\r\n )\r\n }\r\n}"],"version":3}
1
+ {"file":"p-f80c61bb.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,kgpEAAkgpE,CAAC;AAC/hpE,+BAAe,mBAAmB;;MCOrB,gBAAgB;;;;;;;;;;;;;;;;;IAazB,MAAM;QACF,QACI,4DAAK,KAAK,EAAE,IAAI,CAAC,UAAU,IACtB,IAAI,CAAC,YAAY,KACd,0EAAmB,IAAI,EAAC,IAAI,GAAqB,CACpD,EACD,4DAAK,KAAK,EAAC,OAAO,IACb,IAAI,CAAC,IAAI,KACN,+EAAwB,IAAI,EAAC,MAAM,GAA0B,CAChE,EACA,IAAI,CAAC,MAAM,KACR,+EAAwB,IAAI,EAAC,QAAQ,GAA0B,CAClE,EACA,IAAI,CAAC,EAAE,KACJ,+EAAwB,IAAI,EAAC,IAAI,GAA0B,CAC9D,EACA,IAAI,CAAC,EAAE,KACJ,+EAAwB,IAAI,EAAC,IAAI,GAA0B,CAC9D,EACA,IAAI,CAAC,KAAK,KACP,+EAAwB,IAAI,EAAC,OAAO,GAA0B,CACjE,EACA,IAAI,CAAC,IAAI,KACN,+EAAwB,IAAI,EAAC,MAAM,GAA0B,CAChE,EACA,IAAI,CAAC,KAAK,KACP,+EAAwB,IAAI,EAAC,OAAO,GAA0B,CACjE,EACA,IAAI,CAAC,UAAU,KACZ,+EAAwB,IAAI,EAAC,aAAa,GAA0B,CACvE,EACA,IAAI,CAAC,UAAU,KACZ,+EAAwB,IAAI,EAAC,cAAc,GAA0B,CACxE,CACC,CACJ,EACT;KACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.css?tag=gb-wysiwyg-toolbar&encapsulation=shadow","src/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.tsx"],"sourcesContent":["@import './../../global/global.css';","import { Component, Prop, h } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: 'gb-wysiwyg-toolbar',\r\n styleUrl: 'gb-WYSIWYG-toolbar.css',\r\n shadow: true\r\n})\r\n\r\nexport class GbWysiwygToolbar {\r\n @Prop() breakpoint: 'desktop' | 'mobile';\r\n @Prop() fontSelector: boolean;\r\n @Prop() bold: boolean;\r\n @Prop() italic: boolean;\r\n @Prop() h1: boolean;\r\n @Prop() h2: boolean;\r\n @Prop() quote: boolean;\r\n @Prop() link: boolean;\r\n @Prop() image: boolean;\r\n @Prop() bulletList: boolean;\r\n @Prop() numberList: boolean;\r\n\r\n render() {\r\n return (\r\n <div class={this.breakpoint}>\r\n {this.fontSelector && (\r\n <gb-input-dropdown size=\"sm\"></gb-input-dropdown>\r\n )}\r\n <div class=\"icons\">\r\n {this.bold && (\r\n <gb-wysiwyg-editor-icon type=\"bold\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.italic && ( \r\n <gb-wysiwyg-editor-icon type=\"italic\"></gb-wysiwyg-editor-icon>\r\n )} \r\n {this.h1 &&(\r\n <gb-wysiwyg-editor-icon type=\"H1\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.h2 && (\r\n <gb-wysiwyg-editor-icon type=\"H2\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.quote && (\r\n <gb-wysiwyg-editor-icon type=\"quote\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.link && (\r\n <gb-wysiwyg-editor-icon type=\"link\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.image && (\r\n <gb-wysiwyg-editor-icon type=\"photo\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.bulletList && (\r\n <gb-wysiwyg-editor-icon type=\"list_bullet\"></gb-wysiwyg-editor-icon>\r\n )}\r\n {this.numberList && (\r\n <gb-wysiwyg-editor-icon type=\"list_numbers\"></gb-wysiwyg-editor-icon>\r\n )}\r\n </div>\r\n </div>\r\n )\r\n }\r\n}"],"version":3}
@@ -1089,20 +1089,20 @@ const GbInputDropdown = class {
1089
1089
  this.leadingIcon = '';
1090
1090
  this.icon = undefined;
1091
1091
  this.items = [
1092
- { name: 'Mock Item A', username: 'A', selected: false },
1093
- { name: 'Mock Item B', username: 'B', selected: false },
1094
- { name: 'Mock Item C', username: 'C', selected: false },
1095
- 45, 50, 20, 25, 90, 92, 53,
1096
- 'Activated',
1097
- 'Deactivated',
1092
+ // { name: 'Mock Item A', username: 'A', selected: false },
1093
+ // { name: 'Mock Item B', username: 'B', selected: false },
1094
+ // { name: 'Mock Item C', username: 'C', selected: false },
1095
+ // 45, 50, 20, 25, 90, 92, 53,
1096
+ // 'Activated',
1097
+ // 'Deactivated',
1098
1098
  ];
1099
1099
  this.value = [
1100
- { name: 'Mock Item A', username: 'A', selected: false },
1101
- { name: 'Mock Item B', username: 'B', selected: false },
1102
- { name: 'Mock Item C', username: 'C', selected: false },
1103
- 45, 50, 20, 25, 90,
1104
- 'Activated',
1105
- // 'Deactivated',
1100
+ // { name: 'Mock Item A', username: 'A', selected: false },
1101
+ // { name: 'Mock Item B', username: 'B', selected: false },
1102
+ // { name: 'Mock Item C', username: 'C', selected: false },
1103
+ // 45, 50, 20, 25, 90,
1104
+ // 'Activated',
1105
+ // 'Deactivated',
1106
1106
  ];
1107
1107
  this.supportingText = false;
1108
1108
  this.color = undefined;
@@ -1326,18 +1326,18 @@ const GbInputDropdown = class {
1326
1326
  const emptyStateBackground = getAssetPath('assets/empty-state-background.svg');
1327
1327
  const illustration = getAssetPath('assets/empty-state-no-data.svg');
1328
1328
  return [
1329
- h("div", { key: '72e9747f734611f23b8046306afa1f90572738cd', class: `input_dropdown_container ${this.type === 'tags' ? 'tag' : ''}` }, h("div", { key: '7a394b35636231df8b3bf8c9543fb7e55aa163b5', class: `input_with_label` }, this.showLabel && (h("p", { key: '4c1492fe52327d1a2c3fb8257c15279cb5e2a45e', class: "text-sm-regular", style: { color: '#4B5565' } }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase())), h("div", { key: 'ae5f58fb4499f8909aaf368a2b5ec0ed9c367534', class: `input_dropdown_div ${this.size} ${this.state} ${this.type === 'tags' ? 'tag' : ''}`, onClick: e => this.toggleDropdown(e) }, this.type === 'icon_leading' && (h("svg", { key: 'e1be663925b1b9c87b17430777dafda377d6cf6b', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '90780193ad3b68966cc753fe432dc125c90fa541', 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" }), h("path", { key: 'f730f2dd87ab0afcb1c466944a97f4b69893b5b4', 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' && (h(Fragment, null, this.state === 'default' && (h("svg", { key: '173d5117e5ca2947663f62235022a9b31e746463', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '501b135ba6085a60cc32b33ecd50593c13fee640', 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" }), h("path", { key: 'a743adbac79efc0f99747c9e4941be9d180bb799', 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' && (h("gb-avatar", { key: '54356962d194f57d05a2d4482e8ea116745f883a', size: "xs", text: this.text, color: this.color, "show-border": this.showBorder }, h("h1", { key: 'a60df2c7dc5cd4ceaf869245a802af9bf479dc78', slot: "initials" }, this.selectedItem.name.split(' ').map(part => part.charAt(0).toUpperCase())))))), this.showLeadingIcon && h(Fragment, null, this.type === 'search' || this.type === 'tags' ? h("div", { class: `icon`, innerHTML: this.leadingIconSvg }) : null), this.type === 'dot_leading' && (h("svg", { key: '99f2317980563fe6b482d7f2ed7c7342c78d7aec', xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", class: `dot ${this.size}` }, h("circle", { key: '519ef6ffd0d376c1389d393c6a4413775487f881', cx: "5", cy: "5", r: "4", fill: "#079455" }))), h("div", { key: 'e1eea820f5c57af8909129f8554be7853d9d3718', class: "placeholder" }, h(Fragment, null, this.state === 'default' && (h(Fragment, null, this.placeholder && (h("p", { key: 'f9f77b0fb89786077a1955ee7f8011fb9c72ca5e', class: "text-md-regular", style: { color: '#CDD5DF' } }, this.placeholder)))), this.state === 'filled' && (h(Fragment, null, h("div", { key: '7eb664e69a2ffacc5c6e579ba8968510395f4120', class: `content` }, h("div", { key: '76933b5d1dde1961053e805d04c2881351c3d78e', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags' ? (h(Fragment, null, this.value.length === 0 ? (h(Fragment, null, this.selectedItems.map((item, index) => typeof item === 'object' ? (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
1329
+ h("div", { key: 'da64b131627d76649b8b1a51c4480fbb8f007c3c', class: `input_dropdown_container ${this.type === 'tags' ? 'tag' : ''}` }, h("div", { key: 'ac9c13fd14c7bc91372c4195d7f407948c56af64', class: `input_with_label` }, this.showLabel && (h("p", { key: '3751aa0208a54d4bc0476ceffeee0ba93944ca33', class: "text-sm-regular", style: { color: '#4B5565' } }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase())), 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' && (h("svg", { key: '404e6064a61fdb67dbb3e510ce86aaa0852bced2', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, 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" }), 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' && (h(Fragment, null, this.state === 'default' && (h("svg", { key: '07427cbfeb90620ec96a7e58ba47766f479bbbe4', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, 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" }), 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' && (h("gb-avatar", { key: '3c75d9c8beed24b1aef0681bc7c3ebfde7a8e61d', size: "xs", text: this.text, color: this.color, "show-border": this.showBorder }, h("h1", { key: '0452d8eff691e2f5b16a641e2ec21da339c4ee2c', slot: "initials" }, this.selectedItem.name.split(' ').map(part => part.charAt(0).toUpperCase())))))), this.showLeadingIcon && h(Fragment, null, this.type === 'search' || this.type === 'tags' ? h("div", { class: `icon`, innerHTML: this.leadingIconSvg }) : null), this.type === 'dot_leading' && (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}` }, h("circle", { key: '67aa0291f689e118e942391cca8aaf6bda60783a', cx: "5", cy: "5", r: "4", fill: "#079455" }))), h("div", { key: '7eabb0a9320368bc1f2665ae32a254cfbf3bf405', class: "placeholder" }, h(Fragment, null, this.state === 'default' && (h(Fragment, null, this.placeholder && (h("p", { key: '46e2fc8e5c1a4579a389d214a5ab81b1d8db175b', class: "text-md-regular", style: { color: '#CDD5DF' } }, this.placeholder)))), this.state === 'filled' && (h(Fragment, null, h("div", { key: 'ab741314786bcfade596b9dbfc4f9a6900ad6560', class: `content` }, h("div", { key: 'fb15f8f0f8232847cb10bc995103669f2ed5d54d', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags' ? (h(Fragment, null, this.value.length === 0 ? (h(Fragment, null, this.selectedItems.map((item, index) => typeof item === 'object' ? (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
1330
1330
  .split(' ')
1331
1331
  .map(part => part.charAt(0).toUpperCase())
1332
1332
  .join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item))))))) : (h(Fragment, null, this.value.map((item, index) => typeof item === 'object' ? (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
1333
1333
  .split(' ')
1334
1334
  .map(part => part.charAt(0).toUpperCase())
1335
- .join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item))))))))) : (h(Fragment, null, this.value.length === 0 ? ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.name) || this.selectedItem : h(Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (h("div", { key: '5624f818c49c8d5860d8a962979f659d16037c6d', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type !== 'tags' && (h(Fragment, null, this.value.length === 0 ? (h(Fragment, null, "@", this.selectedItem.username)) : (h(Fragment, null, this.value.map((item) => typeof item === 'object' && item.username)))))))))), this.state === 'disabled' && (h(Fragment, null, h("div", { key: '4cd356b524520d12bfdabfc543cba490cea966b7', class: `content` }, h("div", { key: 'e49ec3b6cf3aa1ac5cdae765c06c35f6f505c9c1', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags' ? (h(Fragment, null, this.value.map((item, index) => typeof item === 'object' ? (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
1335
+ .join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(item) }, h("p", { class: "text-xs-medium" }, item))))))))) : (h(Fragment, null, this.value.length === 0 ? ((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.name) || this.selectedItem : h(Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (h("div", { key: 'd0afee1bad1201f16d30fef13f1fd766e9329e92', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type !== 'tags' && (h(Fragment, null, this.value.length === 0 ? (h(Fragment, null, "@", this.selectedItem.username)) : (h(Fragment, null, this.value.map((item) => typeof item === 'object' && item.username)))))))))), this.state === 'disabled' && (h(Fragment, null, h("div", { key: 'daf7db1f2d094beb038bd67babec4cea1cd319f7', class: `content` }, h("div", { key: '22869ca475247454328b3a3ee00d428dbd4fea63', class: `text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`, style: { color: '#4B5565' } }, this.type === 'tags' ? (h(Fragment, null, this.value.map((item, index) => typeof item === 'object' ? (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, h("p", { class: "text-xs-medium" }, item.name.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.name
1336
1336
  .split(' ')
1337
1337
  .map(part => part.charAt(0).toUpperCase())
1338
- .join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, h("p", { class: "text-xs-medium" }, item))))))) : (h(Fragment, null, h(Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (h("div", { key: 'd6f4255dded94edcbb87e535c6372f6b758048bd', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type !== 'tags' && (h(Fragment, null, this.value.length === 0 ? (h(Fragment, null, "@", this.selectedItem.username)) : (h(Fragment, null, this.value.map((item) => typeof item === 'object' && (h(Fragment, null, "@", item.username)))))))))))))), this.showHelpIcon && (h("div", { key: '70711957da57ca69152a72222bd4f68568f79e1c', class: `help_icon` }, h("gb-help-tooltip", { key: '47c4b9b39e9587073cd2d22593a12c955264d078', "show-supporting-text": true }, h("slot", { key: 'c5f3135525ba13df0e1d77aa3714092490b53320', name: "tooltip_label", slot: "label" }), h("slot", { key: 'a07e6e6b7076a7a083168c022add780fe867cb0a', name: "tooltip_supporting_text", slot: "supporting_text" })))), this.type !== 'search' && (h("div", { key: '37d5f29c2dad2d7ead4e51526407ea6ac1fef35e', class: `dropdown_icon ${this.dropdownOpen ? 'opened' : ''}` }, h("svg", { key: 'e87694b6d129550c098c0d2a0b322c24a74c7b81', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: `${this.state}` }, h("path", { key: 'c63c7f8223676b8dc95973907ed4857a52416bdd', 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" })))), h(Fragment, null, this.dropdownOpen && (h("div", { key: 'aaf62c9af0f1dcc66173ee656454ed4d9ed3a685', class: `dropdown_menu ${this.menuPosition}`, ref: el => (this.dropdownRef = el), onClick: e => e.stopPropagation() }, this.showSearchInput && (h("div", { key: 'a30e67de85d3d373f98f5b25d20a619a96f73469', class: "dropdown_search_field" }, h("gb-input-field", { key: '1eed390dc66b12509591156d71a23984134b835a', 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 ? (h(Fragment, null, this.searchItem !== '' && this.searchResults.length > 0 ? (h(Fragment, null, this.searchResults.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (h("p", { slot: "name" }, item))))))) : this.searchItem !== '' && this.searchResults.length === 0 ? (
1338
+ .join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close" }, h("p", { class: "text-xs-medium" }, item))))))) : (h(Fragment, null, h(Fragment, null, this.value.map(item => (typeof item === 'object' ? item.name : item)))))), this.supportingText && (h("div", { key: '056c387a557f0343af264eafa2524abb88e8e225', class: "supporting_text text-sm-regular", style: { color: '#697586' } }, this.type !== 'tags' && (h(Fragment, null, this.value.length === 0 ? (h(Fragment, null, "@", this.selectedItem.username)) : (h(Fragment, null, this.value.map((item) => typeof item === 'object' && (h(Fragment, null, "@", item.username)))))))))))))), this.showHelpIcon && (h("div", { key: '566377b60738e0b62b906223459401a1da4189bf', class: `help_icon` }, h("gb-help-tooltip", { key: '4bb3c1f1bdf63cd50f8a5ceaf618d4cd6850e6c3', "show-supporting-text": true }, h("slot", { key: '61ca253bbe7a7828d93d90278c390d7a3070d46d', name: "tooltip_label", slot: "label" }), h("slot", { key: '2508d3bf99138c323ff1a8b5ffd5adcdcfc63c21', name: "tooltip_supporting_text", slot: "supporting_text" })))), this.type !== 'search' && (h("div", { key: '467e11b4657145186a05820997cb9ba27ea38a39', class: `dropdown_icon ${this.dropdownOpen ? 'opened' : ''}` }, 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}` }, 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" })))), h(Fragment, null, this.dropdownOpen && (h("div", { key: 'e1dfcefad56a003535bebf6ced0d342ccda37f7e', class: `dropdown_menu ${this.menuPosition}`, ref: el => (this.dropdownRef = el), onClick: e => e.stopPropagation() }, this.showSearchInput && (h("div", { key: '0dfe2c5fe5d6a2c8c82113e6e5534fa75e2b0ca1', class: "dropdown_search_field" }, 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 ? (h(Fragment, null, this.searchItem !== '' && this.searchResults.length > 0 ? (h(Fragment, null, this.searchResults.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (h("p", { slot: "name" }, item))))))) : this.searchItem !== '' && this.searchResults.length === 0 ? (
1339
1339
  //Empty state for when there are no search results
1340
- h("div", { class: "empty_state" }, h("img", { src: emptyStateBackground, class: "background", alt: "" }), h("div", { class: "message_background" }, h("img", { src: illustration, alt: "", class: "illustration" }), h("p", { class: "message text-md-semi-bold" }, "No results available")))) : null)) : (h(Fragment, null, this.type === 'tags' ? (h(Fragment, null, this.selectedItems.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: true, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (h("p", { slot: "name" }, item))))), this.unselectedItems.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: false, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (h("p", { slot: "name" }, item))))))) : (h(Fragment, null, this.items.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), color: this.color, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (typeof item !== 'object' && h("p", { slot: "name" }, item)))))))))))))), this.showHintText && (h("p", { key: '752ca98e29d6e6f7ea7ec51c36ad335c96621f26', class: "text-sm-regular", style: { color: '#697586' } }, this.hintText))),
1340
+ h("div", { class: "empty_state" }, h("img", { src: emptyStateBackground, class: "background", alt: "" }), h("div", { class: "message_background" }, h("img", { src: illustration, alt: "", class: "illustration" }), h("p", { class: "message text-md-semi-bold" }, "No results available")))) : null)) : (h(Fragment, null, this.type === 'tags' ? (h(Fragment, null, this.selectedItems.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: true, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (h("p", { slot: "name" }, item))))), this.unselectedItems.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: false, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (h("p", { slot: "name" }, item))))))) : (h(Fragment, null, this.items.map(item => (h("gb-input-dropdown-menu-item", { type: this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type, state: StateEnum.Default, "supporting-text": this.supportingText, selected: this.isItemSelected(item), color: this.color, onClick: () => this.handleItemSelect(item) }, typeof item === 'object' ? (h(Fragment, null, h("p", { slot: "name" }, item.name), h("p", { slot: "supporting_text" }, "@", item.username))) : (typeof item !== 'object' && h("p", { slot: "name" }, item)))))))))))))), this.showHintText && (h("p", { key: '57c34f96d4b50d8e9ea990b0913adee79742907d', class: "text-sm-regular", style: { color: '#697586' } }, this.hintText))),
1341
1341
  ];
1342
1342
  }
1343
1343
  get el() { return getElement(this); }
@@ -1959,7 +1959,7 @@ const GbSidebar = class {
1959
1959
  this.eighthItemLabel = '';
1960
1960
  this.ninthItemLabel = '';
1961
1961
  this.tenthItemLabel = '';
1962
- this.activeIndex = 2;
1962
+ this.activeIndex = 0;
1963
1963
  this.leadingIconSvg = '';
1964
1964
  }
1965
1965
  async loadIcon(iconName) {