@triptease/tt-navbar 0.0.60 → 0.0.62
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/web/Config.js +1 -1
- package/dist/web/Routes.js +1 -1
- package/dist/web/TtNavbar.js +20 -29
- package/dist/web/TtNavbar.js.map +4 -4
- package/dist/web/getInitialNavbarState.js +1 -1
- package/dist/web/global.d.js +1 -1
- package/dist/web/index.js +20 -29
- package/dist/web/index.js.map +4 -4
- package/dist/web/styles.js +1 -1
- package/dist/web/triptease-logo.js +1 -1
- package/dist/web/tt-navbar.js +20 -29
- package/dist/web/tt-navbar.js.map +4 -4
- package/dist/web/urlMappings.js +1 -1
- package/package.json +3 -3
package/dist/web/Config.js
CHANGED
package/dist/web/Routes.js
CHANGED
package/dist/web/TtNavbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.62
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -686,14 +686,10 @@ var t4 = class extends e8 {
|
|
|
686
686
|
t4.directiveName = "unsafeSVG", t4.resultType = 2;
|
|
687
687
|
var o8 = e7(t4);
|
|
688
688
|
|
|
689
|
-
// node_modules/@triptease/icons/dist/src/icons/
|
|
690
|
-
var
|
|
691
|
-
<
|
|
692
|
-
|
|
693
|
-
<path fill-rule="evenodd"
|
|
694
|
-
d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
|
|
695
|
-
stroke="currentColor"/>
|
|
696
|
-
</svg>`;
|
|
689
|
+
// node_modules/@triptease/icons/dist/src/icons/alert.js
|
|
690
|
+
var alert = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
691
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM9.25 5.75C9.25 5.33579 9.58579 5 10 5C10.4142 5 10.75 5.33579 10.75 5.75V11.25C10.75 11.6642 10.4142 12 10 12C9.58579 12 9.25 11.6642 9.25 11.25V5.75ZM10.75 13.75C10.75 14.1642 10.4142 14.5 10 14.5C9.58579 14.5 9.25 14.1642 9.25 13.75C9.25 13.3358 9.58579 13 10 13C10.4142 13 10.75 13.3358 10.75 13.75Z" fill="#3B353B"/>
|
|
692
|
+
</svg>`;
|
|
697
693
|
|
|
698
694
|
// node_modules/@triptease/icons/dist/src/icons/campaigns.js
|
|
699
695
|
var campaigns = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -705,6 +701,15 @@ var channels = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentCol
|
|
|
705
701
|
<path d="M18 3C19.6569 3 21 4.34315 21 6C21 7.65685 19.6569 9 18 9C17.4435 9 16.9243 8.84513 16.4775 8.58105L15.3076 9.75098C15.7443 10.3919 16 11.166 16 12C16 12.8334 15.7437 13.6064 15.3076 14.2471L16.4775 15.417C16.9241 15.1532 17.4438 15 18 15C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 17.4438 15.1532 16.9241 15.417 16.4775L14.2471 15.3076C13.6064 15.7437 12.8334 16 12 16C11.166 16 10.3919 15.7443 9.75098 15.3076L8.58105 16.4775C8.84513 16.9243 9 17.4435 9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.3431 4.34315 15 6 15C6.55558 15 7.07429 15.1538 7.52051 15.417L8.69141 14.2471C8.2555 13.6065 8 12.8332 8 12C8 11.1665 8.25523 10.3927 8.69141 9.75195L7.52148 8.58203C7.07501 8.84569 6.55606 9 6 9C4.34315 9 3 7.65685 3 6C3 4.34315 4.34315 3 6 3C7.65685 3 9 4.34315 9 6C9 6.55606 8.84569 7.07501 8.58203 7.52148L9.75195 8.69141C9.73784 8.70101 9.72394 8.71092 9.70996 8.7207C10.3587 8.26679 11.1481 8 12 8C12.833 8 13.6066 8.25472 14.2471 8.69043L15.417 7.52051C15.1538 7.07429 15 6.55558 15 6C15 4.34315 16.3431 3 18 3ZM6 16.5C5.17157 16.5 4.5 17.1716 4.5 18C4.5 18.8284 5.17157 19.5 6 19.5C6.82843 19.5 7.5 18.8284 7.5 18C7.5 17.1716 6.82843 16.5 6 16.5ZM18 16.5C17.1716 16.5 16.5 17.1716 16.5 18C16.5 18.8284 17.1716 19.5 18 19.5C18.8284 19.5 19.5 18.8284 19.5 18C19.5 17.1716 18.8284 16.5 18 16.5ZM12 9.5C10.6193 9.5 9.5 10.6193 9.5 12C9.5 13.3807 10.6193 14.5 12 14.5C13.3807 14.5 14.5 13.3807 14.5 12C14.5 10.6193 13.3807 9.5 12 9.5ZM6 4.5C5.17157 4.5 4.5 5.17157 4.5 6C4.5 6.82843 5.17157 7.5 6 7.5C6.82843 7.5 7.5 6.82843 7.5 6C7.5 5.17157 6.82843 4.5 6 4.5ZM18 4.5C17.1716 4.5 16.5 5.17157 16.5 6C16.5 6.82843 17.1716 7.5 18 7.5C18.8284 7.5 19.5 6.82843 19.5 6C19.5 5.17157 18.8284 4.5 18 4.5Z" />
|
|
706
702
|
</svg>`;
|
|
707
703
|
|
|
704
|
+
// node_modules/@triptease/icons/dist/src/icons/chevron-down.js
|
|
705
|
+
var chevronDown = `
|
|
706
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-chevron-down chevron-down"
|
|
707
|
+
viewBox="0 0 16 16" role="presentation">
|
|
708
|
+
<path fill-rule="evenodd"
|
|
709
|
+
d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
|
|
710
|
+
stroke="currentColor"/>
|
|
711
|
+
</svg>`;
|
|
712
|
+
|
|
708
713
|
// node_modules/@triptease/icons/dist/src/icons/external.js
|
|
709
714
|
var external = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
710
715
|
<path d="M6 2C6.41421 2 6.75 2.33579 6.75 2.75C6.75 3.16421 6.41421 3.5 6 3.5H4.75C4.05964 3.5 3.5 4.05964 3.5 4.75V11.25C3.5 11.9404 4.05964 12.5 4.75 12.5H11.25C11.9404 12.5 12.5 11.9404 12.5 11.25V10C12.5 9.58579 12.8358 9.25 13.25 9.25C13.6642 9.25 14 9.58579 14 10V11.25C14 12.7688 12.7688 14 11.25 14H4.75C3.23122 14 2 12.7688 2 11.25V4.75C2 3.23122 3.23122 2 4.75 2H6ZM14 6C14 6.41421 13.6642 6.75 13.25 6.75C12.8358 6.75 12.5 6.41421 12.5 6V4.56055L8.03027 9.03027C7.73738 9.32317 7.26262 9.32317 6.96973 9.03027C6.67683 8.73738 6.67683 8.26262 6.96973 7.96973L11.4395 3.5H10C9.58579 3.5 9.25 3.16421 9.25 2.75C9.25 2.33579 9.58579 2 10 2H14V6Z" fill="#D3D3DA"/>
|
|
@@ -865,20 +870,6 @@ var i6 = e7(class extends i5 {
|
|
|
865
870
|
}
|
|
866
871
|
});
|
|
867
872
|
|
|
868
|
-
// node_modules/@triptease/tt-combobox/node_modules/@triptease/icons/dist/src/icons/chevron-down.js
|
|
869
|
-
var chevronDown2 = `
|
|
870
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-chevron-down chevron-down"
|
|
871
|
-
viewBox="0 0 16 16" role="presentation">
|
|
872
|
-
<path fill-rule="evenodd"
|
|
873
|
-
d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"
|
|
874
|
-
stroke="currentColor"/>
|
|
875
|
-
</svg>`;
|
|
876
|
-
|
|
877
|
-
// node_modules/@triptease/tt-combobox/node_modules/@triptease/icons/dist/src/icons/alert.js
|
|
878
|
-
var alert2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
879
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM9.25 5.75C9.25 5.33579 9.58579 5 10 5C10.4142 5 10.75 5.33579 10.75 5.75V11.25C10.75 11.6642 10.4142 12 10 12C9.58579 12 9.25 11.6642 9.25 11.25V5.75ZM10.75 13.75C10.75 14.1642 10.4142 14.5 10 14.5C9.58579 14.5 9.25 14.1642 9.25 13.75C9.25 13.3358 9.58579 13 10 13C10.4142 13 10.75 13.3358 10.75 13.75Z" fill="#3B353B"/>
|
|
880
|
-
</svg>`;
|
|
881
|
-
|
|
882
873
|
// node_modules/@triptease/tt-combobox/dist/src/styles.js
|
|
883
874
|
var styles = i`
|
|
884
875
|
:host {
|
|
@@ -1246,7 +1237,7 @@ var TtCombobox = class extends i4 {
|
|
|
1246
1237
|
this._renderChevron = () => x`
|
|
1247
1238
|
<button type="button" aria-label="Expand" @click="${this._onChevronClick}" aria-expanded="${this._expanded}"
|
|
1248
1239
|
aria-controls="${this.id}-list" tabindex="-1" ?disabled=${this.disabled} part="arrow">
|
|
1249
|
-
${o8(
|
|
1240
|
+
${o8(chevronDown)}
|
|
1250
1241
|
</button>
|
|
1251
1242
|
`;
|
|
1252
1243
|
this.internals = this.attachInternals();
|
|
@@ -1405,12 +1396,12 @@ var TtCombobox = class extends i4 {
|
|
|
1405
1396
|
}
|
|
1406
1397
|
_onInput(event) {
|
|
1407
1398
|
const input = event.target;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1399
|
+
const filter2 = input.value;
|
|
1400
|
+
if (filter2 !== "" && !this._expanded) {
|
|
1410
1401
|
this._expanded = true;
|
|
1411
1402
|
}
|
|
1412
1403
|
this._activeOption = -1;
|
|
1413
|
-
this._filter =
|
|
1404
|
+
this._filter = filter2;
|
|
1414
1405
|
}
|
|
1415
1406
|
_dispatchSelectedOptions() {
|
|
1416
1407
|
this.dispatchEvent(new Event("change", {
|
|
@@ -1468,7 +1459,7 @@ var TtCombobox = class extends i4 {
|
|
|
1468
1459
|
/>`;
|
|
1469
1460
|
}
|
|
1470
1461
|
_renderOption(option) {
|
|
1471
|
-
const hidden = Boolean(this._filter !== "" && !option.value.toLowerCase().includes(this._filter) && !option.innerText.toLowerCase().includes(this._filter) || option.hidden);
|
|
1462
|
+
const hidden = Boolean(this._filter !== "" && !option.value.toLowerCase().includes(this._filter.toLowerCase()) && !option.innerText.toLowerCase().includes(this._filter.toLowerCase()) || option.hidden);
|
|
1472
1463
|
const id = `${this.id}-option-${option.value}`;
|
|
1473
1464
|
const active = this._getActiveOptionId() === id;
|
|
1474
1465
|
const selected = Boolean(this.multiselect && option.selected);
|
|
@@ -1519,7 +1510,7 @@ var TtCombobox = class extends i4 {
|
|
|
1519
1510
|
<slot name="option" @slotchange=${() => this.requestUpdate("options")}></slot>
|
|
1520
1511
|
<div class="errormessage" id="error-msg-${this.id}" role="alert" aria-atomic="true"
|
|
1521
1512
|
?data-hidden="${!this._hasErrorContent()}" part="error">
|
|
1522
|
-
${o8(
|
|
1513
|
+
${o8(alert)}
|
|
1523
1514
|
<slot name="error"></slot>
|
|
1524
1515
|
</div>
|
|
1525
1516
|
`;
|