@design.estate/dees-catalog 3.61.0 → 3.61.2
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_bundle/bundle.js +39 -33
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-input/dees-input-list/dees-input-list.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/dees-input-list/dees-input-list.js +40 -33
- package/dist_ts_web/elements/00group-utility/dees-icon/dees-icon.js +2 -1
- package/dist_watch/bundle.js +37 -31
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-input/dees-input-list/dees-input-list.ts +35 -33
- package/ts_web/elements/00group-utility/dees-icon/dees-icon.ts +1 -0
package/dist_watch/bundle.js
CHANGED
|
@@ -108515,6 +108515,7 @@ var init_dees_icon = __esm({
|
|
|
108515
108515
|
justify-content: center;
|
|
108516
108516
|
line-height: 1;
|
|
108517
108517
|
vertical-align: middle;
|
|
108518
|
+
pointer-events: none;
|
|
108518
108519
|
}
|
|
108519
108520
|
|
|
108520
108521
|
/* Improve rendering performance */
|
|
@@ -156495,7 +156496,7 @@ var _DeesInputList = class _DeesInputList extends (_a36 = DeesInputBase, _value_
|
|
|
156495
156496
|
<div class="input-wrapper">
|
|
156496
156497
|
${this.label ? b2`<dees-label .label=${this.label} .required=${this.required}></dees-label>` : ""}
|
|
156497
156498
|
|
|
156498
|
-
<
|
|
156499
|
+
<dees-tile .heading="${this.value.length} item${this.value.length !== 1 ? "s" : ""}">
|
|
156499
156500
|
<div class="list-items">
|
|
156500
156501
|
${this.value.length > 0 ? this.value.map((item, index3) => b2`
|
|
156501
156502
|
<div
|
|
@@ -156511,13 +156512,15 @@ var _DeesInputList = class _DeesInputList extends (_a36 = DeesInputBase, _value_
|
|
|
156511
156512
|
<dees-icon .icon=${"lucide:gripVertical"}></dees-icon>
|
|
156512
156513
|
</div>
|
|
156513
156514
|
` : ""}
|
|
156514
|
-
|
|
156515
|
+
|
|
156515
156516
|
${this.candidates.length > 0 ? b2`
|
|
156516
156517
|
${this.candidates.some((c11) => c11.viewKey === item) ? b2`
|
|
156517
156518
|
<dees-icon class="candidate-check" .icon=${"lucide:check"}></dees-icon>
|
|
156518
156519
|
` : b2`
|
|
156519
156520
|
<dees-icon class="candidate-unknown" .icon=${"lucide:helpCircle"}></dees-icon>
|
|
156520
156521
|
`}
|
|
156522
|
+
` : !this.sortable || this.disabled ? b2`
|
|
156523
|
+
<dees-icon class="item-bullet" .icon=${"lucide:dot"}></dees-icon>
|
|
156521
156524
|
` : ""}
|
|
156522
156525
|
|
|
156523
156526
|
<div class="item-content">
|
|
@@ -156565,7 +156568,7 @@ var _DeesInputList = class _DeesInputList extends (_a36 = DeesInputBase, _value_
|
|
|
156565
156568
|
</div>
|
|
156566
156569
|
|
|
156567
156570
|
${!this.disabled && (!this.maxItems || this.value.length < this.maxItems) ? b2`
|
|
156568
|
-
<div class="add-item-container">
|
|
156571
|
+
<div slot="footer" class="add-item-container">
|
|
156569
156572
|
<div class="autocomplete-wrapper">
|
|
156570
156573
|
${this.ghostText ? b2`
|
|
156571
156574
|
<span class="ghost-text">
|
|
@@ -156591,7 +156594,7 @@ var _DeesInputList = class _DeesInputList extends (_a36 = DeesInputBase, _value_
|
|
|
156591
156594
|
</button>
|
|
156592
156595
|
</div>
|
|
156593
156596
|
` : ""}
|
|
156594
|
-
</
|
|
156597
|
+
</dees-tile>
|
|
156595
156598
|
|
|
156596
156599
|
${this.validationText ? b2`
|
|
156597
156600
|
<div class="validation-message">${this.validationText}</div>
|
|
@@ -156696,12 +156699,14 @@ var _DeesInputList = class _DeesInputList extends (_a36 = DeesInputBase, _value_
|
|
|
156696
156699
|
this.currentCandidateIndex = -1;
|
|
156697
156700
|
this.matchingCandidates = [];
|
|
156698
156701
|
this.validationText = "";
|
|
156699
|
-
const input = this.shadowRoot?.querySelector(".add-input");
|
|
156700
|
-
if (input) {
|
|
156701
|
-
input.value = "";
|
|
156702
|
-
input.focus();
|
|
156703
|
-
}
|
|
156704
156702
|
this.emitChange();
|
|
156703
|
+
this.updateComplete.then(() => {
|
|
156704
|
+
const input = this.shadowRoot?.querySelector(".add-input");
|
|
156705
|
+
if (input) {
|
|
156706
|
+
input.value = "";
|
|
156707
|
+
input.focus();
|
|
156708
|
+
}
|
|
156709
|
+
});
|
|
156705
156710
|
}
|
|
156706
156711
|
/**
|
|
156707
156712
|
* Get the full candidate object for an item by its viewKey.
|
|
@@ -156732,12 +156737,14 @@ var _DeesInputList = class _DeesInputList extends (_a36 = DeesInputBase, _value_
|
|
|
156732
156737
|
this.value = [...this.value, trimmedValue];
|
|
156733
156738
|
this.inputValue = "";
|
|
156734
156739
|
this.validationText = "";
|
|
156735
|
-
const input = this.shadowRoot?.querySelector(".add-input");
|
|
156736
|
-
if (input) {
|
|
156737
|
-
input.value = "";
|
|
156738
|
-
input.focus();
|
|
156739
|
-
}
|
|
156740
156740
|
this.emitChange();
|
|
156741
|
+
this.updateComplete.then(() => {
|
|
156742
|
+
const input = this.shadowRoot?.querySelector(".add-input");
|
|
156743
|
+
if (input) {
|
|
156744
|
+
input.value = "";
|
|
156745
|
+
input.focus();
|
|
156746
|
+
}
|
|
156747
|
+
});
|
|
156741
156748
|
}
|
|
156742
156749
|
startEdit(index3) {
|
|
156743
156750
|
this.editingIndex = index3;
|
|
@@ -157085,26 +157092,19 @@ __publicField(_DeesInputList, "styles", [
|
|
|
157085
157092
|
width: 100%;
|
|
157086
157093
|
}
|
|
157087
157094
|
|
|
157088
|
-
|
|
157089
|
-
|
|
157090
|
-
border: 1px solid ${cssManager.bdTheme("hsl(0 0% 89.8%)", "hsl(0 0% 14.9%)")};
|
|
157091
|
-
border-radius: 6px;
|
|
157092
|
-
overflow: hidden;
|
|
157093
|
-
transition: all 0.15s ease;
|
|
157094
|
-
}
|
|
157095
|
-
|
|
157096
|
-
.list-container:hover:not(.disabled) {
|
|
157097
|
-
border-color: ${cssManager.bdTheme("hsl(0 0% 79.8%)", "hsl(0 0% 20.9%)")};
|
|
157095
|
+
dees-tile:hover::part(outer) {
|
|
157096
|
+
border-color: var(--dees-color-border-strong);
|
|
157098
157097
|
}
|
|
157099
157098
|
|
|
157100
|
-
|
|
157099
|
+
dees-tile:focus-within::part(outer) {
|
|
157101
157100
|
border-color: ${cssManager.bdTheme("hsl(222.2 47.4% 51.2%)", "hsl(217.2 91.2% 59.8%)")};
|
|
157102
157101
|
box-shadow: 0 0 0 3px ${cssManager.bdTheme("hsl(222.2 47.4% 51.2% / 0.1)", "hsl(217.2 91.2% 59.8% / 0.1)")};
|
|
157103
157102
|
}
|
|
157104
157103
|
|
|
157105
|
-
|
|
157104
|
+
:host([disabled]) dees-tile {
|
|
157106
157105
|
opacity: 0.6;
|
|
157107
157106
|
cursor: not-allowed;
|
|
157107
|
+
pointer-events: none;
|
|
157108
157108
|
}
|
|
157109
157109
|
|
|
157110
157110
|
.list-items {
|
|
@@ -157117,8 +157117,8 @@ __publicField(_DeesInputList, "styles", [
|
|
|
157117
157117
|
align-items: center;
|
|
157118
157118
|
gap: 6px;
|
|
157119
157119
|
padding: 6px 10px;
|
|
157120
|
-
border-bottom: 1px solid
|
|
157121
|
-
background:
|
|
157120
|
+
border-bottom: 1px solid var(--dees-color-border-subtle);
|
|
157121
|
+
background: transparent;
|
|
157122
157122
|
transition: transform 0.2s ease, background 0.15s ease, box-shadow 0.15s ease;
|
|
157123
157123
|
position: relative;
|
|
157124
157124
|
overflow: hidden;
|
|
@@ -157129,7 +157129,7 @@ __publicField(_DeesInputList, "styles", [
|
|
|
157129
157129
|
}
|
|
157130
157130
|
|
|
157131
157131
|
.list-items:not(.is-dragging) .list-item:hover:not(.disabled) {
|
|
157132
|
-
background:
|
|
157132
|
+
background: var(--dees-color-row-hover);
|
|
157133
157133
|
}
|
|
157134
157134
|
|
|
157135
157135
|
/* Dragging item - follows cursor */
|
|
@@ -157167,6 +157167,14 @@ __publicField(_DeesInputList, "styles", [
|
|
|
157167
157167
|
flex-shrink: 0;
|
|
157168
157168
|
}
|
|
157169
157169
|
|
|
157170
|
+
.item-bullet {
|
|
157171
|
+
width: 14px;
|
|
157172
|
+
height: 14px;
|
|
157173
|
+
color: var(--dees-color-text-muted);
|
|
157174
|
+
flex-shrink: 0;
|
|
157175
|
+
opacity: 0.5;
|
|
157176
|
+
}
|
|
157177
|
+
|
|
157170
157178
|
.drag-handle {
|
|
157171
157179
|
display: flex;
|
|
157172
157180
|
align-items: center;
|
|
@@ -157269,8 +157277,6 @@ __publicField(_DeesInputList, "styles", [
|
|
|
157269
157277
|
display: flex;
|
|
157270
157278
|
gap: 6px;
|
|
157271
157279
|
padding: 6px 10px;
|
|
157272
|
-
background: ${cssManager.bdTheme("hsl(0 0% 97.5%)", "hsl(0 0% 6.9%)")};
|
|
157273
|
-
border-top: 1px solid ${cssManager.bdTheme("hsl(0 0% 89.8%)", "hsl(0 0% 14.9%)")};
|
|
157274
157280
|
}
|
|
157275
157281
|
|
|
157276
157282
|
.add-input {
|