@wgalleti/primevue-components 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{components-CwXJtumP.cjs → components-DxnXTyOc.cjs} +3 -3
- package/dist/{components-CwXJtumP.cjs.map → components-DxnXTyOc.cjs.map} +1 -1
- package/dist/{components-SHgQLpCj.js → components-OQPnEv8W.js} +87 -74
- package/dist/{components-SHgQLpCj.js.map → components-OQPnEv8W.js.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/markdownEnhance.d.ts +2 -0
- package/package.json +1 -1
package/dist/components.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components-DxnXTyOc.cjs");exports.WActionBar=e.h,exports.WAutoCompleteFK=e.K,exports.WChart=e.O,exports.WCheckList=e.u,exports.WCrudColumnRenderer=e.Z,exports.WCrudFormDialog=e.B,exports.WCrudSubview=e.F,exports.WCrudView=e.L,exports.WDatePicker=e.G,exports.WDateRange=e.P,exports.WDetailHeader=e.w,exports.WDialog=e.a,exports.WEditableTable=e.I,exports.WEmptyState=e.T,exports.WFileUpload=e.N,exports.WFormRenderer=e.V,exports.WFormSection=e.g,exports.WImageCropper=e.U,exports.WInfoCard=e.C,exports.WKanbanBoard=e.t,exports.WKpiCard=e.S,exports.WKpiGrid=e.x,exports.WMapSelect=e.l,exports.WMarkdownEditor=e.s,exports.WMarkdownToc=e.o,exports.WMarkdownView=e.c,exports.WMoneyInput=e.W,exports.WPageHeader=e.E,exports.WProgressFlow=e.m,exports.WSectionAccordion=e.y,exports.WSectionHeader=e.v,exports.WSectionPanel=e._,exports.WStatusTag=e.D,exports.WStepFlow=e.f,exports.WStepSection=e.d,exports.WTabBar=e.i,exports.WTabNav=e.r,exports.WTabViewport=e.n,exports.WTransferList=e.H,exports.WTreeSelect=e.M;
|
package/dist/components.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as e, C as t, D as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, S as m, T as h, U as g, V as _, W as v, Z as y, _ as b, a as x, c as S, d as C, f as w, g as T, h as E, i as D, l as O, m as k, n as A, o as j, r as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z } from "./components-
|
|
1
|
+
import { B as e, C as t, D as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, S as m, T as h, U as g, V as _, W as v, Z as y, _ as b, a as x, c as S, d as C, f as w, g as T, h as E, i as D, l as O, m as k, n as A, o as j, r as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z } from "./components-OQPnEv8W.js";
|
|
2
2
|
export { E as WActionBar, c as WAutoCompleteFK, f as WChart, F as WCheckList, y as WCrudColumnRenderer, e as WCrudFormDialog, i as WCrudSubview, l as WCrudView, a as WDatePicker, p as WDateRange, L as WDetailHeader, x as WDialog, s as WEditableTable, h as WEmptyState, d as WFileUpload, _ as WFormRenderer, T as WFormSection, g as WImageCropper, t as WInfoCard, P as WKanbanBoard, m as WKpiCard, R as WKpiGrid, O as WMapSelect, N as WMarkdownEditor, j as WMarkdownToc, S as WMarkdownView, v as WMoneyInput, r as WPageHeader, k as WProgressFlow, z as WSectionAccordion, I as WSectionHeader, b as WSectionPanel, n as WStatusTag, w as WStepFlow, C as WStepSection, D as WTabBar, M as WTabNav, A as WTabViewport, o as WTransferList, u as WTreeSelect };
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./useFormKeyboardNav-CzKY9ZV2.cjs"),t=require("./routeTabs-BnVpnSeJ.cjs"),n=require("./components-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./useFormKeyboardNav-CzKY9ZV2.cjs"),t=require("./routeTabs-BnVpnSeJ.cjs"),n=require("./components-DxnXTyOc.cjs"),r=require("./labels-DiFDhFhQ.cjs"),i=require("./composables-B3Czzje1.cjs");require("./types.cjs");function a(e,t,n){let r=e;return Array.isArray(r.results)?{data:r.results,page:r.page??t,page_size:r.page_size??n,rows:r.count??0,extras:r.extras??{}}:Array.isArray(r.data)?{data:r.data,page:r.page??t,page_size:r.page_size??n,rows:r.rows??0,extras:r.extras??{}}:{data:Array.isArray(e)?e:[],page:t,page_size:n,rows:Array.isArray(e)?e.length:0,extras:{}}}function o(e){return{async list(t,n={}){return a((await e.get(t,{params:n})).data,Number(n.page??1),Number(n.page_size??20))},async get(t,n,r){return{data:(await e.get(`${t}${n}/`,r)).data}},async create(t,n,r){return{data:(await e.post(t,n,r)).data}},async update(t,n,r,i){return{data:(await e.patch(`${t}${n}/`,r,i)).data}},async delete(t,n){await e.delete(`${t}${n}/`)}}}var s={install(e,r){if(!r?.axios&&!r?.dataProvider)throw Error(`[wPrimeVueComponents] Informe "axios" ou "dataProvider" ao registrar o WPrimeVuePlugin.`);let i=r.dataProvider??o(r.axios),a={axios:r.axios,dataProvider:i,defaultPageSize:r.defaultPageSize??20,dateFormat:r.dateFormat??`DD/MM/YYYY`,dateTimeFormat:r.dateTimeFormat??`DD/MM/YYYY HH:mm`,locale:r.locale??`pt-BR`,currency:r.currency??`BRL`};r.axios&&e.provide(t.r,r.axios),e.provide(t.a,i),e.provide(t.i,a),r.registerComponents!==!1&&(e.component(`WCrudView`,n.L),e.component(`WCrudFormDialog`,n.B),e.component(`WCrudColumnRenderer`,n.Z),e.component(`WAutoCompleteFK`,n.K),e.component(`WMoneyInput`,n.W),e.component(`WTransferList`,n.H),e.component(`WTreeSelect`,n.M))}};function c(e){return e.split(`?`)[0].replace(/^\/+|\/+$/g,``).replace(/^api\/v\d+\//,``)}function l(e){return typeof e==`string`?{table:e}:e}function u(e,t=400){return{response:{status:t,data:{detail:e}},message:e}}function d(e){if(e instanceof FormData)throw u(`SupabaseDataProvider nao envia FormData diretamente. Faça upload do arquivo no Storage e envie a URL/caminho no payload.`);return e}function f(e){throw{response:{data:{detail:e?.message??`Erro ao consultar Supabase`,code:e?.code,details:e?.details,hint:e?.hint}},message:e?.message??`Erro ao consultar Supabase`}}function p(e,t){let n=c(e),r=t.resources?.[n];if(r)return l(r);if(t.allowedTables?.includes(n))return{table:n};throw u(`Recurso Supabase nao registrado para o endpoint "${e}".`,404)}function m(e,t,n){let r=new Set([`page`,`page_size`,`search`,`ordering`]),i={...n.defaultFilters,...t};for(let[t,n]of Object.entries(i))r.has(t)||n==null||n===``||(e=e.eq(t,n));return e}function h(e,t,n){if(typeof t!=`string`||!t.trim()||!n?.length)return e;let r=t.trim().replace(/,/g,`\\,`),i=n.map(e=>`${e}.ilike.%${r}%`).join(`,`);return e.or(i)}function g(e,t){let n=typeof e==`string`&&e?e:t;return n?{field:n.startsWith(`-`)?n.slice(1):n,ascending:!n.startsWith(`-`)}:null}function _(e,t){return e?t.mapListItem?e.map(e=>t.mapListItem?.(e)):e:[]}function v(e){let t=e.defaultSelect??`*`;return{async list(n,r={}){let i=p(n,e),a=Math.max(Number(r.page??1),1),o=Math.max(Number(r.page_size??20),1),s=(a-1)*o,c=s+o-1,l=e.client.from(i.table).select(i.select??t,{count:`exact`});l=m(l,r,i),l=h(l,r.search,i.searchFields);let u=g(r.ordering,i.defaultOrdering);u&&(l=l.order(u.field,{ascending:u.ascending}));let d=await l.range(s,c);return d.error&&f(d.error),{data:_(d.data,i),page:a,page_size:o,rows:d.count??d.data?.length??0,extras:{}}},async get(n,r,i){let a=p(n,e),o=a.pk??`id`,s=await e.client.from(a.table).select(a.select??t).eq(o,r).single();return s.error&&f(s.error),{data:s.data}},async create(n,r,i){let a=p(n,e),o=d(r),s=a.mapPayload?a.mapPayload(o,`create`):o,c=await e.client.from(a.table).insert(s).select(a.select??t).single();return c.error&&f(c.error),{data:c.data}},async update(n,r,i,a){let o=p(n,e),s=o.pk??`id`,c=d(i),l=o.mapPayload?o.mapPayload(c,`update`):c,u=await e.client.from(o.table).update(l).eq(s,r).select(o.select??t).single();return u.error&&f(u.error),{data:u.data}},async delete(t,n){let r=p(t,e),i=r.pk??`id`,a=r.softDelete===!0?{is_active:!1}:typeof r.softDelete==`object`?r.softDelete:null,o=a?await e.client.from(r.table).update(a).eq(i,n):await e.client.from(r.table).delete().eq(i,n);o.error&&f(o.error)}}}exports.BREAKPOINTS=e.g,exports.DEFAULT_CRUD_LABELS=r.t,exports.WActionBar=n.h,exports.WAutoCompleteFK=n.K,exports.WChart=n.O,exports.WCheckList=n.u,exports.WCrudColumnRenderer=n.Z,exports.WCrudFormDialog=n.B,exports.WCrudSubview=n.F,exports.WCrudView=n.L,exports.WDatePicker=n.G,exports.WDateRange=n.P,exports.WDetailHeader=n.w,exports.WDialog=n.a,exports.WEditableTable=n.I,exports.WEmptyState=n.T,exports.WFileUpload=n.N,exports.WFormRenderer=n.V,exports.WFormSection=n.g,exports.WImageCropper=n.U,exports.WInfoCard=n.C,exports.WKanbanBoard=n.t,exports.WKpiCard=n.S,exports.WKpiGrid=n.x,exports.WMapSelect=n.l,exports.WMarkdownEditor=n.s,exports.WMarkdownToc=n.o,exports.WMarkdownView=n.c,exports.WMoneyInput=n.W,exports.WPageHeader=n.E,exports.WPrimeVuePlugin=s,exports.WProgressFlow=n.m,exports.WSectionAccordion=n.y,exports.WSectionHeader=n.v,exports.WSectionPanel=n._,exports.WStatusTag=n.D,exports.WStepFlow=n.f,exports.WStepSection=n.d,exports.WTabBar=n.i,exports.WTabNav=n.r,exports.WTabViewport=n.n,exports.WTransferList=n.H,exports.WTreeSelect=n.M,exports.W_AXIOS_KEY=t.r,exports.W_CONFIG_KEY=t.i,exports.W_DATA_PROVIDER_KEY=t.a,exports.W_SECTION_ACCORDION_KEY=n.b,exports.W_STEP_FLOW_KEY=n.p,exports.W_TAB_HOST_KEY=t.t,exports.buildChartTheme=n.k,exports.buildPrintTheme=n.A,exports.createAxiosDataProvider=o,exports.createSupabaseDataProvider=v,exports.donutOption=n.j,exports.downloadCsv=n.R,exports.extractApiError=e.r,exports.mapApiFieldToColumnDef=n.q,exports.mapApiFieldToFieldDef=n.J,exports.mapApiFieldsToColumnDefs=n.Y,exports.mapApiFieldsToFieldDefs=n.X,exports.toCsv=n.z,exports.useApi=i.n,exports.useApiError=e.i,exports.useAppConfirm=e.a,exports.useAppToast=e.o,exports.useBreakpoint=e._,exports.useCrudManager=i.a,exports.useDateInput=e.n,exports.useFormatters=e.f,exports.useRouteTabs=i.t,exports.useSubviewCrud=i.i,exports.useTabHost=t.n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e, a as t, f as n, g as r, i, n as a, o, r as s } from "./useFormKeyboardNav-DuxPdAeK.js";
|
|
2
2
|
import { a as c, i as l, n as u, r as d, t as ee } from "./routeTabs-D6m8PuP6.js";
|
|
3
|
-
import { A as te, B as f, C as p, D as m, E as ne, F as re, G as ie, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, P as C, R as w, S as T, T as E, U as D, V as O, W as k, X as A, Y as j, Z as M, _ as N, a as P, b as F, c as I, d as L, f as R, g as z, h as B, i as V, j as H, k as U, l as W, m as G, n as K, o as q, p as ae, q as J, r as oe, s as se, t as ce, u as le, v as ue, w as de, x as fe, y as pe, z as me } from "./components-
|
|
3
|
+
import { A as te, B as f, C as p, D as m, E as ne, F as re, G as ie, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, P as C, R as w, S as T, T as E, U as D, V as O, W as k, X as A, Y as j, Z as M, _ as N, a as P, b as F, c as I, d as L, f as R, g as z, h as B, i as V, j as H, k as U, l as W, m as G, n as K, o as q, p as ae, q as J, r as oe, s as se, t as ce, u as le, v as ue, w as de, x as fe, y as pe, z as me } from "./components-OQPnEv8W.js";
|
|
4
4
|
import { t as he } from "./labels-CXBhCk2N.js";
|
|
5
5
|
import { a as ge, i as _e, n as ve, t as ye } from "./composables-wG25Sz-z.js";
|
|
6
6
|
import "./types.js";
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* aqui e não no HTML sanitizado): botão de copiar nos blocos de código, abas
|
|
6
6
|
* clicáveis e diagramas mermaid (carregados sob demanda, na paleta do tema).
|
|
7
7
|
*/
|
|
8
|
+
/** `color(srgb r g b [/ a])` → `rgb()`/`rgba()`; hex/rgb/hsl passam intactos; vazio → null. */
|
|
9
|
+
export declare function normalizarCor(valor: string): string | null;
|
|
8
10
|
/**
|
|
9
11
|
* Renderiza os blocos ```mermaid do container.
|
|
10
12
|
* @param forcar redesenha os que já estavam prontos (troca de tema).
|