@appmax_npm/ds-prime 1.0.0-alpha.6 → 1.0.0-alpha.61
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/AmFieldWrapper.vue_vue_type_script_setup_true_lang-BMFtIZal.js +47 -0
- package/AmIcon.vue_vue_type_script_setup_true_lang-DoxkzWsy.js +26 -0
- package/AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js +60 -0
- package/AmTooltip.vue_vue_type_script_setup_true_lang-Bimhrnhu.js +64 -0
- package/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/accordion/index.d.ts +2 -0
- package/accordion/index.js +2 -0
- package/accordioncontent/index.d.ts +2 -0
- package/accordioncontent/index.js +2 -0
- package/accordionheader/index.d.ts +2 -0
- package/accordionheader/index.js +2 -0
- package/accordionpanel/index.d.ts +2 -0
- package/accordionpanel/index.js +2 -0
- package/accordiontab/index.d.ts +2 -0
- package/accordiontab/index.js +2 -0
- package/amalert/index.d.ts +21 -0
- package/amalert/index.js +109 -0
- package/ambutton/index.d.ts +44 -0
- package/ambutton/index.js +55 -0
- package/amdatefilter/index.d.ts +14 -0
- package/amdatefilter/index.js +150 -0
- package/amfield/index.d.ts +24 -0
- package/amfield/index.js +41 -0
- package/amfieldwrapper/index.d.ts +26 -0
- package/amfieldwrapper/index.js +4 -0
- package/amform/index.d.ts +25 -0
- package/amform/index.js +21 -0
- package/amhelper/index.d.ts +28 -0
- package/amhelper/index.js +69 -0
- package/amicon/index.d.ts +26 -0
- package/amicon/index.js +4 -0
- package/amiconmaterial/index.d.ts +26 -0
- package/amiconmaterial/index.js +29 -0
- package/amiconsvg/index.d.ts +25 -0
- package/amiconsvg/index.js +713 -0
- package/amtext/index.d.ts +27 -0
- package/amtext/index.js +4 -0
- package/amtooltip/index.d.ts +25 -0
- package/amtooltip/index.js +4 -0
- package/animateonscroll/index.d.ts +2 -0
- package/animateonscroll/index.js +2 -0
- package/autocomplete/index.d.ts +2 -0
- package/autocomplete/index.js +2 -0
- package/avatar/index.d.ts +2 -0
- package/avatar/index.js +2 -0
- package/avatargroup/index.d.ts +2 -0
- package/avatargroup/index.js +2 -0
- package/badge/index.d.ts +2 -0
- package/badge/index.js +2 -0
- package/badgedirective/index.d.ts +2 -0
- package/badgedirective/index.js +2 -0
- package/blockui/index.d.ts +2 -0
- package/blockui/index.js +2 -0
- package/breadcrumb/index.d.ts +2 -0
- package/breadcrumb/index.js +2 -0
- package/button/index.d.ts +2 -0
- package/button/index.js +2 -0
- package/buttongroup/index.d.ts +2 -0
- package/buttongroup/index.js +2 -0
- package/calendar/index.d.ts +2 -0
- package/calendar/index.js +2 -0
- package/card/index.d.ts +2 -0
- package/card/index.js +2 -0
- package/carousel/index.d.ts +2 -0
- package/carousel/index.js +2 -0
- package/cascadeselect/index.d.ts +2 -0
- package/cascadeselect/index.js +2 -0
- package/chart/index.d.ts +2 -0
- package/chart/index.js +2 -0
- package/checkbox/index.d.ts +2 -0
- package/checkbox/index.js +2 -0
- package/checkboxgroup/index.d.ts +2 -0
- package/checkboxgroup/index.js +2 -0
- package/chip/index.d.ts +2 -0
- package/chip/index.js +2 -0
- package/chips/index.d.ts +2 -0
- package/chips/index.js +2 -0
- package/colorpicker/index.d.ts +2 -0
- package/colorpicker/index.js +2 -0
- package/column/index.d.ts +2 -0
- package/column/index.js +2 -0
- package/columngroup/index.d.ts +2 -0
- package/columngroup/index.js +2 -0
- package/config/colors.d.ts +115 -0
- package/config/colors.js +115 -0
- package/config/index.d.ts +3 -0
- package/config/index.js +3 -0
- package/config/preset.d.ts +1 -0
- package/config/preset.js +73 -0
- package/config/theme.d.ts +2 -0
- package/config/theme.js +18 -0
- package/confirmationeventbus/index.d.ts +2 -0
- package/confirmationeventbus/index.js +2 -0
- package/confirmationoptions/index.d.ts +2 -0
- package/confirmationoptions/index.js +2 -0
- package/confirmationservice/index.d.ts +2 -0
- package/confirmationservice/index.js +2 -0
- package/confirmdialog/index.d.ts +2 -0
- package/confirmdialog/index.js +2 -0
- package/confirmpopup/index.d.ts +2 -0
- package/confirmpopup/index.js +2 -0
- package/contextmenu/index.d.ts +2 -0
- package/contextmenu/index.js +2 -0
- package/css/index.css +1 -0
- package/datatable/index.d.ts +2 -0
- package/datatable/index.js +2 -0
- package/dataview/index.d.ts +2 -0
- package/dataview/index.js +2 -0
- package/datepicker/index.d.ts +2 -0
- package/datepicker/index.js +2 -0
- package/deferredcontent/index.d.ts +2 -0
- package/deferredcontent/index.js +2 -0
- package/dialog/index.d.ts +2 -0
- package/dialog/index.js +2 -0
- package/dialogservice/index.d.ts +2 -0
- package/dialogservice/index.js +2 -0
- package/divider/index.d.ts +2 -0
- package/divider/index.js +2 -0
- package/dock/index.d.ts +2 -0
- package/dock/index.js +2 -0
- package/drawer/index.d.ts +2 -0
- package/drawer/index.js +2 -0
- package/dropdown/index.d.ts +2 -0
- package/dropdown/index.js +2 -0
- package/dynamicdialog/index.d.ts +2 -0
- package/dynamicdialog/index.js +2 -0
- package/dynamicdialogeventbus/index.d.ts +2 -0
- package/dynamicdialogeventbus/index.js +2 -0
- package/dynamicdialogoptions/index.d.ts +2 -0
- package/dynamicdialogoptions/index.js +2 -0
- package/editor/index.d.ts +2 -0
- package/editor/index.js +2 -0
- package/fieldset/index.d.ts +2 -0
- package/fieldset/index.js +2 -0
- package/fileupload/index.d.ts +2 -0
- package/fileupload/index.js +2 -0
- package/floatlabel/index.d.ts +2 -0
- package/floatlabel/index.js +2 -0
- package/fluid/index.d.ts +2 -0
- package/fluid/index.js +2 -0
- package/focustrap/index.d.ts +2 -0
- package/focustrap/index.js +2 -0
- package/forms/index.d.ts +2 -0
- package/forms/index.js +2 -0
- package/galleria/index.d.ts +2 -0
- package/galleria/index.js +2 -0
- package/iconfield/index.d.ts +2 -0
- package/iconfield/index.js +2 -0
- package/iftalabel/index.d.ts +2 -0
- package/iftalabel/index.js +2 -0
- package/image/index.d.ts +2 -0
- package/image/index.js +2 -0
- package/imagecompare/index.d.ts +2 -0
- package/imagecompare/index.js +2 -0
- package/index/index.js +213 -0
- package/index.d.ts +6 -2
- package/index.js +18 -0
- package/inlinemessage/index.d.ts +2 -0
- package/inlinemessage/index.js +2 -0
- package/inplace/index.d.ts +2 -0
- package/inplace/index.js +2 -0
- package/inputchips/index.d.ts +2 -0
- package/inputchips/index.js +2 -0
- package/inputgroup/index.d.ts +2 -0
- package/inputgroup/index.js +2 -0
- package/inputgroupaddon/index.d.ts +2 -0
- package/inputgroupaddon/index.js +2 -0
- package/inputicon/index.d.ts +2 -0
- package/inputicon/index.js +2 -0
- package/inputmask/index.d.ts +2 -0
- package/inputmask/index.js +2 -0
- package/inputnumber/index.d.ts +2 -0
- package/inputnumber/index.js +2 -0
- package/inputotp/index.d.ts +2 -0
- package/inputotp/index.js +2 -0
- package/inputswitch/index.d.ts +2 -0
- package/inputswitch/index.js +2 -0
- package/inputtext/index.d.ts +2 -0
- package/inputtext/index.js +2 -0
- package/keyfilter/index.d.ts +2 -0
- package/keyfilter/index.js +2 -0
- package/knob/index.d.ts +2 -0
- package/knob/index.js +2 -0
- package/listbox/index.d.ts +2 -0
- package/listbox/index.js +2 -0
- package/megamenu/index.d.ts +2 -0
- package/megamenu/index.js +2 -0
- package/menu/index.d.ts +2 -0
- package/menu/index.js +2 -0
- package/menubar/index.d.ts +2 -0
- package/menubar/index.js +2 -0
- package/menuitem/index.d.ts +2 -0
- package/menuitem/index.js +2 -0
- package/message/index.d.ts +2 -0
- package/message/index.js +2 -0
- package/metergroup/index.d.ts +2 -0
- package/metergroup/index.js +2 -0
- package/multiselect/index.d.ts +2 -0
- package/multiselect/index.js +2 -0
- package/orderlist/index.d.ts +2 -0
- package/orderlist/index.js +2 -0
- package/organizationchart/index.d.ts +2 -0
- package/organizationchart/index.js +2 -0
- package/overlaybadge/index.d.ts +2 -0
- package/overlaybadge/index.js +2 -0
- package/overlayeventbus/index.d.ts +2 -0
- package/overlayeventbus/index.js +2 -0
- package/overlaypanel/index.d.ts +2 -0
- package/overlaypanel/index.js +2 -0
- package/package.json +24 -8
- package/paginator/index.d.ts +2 -0
- package/paginator/index.js +2 -0
- package/panel/index.d.ts +2 -0
- package/panel/index.js +2 -0
- package/panelmenu/index.d.ts +2 -0
- package/panelmenu/index.js +2 -0
- package/passthrough/index.d.ts +2 -0
- package/passthrough/index.js +2 -0
- package/password/index.d.ts +2 -0
- package/password/index.js +2 -0
- package/picklist/index.d.ts +2 -0
- package/picklist/index.js +2 -0
- package/popover/index.d.ts +2 -0
- package/popover/index.js +2 -0
- package/portal/index.d.ts +2 -0
- package/portal/index.js +2 -0
- package/progressbar/index.d.ts +2 -0
- package/progressbar/index.js +2 -0
- package/progressspinner/index.d.ts +2 -0
- package/progressspinner/index.js +2 -0
- package/radiobutton/index.d.ts +2 -0
- package/radiobutton/index.js +2 -0
- package/radiobuttongroup/index.d.ts +2 -0
- package/radiobuttongroup/index.js +2 -0
- package/rating/index.d.ts +2 -0
- package/rating/index.js +2 -0
- package/ripple/index.d.ts +2 -0
- package/ripple/index.js +2 -0
- package/row/index.d.ts +2 -0
- package/row/index.js +2 -0
- package/scrollpanel/index.d.ts +2 -0
- package/scrollpanel/index.js +2 -0
- package/scrolltop/index.d.ts +2 -0
- package/scrolltop/index.js +2 -0
- package/select/index.d.ts +2 -0
- package/select/index.js +2 -0
- package/selectbutton/index.d.ts +2 -0
- package/selectbutton/index.js +2 -0
- package/sidebar/index.d.ts +2 -0
- package/sidebar/index.js +2 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/index.js +2 -0
- package/slider/index.d.ts +2 -0
- package/slider/index.js +2 -0
- package/speeddial/index.d.ts +2 -0
- package/speeddial/index.js +2 -0
- package/splitbutton/index.d.ts +2 -0
- package/splitbutton/index.js +2 -0
- package/splitter/index.d.ts +2 -0
- package/splitter/index.js +2 -0
- package/splitterpanel/index.d.ts +2 -0
- package/splitterpanel/index.js +2 -0
- package/step/index.d.ts +2 -0
- package/step/index.js +2 -0
- package/stepitem/index.d.ts +2 -0
- package/stepitem/index.js +2 -0
- package/steplist/index.d.ts +2 -0
- package/steplist/index.js +2 -0
- package/steppanel/index.d.ts +2 -0
- package/steppanel/index.js +2 -0
- package/steppanels/index.d.ts +2 -0
- package/steppanels/index.js +2 -0
- package/stepper/index.d.ts +2 -0
- package/stepper/index.js +2 -0
- package/steps/index.d.ts +2 -0
- package/steps/index.js +2 -0
- package/styleclass/index.d.ts +2 -0
- package/styleclass/index.js +2 -0
- package/tab/index.d.ts +2 -0
- package/tab/index.js +2 -0
- package/tablist/index.d.ts +2 -0
- package/tablist/index.js +2 -0
- package/tabmenu/index.d.ts +2 -0
- package/tabmenu/index.js +2 -0
- package/tabpanel/index.d.ts +2 -0
- package/tabpanel/index.js +2 -0
- package/tabpanels/index.d.ts +2 -0
- package/tabpanels/index.js +2 -0
- package/tabs/index.d.ts +2 -0
- package/tabs/index.js +2 -0
- package/tabview/index.d.ts +2 -0
- package/tabview/index.js +2 -0
- package/tag/index.d.ts +2 -0
- package/tag/index.js +2 -0
- package/tailwind/index.d.ts +143 -0
- package/tailwind/index.js +30 -0
- package/terminal/index.d.ts +2 -0
- package/terminal/index.js +2 -0
- package/terminalservice/index.d.ts +2 -0
- package/terminalservice/index.js +2 -0
- package/textarea/index.d.ts +2 -0
- package/textarea/index.js +2 -0
- package/tieredmenu/index.d.ts +2 -0
- package/tieredmenu/index.js +2 -0
- package/timeline/index.d.ts +2 -0
- package/timeline/index.js +2 -0
- package/toast/index.d.ts +2 -0
- package/toast/index.js +2 -0
- package/toasteventbus/index.d.ts +2 -0
- package/toasteventbus/index.js +2 -0
- package/toastservice/index.d.ts +2 -0
- package/toastservice/index.js +2 -0
- package/togglebutton/index.d.ts +2 -0
- package/togglebutton/index.js +2 -0
- package/toggleswitch/index.d.ts +2 -0
- package/toggleswitch/index.js +2 -0
- package/toolbar/index.d.ts +2 -0
- package/toolbar/index.js +2 -0
- package/tooltip/index.d.ts +2 -0
- package/tooltip/index.js +2 -0
- package/tree/index.d.ts +2 -0
- package/tree/index.js +2 -0
- package/treenode/index.d.ts +2 -0
- package/treenode/index.js +2 -0
- package/treeselect/index.d.ts +2 -0
- package/treeselect/index.js +2 -0
- package/treetable/index.d.ts +2 -0
- package/treetable/index.js +2 -0
- package/useconfirm/index.d.ts +1 -0
- package/useconfirm/index.js +1 -0
- package/usedialog/index.d.ts +1 -0
- package/usedialog/index.js +1 -0
- package/usestyle/index.d.ts +1 -0
- package/usestyle/index.js +1 -0
- package/usetoast/index.d.ts +1 -0
- package/usetoast/index.js +1 -0
- package/virtualscroller/index.d.ts +2 -0
- package/virtualscroller/index.js +2 -0
- package/index.es.js +0 -5152
- package/index.umd.js +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as p, openBlock as l, createElementBlock as i, createBlock as r, withCtx as t, createTextVNode as a, toDisplayString as o, createCommentVNode as n, renderSlot as m } from "vue";
|
|
2
|
+
import { _ as s } from "./AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
3
|
+
const d = { class: "grid gap-1 w-full" }, u = { name: "AmFieldWrapper" }, k = /* @__PURE__ */ p({
|
|
4
|
+
...u,
|
|
5
|
+
props: {
|
|
6
|
+
label: {},
|
|
7
|
+
error: {},
|
|
8
|
+
help: {}
|
|
9
|
+
},
|
|
10
|
+
setup(c) {
|
|
11
|
+
return (e, _) => (l(), i("label", d, [
|
|
12
|
+
e.label ? (l(), r(s, {
|
|
13
|
+
key: 0,
|
|
14
|
+
as: "span",
|
|
15
|
+
variant: "subtitle"
|
|
16
|
+
}, {
|
|
17
|
+
default: t(() => [
|
|
18
|
+
a(o(e.label), 1)
|
|
19
|
+
]),
|
|
20
|
+
_: 1
|
|
21
|
+
})) : n("", !0),
|
|
22
|
+
m(e.$slots, "default"),
|
|
23
|
+
e.error ? (l(), r(s, {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "text-danger",
|
|
26
|
+
size: "small"
|
|
27
|
+
}, {
|
|
28
|
+
default: t(() => [
|
|
29
|
+
a(o(e.error), 1)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
})) : e.help ? (l(), r(s, {
|
|
33
|
+
key: 2,
|
|
34
|
+
class: "text-muted-color",
|
|
35
|
+
size: "small"
|
|
36
|
+
}, {
|
|
37
|
+
default: t(() => [
|
|
38
|
+
a(o(e.help), 1)
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
})) : n("", !0)
|
|
42
|
+
]));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
k as _
|
|
47
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as e, createElementBlock as c, createBlock as a, resolveDynamicComponent as s, normalizeProps as m, guardReactiveProps as i } from "vue";
|
|
2
|
+
import p from "./amiconmaterial/index.js";
|
|
3
|
+
import l from "./amiconsvg/index.js";
|
|
4
|
+
const _ = { class: "am-prime-icon" }, k = /* @__PURE__ */ t({
|
|
5
|
+
__name: "AmIcon",
|
|
6
|
+
props: {
|
|
7
|
+
icon: {},
|
|
8
|
+
color: {},
|
|
9
|
+
size: {},
|
|
10
|
+
variant: {},
|
|
11
|
+
class: {},
|
|
12
|
+
style: {}
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const r = {
|
|
16
|
+
material: p,
|
|
17
|
+
svg: l
|
|
18
|
+
}, o = n;
|
|
19
|
+
return (v, f) => (e(), c("div", _, [
|
|
20
|
+
(e(), a(s(r[o.variant]), m(i(o)), null, 16))
|
|
21
|
+
]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
k as _
|
|
26
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as a, openBlock as o, createBlock as l, resolveDynamicComponent as n, normalizeClass as r, unref as i, withCtx as m, renderSlot as d } from "vue";
|
|
2
|
+
import { cva as c } from "class-variance-authority";
|
|
3
|
+
import { twMerge as f } from "tailwind-merge";
|
|
4
|
+
const u = c(
|
|
5
|
+
"am-text font-normal text-color text-base [&strong]:font-bold [&>strong]:font-bold",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
caption: "text-xs text-muted-color font-medium",
|
|
10
|
+
body: "text-sm [&strong]:font-medium [&>strong]:font-medium [&p]text-base",
|
|
11
|
+
subtitle: "",
|
|
12
|
+
title: "text-2xl",
|
|
13
|
+
display: "text-5xl [&strong]:font-semibold [&>strong]:font-semibold"
|
|
14
|
+
},
|
|
15
|
+
isStrong: { false: "", true: "" },
|
|
16
|
+
size: { small: "", medium: "", large: "" }
|
|
17
|
+
},
|
|
18
|
+
compoundVariants: [
|
|
19
|
+
// caption
|
|
20
|
+
{ variant: "caption", isStrong: !0, class: "font-bold" },
|
|
21
|
+
// body
|
|
22
|
+
{ variant: "body", isStrong: !0, class: "font-medium" },
|
|
23
|
+
// subtitle
|
|
24
|
+
{ variant: "subtitle", isStrong: !0, class: "font-bold" },
|
|
25
|
+
// title
|
|
26
|
+
{ variant: "title", size: "small", class: "text-lg" },
|
|
27
|
+
// { variant: 'title', size: 'medium', class: 'text-2xl' },
|
|
28
|
+
{ variant: "title", size: "large", class: "text-3xl" },
|
|
29
|
+
{ variant: "title", isStrong: !0, class: "font-bold" },
|
|
30
|
+
// display
|
|
31
|
+
{ variant: "display", size: "small", class: "text-4xl" },
|
|
32
|
+
// { variant: 'display', size: 'medium', class: 'text-5xl' }
|
|
33
|
+
{ variant: "display", isStrong: !0, class: "font-bold" }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
), x = (s, t) => f(u(s), t), y = /* @__PURE__ */ a({
|
|
37
|
+
__name: "AmText",
|
|
38
|
+
props: {
|
|
39
|
+
as: { default: "div" },
|
|
40
|
+
size: { default: "medium" },
|
|
41
|
+
variant: { default: "body" },
|
|
42
|
+
isStrong: { type: Boolean, default: !1 },
|
|
43
|
+
class: {},
|
|
44
|
+
style: {}
|
|
45
|
+
},
|
|
46
|
+
setup(s) {
|
|
47
|
+
const t = s;
|
|
48
|
+
return (e, p) => (o(), l(n(e.as), {
|
|
49
|
+
class: r(i(x)(t, t.class))
|
|
50
|
+
}, {
|
|
51
|
+
default: m(() => [
|
|
52
|
+
d(e.$slots, "default")
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["class"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
y as _
|
|
60
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as c, computed as r, resolveDirective as d, renderSlot as e, withDirectives as s, openBlock as p, createElementBlock as a, createCommentVNode as v } from "vue";
|
|
2
|
+
const m = {
|
|
3
|
+
key: 1,
|
|
4
|
+
class: "am-prime-tooltip"
|
|
5
|
+
}, _ = {
|
|
6
|
+
key: 2,
|
|
7
|
+
class: "am-prime-tooltip"
|
|
8
|
+
}, f = {
|
|
9
|
+
key: 3,
|
|
10
|
+
class: "am-prime-tooltip"
|
|
11
|
+
}, h = {
|
|
12
|
+
key: 4,
|
|
13
|
+
class: "am-prime-tooltip"
|
|
14
|
+
}, y = /* @__PURE__ */ c({
|
|
15
|
+
__name: "AmTooltip",
|
|
16
|
+
props: {
|
|
17
|
+
tooltipText: {},
|
|
18
|
+
tooltipPosition: {},
|
|
19
|
+
showTooltip: {},
|
|
20
|
+
class: {},
|
|
21
|
+
style: {}
|
|
22
|
+
},
|
|
23
|
+
setup(n) {
|
|
24
|
+
const t = n, i = r(() => t.tooltipPosition || "top"), u = r(() => t.showTooltip || !0);
|
|
25
|
+
return (o, T) => {
|
|
26
|
+
const l = d("tooltip");
|
|
27
|
+
return u.value ? i.value === "top" ? s((p(), a("div", m, [
|
|
28
|
+
e(o.$slots, "default")
|
|
29
|
+
])), [
|
|
30
|
+
[
|
|
31
|
+
l,
|
|
32
|
+
{ value: t.tooltipText },
|
|
33
|
+
void 0,
|
|
34
|
+
{ top: !0 }
|
|
35
|
+
]
|
|
36
|
+
]) : i.value === "bottom" ? s((p(), a("div", _, [
|
|
37
|
+
e(o.$slots, "default")
|
|
38
|
+
])), [
|
|
39
|
+
[
|
|
40
|
+
l,
|
|
41
|
+
{ value: t.tooltipText },
|
|
42
|
+
void 0,
|
|
43
|
+
{ bottom: !0 }
|
|
44
|
+
]
|
|
45
|
+
]) : i.value === "left" ? s((p(), a("div", f, [
|
|
46
|
+
e(o.$slots, "default")
|
|
47
|
+
])), [
|
|
48
|
+
[
|
|
49
|
+
l,
|
|
50
|
+
{ value: t.tooltipText },
|
|
51
|
+
void 0,
|
|
52
|
+
{ left: !0 }
|
|
53
|
+
]
|
|
54
|
+
]) : i.value === "right" ? s((p(), a("div", h, [
|
|
55
|
+
e(o.$slots, "default")
|
|
56
|
+
])), [
|
|
57
|
+
[l, { value: t.tooltipText }]
|
|
58
|
+
]) : v("", !0) : e(o.$slots, "default", { key: 0 });
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
y as _
|
|
64
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AllowedComponentProps, DefineComponent, VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface AmAlertProps extends AllowedComponentProps {
|
|
4
|
+
variant: 'success' | 'error' | 'warning' | 'info';
|
|
5
|
+
title?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
size?: 'full' | 'fit';
|
|
8
|
+
closable?: boolean;
|
|
9
|
+
icon?: string;
|
|
10
|
+
class?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface AmAlertSlots {
|
|
14
|
+
titleSlot: () => VNode[];
|
|
15
|
+
messageSlot: () => Vnode[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface AmAlertEmits {}
|
|
19
|
+
|
|
20
|
+
declare const AmAlert: DefineComponent<AmAlertProps, AmAlertSlots, AmAlertEmits>;
|
|
21
|
+
export default AmAlert;
|
package/amalert/index.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as w, computed as _, openBlock as o, createElementBlock as l, normalizeClass as b, unref as y, createVNode as s, createElementVNode as h, renderSlot as n, withCtx as i, createTextVNode as c, toDisplayString as m, createBlock as k, createCommentVNode as d } from "vue";
|
|
2
|
+
import { cva as z } from "class-variance-authority";
|
|
3
|
+
import { twMerge as C } from "tailwind-merge";
|
|
4
|
+
import { _ as f } from "../AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js";
|
|
5
|
+
import { _ as u } from "../AmIcon.vue_vue_type_script_setup_true_lang-DoxkzWsy.js";
|
|
6
|
+
const V = z("w-fit bg-green-100 shadow-sm rounded-md p-3 flex flex-row gap-2", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
error: "bg-red-100",
|
|
10
|
+
warning: "bg-yellow-100",
|
|
11
|
+
information: "bg-grape-100"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
full: "w-full",
|
|
15
|
+
fit: "w-fit"
|
|
16
|
+
},
|
|
17
|
+
closable: { true: "", false: "" }
|
|
18
|
+
},
|
|
19
|
+
compoundVariants: []
|
|
20
|
+
}), S = (a, r) => C(V(a), r), x = {
|
|
21
|
+
class: "flex flex-col gap-2 items-start",
|
|
22
|
+
"data-test": "amalert-content"
|
|
23
|
+
}, H = /* @__PURE__ */ w({
|
|
24
|
+
__name: "AmAlert",
|
|
25
|
+
props: {
|
|
26
|
+
variant: { default: "info" },
|
|
27
|
+
title: { default: "" },
|
|
28
|
+
message: { default: "" },
|
|
29
|
+
size: { default: "fit" },
|
|
30
|
+
closable: { type: Boolean, default: !1 },
|
|
31
|
+
icon: { default: "" },
|
|
32
|
+
class: {},
|
|
33
|
+
style: {}
|
|
34
|
+
},
|
|
35
|
+
emits: ["close"],
|
|
36
|
+
setup(a, { emit: r }) {
|
|
37
|
+
const p = r, e = a, g = _(() => {
|
|
38
|
+
if (e.icon)
|
|
39
|
+
return e.icon;
|
|
40
|
+
switch (e.variant) {
|
|
41
|
+
case "error":
|
|
42
|
+
return "warning";
|
|
43
|
+
case "warning":
|
|
44
|
+
return "warning";
|
|
45
|
+
case "success":
|
|
46
|
+
return "check_circle";
|
|
47
|
+
default:
|
|
48
|
+
return "error";
|
|
49
|
+
}
|
|
50
|
+
}), v = () => {
|
|
51
|
+
p("close");
|
|
52
|
+
};
|
|
53
|
+
return (t, A) => (o(), l("div", {
|
|
54
|
+
class: b([y(S)(e, e.class), "items-start"])
|
|
55
|
+
}, [
|
|
56
|
+
s(u, {
|
|
57
|
+
variant: "material",
|
|
58
|
+
icon: g.value,
|
|
59
|
+
type: "sharp",
|
|
60
|
+
size: "md",
|
|
61
|
+
color: t.variant
|
|
62
|
+
}, null, 8, ["icon", "color"]),
|
|
63
|
+
h("div", x, [
|
|
64
|
+
n(t.$slots, "titleSlot", {}, () => [
|
|
65
|
+
s(f, {
|
|
66
|
+
as: "div",
|
|
67
|
+
isStrong: "",
|
|
68
|
+
variant: "subtitle"
|
|
69
|
+
}, {
|
|
70
|
+
default: i(() => [
|
|
71
|
+
c(m(e.title), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})
|
|
75
|
+
]),
|
|
76
|
+
n(t.$slots, "messageSlot", {}, () => [
|
|
77
|
+
e.message ? (o(), k(f, {
|
|
78
|
+
key: 0,
|
|
79
|
+
as: "div",
|
|
80
|
+
variant: "body",
|
|
81
|
+
size: "small"
|
|
82
|
+
}, {
|
|
83
|
+
default: i(() => [
|
|
84
|
+
c(m(e.message), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})) : d("", !0)
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
e.closable ? (o(), l("div", {
|
|
91
|
+
key: 0,
|
|
92
|
+
"data-test": "amalert-close-button",
|
|
93
|
+
onClick: v,
|
|
94
|
+
class: "cursor-pointer"
|
|
95
|
+
}, [
|
|
96
|
+
s(u, {
|
|
97
|
+
variant: "material",
|
|
98
|
+
icon: "close",
|
|
99
|
+
type: "sharp",
|
|
100
|
+
size: "md",
|
|
101
|
+
color: t.iconColor
|
|
102
|
+
}, null, 8, ["color"])
|
|
103
|
+
])) : d("", !0)
|
|
104
|
+
], 2));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
H as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AllowedComponentProps, Component, DefineComponent, VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface AmButtonProps extends AllowedComponentProps {
|
|
4
|
+
as?: string | Component;
|
|
5
|
+
to?: string | Record<string, any>;
|
|
6
|
+
label?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
iconPos?: 'left' | 'right' | 'top' | 'bottom';
|
|
9
|
+
iconClass?: string;
|
|
10
|
+
badge?: string;
|
|
11
|
+
badgeClass?: string;
|
|
12
|
+
badgeSeverity?: 'secondary' | 'info' | 'success' | 'warn' | 'danger' | 'contrast' | null;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
loadingIcon?: string;
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
link?: boolean;
|
|
17
|
+
severity?: 'secondary' | 'success' | 'info' | 'warn' | 'help' | 'danger' | 'contrast';
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
text?: boolean;
|
|
20
|
+
outlined?: boolean;
|
|
21
|
+
size?: 'small' | 'large';
|
|
22
|
+
plain?: boolean;
|
|
23
|
+
fluid?: boolean;
|
|
24
|
+
href?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface AmButtonSlots {
|
|
29
|
+
default: () => VNode[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AmButtonEmits {}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* **DS Prime - AmButton**
|
|
36
|
+
*
|
|
37
|
+
* AmButton é um componente customizado para o DS Prime.
|
|
38
|
+
*
|
|
39
|
+
* [Documentação](https://appmax-space.bitbucket.io/ds-prime/componentes/AmButton.html)
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
declare const AmButton: DefineComponent<AmButtonProps, AmButtonSlots, AmButtonEmits>;
|
|
43
|
+
|
|
44
|
+
export default AmButton;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as i, computed as o, openBlock as l, createBlock as d, unref as u, mergeProps as f, withCtx as p, renderSlot as c } from "vue";
|
|
2
|
+
import B from "primevue/button";
|
|
3
|
+
import { _ as b } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const m = /* @__PURE__ */ i({
|
|
5
|
+
__name: "AmButton",
|
|
6
|
+
props: {
|
|
7
|
+
as: {},
|
|
8
|
+
to: {},
|
|
9
|
+
label: {},
|
|
10
|
+
icon: {},
|
|
11
|
+
iconPos: {},
|
|
12
|
+
iconClass: {},
|
|
13
|
+
badge: {},
|
|
14
|
+
badgeClass: {},
|
|
15
|
+
badgeSeverity: {},
|
|
16
|
+
loading: { type: Boolean },
|
|
17
|
+
loadingIcon: {},
|
|
18
|
+
asChild: { type: Boolean },
|
|
19
|
+
link: { type: Boolean },
|
|
20
|
+
severity: {},
|
|
21
|
+
rounded: { type: Boolean },
|
|
22
|
+
text: { type: Boolean },
|
|
23
|
+
outlined: { type: Boolean },
|
|
24
|
+
size: {},
|
|
25
|
+
plain: { type: Boolean },
|
|
26
|
+
fluid: { type: Boolean },
|
|
27
|
+
href: {},
|
|
28
|
+
disabled: { type: Boolean },
|
|
29
|
+
class: {},
|
|
30
|
+
style: {}
|
|
31
|
+
},
|
|
32
|
+
setup(n) {
|
|
33
|
+
const e = n, t = o(() => {
|
|
34
|
+
if (!e.disabled && e.href)
|
|
35
|
+
return e.href;
|
|
36
|
+
}), a = o(() => {
|
|
37
|
+
if (!(e.disabled || t) && e.to)
|
|
38
|
+
return e.to;
|
|
39
|
+
}), s = o(() => e.as ? e.as : e.disabled ? "button" : e.href ? "a" : e.to ? "router-link" : "button");
|
|
40
|
+
return (r, v) => (l(), d(u(B), f(e, {
|
|
41
|
+
as: s.value,
|
|
42
|
+
disabled: r.disabled,
|
|
43
|
+
to: a.value,
|
|
44
|
+
href: t.value
|
|
45
|
+
}), {
|
|
46
|
+
default: p(() => [
|
|
47
|
+
c(r.$slots, "default", {}, void 0, !0)
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 16, ["as", "disabled", "to", "href"]));
|
|
51
|
+
}
|
|
52
|
+
}), g = /* @__PURE__ */ b(m, [["__scopeId", "data-v-4a9fa468"]]);
|
|
53
|
+
export {
|
|
54
|
+
g as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AllowedComponentProps, AnchorHTMLAttributes, DefineComponent, VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface AmDateFilterProps extends AllowedComponentProps {
|
|
4
|
+
defaultSelected?: 0 | 1 | 7 | 14 | 30;
|
|
5
|
+
modelValue: string;
|
|
6
|
+
minDate?: Date;
|
|
7
|
+
maxDate?: Date;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AmDateFilterEmits {}
|
|
11
|
+
|
|
12
|
+
declare const AmDateFilter: DefineComponent<AmDateFilterProps, AmDateFilterEmits>;
|
|
13
|
+
|
|
14
|
+
export default AmDateFilter;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { defineComponent as F, ref as n, computed as B, watch as d, openBlock as _, createElementBlock as h, createVNode as u, unref as i, withCtx as C } from "vue";
|
|
2
|
+
import V from "primevue/menu";
|
|
3
|
+
import H from "primevue/popover";
|
|
4
|
+
import O from "primevue/datepicker";
|
|
5
|
+
import { _ as j } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const P = /* @__PURE__ */ F({
|
|
7
|
+
__name: "AmDateFilter",
|
|
8
|
+
props: {
|
|
9
|
+
defaultSelected: {},
|
|
10
|
+
modelValue: {},
|
|
11
|
+
minDate: {},
|
|
12
|
+
maxDate: {},
|
|
13
|
+
class: {},
|
|
14
|
+
style: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(p, { emit: D }) {
|
|
18
|
+
const v = p, b = D, o = n(), c = n(), l = n(null), f = {
|
|
19
|
+
root: {
|
|
20
|
+
class: "!min-w-0 am-date-filter"
|
|
21
|
+
},
|
|
22
|
+
list: {
|
|
23
|
+
class: "!flex-row !p-0"
|
|
24
|
+
},
|
|
25
|
+
item: {
|
|
26
|
+
class: "w-full"
|
|
27
|
+
},
|
|
28
|
+
itemLink: {
|
|
29
|
+
class: "!px-[7px] !py-[5px] hover:bg-[#EBE1FE] !text-[#858585] !text-sm !min-h-[34px] justify-center"
|
|
30
|
+
},
|
|
31
|
+
itemIcon: {
|
|
32
|
+
class: "!text-[#858585] !text-sm"
|
|
33
|
+
}
|
|
34
|
+
}, E = {
|
|
35
|
+
content: {
|
|
36
|
+
class: "!p-0"
|
|
37
|
+
}
|
|
38
|
+
}, g = {
|
|
39
|
+
dayCell: {
|
|
40
|
+
class: "!p-0"
|
|
41
|
+
},
|
|
42
|
+
tableHeaderCell: {
|
|
43
|
+
class: "!p-0"
|
|
44
|
+
},
|
|
45
|
+
panel: {
|
|
46
|
+
class: "!p-0 !border-none"
|
|
47
|
+
}
|
|
48
|
+
}, k = B(() => [
|
|
49
|
+
{
|
|
50
|
+
label: "Customizar",
|
|
51
|
+
icon: "pi pi-calendar",
|
|
52
|
+
command: (e) => {
|
|
53
|
+
c.value.toggle(e.originalEvent), a("Customizar");
|
|
54
|
+
},
|
|
55
|
+
class: ["custom", o.value === "Customizar" ? "bg-[#EBE1FE]" : ""]
|
|
56
|
+
},
|
|
57
|
+
{ label: "Hoje", command: () => a("Hoje"), class: o.value === "Hoje" ? "bg-[#EBE1FE]" : "" },
|
|
58
|
+
{ label: "Ontem", command: () => a("Ontem"), class: o.value === "Ontem" ? "bg-[#EBE1FE]" : "" },
|
|
59
|
+
{ label: "7D", command: () => a("7D"), class: o.value === "7D" ? "bg-[#EBE1FE]" : "" },
|
|
60
|
+
{ label: "14D", command: () => a("14D"), class: o.value === "14D" ? "bg-[#EBE1FE]" : "" },
|
|
61
|
+
{ label: "30D", command: () => a("30D"), class: o.value === "30D" ? "bg-[#EBE1FE]" : "" }
|
|
62
|
+
]), a = (e) => {
|
|
63
|
+
switch (o.value = e, e) {
|
|
64
|
+
case "Hoje":
|
|
65
|
+
l.value = [s(), s()];
|
|
66
|
+
break;
|
|
67
|
+
case "Ontem":
|
|
68
|
+
l.value = [m(-1), m(-1)];
|
|
69
|
+
break;
|
|
70
|
+
case "7D":
|
|
71
|
+
l.value = [m(-7), s()];
|
|
72
|
+
break;
|
|
73
|
+
case "14D":
|
|
74
|
+
l.value = [m(-14), s()];
|
|
75
|
+
break;
|
|
76
|
+
case "30D":
|
|
77
|
+
l.value = [m(-30), s()];
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}, s = () => {
|
|
81
|
+
const e = /* @__PURE__ */ new Date();
|
|
82
|
+
return e.setHours(0, 0, 0, 0), e;
|
|
83
|
+
}, m = (e) => {
|
|
84
|
+
const t = s();
|
|
85
|
+
return t.setDate(t.getDate() + e), t;
|
|
86
|
+
}, x = (e) => {
|
|
87
|
+
switch (e) {
|
|
88
|
+
case 0:
|
|
89
|
+
a("Hoje");
|
|
90
|
+
break;
|
|
91
|
+
case 1:
|
|
92
|
+
a("Ontem");
|
|
93
|
+
break;
|
|
94
|
+
case 7:
|
|
95
|
+
a("7D");
|
|
96
|
+
break;
|
|
97
|
+
case 14:
|
|
98
|
+
a("14D");
|
|
99
|
+
break;
|
|
100
|
+
case 30:
|
|
101
|
+
a("30D");
|
|
102
|
+
break;
|
|
103
|
+
default:
|
|
104
|
+
a("Customizar");
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
return d(l, (e) => {
|
|
109
|
+
var t;
|
|
110
|
+
if (Array.isArray(e) && e.length === 2 && e[0] && e[1]) {
|
|
111
|
+
(t = c.value) == null || t.hide();
|
|
112
|
+
const r = e.map((y) => y.toISOString());
|
|
113
|
+
b("update:modelValue", r);
|
|
114
|
+
}
|
|
115
|
+
}), d(
|
|
116
|
+
() => v.defaultSelected,
|
|
117
|
+
(e) => {
|
|
118
|
+
x(e);
|
|
119
|
+
},
|
|
120
|
+
{ immediate: !0 }
|
|
121
|
+
), (e, t) => (_(), h("div", null, [
|
|
122
|
+
u(i(V), {
|
|
123
|
+
model: k.value,
|
|
124
|
+
pt: f
|
|
125
|
+
}, null, 8, ["model"]),
|
|
126
|
+
u(i(H), {
|
|
127
|
+
ref_key: "popover",
|
|
128
|
+
ref: c,
|
|
129
|
+
pt: E
|
|
130
|
+
}, {
|
|
131
|
+
default: C(() => [
|
|
132
|
+
u(i(O), {
|
|
133
|
+
modelValue: l.value,
|
|
134
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => l.value = r),
|
|
135
|
+
selectionMode: "range",
|
|
136
|
+
inline: "",
|
|
137
|
+
pt: g,
|
|
138
|
+
dateFormat: "yyyy-mm-dd",
|
|
139
|
+
minDate: e.minDate,
|
|
140
|
+
maxDate: e.maxDate
|
|
141
|
+
}, null, 8, ["modelValue", "minDate", "maxDate"])
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 512)
|
|
145
|
+
]));
|
|
146
|
+
}
|
|
147
|
+
}), M = /* @__PURE__ */ j(P, [["__scopeId", "data-v-1990f91c"]]);
|
|
148
|
+
export {
|
|
149
|
+
M as default
|
|
150
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AllowedComponentProps, Component, DefineComponent, VNode } from 'vue';
|
|
2
|
+
import { AmFieldWrapperProps } from '../AmFieldWrapper';
|
|
3
|
+
|
|
4
|
+
export interface AmFieldProps extends AllowedComponentProps, Omit<AmFieldWrapperProps, "error"> {
|
|
5
|
+
as?: Component;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface AmFieldSlots {}
|
|
10
|
+
|
|
11
|
+
export interface AmFieldEmits {}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* **DS Prime - AmField**
|
|
15
|
+
*
|
|
16
|
+
* AmField é um componente que adiciona elementos ao redor do um campo de formulário o DS Prime.
|
|
17
|
+
* Esse elementos são label, mensagem de erro e mensagem de ajuda.
|
|
18
|
+
*
|
|
19
|
+
* [Documentação](https://appmax-space.bitbucket.io/ds-prime/componentes/AmField.html)
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
declare const AmField: DefineComponent<AmFieldProps, AmFieldSlots, AmFieldEmits>;
|
|
23
|
+
|
|
24
|
+
export default AmField;
|