@tekkare/auriga 0.2.152 → 0.2.154
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/module.json
CHANGED
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
<div
|
|
44
44
|
:style="isDisplay === false ? 'display : none' : ''"
|
|
45
45
|
class="oip_select_dropdown_block multiple"
|
|
46
|
+
:class="selectorIcon ? 'icon' : ''"
|
|
46
47
|
@click.stop
|
|
47
48
|
>
|
|
48
49
|
<!--<div v-if="filter_placeholder" class="oip_select_multiple_title">{{ filter_placeholder }}</div>-->
|
|
@@ -420,6 +421,12 @@ export default defineComponent({
|
|
|
420
421
|
} else if (props.default_select && props.default_select.length > 0) {
|
|
421
422
|
if (props.nested) {
|
|
422
423
|
selected_nested.value = [...new Set(props.default_select)];
|
|
424
|
+
const cats = selected_nested.value.map((a) => a.cat);
|
|
425
|
+
cats.forEach((cat) => {
|
|
426
|
+
if (!element_table_copy?.value[cat]?.values && !selectedCats.value.includes(cat) || selected_nested.value.find((a) => a.cat === cat)?.elements?.length === element_table_copy?.value[cat]?.values?.length && !selectedCats.value.includes(cat)) {
|
|
427
|
+
selectedCats.value.push(cat);
|
|
428
|
+
}
|
|
429
|
+
});
|
|
423
430
|
} else {
|
|
424
431
|
if (!props.default_select.every(
|
|
425
432
|
(a) => element_table_copy.value.includes(a)
|
|
@@ -441,6 +448,12 @@ export default defineComponent({
|
|
|
441
448
|
if (new_selected && new_selected.length > 0) {
|
|
442
449
|
if (props.nested) {
|
|
443
450
|
selected_nested.value = [...new Set(props.default_select)];
|
|
451
|
+
const cats = selected_nested.value.map((a) => a.cat);
|
|
452
|
+
cats.forEach((cat) => {
|
|
453
|
+
if (!element_table_copy?.value[cat]?.values && !selectedCats.value.includes(cat) || selected_nested.value.find((a) => a.cat === cat)?.elements?.length === element_table_copy?.value[cat]?.values?.length && !selectedCats.value.includes(cat)) {
|
|
454
|
+
selectedCats.value.push(cat);
|
|
455
|
+
}
|
|
456
|
+
});
|
|
444
457
|
} else selected_items.value = [...new Set(props.default_select)];
|
|
445
458
|
}
|
|
446
459
|
}
|
|
@@ -463,6 +476,12 @@ export default defineComponent({
|
|
|
463
476
|
} else if (props.default_select && props.default_select.length > 0) {
|
|
464
477
|
if (props.nested) {
|
|
465
478
|
selected_nested.value = [...new Set(props.default_select)];
|
|
479
|
+
const cats = selected_nested.value.map((a) => a.cat);
|
|
480
|
+
cats.forEach((cat) => {
|
|
481
|
+
if (!element_table_copy?.value[cat]?.values && !selectedCats.value.includes(cat) || selected_nested.value.find((a) => a.cat === cat)?.elements?.length === element_table_copy?.value[cat]?.values?.length && !selectedCats.value.includes(cat)) {
|
|
482
|
+
selectedCats.value.push(cat);
|
|
483
|
+
}
|
|
484
|
+
});
|
|
466
485
|
} else selected_items.value = props.default_select;
|
|
467
486
|
}
|
|
468
487
|
});
|
|
@@ -830,7 +849,9 @@ export default defineComponent({
|
|
|
830
849
|
selected_nested.value[i].elements.push(
|
|
831
850
|
element_table_copy.value[i]?.title
|
|
832
851
|
);
|
|
833
|
-
selectedCats.value.
|
|
852
|
+
if (!selectedCats.value.includes(i)) {
|
|
853
|
+
selectedCats.value.push(i);
|
|
854
|
+
}
|
|
834
855
|
}
|
|
835
856
|
} else {
|
|
836
857
|
for (let i = 0; i < element_table_copy.value.length; i++) {
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
<arg-icon :name="selectorIcon" />
|
|
25
25
|
</arg-tooltip>
|
|
26
26
|
<arg-icon v-else :name="selectorIcon" color="var(--medium)" size="24" />
|
|
27
|
+
<div
|
|
28
|
+
v-if="show_amount && amount_value > 0"
|
|
29
|
+
class="arg-icon-circle-amount"
|
|
30
|
+
>
|
|
31
|
+
<span>{{ amount_value > 99 ? "99+" : amount_value }}</span>
|
|
32
|
+
</div>
|
|
27
33
|
</div>
|
|
28
34
|
</div>
|
|
29
35
|
</template>
|
|
@@ -65,7 +71,7 @@ const drawSquircle=(ctx,geom,radii,smooth,lineWidth,color)=>{const defaultFill=c
|
|
|
65
71
|
</script>
|
|
66
72
|
|
|
67
73
|
<style>
|
|
68
|
-
.oip_select_icon{align-items:center;border:
|
|
74
|
+
.oip_select_icon{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;cursor:pointer;display:flex;justify-content:center;padding:8px;position:relative;transition:border .15s ease-in}.oip_select_icon:hover{border:1.5px solid var(--primary-light)!important}.oip_select_wrap.open .oip_select_icon{border:1.5px solid var(--primary)!important;filter:drop-shadow(1px 1px 1px rgba(33,118,255,.3))!important}.oip_select_wrap:not(.open) .oip_select_icon:hover svg{color:var(--primary)!important}.oip_select_dropdown_block.icon{right:50px}.oip_select_dropdown_block{background:var(--demi-fond);border:1.5px solid var(--light);border-radius:12px;box-shadow:var(--overlay-shadow);display:flex;flex-direction:column;margin-top:15px;max-height:500px;min-width:230px;padding:16px;position:absolute;z-index:12}.oip_select_block{align-items:center;background:var(--white);border:1.5px solid var(--light);border-radius:8px;cursor:pointer;display:flex;gap:4px;-webkit-mask-image:paint(squircle);mask-image:paint(squircle);padding:12px;position:relative;width:196px;--squircle-radius:8px;--squircle-smooth:1}.filter_box:hover,.filter_wrap:hover>.filter_box:not(.open),.oip_select_block:hover,.oip_select_dropdown_block:hover,.prmt_parent_switch:hover{border:1.5px solid var(--primary-primary-20,#d3e4ff)!important}.filter_box.open,.oip_select_dropdown_block.open,.oip_select_wrap.open>.oip_select_block,.prmt_parent_switch.open{border:1.5px solid var(--primary)!important;filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.filter_wrap.open,.oip_select_wrap.open,.switch_wrapper.open{filter:drop-shadow(0 0 4px rgba(33,118,255,.3))!important}.oip_select_block.open>svg{color:var(--primary)!important}.oip_select_block.disabled{background:var(--light)!important;cursor:not-allowed}.oip_select_label .prmt_tooltip{display:flex}.oip_select_label .prmt_tooltip span,.oip_select_label>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:98%}.oip_select_label{color:var(--darkest);font-size:14px;font-weight:700;line-height:16px;max-height:16px;width:90%}.oip_select_block svg{flex-shrink:0!important}.oip_select_label.disabled{color:var(--dark)}.oip_select_caret_down{float:right;margin-left:auto}.oip_select_complex_selection_loop_name{font-style:normal;line-height:160%;width:-moz-fit-content;width:fit-content}.oip_select_complex_selection_loop.del>svg{color:var(--system-alert)!important;flex-shrink:0}.oip_select_complex_selection_loop.add>svg{color:var(--primary)!important;flex-shrink:0}.oip_select_complex_selection_loop{align-self:stretch;cursor:pointer;display:flex;flex-grow:1;gap:8px;min-height:24px}.oip_select_complex_selection_container{margin:8px 0;max-height:350px;overflow-y:auto}.oip_select_complex_selection_loop_name{font-size:14px;font-weight:400;line-height:16px}.oip_search_container>svg{color:var(--medium)!important}.oip_search_name:focus-visible{outline:none}.oip_search_name::-moz-placeholder{color:var(--medium);font-size:12px;font-weight:400;line-height:20px}.oip_search_name::placeholder{color:var(--medium);font-size:12px;font-weight:400;line-height:20px}.oip_search_name{border:none;padding-left:8px;width:100%}.oip_search_container{align-items:center;align-self:stretch;background:var(--white);border:1px solid var(--light);border-radius:8px;display:flex;gap:8px;padding:8px 12px}.oip_select_dropdown_title{color:var(--darkest);font-size:14px;font-weight:500;margin-bottom:8px}.oip_select_dropdown_selection_container{display:flex;flex:1 1 auto;flex-direction:column;gap:0;margin-top:16px;min-height:10px;overflow-y:auto}.oip_select_dropdown_selection_container:only-child{margin-top:0}.oip_empty_dropdown{color:var(--dark);font-size:14px;font-style:italic;font-weight:400;line-height:16px;padding-top:16px;text-align:center}.oip_select_complex_selection_loop>svg.add{fill:var(--accent)!important;color:var(--white)!important}.arg-circle-amount{align-items:center;background:#e9f1ff;border-radius:50%;color:var(--primary);display:flex;flex-direction:column;flex-shrink:0;font-size:14px;font-style:normal;font-weight:600;gap:10px;height:20px;justify-content:center;padding:4px;position:absolute;right:34px;width:20px}.oip_empty_select{color:var(--dark);font-size:14px;font-style:italic;font-weight:400;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.oip_select_display{align-items:flex-start;display:flex;flex-direction:column;gap:4px}.close-icon{background:var(--light);border-radius:100%;cursor:pointer;margin-left:auto;padding:4px}.arg-icon-circle-amount,.close-icon{align-items:center;display:flex;justify-content:center}.arg-icon-circle-amount{background:#e9f1ff;border-radius:50%;color:var(--primary);flex-direction:column;font-size:12px;font-style:normal;font-weight:900;height:var(--m,20px);line-height:normal;position:absolute;right:-5px;top:-5px;width:var(--m,20px);z-index:1}.close-icon:hover svg{color:var(--primary)!important}
|
|
69
75
|
</style>
|
|
70
76
|
<style scoped>
|
|
71
77
|
.oip_select_complex_selection_loop > svg.add {
|