@robosophy/ui-vue 1.1.12 → 1.2.0
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/ai-context.md +6 -3
- package/components.md +25 -4
- package/dist/components/RsIconPicker/RsIconPicker.types.d.ts +6 -0
- package/dist/components/RsIconPicker/RsIconPicker.types.d.ts.map +1 -0
- package/dist/components/RsIconPicker/RsIconPicker.vue.d.ts +13 -0
- package/dist/components/RsIconPicker/RsIconPicker.vue.d.ts.map +1 -0
- package/dist/components/RsIconPicker/iconCatalog.d.ts +2 -0
- package/dist/components/RsIconPicker/iconCatalog.d.ts.map +1 -0
- package/dist/components/RsIconPicker/index.d.ts +5 -0
- package/dist/components/RsIconPicker/index.d.ts.map +1 -0
- package/dist/components/RsSidebar/RsSidebar.vue.d.ts +2 -2
- package/dist/components/RsSidebar/RsSidebar.vue.d.ts.map +1 -1
- package/dist/icon-manifest.json +371 -1
- package/dist/index.css +74 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +546 -44
- package/dist/index.js.map +1 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +256 -80
- package/dist/vite.js.map +1 -1
- package/icon-scanner.md +262 -167
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// AUTO-GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
2
2
|
import "./index.css";
|
|
3
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, ref, onMounted, onBeforeUnmount, watch, nextTick, createVNode, unref, withModifiers, withCtx, renderSlot, toDisplayString, createBlock, Teleport, createCommentVNode, Fragment, renderList, mergeProps, createTextVNode } from "vue";
|
|
3
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, ref, onMounted, onBeforeUnmount, watch, nextTick, createVNode, unref, withModifiers, withCtx, renderSlot, toDisplayString, createBlock, Teleport, createCommentVNode, Fragment, renderList, mergeProps, createTextVNode, withDirectives, vModelText } from "vue";
|
|
4
4
|
import Button from "primevue/button";
|
|
5
5
|
import Menu from "primevue/menu";
|
|
6
|
-
const _hoisted_1$
|
|
6
|
+
const _hoisted_1$3 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "rs-icon-wrap"
|
|
9
9
|
};
|
|
10
|
-
const _hoisted_2$
|
|
11
|
-
const _hoisted_3$
|
|
12
|
-
const _hoisted_4$
|
|
10
|
+
const _hoisted_2$3 = ["aria-hidden", "aria-label", "role", "width", "height"];
|
|
11
|
+
const _hoisted_3$3 = ["href"];
|
|
12
|
+
const _hoisted_4$3 = ["aria-hidden", "aria-label", "role", "width", "height"];
|
|
13
13
|
const _hoisted_5$2 = ["href"];
|
|
14
|
-
const _sfc_main$
|
|
14
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
15
15
|
...{
|
|
16
16
|
name: "RsIcon"
|
|
17
17
|
},
|
|
@@ -81,7 +81,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
() => props.notificationColor ? { backgroundColor: props.notificationColor } : void 0
|
|
82
82
|
);
|
|
83
83
|
return (_ctx, _cache) => {
|
|
84
|
-
return __props.notification ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
84
|
+
return __props.notification ? (openBlock(), createElementBlock("span", _hoisted_1$3, [
|
|
85
85
|
(openBlock(), createElementBlock("svg", {
|
|
86
86
|
"aria-hidden": ariaHidden.value,
|
|
87
87
|
"aria-label": __props.ariaLabel,
|
|
@@ -92,8 +92,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
height: iconSize.value,
|
|
93
93
|
fill: "currentColor"
|
|
94
94
|
}, [
|
|
95
|
-
createElementVNode("use", { href: symbolHref.value }, null, 8, _hoisted_3$
|
|
96
|
-
], 14, _hoisted_2$
|
|
95
|
+
createElementVNode("use", { href: symbolHref.value }, null, 8, _hoisted_3$3)
|
|
96
|
+
], 14, _hoisted_2$3)),
|
|
97
97
|
createElementVNode("span", {
|
|
98
98
|
class: "rs-icon__notification",
|
|
99
99
|
"aria-hidden": "true",
|
|
@@ -111,7 +111,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
fill: "currentColor"
|
|
112
112
|
}, [
|
|
113
113
|
createElementVNode("use", { href: symbolHref.value }, null, 8, _hoisted_5$2)
|
|
114
|
-
], 14, _hoisted_4$
|
|
114
|
+
], 14, _hoisted_4$3));
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
});
|
|
@@ -124,14 +124,14 @@ function rsPrimeIcon(name, options = {}) {
|
|
|
124
124
|
}
|
|
125
125
|
return `rs-icon rs-icon--prime rs-icon--${family} rs-icon-${normalizedName}`;
|
|
126
126
|
}
|
|
127
|
-
const _hoisted_1$
|
|
128
|
-
const _hoisted_2$
|
|
129
|
-
const _hoisted_3$
|
|
127
|
+
const _hoisted_1$2 = { class: "rs-account-selector__trigger-avatar" };
|
|
128
|
+
const _hoisted_2$2 = ["src", "alt"];
|
|
129
|
+
const _hoisted_3$2 = {
|
|
130
130
|
key: 1,
|
|
131
131
|
class: "rs-account-selector__avatar-placeholder",
|
|
132
132
|
"aria-hidden": "true"
|
|
133
133
|
};
|
|
134
|
-
const _hoisted_4$
|
|
134
|
+
const _hoisted_4$2 = ["aria-busy"];
|
|
135
135
|
const _hoisted_5$1 = { class: "rs-account-selector__summary" };
|
|
136
136
|
const _hoisted_6$1 = { class: "rs-account-selector__avatar-stack" };
|
|
137
137
|
const _hoisted_7$1 = { class: "rs-account-selector__avatar rs-account-selector__avatar--lg" };
|
|
@@ -181,7 +181,7 @@ const _hoisted_26 = {
|
|
|
181
181
|
class: "rs-account-selector__footer"
|
|
182
182
|
};
|
|
183
183
|
const _hoisted_27 = { class: "rs-account-selector__button-content" };
|
|
184
|
-
const _sfc_main$
|
|
184
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
185
185
|
...{
|
|
186
186
|
name: "RsAccountSelector"
|
|
187
187
|
},
|
|
@@ -378,20 +378,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
378
378
|
onClick: withModifiers(toggleSelector, ["stop"])
|
|
379
379
|
}, {
|
|
380
380
|
default: withCtx(() => [
|
|
381
|
-
createVNode(unref(_sfc_main$
|
|
381
|
+
createVNode(unref(_sfc_main$3), {
|
|
382
382
|
class: "rs-account-selector__trigger-chevron",
|
|
383
383
|
family: "rounded",
|
|
384
384
|
name: "arrow_drop_down",
|
|
385
385
|
size: 22
|
|
386
386
|
}),
|
|
387
387
|
renderSlot(_ctx.$slots, "trigger-avatar", { user: __props.user }, () => [
|
|
388
|
-
createElementVNode("span", _hoisted_1$
|
|
388
|
+
createElementVNode("span", _hoisted_1$2, [
|
|
389
389
|
__props.user.avatarSrc ? (openBlock(), createElementBlock("img", {
|
|
390
390
|
key: 0,
|
|
391
391
|
class: "rs-account-selector__avatar-image",
|
|
392
392
|
src: __props.user.avatarSrc,
|
|
393
393
|
alt: __props.user.name || __props.user.email
|
|
394
|
-
}, null, 8, _hoisted_2$
|
|
394
|
+
}, null, 8, _hoisted_2$2)) : (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(getInitials(__props.user.initials)), 1))
|
|
395
395
|
])
|
|
396
396
|
])
|
|
397
397
|
]),
|
|
@@ -446,7 +446,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
446
446
|
}), {
|
|
447
447
|
default: withCtx(() => [
|
|
448
448
|
createElementVNode("span", null, toDisplayString(action.label), 1),
|
|
449
|
-
action.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
449
|
+
action.icon ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
450
450
|
key: 0,
|
|
451
451
|
name: action.icon,
|
|
452
452
|
size: "sm"
|
|
@@ -511,7 +511,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
511
511
|
]),
|
|
512
512
|
createElementVNode("span", _hoisted_25, [
|
|
513
513
|
renderSlot(_ctx.$slots, "account-trailing", { account }, () => [
|
|
514
|
-
createVNode(unref(_sfc_main$
|
|
514
|
+
createVNode(unref(_sfc_main$3), { name: "login" })
|
|
515
515
|
])
|
|
516
516
|
])
|
|
517
517
|
]),
|
|
@@ -533,7 +533,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
533
533
|
default: withCtx(() => [
|
|
534
534
|
createElementVNode("span", _hoisted_27, [
|
|
535
535
|
createElementVNode("span", null, toDisplayString(action.label), 1),
|
|
536
|
-
action.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
536
|
+
action.icon ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
537
537
|
key: 0,
|
|
538
538
|
name: action.icon,
|
|
539
539
|
size: "sm"
|
|
@@ -545,16 +545,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
545
545
|
}), 128))
|
|
546
546
|
])) : createCommentVNode("", true)
|
|
547
547
|
])
|
|
548
|
-
], 12, _hoisted_4$
|
|
548
|
+
], 12, _hoisted_4$2)
|
|
549
549
|
])) : createCommentVNode("", true)
|
|
550
550
|
], 4);
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
|
-
const _hoisted_1 = ["aria-label"];
|
|
555
|
-
const _hoisted_2 = { class: "rs-sidebar__header" };
|
|
556
|
-
const _hoisted_3 = ["aria-expanded"];
|
|
557
|
-
const _hoisted_4 = { class: "rs-sidebar__title" };
|
|
554
|
+
const _hoisted_1$1 = ["aria-label"];
|
|
555
|
+
const _hoisted_2$1 = { class: "rs-sidebar__header" };
|
|
556
|
+
const _hoisted_3$1 = ["aria-expanded"];
|
|
557
|
+
const _hoisted_4$1 = { class: "rs-sidebar__title" };
|
|
558
558
|
const _hoisted_5 = { class: "rs-sidebar__title" };
|
|
559
559
|
const _hoisted_6 = { class: "rs-sidebar__content" };
|
|
560
560
|
const _hoisted_7 = {
|
|
@@ -577,7 +577,7 @@ const _hoisted_13 = {
|
|
|
577
577
|
const _hoisted_14 = { class: "rs-sidebar__list" };
|
|
578
578
|
const _hoisted_15 = ["disabled", "onClick"];
|
|
579
579
|
const _hoisted_16 = { class: "rs-sidebar__item-label" };
|
|
580
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
580
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
581
581
|
...{
|
|
582
582
|
name: "RsSidebar"
|
|
583
583
|
},
|
|
@@ -588,7 +588,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
588
588
|
modules: { default: () => [] },
|
|
589
589
|
navigateOnModuleSelect: { type: Boolean, default: false },
|
|
590
590
|
title: { default: "" },
|
|
591
|
-
icon: { default:
|
|
591
|
+
icon: { default: void 0 },
|
|
592
592
|
expanded: { type: Boolean, default: false },
|
|
593
593
|
expandOnHover: { type: Boolean, default: true },
|
|
594
594
|
mobileOpen: { type: Boolean, default: false },
|
|
@@ -597,6 +597,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
597
597
|
},
|
|
598
598
|
emits: ["item-click", "close-mobile", "expanded-change", "module-select"],
|
|
599
599
|
setup(__props, { emit: __emit }) {
|
|
600
|
+
const variantIconMap = {
|
|
601
|
+
pc: "article",
|
|
602
|
+
alta: "account_circle",
|
|
603
|
+
cc: "account_balance_wallet",
|
|
604
|
+
pog: "account_balance_wallet",
|
|
605
|
+
cyo: "nest_eco_leaf"
|
|
606
|
+
};
|
|
600
607
|
const props = __props;
|
|
601
608
|
const emit = __emit;
|
|
602
609
|
const isHovered = ref(false);
|
|
@@ -633,6 +640,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
633
640
|
const isExpanded = computed(() => props.expanded || props.mobileOpen || isHovered.value);
|
|
634
641
|
const hasHeaderAction = computed(() => props.mobileOpen);
|
|
635
642
|
const hasModuleSelector = computed(() => props.modules.length > 0);
|
|
643
|
+
const resolvedIcon = computed(() => props.icon ?? variantIconMap[props.variant]);
|
|
636
644
|
const rootClass = computed(() => [
|
|
637
645
|
"rs-sidebar",
|
|
638
646
|
`rs-sidebar--${props.variant}`,
|
|
@@ -741,7 +749,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
741
749
|
closeMobile,
|
|
742
750
|
goBack
|
|
743
751
|
}, () => [
|
|
744
|
-
createElementVNode("header", _hoisted_2, [
|
|
752
|
+
createElementVNode("header", _hoisted_2$1, [
|
|
745
753
|
createElementVNode("div", {
|
|
746
754
|
class: normalizeClass([
|
|
747
755
|
"rs-sidebar__brand",
|
|
@@ -758,16 +766,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
758
766
|
"aria-haspopup": "menu",
|
|
759
767
|
onClick: toggleModuleMenu
|
|
760
768
|
}, [
|
|
761
|
-
createVNode(unref(_sfc_main$
|
|
762
|
-
createElementVNode("span", _hoisted_4, toDisplayString(displayedHeaderTitle.value), 1),
|
|
763
|
-
createVNode(unref(_sfc_main$
|
|
769
|
+
createVNode(unref(_sfc_main$3), { name: resolvedIcon.value }, null, 8, ["name"]),
|
|
770
|
+
createElementVNode("span", _hoisted_4$1, toDisplayString(displayedHeaderTitle.value), 1),
|
|
771
|
+
createVNode(unref(_sfc_main$3), {
|
|
764
772
|
class: "rs-sidebar__module-chevron",
|
|
765
773
|
name: isModuleMenuOpen.value ? "arrow_drop_up" : "arrow_drop_down",
|
|
766
774
|
color: "secondary",
|
|
767
775
|
size: "sm"
|
|
768
776
|
}, null, 8, ["name"])
|
|
769
|
-
], 8, _hoisted_3)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
770
|
-
createVNode(unref(_sfc_main$
|
|
777
|
+
], 8, _hoisted_3$1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
778
|
+
createVNode(unref(_sfc_main$3), { name: resolvedIcon.value }, null, 8, ["name"]),
|
|
771
779
|
createElementVNode("span", _hoisted_5, toDisplayString(displayedHeaderTitle.value), 1)
|
|
772
780
|
], 64))
|
|
773
781
|
], 2),
|
|
@@ -783,7 +791,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
783
791
|
"aria-label": "Cerrar menu",
|
|
784
792
|
onClick: closeMobile
|
|
785
793
|
}, [
|
|
786
|
-
createVNode(unref(_sfc_main$
|
|
794
|
+
createVNode(unref(_sfc_main$3), { name: "close" })
|
|
787
795
|
])) : createCommentVNode("", true)
|
|
788
796
|
])
|
|
789
797
|
]),
|
|
@@ -805,7 +813,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
805
813
|
type: "button",
|
|
806
814
|
onClick: _cache[0] || (_cache[0] = ($event) => goBack())
|
|
807
815
|
}, [
|
|
808
|
-
createVNode(unref(_sfc_main$
|
|
816
|
+
createVNode(unref(_sfc_main$3), {
|
|
809
817
|
class: "rs-sidebar__item-icon",
|
|
810
818
|
name: "arrow_left",
|
|
811
819
|
fill: true
|
|
@@ -835,13 +843,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
835
843
|
item,
|
|
836
844
|
expanded: isExpanded.value
|
|
837
845
|
}, () => [
|
|
838
|
-
item.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
846
|
+
item.icon ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
839
847
|
key: 0,
|
|
840
848
|
class: "rs-sidebar__item-icon",
|
|
841
849
|
name: item.icon
|
|
842
850
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
843
851
|
createElementVNode("span", _hoisted_12, toDisplayString(item.label), 1),
|
|
844
|
-
hasVisibleChildren(item) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
852
|
+
hasVisibleChildren(item) ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
845
853
|
key: 1,
|
|
846
854
|
class: "rs-sidebar__item-chevron",
|
|
847
855
|
name: "chevron_right",
|
|
@@ -877,7 +885,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
877
885
|
disabled: item.disabled,
|
|
878
886
|
onClick: ($event) => handleItemClick(item)
|
|
879
887
|
}, [
|
|
880
|
-
item.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
888
|
+
item.icon ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
881
889
|
key: 0,
|
|
882
890
|
class: "rs-sidebar__item-icon",
|
|
883
891
|
name: item.icon
|
|
@@ -890,11 +898,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
890
898
|
])) : createCommentVNode("", true)
|
|
891
899
|
])
|
|
892
900
|
])
|
|
893
|
-
], 42, _hoisted_1);
|
|
901
|
+
], 42, _hoisted_1$1);
|
|
894
902
|
};
|
|
895
903
|
}
|
|
896
904
|
});
|
|
897
|
-
const components = [_sfc_main$
|
|
905
|
+
const components = [_sfc_main$2, _sfc_main$3, _sfc_main$1];
|
|
898
906
|
const RobosophyUiVue = {
|
|
899
907
|
install(app) {
|
|
900
908
|
for (const component of components) {
|
|
@@ -902,13 +910,507 @@ const RobosophyUiVue = {
|
|
|
902
910
|
}
|
|
903
911
|
}
|
|
904
912
|
};
|
|
913
|
+
const iconCatalog = [
|
|
914
|
+
"ac_unit",
|
|
915
|
+
"account_balance",
|
|
916
|
+
"account_balance_wallet",
|
|
917
|
+
"account_circle",
|
|
918
|
+
"account_tree",
|
|
919
|
+
"add",
|
|
920
|
+
"add_chart",
|
|
921
|
+
"add_shopping_cart",
|
|
922
|
+
"admin_panel_settings",
|
|
923
|
+
"ads_click",
|
|
924
|
+
"agriculture",
|
|
925
|
+
"air",
|
|
926
|
+
"alarm",
|
|
927
|
+
"alarm_on",
|
|
928
|
+
"all_inbox",
|
|
929
|
+
"alt_route",
|
|
930
|
+
"analytics",
|
|
931
|
+
"apartment",
|
|
932
|
+
"api",
|
|
933
|
+
"archive",
|
|
934
|
+
"area_chart",
|
|
935
|
+
"arrow_back",
|
|
936
|
+
"arrow_downward",
|
|
937
|
+
"arrow_drop_down",
|
|
938
|
+
"arrow_drop_up",
|
|
939
|
+
"arrow_forward",
|
|
940
|
+
"arrow_left",
|
|
941
|
+
"arrow_upward",
|
|
942
|
+
"article",
|
|
943
|
+
"aspect_ratio",
|
|
944
|
+
"assignment",
|
|
945
|
+
"assignment_late",
|
|
946
|
+
"assignment_turned_in",
|
|
947
|
+
"attach_money",
|
|
948
|
+
"attachment",
|
|
949
|
+
"auto_delete",
|
|
950
|
+
"autorenew",
|
|
951
|
+
"backup",
|
|
952
|
+
"badge",
|
|
953
|
+
"balance",
|
|
954
|
+
"bar_chart",
|
|
955
|
+
"biotech",
|
|
956
|
+
"block",
|
|
957
|
+
"bluetooth",
|
|
958
|
+
"blur_off",
|
|
959
|
+
"blur_on",
|
|
960
|
+
"bolt",
|
|
961
|
+
"book",
|
|
962
|
+
"bookmark",
|
|
963
|
+
"bookmark_add",
|
|
964
|
+
"bookmark_remove",
|
|
965
|
+
"brightness_auto",
|
|
966
|
+
"brightness_high",
|
|
967
|
+
"brightness_low",
|
|
968
|
+
"brush",
|
|
969
|
+
"bubble_chart",
|
|
970
|
+
"bug_report",
|
|
971
|
+
"build",
|
|
972
|
+
"build_circle",
|
|
973
|
+
"cake",
|
|
974
|
+
"calculate",
|
|
975
|
+
"calendar_today",
|
|
976
|
+
"call",
|
|
977
|
+
"campaign",
|
|
978
|
+
"cancel",
|
|
979
|
+
"candlestick_chart",
|
|
980
|
+
"captive_portal",
|
|
981
|
+
"cards_stack",
|
|
982
|
+
"celebration",
|
|
983
|
+
"center_focus_strong",
|
|
984
|
+
"center_focus_weak",
|
|
985
|
+
"chat",
|
|
986
|
+
"check",
|
|
987
|
+
"check_circle",
|
|
988
|
+
"checklist",
|
|
989
|
+
"checklist_rtl",
|
|
990
|
+
"chevron_left",
|
|
991
|
+
"chevron_right",
|
|
992
|
+
"cleaning_services",
|
|
993
|
+
"close",
|
|
994
|
+
"cloud",
|
|
995
|
+
"cloud_done",
|
|
996
|
+
"cloud_download",
|
|
997
|
+
"cloud_upload",
|
|
998
|
+
"co2",
|
|
999
|
+
"code",
|
|
1000
|
+
"comment",
|
|
1001
|
+
"commute",
|
|
1002
|
+
"compare_arrows",
|
|
1003
|
+
"compost",
|
|
1004
|
+
"computer",
|
|
1005
|
+
"construction",
|
|
1006
|
+
"contact_mail",
|
|
1007
|
+
"contact_phone",
|
|
1008
|
+
"contact_support",
|
|
1009
|
+
"contacts",
|
|
1010
|
+
"content_copy",
|
|
1011
|
+
"content_cut",
|
|
1012
|
+
"content_paste",
|
|
1013
|
+
"contract",
|
|
1014
|
+
"contrast",
|
|
1015
|
+
"corporate_fare",
|
|
1016
|
+
"create_new_folder",
|
|
1017
|
+
"credit_card",
|
|
1018
|
+
"crop",
|
|
1019
|
+
"crop_free",
|
|
1020
|
+
"crop_square",
|
|
1021
|
+
"currency_exchange",
|
|
1022
|
+
"cyclone",
|
|
1023
|
+
"dark_mode",
|
|
1024
|
+
"dashboard",
|
|
1025
|
+
"dashboard_customize",
|
|
1026
|
+
"data_exploration",
|
|
1027
|
+
"data_object",
|
|
1028
|
+
"data_saver_on",
|
|
1029
|
+
"data_thresholding",
|
|
1030
|
+
"data_usage",
|
|
1031
|
+
"database",
|
|
1032
|
+
"dataset",
|
|
1033
|
+
"dataset_linked",
|
|
1034
|
+
"delete",
|
|
1035
|
+
"delete_forever",
|
|
1036
|
+
"delete_sweep",
|
|
1037
|
+
"delivery_truck_speed",
|
|
1038
|
+
"departure_board",
|
|
1039
|
+
"description",
|
|
1040
|
+
"developer_board",
|
|
1041
|
+
"device_hub",
|
|
1042
|
+
"device_thermostat",
|
|
1043
|
+
"devices",
|
|
1044
|
+
"diamond",
|
|
1045
|
+
"directions",
|
|
1046
|
+
"directions_bike",
|
|
1047
|
+
"directions_boat",
|
|
1048
|
+
"directions_car",
|
|
1049
|
+
"directions_walk",
|
|
1050
|
+
"dns",
|
|
1051
|
+
"domain",
|
|
1052
|
+
"done",
|
|
1053
|
+
"done_all",
|
|
1054
|
+
"donut_large",
|
|
1055
|
+
"donut_small",
|
|
1056
|
+
"download",
|
|
1057
|
+
"drafts",
|
|
1058
|
+
"drive_file_move",
|
|
1059
|
+
"eco",
|
|
1060
|
+
"edit",
|
|
1061
|
+
"edit_note",
|
|
1062
|
+
"electrical_services",
|
|
1063
|
+
"emergency",
|
|
1064
|
+
"emoji_events",
|
|
1065
|
+
"energy_savings_leaf",
|
|
1066
|
+
"engineering",
|
|
1067
|
+
"equalizer",
|
|
1068
|
+
"error",
|
|
1069
|
+
"ev_station",
|
|
1070
|
+
"event",
|
|
1071
|
+
"explore",
|
|
1072
|
+
"factory",
|
|
1073
|
+
"favorite",
|
|
1074
|
+
"filter_alt",
|
|
1075
|
+
"filter_list",
|
|
1076
|
+
"flag",
|
|
1077
|
+
"flash_on",
|
|
1078
|
+
"flight",
|
|
1079
|
+
"folder",
|
|
1080
|
+
"folder_open",
|
|
1081
|
+
"forest",
|
|
1082
|
+
"format_bold",
|
|
1083
|
+
"format_list_bulleted",
|
|
1084
|
+
"forum",
|
|
1085
|
+
"forward",
|
|
1086
|
+
"fullscreen",
|
|
1087
|
+
"gavel",
|
|
1088
|
+
"grade",
|
|
1089
|
+
"grass",
|
|
1090
|
+
"grid_view",
|
|
1091
|
+
"group",
|
|
1092
|
+
"groups",
|
|
1093
|
+
"handshake",
|
|
1094
|
+
"handyman",
|
|
1095
|
+
"headset_mic",
|
|
1096
|
+
"health_and_safety",
|
|
1097
|
+
"help",
|
|
1098
|
+
"help_center",
|
|
1099
|
+
"history",
|
|
1100
|
+
"home",
|
|
1101
|
+
"home_work",
|
|
1102
|
+
"hourglass_empty",
|
|
1103
|
+
"hub",
|
|
1104
|
+
"image",
|
|
1105
|
+
"inbox",
|
|
1106
|
+
"info",
|
|
1107
|
+
"insert_chart",
|
|
1108
|
+
"integration_instructions",
|
|
1109
|
+
"inventory",
|
|
1110
|
+
"inventory_2",
|
|
1111
|
+
"ios_share",
|
|
1112
|
+
"key",
|
|
1113
|
+
"keyboard",
|
|
1114
|
+
"label",
|
|
1115
|
+
"landscape",
|
|
1116
|
+
"language",
|
|
1117
|
+
"leaderboard",
|
|
1118
|
+
"library_books",
|
|
1119
|
+
"light_mode",
|
|
1120
|
+
"lightbulb",
|
|
1121
|
+
"link",
|
|
1122
|
+
"link_off",
|
|
1123
|
+
"live_help",
|
|
1124
|
+
"local_activity",
|
|
1125
|
+
"local_cafe",
|
|
1126
|
+
"local_shipping",
|
|
1127
|
+
"location_on",
|
|
1128
|
+
"lock",
|
|
1129
|
+
"lock_open",
|
|
1130
|
+
"login",
|
|
1131
|
+
"logout",
|
|
1132
|
+
"mail",
|
|
1133
|
+
"manage_accounts",
|
|
1134
|
+
"map",
|
|
1135
|
+
"mark_email_read",
|
|
1136
|
+
"medical_services",
|
|
1137
|
+
"memory",
|
|
1138
|
+
"menu",
|
|
1139
|
+
"menu_book",
|
|
1140
|
+
"merge",
|
|
1141
|
+
"mic",
|
|
1142
|
+
"military_tech",
|
|
1143
|
+
"monetization_on",
|
|
1144
|
+
"monitoring",
|
|
1145
|
+
"mood",
|
|
1146
|
+
"more_horiz",
|
|
1147
|
+
"more_vert",
|
|
1148
|
+
"my_location",
|
|
1149
|
+
"navigation",
|
|
1150
|
+
"near_me",
|
|
1151
|
+
"nest_eco_leaf",
|
|
1152
|
+
"new_window",
|
|
1153
|
+
"nfc",
|
|
1154
|
+
"notifications",
|
|
1155
|
+
"notifications_active",
|
|
1156
|
+
"offline_bolt",
|
|
1157
|
+
"opacity",
|
|
1158
|
+
"open_in_browser",
|
|
1159
|
+
"open_in_new",
|
|
1160
|
+
"outbound",
|
|
1161
|
+
"outbox",
|
|
1162
|
+
"outgoing_mail",
|
|
1163
|
+
"package_2",
|
|
1164
|
+
"palette",
|
|
1165
|
+
"park",
|
|
1166
|
+
"pause_circle",
|
|
1167
|
+
"payments",
|
|
1168
|
+
"pending_actions",
|
|
1169
|
+
"percent",
|
|
1170
|
+
"person",
|
|
1171
|
+
"person_add",
|
|
1172
|
+
"phone_iphone",
|
|
1173
|
+
"photo",
|
|
1174
|
+
"photo_camera",
|
|
1175
|
+
"picture_as_pdf",
|
|
1176
|
+
"pie_chart",
|
|
1177
|
+
"pin",
|
|
1178
|
+
"pin_drop",
|
|
1179
|
+
"play_circle",
|
|
1180
|
+
"plumbing",
|
|
1181
|
+
"point_of_sale",
|
|
1182
|
+
"policy",
|
|
1183
|
+
"precision_manufacturing",
|
|
1184
|
+
"preview",
|
|
1185
|
+
"print",
|
|
1186
|
+
"production_quantity_limits",
|
|
1187
|
+
"public",
|
|
1188
|
+
"publish",
|
|
1189
|
+
"query_stats",
|
|
1190
|
+
"quiz",
|
|
1191
|
+
"radar",
|
|
1192
|
+
"rate_review",
|
|
1193
|
+
"read_more",
|
|
1194
|
+
"receipt",
|
|
1195
|
+
"recommend",
|
|
1196
|
+
"recycling",
|
|
1197
|
+
"redeem",
|
|
1198
|
+
"redo",
|
|
1199
|
+
"refresh",
|
|
1200
|
+
"remove",
|
|
1201
|
+
"reply",
|
|
1202
|
+
"report",
|
|
1203
|
+
"request_quote",
|
|
1204
|
+
"reviews",
|
|
1205
|
+
"rocket_launch",
|
|
1206
|
+
"route",
|
|
1207
|
+
"router",
|
|
1208
|
+
"rule",
|
|
1209
|
+
"satellite",
|
|
1210
|
+
"save",
|
|
1211
|
+
"savings",
|
|
1212
|
+
"scatter_plot",
|
|
1213
|
+
"schedule",
|
|
1214
|
+
"schema",
|
|
1215
|
+
"school",
|
|
1216
|
+
"science",
|
|
1217
|
+
"search",
|
|
1218
|
+
"security",
|
|
1219
|
+
"sell",
|
|
1220
|
+
"send",
|
|
1221
|
+
"sensors",
|
|
1222
|
+
"settings",
|
|
1223
|
+
"settings_applications",
|
|
1224
|
+
"share",
|
|
1225
|
+
"shield",
|
|
1226
|
+
"shopping_bag",
|
|
1227
|
+
"shopping_cart",
|
|
1228
|
+
"show_chart",
|
|
1229
|
+
"skip_next",
|
|
1230
|
+
"sort",
|
|
1231
|
+
"south",
|
|
1232
|
+
"spa",
|
|
1233
|
+
"space_dashboard",
|
|
1234
|
+
"speed",
|
|
1235
|
+
"sports_score",
|
|
1236
|
+
"ssid_chart",
|
|
1237
|
+
"stacked_bar_chart",
|
|
1238
|
+
"stacked_line_chart",
|
|
1239
|
+
"star",
|
|
1240
|
+
"sticky_note_2",
|
|
1241
|
+
"stop_circle",
|
|
1242
|
+
"store",
|
|
1243
|
+
"storefront",
|
|
1244
|
+
"subtitles_gear",
|
|
1245
|
+
"support_agent",
|
|
1246
|
+
"swap_vert",
|
|
1247
|
+
"sync",
|
|
1248
|
+
"table_chart",
|
|
1249
|
+
"table_chart_view",
|
|
1250
|
+
"table_rows",
|
|
1251
|
+
"tablet",
|
|
1252
|
+
"task",
|
|
1253
|
+
"task_alt",
|
|
1254
|
+
"terminal",
|
|
1255
|
+
"thermostat",
|
|
1256
|
+
"thumb_down",
|
|
1257
|
+
"thumb_up",
|
|
1258
|
+
"timeline",
|
|
1259
|
+
"today",
|
|
1260
|
+
"token",
|
|
1261
|
+
"topic",
|
|
1262
|
+
"track_changes",
|
|
1263
|
+
"traffic",
|
|
1264
|
+
"train",
|
|
1265
|
+
"translate",
|
|
1266
|
+
"travel_explore",
|
|
1267
|
+
"trending_down",
|
|
1268
|
+
"trending_flat",
|
|
1269
|
+
"trending_up",
|
|
1270
|
+
"trophy",
|
|
1271
|
+
"tsunami",
|
|
1272
|
+
"tune",
|
|
1273
|
+
"tv",
|
|
1274
|
+
"unarchive",
|
|
1275
|
+
"undo",
|
|
1276
|
+
"update",
|
|
1277
|
+
"upgrade",
|
|
1278
|
+
"upload",
|
|
1279
|
+
"upload_file",
|
|
1280
|
+
"usb",
|
|
1281
|
+
"vaccines",
|
|
1282
|
+
"verified",
|
|
1283
|
+
"verified_user",
|
|
1284
|
+
"videocam",
|
|
1285
|
+
"view_list",
|
|
1286
|
+
"view_module",
|
|
1287
|
+
"visibility",
|
|
1288
|
+
"visibility_off",
|
|
1289
|
+
"volume_up",
|
|
1290
|
+
"volunteer_activism",
|
|
1291
|
+
"vpn_key",
|
|
1292
|
+
"wallet",
|
|
1293
|
+
"warehouse",
|
|
1294
|
+
"warning",
|
|
1295
|
+
"water_drop",
|
|
1296
|
+
"wb_sunny",
|
|
1297
|
+
"web",
|
|
1298
|
+
"web_asset",
|
|
1299
|
+
"weekend",
|
|
1300
|
+
"whatshot",
|
|
1301
|
+
"widgets",
|
|
1302
|
+
"wifi",
|
|
1303
|
+
"wind_power",
|
|
1304
|
+
"woman",
|
|
1305
|
+
"work",
|
|
1306
|
+
"work_history",
|
|
1307
|
+
"workspace_premium",
|
|
1308
|
+
"workspaces",
|
|
1309
|
+
"wrap_text",
|
|
1310
|
+
"wysiwyg",
|
|
1311
|
+
"yard",
|
|
1312
|
+
"zoom_in",
|
|
1313
|
+
"zoom_out"
|
|
1314
|
+
];
|
|
1315
|
+
const _hoisted_1 = { class: "rs-icon-picker__value" };
|
|
1316
|
+
const _hoisted_2 = {
|
|
1317
|
+
key: 0,
|
|
1318
|
+
class: "rs-icon-picker__dropdown"
|
|
1319
|
+
};
|
|
1320
|
+
const _hoisted_3 = { class: "rs-icon-picker__grid" };
|
|
1321
|
+
const _hoisted_4 = ["title", "onClick"];
|
|
1322
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1323
|
+
...{
|
|
1324
|
+
name: "RsIconPicker"
|
|
1325
|
+
},
|
|
1326
|
+
__name: "RsIconPicker",
|
|
1327
|
+
props: {
|
|
1328
|
+
modelValue: { default: "" },
|
|
1329
|
+
placeholder: { default: "Selecciona ícono" },
|
|
1330
|
+
invalid: { type: Boolean, default: false }
|
|
1331
|
+
},
|
|
1332
|
+
emits: ["update:modelValue"],
|
|
1333
|
+
setup(__props, { emit: __emit }) {
|
|
1334
|
+
const emit = __emit;
|
|
1335
|
+
const root = ref(null);
|
|
1336
|
+
const isOpen = ref(false);
|
|
1337
|
+
const search = ref("");
|
|
1338
|
+
const filteredIcons = computed(
|
|
1339
|
+
() => search.value ? iconCatalog.filter((name) => name.includes(search.value.toLowerCase())) : iconCatalog
|
|
1340
|
+
);
|
|
1341
|
+
function toggleOpen() {
|
|
1342
|
+
isOpen.value = !isOpen.value;
|
|
1343
|
+
}
|
|
1344
|
+
function selectIcon(name) {
|
|
1345
|
+
emit("update:modelValue", name);
|
|
1346
|
+
isOpen.value = false;
|
|
1347
|
+
}
|
|
1348
|
+
function onDocumentClick(e) {
|
|
1349
|
+
if (isOpen.value && root.value && !root.value.contains(e.target)) {
|
|
1350
|
+
isOpen.value = false;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
onMounted(() => document.addEventListener("click", onDocumentClick));
|
|
1354
|
+
onBeforeUnmount(() => document.removeEventListener("click", onDocumentClick));
|
|
1355
|
+
return (_ctx, _cache) => {
|
|
1356
|
+
return openBlock(), createElementBlock("div", {
|
|
1357
|
+
ref_key: "root",
|
|
1358
|
+
ref: root,
|
|
1359
|
+
class: "rs-icon-picker"
|
|
1360
|
+
}, [
|
|
1361
|
+
createElementVNode("div", {
|
|
1362
|
+
class: normalizeClass(["rs-icon-picker__trigger", { "rs-icon-picker__trigger--invalid": __props.invalid }]),
|
|
1363
|
+
onClick: toggleOpen
|
|
1364
|
+
}, [
|
|
1365
|
+
createElementVNode("div", _hoisted_1, [
|
|
1366
|
+
__props.modelValue ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
1367
|
+
key: 0,
|
|
1368
|
+
name: __props.modelValue
|
|
1369
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
1370
|
+
createElementVNode("span", {
|
|
1371
|
+
class: normalizeClass({ "rs-icon-picker__placeholder": !__props.modelValue })
|
|
1372
|
+
}, toDisplayString(__props.modelValue || __props.placeholder), 3)
|
|
1373
|
+
]),
|
|
1374
|
+
createVNode(unref(_sfc_main$3), {
|
|
1375
|
+
name: isOpen.value ? "arrow_drop_up" : "arrow_drop_down"
|
|
1376
|
+
}, null, 8, ["name"])
|
|
1377
|
+
], 2),
|
|
1378
|
+
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
1379
|
+
withDirectives(createElementVNode("input", {
|
|
1380
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
1381
|
+
class: "rs-icon-picker__search",
|
|
1382
|
+
placeholder: "Buscar ícono...",
|
|
1383
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
1384
|
+
}, ["stop"]))
|
|
1385
|
+
}, null, 512), [
|
|
1386
|
+
[vModelText, search.value]
|
|
1387
|
+
]),
|
|
1388
|
+
createElementVNode("div", _hoisted_3, [
|
|
1389
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredIcons.value, (name) => {
|
|
1390
|
+
return openBlock(), createElementBlock("div", {
|
|
1391
|
+
key: name,
|
|
1392
|
+
class: normalizeClass(["rs-icon-picker__item", { "rs-icon-picker__item--selected": name === __props.modelValue }]),
|
|
1393
|
+
title: name,
|
|
1394
|
+
onClick: withModifiers(($event) => selectIcon(name), ["stop"])
|
|
1395
|
+
}, [
|
|
1396
|
+
createVNode(unref(_sfc_main$3), { name }, null, 8, ["name"])
|
|
1397
|
+
], 10, _hoisted_4);
|
|
1398
|
+
}), 128))
|
|
1399
|
+
])
|
|
1400
|
+
])) : createCommentVNode("", true)
|
|
1401
|
+
], 512);
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
905
1405
|
export {
|
|
906
1406
|
RobosophyUiVue,
|
|
907
|
-
_sfc_main$
|
|
908
|
-
_sfc_main$
|
|
909
|
-
_sfc_main as
|
|
1407
|
+
_sfc_main$2 as RsAccountSelector,
|
|
1408
|
+
_sfc_main$3 as RsIcon,
|
|
1409
|
+
_sfc_main as RsIconPicker,
|
|
1410
|
+
_sfc_main$1 as RsSidebar,
|
|
910
1411
|
components,
|
|
911
1412
|
RobosophyUiVue as default,
|
|
1413
|
+
iconCatalog,
|
|
912
1414
|
rsPrimeIcon
|
|
913
1415
|
};
|
|
914
1416
|
//# sourceMappingURL=index.js.map
|