@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.
Files changed (340) hide show
  1. package/AmFieldWrapper.vue_vue_type_script_setup_true_lang-BMFtIZal.js +47 -0
  2. package/AmIcon.vue_vue_type_script_setup_true_lang-DoxkzWsy.js +26 -0
  3. package/AmText.vue_vue_type_script_setup_true_lang-BMNozCVT.js +60 -0
  4. package/AmTooltip.vue_vue_type_script_setup_true_lang-Bimhrnhu.js +64 -0
  5. package/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  6. package/accordion/index.d.ts +2 -0
  7. package/accordion/index.js +2 -0
  8. package/accordioncontent/index.d.ts +2 -0
  9. package/accordioncontent/index.js +2 -0
  10. package/accordionheader/index.d.ts +2 -0
  11. package/accordionheader/index.js +2 -0
  12. package/accordionpanel/index.d.ts +2 -0
  13. package/accordionpanel/index.js +2 -0
  14. package/accordiontab/index.d.ts +2 -0
  15. package/accordiontab/index.js +2 -0
  16. package/amalert/index.d.ts +21 -0
  17. package/amalert/index.js +109 -0
  18. package/ambutton/index.d.ts +44 -0
  19. package/ambutton/index.js +55 -0
  20. package/amdatefilter/index.d.ts +14 -0
  21. package/amdatefilter/index.js +150 -0
  22. package/amfield/index.d.ts +24 -0
  23. package/amfield/index.js +41 -0
  24. package/amfieldwrapper/index.d.ts +26 -0
  25. package/amfieldwrapper/index.js +4 -0
  26. package/amform/index.d.ts +25 -0
  27. package/amform/index.js +21 -0
  28. package/amhelper/index.d.ts +28 -0
  29. package/amhelper/index.js +69 -0
  30. package/amicon/index.d.ts +26 -0
  31. package/amicon/index.js +4 -0
  32. package/amiconmaterial/index.d.ts +26 -0
  33. package/amiconmaterial/index.js +29 -0
  34. package/amiconsvg/index.d.ts +25 -0
  35. package/amiconsvg/index.js +713 -0
  36. package/amtext/index.d.ts +27 -0
  37. package/amtext/index.js +4 -0
  38. package/amtooltip/index.d.ts +25 -0
  39. package/amtooltip/index.js +4 -0
  40. package/animateonscroll/index.d.ts +2 -0
  41. package/animateonscroll/index.js +2 -0
  42. package/autocomplete/index.d.ts +2 -0
  43. package/autocomplete/index.js +2 -0
  44. package/avatar/index.d.ts +2 -0
  45. package/avatar/index.js +2 -0
  46. package/avatargroup/index.d.ts +2 -0
  47. package/avatargroup/index.js +2 -0
  48. package/badge/index.d.ts +2 -0
  49. package/badge/index.js +2 -0
  50. package/badgedirective/index.d.ts +2 -0
  51. package/badgedirective/index.js +2 -0
  52. package/blockui/index.d.ts +2 -0
  53. package/blockui/index.js +2 -0
  54. package/breadcrumb/index.d.ts +2 -0
  55. package/breadcrumb/index.js +2 -0
  56. package/button/index.d.ts +2 -0
  57. package/button/index.js +2 -0
  58. package/buttongroup/index.d.ts +2 -0
  59. package/buttongroup/index.js +2 -0
  60. package/calendar/index.d.ts +2 -0
  61. package/calendar/index.js +2 -0
  62. package/card/index.d.ts +2 -0
  63. package/card/index.js +2 -0
  64. package/carousel/index.d.ts +2 -0
  65. package/carousel/index.js +2 -0
  66. package/cascadeselect/index.d.ts +2 -0
  67. package/cascadeselect/index.js +2 -0
  68. package/chart/index.d.ts +2 -0
  69. package/chart/index.js +2 -0
  70. package/checkbox/index.d.ts +2 -0
  71. package/checkbox/index.js +2 -0
  72. package/checkboxgroup/index.d.ts +2 -0
  73. package/checkboxgroup/index.js +2 -0
  74. package/chip/index.d.ts +2 -0
  75. package/chip/index.js +2 -0
  76. package/chips/index.d.ts +2 -0
  77. package/chips/index.js +2 -0
  78. package/colorpicker/index.d.ts +2 -0
  79. package/colorpicker/index.js +2 -0
  80. package/column/index.d.ts +2 -0
  81. package/column/index.js +2 -0
  82. package/columngroup/index.d.ts +2 -0
  83. package/columngroup/index.js +2 -0
  84. package/config/colors.d.ts +115 -0
  85. package/config/colors.js +115 -0
  86. package/config/index.d.ts +3 -0
  87. package/config/index.js +3 -0
  88. package/config/preset.d.ts +1 -0
  89. package/config/preset.js +73 -0
  90. package/config/theme.d.ts +2 -0
  91. package/config/theme.js +18 -0
  92. package/confirmationeventbus/index.d.ts +2 -0
  93. package/confirmationeventbus/index.js +2 -0
  94. package/confirmationoptions/index.d.ts +2 -0
  95. package/confirmationoptions/index.js +2 -0
  96. package/confirmationservice/index.d.ts +2 -0
  97. package/confirmationservice/index.js +2 -0
  98. package/confirmdialog/index.d.ts +2 -0
  99. package/confirmdialog/index.js +2 -0
  100. package/confirmpopup/index.d.ts +2 -0
  101. package/confirmpopup/index.js +2 -0
  102. package/contextmenu/index.d.ts +2 -0
  103. package/contextmenu/index.js +2 -0
  104. package/css/index.css +1 -0
  105. package/datatable/index.d.ts +2 -0
  106. package/datatable/index.js +2 -0
  107. package/dataview/index.d.ts +2 -0
  108. package/dataview/index.js +2 -0
  109. package/datepicker/index.d.ts +2 -0
  110. package/datepicker/index.js +2 -0
  111. package/deferredcontent/index.d.ts +2 -0
  112. package/deferredcontent/index.js +2 -0
  113. package/dialog/index.d.ts +2 -0
  114. package/dialog/index.js +2 -0
  115. package/dialogservice/index.d.ts +2 -0
  116. package/dialogservice/index.js +2 -0
  117. package/divider/index.d.ts +2 -0
  118. package/divider/index.js +2 -0
  119. package/dock/index.d.ts +2 -0
  120. package/dock/index.js +2 -0
  121. package/drawer/index.d.ts +2 -0
  122. package/drawer/index.js +2 -0
  123. package/dropdown/index.d.ts +2 -0
  124. package/dropdown/index.js +2 -0
  125. package/dynamicdialog/index.d.ts +2 -0
  126. package/dynamicdialog/index.js +2 -0
  127. package/dynamicdialogeventbus/index.d.ts +2 -0
  128. package/dynamicdialogeventbus/index.js +2 -0
  129. package/dynamicdialogoptions/index.d.ts +2 -0
  130. package/dynamicdialogoptions/index.js +2 -0
  131. package/editor/index.d.ts +2 -0
  132. package/editor/index.js +2 -0
  133. package/fieldset/index.d.ts +2 -0
  134. package/fieldset/index.js +2 -0
  135. package/fileupload/index.d.ts +2 -0
  136. package/fileupload/index.js +2 -0
  137. package/floatlabel/index.d.ts +2 -0
  138. package/floatlabel/index.js +2 -0
  139. package/fluid/index.d.ts +2 -0
  140. package/fluid/index.js +2 -0
  141. package/focustrap/index.d.ts +2 -0
  142. package/focustrap/index.js +2 -0
  143. package/forms/index.d.ts +2 -0
  144. package/forms/index.js +2 -0
  145. package/galleria/index.d.ts +2 -0
  146. package/galleria/index.js +2 -0
  147. package/iconfield/index.d.ts +2 -0
  148. package/iconfield/index.js +2 -0
  149. package/iftalabel/index.d.ts +2 -0
  150. package/iftalabel/index.js +2 -0
  151. package/image/index.d.ts +2 -0
  152. package/image/index.js +2 -0
  153. package/imagecompare/index.d.ts +2 -0
  154. package/imagecompare/index.js +2 -0
  155. package/index/index.js +213 -0
  156. package/index.d.ts +6 -2
  157. package/index.js +18 -0
  158. package/inlinemessage/index.d.ts +2 -0
  159. package/inlinemessage/index.js +2 -0
  160. package/inplace/index.d.ts +2 -0
  161. package/inplace/index.js +2 -0
  162. package/inputchips/index.d.ts +2 -0
  163. package/inputchips/index.js +2 -0
  164. package/inputgroup/index.d.ts +2 -0
  165. package/inputgroup/index.js +2 -0
  166. package/inputgroupaddon/index.d.ts +2 -0
  167. package/inputgroupaddon/index.js +2 -0
  168. package/inputicon/index.d.ts +2 -0
  169. package/inputicon/index.js +2 -0
  170. package/inputmask/index.d.ts +2 -0
  171. package/inputmask/index.js +2 -0
  172. package/inputnumber/index.d.ts +2 -0
  173. package/inputnumber/index.js +2 -0
  174. package/inputotp/index.d.ts +2 -0
  175. package/inputotp/index.js +2 -0
  176. package/inputswitch/index.d.ts +2 -0
  177. package/inputswitch/index.js +2 -0
  178. package/inputtext/index.d.ts +2 -0
  179. package/inputtext/index.js +2 -0
  180. package/keyfilter/index.d.ts +2 -0
  181. package/keyfilter/index.js +2 -0
  182. package/knob/index.d.ts +2 -0
  183. package/knob/index.js +2 -0
  184. package/listbox/index.d.ts +2 -0
  185. package/listbox/index.js +2 -0
  186. package/megamenu/index.d.ts +2 -0
  187. package/megamenu/index.js +2 -0
  188. package/menu/index.d.ts +2 -0
  189. package/menu/index.js +2 -0
  190. package/menubar/index.d.ts +2 -0
  191. package/menubar/index.js +2 -0
  192. package/menuitem/index.d.ts +2 -0
  193. package/menuitem/index.js +2 -0
  194. package/message/index.d.ts +2 -0
  195. package/message/index.js +2 -0
  196. package/metergroup/index.d.ts +2 -0
  197. package/metergroup/index.js +2 -0
  198. package/multiselect/index.d.ts +2 -0
  199. package/multiselect/index.js +2 -0
  200. package/orderlist/index.d.ts +2 -0
  201. package/orderlist/index.js +2 -0
  202. package/organizationchart/index.d.ts +2 -0
  203. package/organizationchart/index.js +2 -0
  204. package/overlaybadge/index.d.ts +2 -0
  205. package/overlaybadge/index.js +2 -0
  206. package/overlayeventbus/index.d.ts +2 -0
  207. package/overlayeventbus/index.js +2 -0
  208. package/overlaypanel/index.d.ts +2 -0
  209. package/overlaypanel/index.js +2 -0
  210. package/package.json +24 -8
  211. package/paginator/index.d.ts +2 -0
  212. package/paginator/index.js +2 -0
  213. package/panel/index.d.ts +2 -0
  214. package/panel/index.js +2 -0
  215. package/panelmenu/index.d.ts +2 -0
  216. package/panelmenu/index.js +2 -0
  217. package/passthrough/index.d.ts +2 -0
  218. package/passthrough/index.js +2 -0
  219. package/password/index.d.ts +2 -0
  220. package/password/index.js +2 -0
  221. package/picklist/index.d.ts +2 -0
  222. package/picklist/index.js +2 -0
  223. package/popover/index.d.ts +2 -0
  224. package/popover/index.js +2 -0
  225. package/portal/index.d.ts +2 -0
  226. package/portal/index.js +2 -0
  227. package/progressbar/index.d.ts +2 -0
  228. package/progressbar/index.js +2 -0
  229. package/progressspinner/index.d.ts +2 -0
  230. package/progressspinner/index.js +2 -0
  231. package/radiobutton/index.d.ts +2 -0
  232. package/radiobutton/index.js +2 -0
  233. package/radiobuttongroup/index.d.ts +2 -0
  234. package/radiobuttongroup/index.js +2 -0
  235. package/rating/index.d.ts +2 -0
  236. package/rating/index.js +2 -0
  237. package/ripple/index.d.ts +2 -0
  238. package/ripple/index.js +2 -0
  239. package/row/index.d.ts +2 -0
  240. package/row/index.js +2 -0
  241. package/scrollpanel/index.d.ts +2 -0
  242. package/scrollpanel/index.js +2 -0
  243. package/scrolltop/index.d.ts +2 -0
  244. package/scrolltop/index.js +2 -0
  245. package/select/index.d.ts +2 -0
  246. package/select/index.js +2 -0
  247. package/selectbutton/index.d.ts +2 -0
  248. package/selectbutton/index.js +2 -0
  249. package/sidebar/index.d.ts +2 -0
  250. package/sidebar/index.js +2 -0
  251. package/skeleton/index.d.ts +2 -0
  252. package/skeleton/index.js +2 -0
  253. package/slider/index.d.ts +2 -0
  254. package/slider/index.js +2 -0
  255. package/speeddial/index.d.ts +2 -0
  256. package/speeddial/index.js +2 -0
  257. package/splitbutton/index.d.ts +2 -0
  258. package/splitbutton/index.js +2 -0
  259. package/splitter/index.d.ts +2 -0
  260. package/splitter/index.js +2 -0
  261. package/splitterpanel/index.d.ts +2 -0
  262. package/splitterpanel/index.js +2 -0
  263. package/step/index.d.ts +2 -0
  264. package/step/index.js +2 -0
  265. package/stepitem/index.d.ts +2 -0
  266. package/stepitem/index.js +2 -0
  267. package/steplist/index.d.ts +2 -0
  268. package/steplist/index.js +2 -0
  269. package/steppanel/index.d.ts +2 -0
  270. package/steppanel/index.js +2 -0
  271. package/steppanels/index.d.ts +2 -0
  272. package/steppanels/index.js +2 -0
  273. package/stepper/index.d.ts +2 -0
  274. package/stepper/index.js +2 -0
  275. package/steps/index.d.ts +2 -0
  276. package/steps/index.js +2 -0
  277. package/styleclass/index.d.ts +2 -0
  278. package/styleclass/index.js +2 -0
  279. package/tab/index.d.ts +2 -0
  280. package/tab/index.js +2 -0
  281. package/tablist/index.d.ts +2 -0
  282. package/tablist/index.js +2 -0
  283. package/tabmenu/index.d.ts +2 -0
  284. package/tabmenu/index.js +2 -0
  285. package/tabpanel/index.d.ts +2 -0
  286. package/tabpanel/index.js +2 -0
  287. package/tabpanels/index.d.ts +2 -0
  288. package/tabpanels/index.js +2 -0
  289. package/tabs/index.d.ts +2 -0
  290. package/tabs/index.js +2 -0
  291. package/tabview/index.d.ts +2 -0
  292. package/tabview/index.js +2 -0
  293. package/tag/index.d.ts +2 -0
  294. package/tag/index.js +2 -0
  295. package/tailwind/index.d.ts +143 -0
  296. package/tailwind/index.js +30 -0
  297. package/terminal/index.d.ts +2 -0
  298. package/terminal/index.js +2 -0
  299. package/terminalservice/index.d.ts +2 -0
  300. package/terminalservice/index.js +2 -0
  301. package/textarea/index.d.ts +2 -0
  302. package/textarea/index.js +2 -0
  303. package/tieredmenu/index.d.ts +2 -0
  304. package/tieredmenu/index.js +2 -0
  305. package/timeline/index.d.ts +2 -0
  306. package/timeline/index.js +2 -0
  307. package/toast/index.d.ts +2 -0
  308. package/toast/index.js +2 -0
  309. package/toasteventbus/index.d.ts +2 -0
  310. package/toasteventbus/index.js +2 -0
  311. package/toastservice/index.d.ts +2 -0
  312. package/toastservice/index.js +2 -0
  313. package/togglebutton/index.d.ts +2 -0
  314. package/togglebutton/index.js +2 -0
  315. package/toggleswitch/index.d.ts +2 -0
  316. package/toggleswitch/index.js +2 -0
  317. package/toolbar/index.d.ts +2 -0
  318. package/toolbar/index.js +2 -0
  319. package/tooltip/index.d.ts +2 -0
  320. package/tooltip/index.js +2 -0
  321. package/tree/index.d.ts +2 -0
  322. package/tree/index.js +2 -0
  323. package/treenode/index.d.ts +2 -0
  324. package/treenode/index.js +2 -0
  325. package/treeselect/index.d.ts +2 -0
  326. package/treeselect/index.js +2 -0
  327. package/treetable/index.d.ts +2 -0
  328. package/treetable/index.js +2 -0
  329. package/useconfirm/index.d.ts +1 -0
  330. package/useconfirm/index.js +1 -0
  331. package/usedialog/index.d.ts +1 -0
  332. package/usedialog/index.js +1 -0
  333. package/usestyle/index.d.ts +1 -0
  334. package/usestyle/index.js +1 -0
  335. package/usetoast/index.d.ts +1 -0
  336. package/usetoast/index.js +1 -0
  337. package/virtualscroller/index.d.ts +2 -0
  338. package/virtualscroller/index.js +2 -0
  339. package/index.es.js +0 -5152
  340. 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,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordion';
2
+ export { default } from 'primevue/accordion';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordion';
2
+ export { default } from 'primevue/accordion';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordioncontent';
2
+ export { default } from 'primevue/accordioncontent';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordioncontent';
2
+ export { default } from 'primevue/accordioncontent';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordionheader';
2
+ export { default } from 'primevue/accordionheader';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordionheader';
2
+ export { default } from 'primevue/accordionheader';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordionpanel';
2
+ export { default } from 'primevue/accordionpanel';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordionpanel';
2
+ export { default } from 'primevue/accordionpanel';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordiontab';
2
+ export { default } from 'primevue/accordiontab';
@@ -0,0 +1,2 @@
1
+ export * from 'primevue/accordiontab';
2
+ export { default } from 'primevue/accordiontab';
@@ -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;
@@ -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;