@wgalleti/primevue-components 0.30.0 → 0.31.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/README.md +5 -5
- package/dist/components/index.d.ts +2 -0
- package/dist/components/ui/WSectionAccordion.vue.d.ts +36 -0
- package/dist/components/ui/WSectionPanel.vue.d.ts +40 -0
- package/dist/{components-BQLHmQIB.cjs → components-BK9LPrAs.cjs} +6 -6
- package/dist/components-BK9LPrAs.cjs.map +1 -0
- package/dist/{components-B5nXaYtT.js → components-BNyzL6pd.js} +342 -256
- package/dist/components-BNyzL6pd.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/utils/sectionAccordion.d.ts +15 -0
- package/package.json +1 -1
- package/skill/references/setup.md +3 -3
- package/dist/components-B5nXaYtT.js.map +0 -1
- package/dist/components-BQLHmQIB.cjs.map +0 -1
|
@@ -5231,16 +5231,47 @@ var Qi = {
|
|
|
5231
5231
|
"loading"
|
|
5232
5232
|
]))), 128))], 2));
|
|
5233
5233
|
}
|
|
5234
|
-
}), Va = { class: "w-section-
|
|
5234
|
+
}), Va = Symbol("w-section-accordion"), Ha = { class: "w-section-accordion" }, Ua = /* @__PURE__ */ x({
|
|
5235
|
+
__name: "WSectionAccordion",
|
|
5236
|
+
props: {
|
|
5237
|
+
modelValue: { default: void 0 },
|
|
5238
|
+
disabled: {
|
|
5239
|
+
type: Boolean,
|
|
5240
|
+
default: !1
|
|
5241
|
+
}
|
|
5242
|
+
},
|
|
5243
|
+
emits: ["update:modelValue"],
|
|
5244
|
+
setup(e, { emit: t }) {
|
|
5245
|
+
let n = e, r = t, i = I(/* @__PURE__ */ new Set()), a = f(() => n.modelValue !== void 0), o = f(() => n.disabled);
|
|
5246
|
+
function s(e) {
|
|
5247
|
+
return a.value ? n.modelValue.includes(e) : !i.value.has(e);
|
|
5248
|
+
}
|
|
5249
|
+
function c(e) {
|
|
5250
|
+
if (n.disabled) return;
|
|
5251
|
+
if (a.value) {
|
|
5252
|
+
let t = n.modelValue;
|
|
5253
|
+
r("update:modelValue", t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
5254
|
+
return;
|
|
5255
|
+
}
|
|
5256
|
+
let t = new Set(i.value);
|
|
5257
|
+
t.has(e) ? t.delete(e) : t.add(e), i.value = t;
|
|
5258
|
+
}
|
|
5259
|
+
return F(Va, {
|
|
5260
|
+
isOpen: s,
|
|
5261
|
+
toggle: c,
|
|
5262
|
+
disabled: o
|
|
5263
|
+
}), (e, t) => (P(), h("div", Ha, [R(e.$slots, "default")]));
|
|
5264
|
+
}
|
|
5265
|
+
}), Wa = { class: "w-section-header__main" }, Ga = {
|
|
5235
5266
|
key: 0,
|
|
5236
5267
|
class: "w-section-header__icon"
|
|
5237
|
-
},
|
|
5268
|
+
}, Ka = { class: "w-section-header__content" }, qa = { class: "w-section-header__title-row" }, Ja = { class: "w-section-header__title" }, Ya = {
|
|
5238
5269
|
key: 0,
|
|
5239
5270
|
class: "w-section-header__subtitle"
|
|
5240
|
-
},
|
|
5271
|
+
}, Xa = {
|
|
5241
5272
|
key: 0,
|
|
5242
5273
|
class: "w-section-header__actions"
|
|
5243
|
-
},
|
|
5274
|
+
}, Za = /* @__PURE__ */ x({
|
|
5244
5275
|
__name: "WSectionHeader",
|
|
5245
5276
|
props: {
|
|
5246
5277
|
title: {},
|
|
@@ -5249,21 +5280,76 @@ var Qi = {
|
|
|
5249
5280
|
compact: { type: Boolean }
|
|
5250
5281
|
},
|
|
5251
5282
|
setup(e) {
|
|
5252
|
-
return (t, n) => (P(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div",
|
|
5283
|
+
return (t, n) => (P(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", Wa, [e.icon || t.$slots.icon ? (P(), h("div", Ga, [R(t.$slots, "icon", {}, () => [e.icon ? (P(), h("i", {
|
|
5253
5284
|
key: 0,
|
|
5254
5285
|
class: k(e.icon)
|
|
5255
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), g("div",
|
|
5286
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), g("div", Ka, [g("div", qa, [g("h3", Ja, z(e.title), 1), R(t.$slots, "meta")]), e.subtitle ? (P(), h("p", Ya, z(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (P(), h("div", Xa, [R(t.$slots, "actions")])) : m("", !0)], 2));
|
|
5256
5287
|
}
|
|
5257
|
-
}),
|
|
5288
|
+
}), Qa = { class: "w-section-panel__header" }, $a = [
|
|
5289
|
+
"aria-expanded",
|
|
5290
|
+
"aria-controls",
|
|
5291
|
+
"disabled"
|
|
5292
|
+
], eo = {
|
|
5293
|
+
key: 0,
|
|
5294
|
+
class: "w-section-panel__icon",
|
|
5295
|
+
"aria-hidden": "true"
|
|
5296
|
+
}, to = { class: "w-section-panel__text" }, no = { class: "w-section-panel__title" }, ro = {
|
|
5297
|
+
key: 0,
|
|
5298
|
+
class: "w-section-panel__description"
|
|
5299
|
+
}, io = {
|
|
5300
|
+
key: 1,
|
|
5301
|
+
class: "w-section-panel__count"
|
|
5302
|
+
}, ao = {
|
|
5303
|
+
key: 0,
|
|
5304
|
+
class: "w-section-panel__actions"
|
|
5305
|
+
}, oo = ["id"], so = 0, co = () => `w-section-panel-${++so}`, lo = /* @__PURE__ */ x({
|
|
5306
|
+
__name: "WSectionPanel",
|
|
5307
|
+
props: {
|
|
5308
|
+
value: {},
|
|
5309
|
+
title: {},
|
|
5310
|
+
description: {},
|
|
5311
|
+
icon: {},
|
|
5312
|
+
count: {},
|
|
5313
|
+
disabled: {
|
|
5314
|
+
type: Boolean,
|
|
5315
|
+
default: !1
|
|
5316
|
+
}
|
|
5317
|
+
},
|
|
5318
|
+
setup(e) {
|
|
5319
|
+
let t = e, n = w(Va, null), r = I(!0), i = f(() => n ? n.isOpen(t.value) : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = co();
|
|
5320
|
+
function s() {
|
|
5321
|
+
a.value || (n ? n.toggle(t.value) : r.value = !r.value);
|
|
5322
|
+
}
|
|
5323
|
+
return (t, n) => (P(), h("section", { class: k(["w-section-panel", { "w-section-panel--open": i.value }]) }, [g("div", Qa, [g("button", {
|
|
5324
|
+
type: "button",
|
|
5325
|
+
class: "w-section-panel__trigger",
|
|
5326
|
+
"aria-expanded": i.value,
|
|
5327
|
+
"aria-controls": V(o),
|
|
5328
|
+
disabled: a.value,
|
|
5329
|
+
onClick: s
|
|
5330
|
+
}, [
|
|
5331
|
+
e.icon || t.$slots.icon ? (P(), h("span", eo, [R(t.$slots, "icon", {}, () => [g("i", { class: k(e.icon) }, null, 2)])])) : m("", !0),
|
|
5332
|
+
g("span", to, [g("span", no, z(e.title), 1), e.description ? (P(), h("span", ro, z(e.description), 1)) : m("", !0)]),
|
|
5333
|
+
e.count == null ? m("", !0) : (P(), h("span", io, z(e.count), 1)),
|
|
5334
|
+
g("i", {
|
|
5335
|
+
class: k(["w-section-panel__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]),
|
|
5336
|
+
"aria-hidden": "true"
|
|
5337
|
+
}, null, 2)
|
|
5338
|
+
], 8, $a), t.$slots.actions ? (P(), h("div", ao, [R(t.$slots, "actions", { open: i.value })])) : m("", !0)]), W(g("div", {
|
|
5339
|
+
id: V(o),
|
|
5340
|
+
class: "w-section-panel__content"
|
|
5341
|
+
}, [R(t.$slots, "default")], 8, oo), [[le, i.value]])], 2));
|
|
5342
|
+
}
|
|
5343
|
+
}), uo = {
|
|
5258
5344
|
key: 0,
|
|
5259
5345
|
class: "w-form-section__header"
|
|
5260
|
-
},
|
|
5346
|
+
}, fo = { class: "w-form-section__content" }, po = { class: "w-form-section__title" }, mo = {
|
|
5261
5347
|
key: 0,
|
|
5262
5348
|
class: "w-form-section__description"
|
|
5263
|
-
},
|
|
5349
|
+
}, ho = {
|
|
5264
5350
|
key: 0,
|
|
5265
5351
|
class: "w-form-section__actions"
|
|
5266
|
-
},
|
|
5352
|
+
}, go = { class: "w-form-section__body" }, _o = /* @__PURE__ */ x({
|
|
5267
5353
|
__name: "WFormSection",
|
|
5268
5354
|
props: {
|
|
5269
5355
|
title: {},
|
|
@@ -5271,18 +5357,18 @@ var Qi = {
|
|
|
5271
5357
|
variant: {}
|
|
5272
5358
|
},
|
|
5273
5359
|
setup(e) {
|
|
5274
|
-
return (t, n) => (P(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (P(), h("div",
|
|
5360
|
+
return (t, n) => (P(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (P(), h("div", uo, [g("div", fo, [g("h3", po, z(e.title), 1), e.description ? (P(), h("p", mo, z(e.description), 1)) : m("", !0)]), t.$slots.actions ? (P(), h("div", ho, [R(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", go, [R(t.$slots, "default")])], 2));
|
|
5275
5361
|
}
|
|
5276
|
-
}),
|
|
5362
|
+
}), vo = {
|
|
5277
5363
|
key: 0,
|
|
5278
5364
|
class: "w-action-bar__primary"
|
|
5279
|
-
},
|
|
5365
|
+
}, yo = {
|
|
5280
5366
|
key: 1,
|
|
5281
5367
|
class: "w-action-bar__filters"
|
|
5282
|
-
},
|
|
5368
|
+
}, bo = {
|
|
5283
5369
|
key: 2,
|
|
5284
5370
|
class: "w-action-bar__secondary"
|
|
5285
|
-
},
|
|
5371
|
+
}, xo = /* @__PURE__ */ x({
|
|
5286
5372
|
__name: "WActionBar",
|
|
5287
5373
|
props: {
|
|
5288
5374
|
align: { default: "between" },
|
|
@@ -5293,15 +5379,15 @@ var Qi = {
|
|
|
5293
5379
|
},
|
|
5294
5380
|
setup(e) {
|
|
5295
5381
|
return (t, n) => (P(), h("div", { class: k(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
|
|
5296
|
-
t.$slots.primary || t.$slots.default ? (P(), h("div",
|
|
5297
|
-
t.$slots.filters ? (P(), h("div",
|
|
5298
|
-
t.$slots.secondary ? (P(), h("div",
|
|
5382
|
+
t.$slots.primary || t.$slots.default ? (P(), h("div", vo, [R(t.$slots, "primary", {}, () => [R(t.$slots, "default")])])) : m("", !0),
|
|
5383
|
+
t.$slots.filters ? (P(), h("div", yo, [R(t.$slots, "filters")])) : m("", !0),
|
|
5384
|
+
t.$slots.secondary ? (P(), h("div", bo, [R(t.$slots, "secondary")])) : m("", !0)
|
|
5299
5385
|
], 2));
|
|
5300
5386
|
}
|
|
5301
|
-
}),
|
|
5387
|
+
}), So = { class: "w-progress-flow__marker" }, Co = { class: "w-progress-flow__content" }, wo = { class: "w-progress-flow__label" }, To = {
|
|
5302
5388
|
key: 0,
|
|
5303
5389
|
class: "w-progress-flow__description"
|
|
5304
|
-
},
|
|
5390
|
+
}, Eo = /* @__PURE__ */ x({
|
|
5305
5391
|
__name: "WProgressFlow",
|
|
5306
5392
|
props: {
|
|
5307
5393
|
steps: {},
|
|
@@ -5320,9 +5406,9 @@ var Qi = {
|
|
|
5320
5406
|
step: e,
|
|
5321
5407
|
index: n,
|
|
5322
5408
|
state: r(n)
|
|
5323
|
-
}, () => [g("div",
|
|
5409
|
+
}, () => [g("div", So, [g("span", null, z(n + 1), 1)]), g("div", Co, [g("p", wo, z(e.label), 1), e.description ? (P(), h("p", To, z(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
|
|
5324
5410
|
}
|
|
5325
|
-
}),
|
|
5411
|
+
}), Do = Symbol("w-step-flow"), Oo = /* @__PURE__ */ x({
|
|
5326
5412
|
__name: "WStepFlow",
|
|
5327
5413
|
props: {
|
|
5328
5414
|
modelValue: { default: 0 },
|
|
@@ -5338,7 +5424,7 @@ var Qi = {
|
|
|
5338
5424
|
function s(e) {
|
|
5339
5425
|
n.disabled || r("update:modelValue", n.modelValue === e ? 0 : e);
|
|
5340
5426
|
}
|
|
5341
|
-
F(
|
|
5427
|
+
F(Do, {
|
|
5342
5428
|
active: i,
|
|
5343
5429
|
toggle: s,
|
|
5344
5430
|
disabled: a,
|
|
@@ -5366,48 +5452,48 @@ var Qi = {
|
|
|
5366
5452
|
onKeydown: l
|
|
5367
5453
|
}, [R(e.$slots, "default")], 34));
|
|
5368
5454
|
}
|
|
5369
|
-
}),
|
|
5455
|
+
}), ko = { class: "w-step-section__rail" }, Ao = {
|
|
5370
5456
|
key: 0,
|
|
5371
5457
|
class: "w-step-section__line"
|
|
5372
|
-
},
|
|
5458
|
+
}, jo = { class: "w-step-section__body" }, Mo = { class: "w-step-section__card" }, No = { class: "w-step-section__header" }, Po = [
|
|
5373
5459
|
"aria-expanded",
|
|
5374
5460
|
"aria-current",
|
|
5375
5461
|
"disabled"
|
|
5376
|
-
],
|
|
5462
|
+
], Fo = { class: "w-step-section__title" }, Io = {
|
|
5377
5463
|
key: 0,
|
|
5378
5464
|
class: "w-step-section__count"
|
|
5379
|
-
},
|
|
5465
|
+
}, Lo = {
|
|
5380
5466
|
key: 1,
|
|
5381
5467
|
class: "w-step-section__summary"
|
|
5382
|
-
},
|
|
5468
|
+
}, Ro = {
|
|
5383
5469
|
key: 0,
|
|
5384
5470
|
class: "w-step-section__actions"
|
|
5385
|
-
},
|
|
5471
|
+
}, zo = { class: "w-step-section__content" }, Bo = {
|
|
5386
5472
|
key: 0,
|
|
5387
5473
|
class: "w-step-section__footer"
|
|
5388
|
-
},
|
|
5474
|
+
}, Vo = { class: "w-step-section__head" }, Ho = [
|
|
5389
5475
|
"aria-expanded",
|
|
5390
5476
|
"aria-current",
|
|
5391
5477
|
"disabled"
|
|
5392
|
-
],
|
|
5478
|
+
], Uo = {
|
|
5393
5479
|
key: 0,
|
|
5394
5480
|
class: "pi pi-check"
|
|
5395
|
-
},
|
|
5481
|
+
}, Wo = { class: "w-step-section__title" }, Go = {
|
|
5396
5482
|
key: 0,
|
|
5397
5483
|
class: "w-step-section__count"
|
|
5398
|
-
},
|
|
5484
|
+
}, Ko = {
|
|
5399
5485
|
key: 1,
|
|
5400
5486
|
class: "w-step-section__summary"
|
|
5401
|
-
},
|
|
5487
|
+
}, qo = {
|
|
5402
5488
|
key: 1,
|
|
5403
5489
|
class: "w-step-section__actions"
|
|
5404
|
-
},
|
|
5490
|
+
}, Jo = {
|
|
5405
5491
|
key: 0,
|
|
5406
5492
|
class: "w-step-section__panel"
|
|
5407
|
-
},
|
|
5493
|
+
}, Yo = { class: "w-step-section__content" }, Xo = {
|
|
5408
5494
|
key: 0,
|
|
5409
5495
|
class: "w-step-section__footer"
|
|
5410
|
-
},
|
|
5496
|
+
}, Zo = /* @__PURE__ */ x({
|
|
5411
5497
|
__name: "WStepSection",
|
|
5412
5498
|
props: {
|
|
5413
5499
|
step: {},
|
|
@@ -5420,7 +5506,7 @@ var Qi = {
|
|
|
5420
5506
|
}
|
|
5421
5507
|
},
|
|
5422
5508
|
setup(e) {
|
|
5423
|
-
let t = e, n = w(
|
|
5509
|
+
let t = e, n = w(Do, null), r = I(!0), i = f(() => n ? n.active.value === t.step : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = f(() => n?.orientation.value === "horizontal"), s = f(() => n !== null), c = f(() => o.value && n != null && t.step < n.active.value);
|
|
5424
5510
|
function l() {
|
|
5425
5511
|
a.value || (n ? n.toggle(t.step) : r.value = !r.value);
|
|
5426
5512
|
}
|
|
@@ -5430,7 +5516,7 @@ var Qi = {
|
|
|
5430
5516
|
"w-step-section--open": i.value,
|
|
5431
5517
|
"w-step-section--done": c.value
|
|
5432
5518
|
}])
|
|
5433
|
-
}, [g("div",
|
|
5519
|
+
}, [g("div", Vo, [
|
|
5434
5520
|
s.value ? (P(), h("span", {
|
|
5435
5521
|
key: 0,
|
|
5436
5522
|
class: k(["w-step-section__line", { "w-step-section__line--done": c.value || i.value }])
|
|
@@ -5449,19 +5535,19 @@ var Qi = {
|
|
|
5449
5535
|
"w-step-section__badge--done": c.value
|
|
5450
5536
|
}]),
|
|
5451
5537
|
"aria-hidden": "true"
|
|
5452
|
-
}, [c.value ? (P(), h("i",
|
|
5453
|
-
g("h2",
|
|
5454
|
-
e.count == null ? m("", !0) : (P(), h("span",
|
|
5455
|
-
e.summary ? (P(), h("span",
|
|
5456
|
-
], 8,
|
|
5457
|
-
t.$slots.actions ? (P(), h("div",
|
|
5458
|
-
]), i.value ? (P(), h("div",
|
|
5538
|
+
}, [c.value ? (P(), h("i", Uo)) : (P(), h(d, { key: 1 }, [y(z(e.step), 1)], 64))], 2),
|
|
5539
|
+
g("h2", Wo, z(e.title), 1),
|
|
5540
|
+
e.count == null ? m("", !0) : (P(), h("span", Go, z(e.count), 1)),
|
|
5541
|
+
e.summary ? (P(), h("span", Ko, z(e.summary), 1)) : m("", !0)
|
|
5542
|
+
], 8, Ho),
|
|
5543
|
+
t.$slots.actions ? (P(), h("div", qo, [R(t.$slots, "actions", { open: i.value })])) : m("", !0)
|
|
5544
|
+
]), i.value ? (P(), h("div", Jo, [g("div", Yo, [R(t.$slots, "default")]), t.$slots.footer ? (P(), h("div", Xo, [R(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (P(), h("div", {
|
|
5459
5545
|
key: 0,
|
|
5460
5546
|
class: k(["w-step-section", { "w-step-section--open": i.value }])
|
|
5461
|
-
}, [g("div",
|
|
5547
|
+
}, [g("div", ko, [g("span", {
|
|
5462
5548
|
class: k(["w-step-section__badge", { "w-step-section__badge--on": i.value }]),
|
|
5463
5549
|
"aria-hidden": "true"
|
|
5464
|
-
}, z(e.step), 3), s.value ? (P(), h("span",
|
|
5550
|
+
}, z(e.step), 3), s.value ? (P(), h("span", Ao)) : m("", !0)]), g("div", jo, [g("div", Mo, [g("div", No, [g("button", {
|
|
5465
5551
|
type: "button",
|
|
5466
5552
|
class: "w-step-section__trigger",
|
|
5467
5553
|
"aria-expanded": i.value,
|
|
@@ -5470,24 +5556,24 @@ var Qi = {
|
|
|
5470
5556
|
onClick: l
|
|
5471
5557
|
}, [
|
|
5472
5558
|
g("i", { class: k(["w-step-section__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]) }, null, 2),
|
|
5473
|
-
g("h2",
|
|
5474
|
-
e.count == null ? m("", !0) : (P(), h("span",
|
|
5475
|
-
e.summary ? (P(), h("span",
|
|
5476
|
-
], 8,
|
|
5559
|
+
g("h2", Fo, z(e.title), 1),
|
|
5560
|
+
e.count == null ? m("", !0) : (P(), h("span", Io, z(e.count), 1)),
|
|
5561
|
+
e.summary ? (P(), h("span", Lo, z(e.summary), 1)) : m("", !0)
|
|
5562
|
+
], 8, Po), t.$slots.actions ? (P(), h("div", Ro, [R(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (P(), h(d, { key: 0 }, [g("div", zo, [R(t.$slots, "default")]), t.$slots.footer ? (P(), h("div", Bo, [R(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
|
|
5477
5563
|
}
|
|
5478
|
-
}),
|
|
5564
|
+
}), Qo = { class: "w-check-list" }, $o = {
|
|
5479
5565
|
key: 0,
|
|
5480
5566
|
class: "w-check-list__header"
|
|
5481
|
-
},
|
|
5567
|
+
}, es = { class: "w-check-list__title" }, ts = {
|
|
5482
5568
|
key: 0,
|
|
5483
5569
|
class: "w-check-list__count"
|
|
5484
|
-
},
|
|
5570
|
+
}, ns = {
|
|
5485
5571
|
key: 1,
|
|
5486
5572
|
class: "w-check-list__items"
|
|
5487
|
-
},
|
|
5573
|
+
}, rs = { class: "w-check-list__label" }, is = {
|
|
5488
5574
|
key: 2,
|
|
5489
5575
|
class: "w-check-list__empty"
|
|
5490
|
-
},
|
|
5576
|
+
}, as = /* @__PURE__ */ x({
|
|
5491
5577
|
__name: "WCheckList",
|
|
5492
5578
|
props: {
|
|
5493
5579
|
title: {},
|
|
@@ -5507,62 +5593,62 @@ var Qi = {
|
|
|
5507
5593
|
function a(e) {
|
|
5508
5594
|
return i[e] ?? i.warn;
|
|
5509
5595
|
}
|
|
5510
|
-
return (t, n) => (P(), h("div",
|
|
5596
|
+
return (t, n) => (P(), h("div", Qo, [e.title || e.showCount ? (P(), h("div", $o, [g("span", es, z(e.title), 1), e.showCount ? (P(), h("span", ts, z(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (P(), h("ul", ns, [(P(!0), h(d, null, L(e.items, (e, t) => (P(), h("li", {
|
|
5511
5597
|
key: `${e.label}-${t}`,
|
|
5512
5598
|
class: "w-check-list__item"
|
|
5513
|
-
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span",
|
|
5599
|
+
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", rs, z(e.label), 1)]))), 128))])) : (P(), h("div", is, [R(t.$slots, "empty", {}, () => [y(z(e.emptyMessage), 1)])]))]));
|
|
5514
5600
|
}
|
|
5515
|
-
}),
|
|
5516
|
-
function
|
|
5601
|
+
}), os = .85;
|
|
5602
|
+
function ss(e, t, n) {
|
|
5517
5603
|
return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
|
|
5518
5604
|
}
|
|
5519
|
-
function
|
|
5605
|
+
function cs(e, t, n, r = os) {
|
|
5520
5606
|
if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
|
|
5521
5607
|
let i = e.largura * r, a = e.altura * r;
|
|
5522
|
-
return
|
|
5608
|
+
return ss(t, i, a) ? "completo" : ss(n, i, a) ? "curto" : "oculto";
|
|
5523
5609
|
}
|
|
5524
5610
|
//#endregion
|
|
5525
5611
|
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
5526
|
-
var
|
|
5612
|
+
var ls = { class: "w-map-select__body" }, us = {
|
|
5527
5613
|
key: 0,
|
|
5528
5614
|
class: "w-map-select__fallback"
|
|
5529
|
-
},
|
|
5615
|
+
}, ds = {
|
|
5530
5616
|
key: 1,
|
|
5531
5617
|
class: "w-map-select__badge"
|
|
5532
|
-
},
|
|
5618
|
+
}, fs = { class: "w-map-select__detail-nome" }, ps = {
|
|
5533
5619
|
key: 0,
|
|
5534
5620
|
class: "w-map-select__detail-sub"
|
|
5535
|
-
},
|
|
5621
|
+
}, ms = {
|
|
5536
5622
|
key: 0,
|
|
5537
5623
|
class: "w-map-select__panel"
|
|
5538
|
-
},
|
|
5624
|
+
}, hs = [
|
|
5539
5625
|
"aria-expanded",
|
|
5540
5626
|
"aria-label",
|
|
5541
5627
|
"title"
|
|
5542
|
-
],
|
|
5628
|
+
], gs = {
|
|
5543
5629
|
key: 0,
|
|
5544
5630
|
class: "w-map-select__collapse-count"
|
|
5545
|
-
},
|
|
5631
|
+
}, _s = { class: "w-map-select__panel-head" }, vs = { class: "w-map-select__meta" }, ys = { class: "w-map-select__count" }, bs = ["disabled"], xs = { class: "w-map-select__list" }, Ss = [
|
|
5546
5632
|
"aria-pressed",
|
|
5547
5633
|
"disabled",
|
|
5548
5634
|
"onClick"
|
|
5549
|
-
],
|
|
5635
|
+
], Cs = { class: "w-map-select__box" }, ws = {
|
|
5550
5636
|
key: 0,
|
|
5551
5637
|
class: "pi pi-check"
|
|
5552
|
-
},
|
|
5638
|
+
}, Ts = { class: "w-map-select__item-text" }, Es = { class: "w-map-select__item-name" }, Ds = {
|
|
5553
5639
|
key: 0,
|
|
5554
5640
|
class: "w-map-select__item-sub"
|
|
5555
|
-
},
|
|
5641
|
+
}, Os = {
|
|
5556
5642
|
key: 0,
|
|
5557
5643
|
class: "pi pi-exclamation-circle w-map-select__item-nogeo",
|
|
5558
5644
|
title: "Talhão sem contorno cadastrado"
|
|
5559
|
-
},
|
|
5645
|
+
}, ks = {
|
|
5560
5646
|
key: 1,
|
|
5561
5647
|
class: "w-map-select__item-area"
|
|
5562
|
-
},
|
|
5648
|
+
}, As = {
|
|
5563
5649
|
key: 0,
|
|
5564
5650
|
class: "w-map-select__empty"
|
|
5565
|
-
},
|
|
5651
|
+
}, js = { class: "w-map-select__area" }, Ms = { class: "w-map-select__area-unit" }, Ns = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", Ps = "O mapa não pôde ser carregado.", Fs = /* @__PURE__ */ x({
|
|
5566
5652
|
__name: "WMapSelect",
|
|
5567
5653
|
props: {
|
|
5568
5654
|
modelValue: { default: () => [] },
|
|
@@ -5590,7 +5676,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5590
5676
|
},
|
|
5591
5677
|
badgeLabel: { default: "Satélite" },
|
|
5592
5678
|
emptyMessage: { default: "Nenhum talhão encontrado" },
|
|
5593
|
-
mapErrorMessage: { default:
|
|
5679
|
+
mapErrorMessage: { default: Ns },
|
|
5594
5680
|
disabled: {
|
|
5595
5681
|
type: Boolean,
|
|
5596
5682
|
default: !1
|
|
@@ -5628,7 +5714,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5628
5714
|
type: Function,
|
|
5629
5715
|
default: void 0
|
|
5630
5716
|
},
|
|
5631
|
-
labelFitScale: { default:
|
|
5717
|
+
labelFitScale: { default: os },
|
|
5632
5718
|
labelFullFromZoom: { default: 13 },
|
|
5633
5719
|
featureDetail: { default: "none" },
|
|
5634
5720
|
detailPlacement: { default: "cursor" }
|
|
@@ -5641,7 +5727,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5641
5727
|
"update:collapsed"
|
|
5642
5728
|
],
|
|
5643
5729
|
setup(e, { expose: t, emit: r }) {
|
|
5644
|
-
let i = e, a = r, o = se(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage ===
|
|
5730
|
+
let i = e, a = r, o = se(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage === Ns ? Ps : i.mapErrorMessage), p = I(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
|
|
5645
5731
|
function x(e) {
|
|
5646
5732
|
v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
|
|
5647
5733
|
}
|
|
@@ -5823,7 +5909,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5823
5909
|
if (!r || !a) return;
|
|
5824
5910
|
let o = Ae(a);
|
|
5825
5911
|
if (!o) return;
|
|
5826
|
-
let s = Z(a), c = t ? "completo" :
|
|
5912
|
+
let s = Z(a), c = t ? "completo" : cs(Q(n), Re(o), s && s !== o ? Re(s) : null, i.labelFitScale);
|
|
5827
5913
|
c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
5828
5914
|
});
|
|
5829
5915
|
}
|
|
@@ -5953,7 +6039,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5953
6039
|
"w-map-select--overlay": c.value,
|
|
5954
6040
|
"w-map-select--collapsed": c.value && v.value && !e.readonly
|
|
5955
6041
|
}])
|
|
5956
|
-
}, [g("div",
|
|
6042
|
+
}, [g("div", ls, [g("div", {
|
|
5957
6043
|
class: "w-map-select__map",
|
|
5958
6044
|
style: j({ "--w-map-h": e.height })
|
|
5959
6045
|
}, [
|
|
@@ -5962,7 +6048,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5962
6048
|
ref: ce,
|
|
5963
6049
|
class: "w-map-select__canvas"
|
|
5964
6050
|
}, null, 512),
|
|
5965
|
-
ue.value ? (P(), h("div",
|
|
6051
|
+
ue.value ? (P(), h("div", us, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, z(u.value), 1)])) : e.badgeLabel ? (P(), h("span", ds, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(z(e.badgeLabel), 1)])) : m("", !0),
|
|
5966
6052
|
X.value && e.featureDetail !== "none" ? (P(), h("div", {
|
|
5967
6053
|
key: 2,
|
|
5968
6054
|
class: k(["w-map-select__detail", {
|
|
@@ -5976,8 +6062,8 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5976
6062
|
feature: X.value,
|
|
5977
6063
|
selected: E(X.value.id),
|
|
5978
6064
|
close: Te
|
|
5979
|
-
}, () => [g("span",
|
|
5980
|
-
], 4), e.readonly ? m("", !0) : (P(), h("div",
|
|
6065
|
+
}, () => [g("span", fs, z(X.value.nome), 1), X.value.subtitulo ? (P(), h("span", ps, z(X.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
|
|
6066
|
+
], 4), e.readonly ? m("", !0) : (P(), h("div", ms, [
|
|
5981
6067
|
c.value ? (P(), h("button", {
|
|
5982
6068
|
key: 0,
|
|
5983
6069
|
type: "button",
|
|
@@ -5986,8 +6072,8 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
5986
6072
|
"aria-label": C.value,
|
|
5987
6073
|
title: C.value,
|
|
5988
6074
|
onClick: S
|
|
5989
|
-
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (P(), h("span",
|
|
5990
|
-
g("div",
|
|
6075
|
+
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (P(), h("span", gs, z(e.modelValue.length), 1)) : m("", !0)], 8, hs)) : m("", !0),
|
|
6076
|
+
g("div", _s, [b(V(he), null, {
|
|
5991
6077
|
default: U(() => [b(V(ge), { class: "pi pi-search" }), b(V(J), {
|
|
5992
6078
|
modelValue: re.value,
|
|
5993
6079
|
"onUpdate:modelValue": n[0] ||= (e) => re.value = e,
|
|
@@ -6001,13 +6087,13 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
6001
6087
|
"aria-label"
|
|
6002
6088
|
])]),
|
|
6003
6089
|
_: 1
|
|
6004
|
-
}), g("div",
|
|
6090
|
+
}), g("div", vs, [g("span", ys, z(te.value), 1), g("button", {
|
|
6005
6091
|
type: "button",
|
|
6006
6092
|
class: "w-map-select__clear",
|
|
6007
6093
|
disabled: e.disabled || !e.modelValue.length,
|
|
6008
6094
|
onClick: A
|
|
6009
|
-
}, z(e.clearLabel), 9,
|
|
6010
|
-
g("ul",
|
|
6095
|
+
}, z(e.clearLabel), 9, bs)])]),
|
|
6096
|
+
g("ul", xs, [(P(!0), h(d, null, L(B.value, (n) => (P(), h("li", { key: n.id }, [R(t.$slots, "item", {
|
|
6011
6097
|
feature: n,
|
|
6012
6098
|
selected: E(n.id)
|
|
6013
6099
|
}, () => [g("button", {
|
|
@@ -6017,11 +6103,11 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
6017
6103
|
disabled: e.disabled,
|
|
6018
6104
|
onClick: (e) => D(n.id)
|
|
6019
6105
|
}, [
|
|
6020
|
-
g("span",
|
|
6021
|
-
g("span",
|
|
6022
|
-
n.geometria ? m("", !0) : (P(), h("i",
|
|
6023
|
-
n.area == null ? m("", !0) : (P(), h("span",
|
|
6024
|
-
], 10,
|
|
6106
|
+
g("span", Cs, [E(n.id) ? (P(), h("i", ws)) : m("", !0)]),
|
|
6107
|
+
g("span", Ts, [g("span", Es, z(n.nome), 1), n.subtitulo ? (P(), h("span", Ds, z(n.subtitulo), 1)) : m("", !0)]),
|
|
6108
|
+
n.geometria ? m("", !0) : (P(), h("i", Os)),
|
|
6109
|
+
n.area == null ? m("", !0) : (P(), h("span", ks, z(ae(n)), 1))
|
|
6110
|
+
], 10, Ss)])]))), 128)), B.value.length ? m("", !0) : (P(), h("li", As, [R(t.$slots, "empty", {}, () => [y(z(e.emptyMessage), 1)])]))])
|
|
6025
6111
|
]))]), l.value ? (P(), h("div", {
|
|
6026
6112
|
key: 0,
|
|
6027
6113
|
ref_key: "footer",
|
|
@@ -6030,13 +6116,13 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
6030
6116
|
}, [R(t.$slots, "footer", {
|
|
6031
6117
|
area: F.value,
|
|
6032
6118
|
features: N.value
|
|
6033
|
-
}, () => [g("span",
|
|
6119
|
+
}, () => [g("span", js, [
|
|
6034
6120
|
y(z(e.areaLabel) + " ", 1),
|
|
6035
6121
|
g("strong", null, z(oe.value), 1),
|
|
6036
|
-
g("span",
|
|
6122
|
+
g("span", Ms, z(e.areaSuffix), 1)
|
|
6037
6123
|
])])], 512)) : m("", !0)], 2));
|
|
6038
6124
|
}
|
|
6039
|
-
}),
|
|
6125
|
+
}), Is = {
|
|
6040
6126
|
nota: {
|
|
6041
6127
|
tone: "nota",
|
|
6042
6128
|
label: "Nota",
|
|
@@ -6082,7 +6168,7 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
6082
6168
|
label: "Em aberto",
|
|
6083
6169
|
icon: "pi pi-question-circle"
|
|
6084
6170
|
}
|
|
6085
|
-
},
|
|
6171
|
+
}, Ls = {
|
|
6086
6172
|
note: "nota",
|
|
6087
6173
|
info: "nota",
|
|
6088
6174
|
observacao: "nota",
|
|
@@ -6109,19 +6195,19 @@ var Jo = { class: "w-map-select__body" }, Yo = {
|
|
|
6109
6195
|
help: "pergunta",
|
|
6110
6196
|
duvida: "pergunta"
|
|
6111
6197
|
};
|
|
6112
|
-
function
|
|
6198
|
+
function Rs(e) {
|
|
6113
6199
|
return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
6114
6200
|
}
|
|
6115
|
-
function
|
|
6116
|
-
let t =
|
|
6117
|
-
return
|
|
6201
|
+
function zs(e) {
|
|
6202
|
+
let t = Rs(e);
|
|
6203
|
+
return Is[t] ?? Is[Ls[t]] ?? null;
|
|
6118
6204
|
}
|
|
6119
|
-
var
|
|
6120
|
-
function
|
|
6205
|
+
var Bs = new Ne().utils.escapeHtml;
|
|
6206
|
+
function Vs(e, t) {
|
|
6121
6207
|
let n = t?.trim() || e.label;
|
|
6122
|
-
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${
|
|
6208
|
+
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${Bs(n)}</p><div class="md-alert__body">`;
|
|
6123
6209
|
}
|
|
6124
|
-
var
|
|
6210
|
+
var Hs = "</div></div>", Us = {
|
|
6125
6211
|
bash: () => import("highlight.js/lib/languages/bash"),
|
|
6126
6212
|
python: () => import("highlight.js/lib/languages/python"),
|
|
6127
6213
|
javascript: () => import("highlight.js/lib/languages/javascript"),
|
|
@@ -6135,7 +6221,7 @@ var Ds = "</div></div>", Os = {
|
|
|
6135
6221
|
ini: () => import("highlight.js/lib/languages/ini"),
|
|
6136
6222
|
markdown: () => import("highlight.js/lib/languages/markdown"),
|
|
6137
6223
|
dockerfile: () => import("highlight.js/lib/languages/dockerfile")
|
|
6138
|
-
},
|
|
6224
|
+
}, Ws = {
|
|
6139
6225
|
sh: "bash",
|
|
6140
6226
|
shell: "bash",
|
|
6141
6227
|
zsh: "bash",
|
|
@@ -6163,28 +6249,28 @@ var Ds = "</div></div>", Os = {
|
|
|
6163
6249
|
postgres: "sql",
|
|
6164
6250
|
postgresql: "sql",
|
|
6165
6251
|
docker: "dockerfile"
|
|
6166
|
-
},
|
|
6167
|
-
function
|
|
6168
|
-
return
|
|
6252
|
+
}, Gs = null, Ks = null;
|
|
6253
|
+
function qs() {
|
|
6254
|
+
return Gs !== null;
|
|
6169
6255
|
}
|
|
6170
|
-
async function
|
|
6171
|
-
if (
|
|
6172
|
-
|
|
6256
|
+
async function Js() {
|
|
6257
|
+
if (Gs || Ks) return Ks ?? void 0;
|
|
6258
|
+
Ks = (async () => {
|
|
6173
6259
|
let e = (await import("highlight.js/lib/core")).default;
|
|
6174
|
-
await Promise.all(Object.entries(
|
|
6260
|
+
await Promise.all(Object.entries(Us).map(async ([t, n]) => {
|
|
6175
6261
|
let r = await n();
|
|
6176
6262
|
e.registerLanguage(t, r.default);
|
|
6177
|
-
})),
|
|
6178
|
-
})(), await
|
|
6263
|
+
})), Gs = (t, n) => e.highlight(t, { language: n }).value;
|
|
6264
|
+
})(), await Ks;
|
|
6179
6265
|
}
|
|
6180
|
-
function
|
|
6181
|
-
let t =
|
|
6182
|
-
return
|
|
6266
|
+
function Ys(e) {
|
|
6267
|
+
let t = Rs(e);
|
|
6268
|
+
return Ws[t] ?? t;
|
|
6183
6269
|
}
|
|
6184
|
-
function
|
|
6185
|
-
return
|
|
6270
|
+
function Xs(e) {
|
|
6271
|
+
return Rs(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
|
|
6186
6272
|
}
|
|
6187
|
-
var
|
|
6273
|
+
var Zs = /* @__PURE__ */ new Set([
|
|
6188
6274
|
"detalhes",
|
|
6189
6275
|
"details",
|
|
6190
6276
|
"passos",
|
|
@@ -6195,8 +6281,8 @@ var Is = /* @__PURE__ */ new Set([
|
|
|
6195
6281
|
"tabs",
|
|
6196
6282
|
"aba",
|
|
6197
6283
|
"tab"
|
|
6198
|
-
]),
|
|
6199
|
-
function
|
|
6284
|
+
]), Qs = /^\s*([^\s]+)\s*(.*)$/;
|
|
6285
|
+
function $s() {
|
|
6200
6286
|
let e = new Ne({
|
|
6201
6287
|
html: !1,
|
|
6202
6288
|
linkify: !0,
|
|
@@ -6208,16 +6294,16 @@ function Rs() {
|
|
|
6208
6294
|
3,
|
|
6209
6295
|
4
|
|
6210
6296
|
],
|
|
6211
|
-
slugify:
|
|
6297
|
+
slugify: Xs,
|
|
6212
6298
|
permalink: Fe.permalink.linkInsideHeader({
|
|
6213
6299
|
symbol: "",
|
|
6214
6300
|
class: "md-anchor",
|
|
6215
6301
|
placement: "after",
|
|
6216
6302
|
ariaHidden: !0
|
|
6217
6303
|
})
|
|
6218
|
-
}),
|
|
6304
|
+
}), ec(e), nc(e), rc(e), ic(e), ac(e), oc(e), sc(e), e;
|
|
6219
6305
|
}
|
|
6220
|
-
function
|
|
6306
|
+
function ec(e) {
|
|
6221
6307
|
e.core.ruler.after("block", "lz_alerta", (e) => {
|
|
6222
6308
|
let t = e.tokens;
|
|
6223
6309
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -6227,9 +6313,9 @@ function zs(e) {
|
|
|
6227
6313
|
if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
|
|
6228
6314
|
let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
|
|
6229
6315
|
if (!a) continue;
|
|
6230
|
-
let o =
|
|
6316
|
+
let o = zs(a[1]);
|
|
6231
6317
|
if (!o) continue;
|
|
6232
|
-
let s =
|
|
6318
|
+
let s = tc(t, e);
|
|
6233
6319
|
s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
|
|
6234
6320
|
spec: o,
|
|
6235
6321
|
titulo: a[2]
|
|
@@ -6238,10 +6324,10 @@ function zs(e) {
|
|
|
6238
6324
|
return !0;
|
|
6239
6325
|
}), e.renderer.rules.lz_alerta_open = (e, t) => {
|
|
6240
6326
|
let n = e[t].meta;
|
|
6241
|
-
return
|
|
6242
|
-
}, e.renderer.rules.lz_alerta_close = () =>
|
|
6327
|
+
return Vs(n.spec, n.titulo);
|
|
6328
|
+
}, e.renderer.rules.lz_alerta_close = () => Hs;
|
|
6243
6329
|
}
|
|
6244
|
-
function
|
|
6330
|
+
function tc(e, t) {
|
|
6245
6331
|
let n = 0;
|
|
6246
6332
|
for (let r = t; r < e.length; r += 1) {
|
|
6247
6333
|
let t = e[r];
|
|
@@ -6250,37 +6336,37 @@ function Bs(e, t) {
|
|
|
6250
6336
|
}
|
|
6251
6337
|
return null;
|
|
6252
6338
|
}
|
|
6253
|
-
function
|
|
6339
|
+
function nc(e) {
|
|
6254
6340
|
let t = [];
|
|
6255
6341
|
e.use(Ie, "lz", {
|
|
6256
6342
|
validate: (e) => {
|
|
6257
|
-
let t =
|
|
6343
|
+
let t = Qs.exec(e);
|
|
6258
6344
|
if (!t) return !1;
|
|
6259
|
-
let n =
|
|
6260
|
-
return
|
|
6345
|
+
let n = Rs(t[1]);
|
|
6346
|
+
return Zs.has(n) || zs(n) !== null;
|
|
6261
6347
|
},
|
|
6262
6348
|
render: (e, n) => {
|
|
6263
6349
|
let r = e[n];
|
|
6264
6350
|
if (r.nesting !== 1) {
|
|
6265
6351
|
let e = t.pop();
|
|
6266
|
-
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${
|
|
6352
|
+
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${Hs}\n` : "</div>\n";
|
|
6267
6353
|
}
|
|
6268
|
-
let i =
|
|
6354
|
+
let i = Qs.exec(r.info) ?? [
|
|
6269
6355
|
"",
|
|
6270
6356
|
"",
|
|
6271
6357
|
""
|
|
6272
|
-
], a =
|
|
6273
|
-
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${
|
|
6358
|
+
], a = Rs(i[1]), o = i[2]?.trim();
|
|
6359
|
+
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${Bs(o || "Detalhes")}</summary><div class="md-details__body">`;
|
|
6274
6360
|
if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
|
|
6275
6361
|
if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
|
|
6276
6362
|
if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
|
|
6277
|
-
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${
|
|
6278
|
-
let s =
|
|
6279
|
-
return s ? (t.push("alerta"),
|
|
6363
|
+
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${Bs(o || "Aba")}">`;
|
|
6364
|
+
let s = zs(a);
|
|
6365
|
+
return s ? (t.push("alerta"), Vs(s, o)) : (t.push("bloco"), "<div>");
|
|
6280
6366
|
}
|
|
6281
6367
|
});
|
|
6282
6368
|
}
|
|
6283
|
-
function
|
|
6369
|
+
function rc(e) {
|
|
6284
6370
|
e.core.ruler.after("inline", "lz_tarefas", (e) => {
|
|
6285
6371
|
let t = e.tokens;
|
|
6286
6372
|
for (let n = 2; n < t.length; n += 1) {
|
|
@@ -6297,26 +6383,26 @@ function Hs(e) {
|
|
|
6297
6383
|
return !0;
|
|
6298
6384
|
});
|
|
6299
6385
|
}
|
|
6300
|
-
function
|
|
6386
|
+
function ic(e) {
|
|
6301
6387
|
e.renderer.rules.fence = (e, t) => {
|
|
6302
|
-
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a =
|
|
6303
|
-
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${
|
|
6304
|
-
let s =
|
|
6305
|
-
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${
|
|
6388
|
+
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = Ys(i), o = /title="([^"]*)"/.exec(r)?.[1];
|
|
6389
|
+
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${Bs(n.content)}</pre>` + (o ? `<figcaption>${Bs(o)}</figcaption>` : "") + "</figure>\n";
|
|
6390
|
+
let s = Gs && Us[a] ? Gs(n.content, a) : Bs(n.content);
|
|
6391
|
+
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${Bs(o ?? "")}</span><span class="md-code__lang">${Bs(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${Bs(a)}">${s}</code></pre></div>\n`;
|
|
6306
6392
|
};
|
|
6307
6393
|
}
|
|
6308
|
-
function
|
|
6394
|
+
function ac(e) {
|
|
6309
6395
|
let t = e.renderer.rules.table_open;
|
|
6310
6396
|
e.renderer.rules.table_open = (e, n, r, i, a) => `<div class="md-table">${t ? t(e, n, r, i, a) : a.renderToken(e, n, r)}`, e.renderer.rules.table_close = (e, t, n, r, i) => `${i.renderToken(e, t, n)}</div>`;
|
|
6311
6397
|
}
|
|
6312
|
-
function
|
|
6398
|
+
function oc(e) {
|
|
6313
6399
|
let t = e.renderer.rules.link_open;
|
|
6314
6400
|
e.renderer.rules.link_open = (e, n, r, i, a) => {
|
|
6315
6401
|
let o = String(e[n].attrGet("href") ?? "");
|
|
6316
6402
|
return /^https?:\/\//i.test(o) && (e[n].attrSet("target", "_blank"), e[n].attrSet("rel", "noopener noreferrer"), e[n].attrJoin("class", "md-link-externo")), t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
6317
6403
|
};
|
|
6318
6404
|
}
|
|
6319
|
-
function
|
|
6405
|
+
function sc(e) {
|
|
6320
6406
|
e.core.ruler.after("inline", "lz_figuras", (e) => {
|
|
6321
6407
|
let t = e.tokens;
|
|
6322
6408
|
for (let e = 1; e < t.length - 1; e += 1) {
|
|
@@ -6332,17 +6418,17 @@ function Ks(e) {
|
|
|
6332
6418
|
let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
6333
6419
|
if (!e[n].meta?.figura) return o;
|
|
6334
6420
|
let s = e[n].content?.trim();
|
|
6335
|
-
return s ? `${o}<figcaption>${
|
|
6421
|
+
return s ? `${o}<figcaption>${Bs(s)}</figcaption>` : o;
|
|
6336
6422
|
};
|
|
6337
6423
|
}
|
|
6338
|
-
var
|
|
6339
|
-
function
|
|
6340
|
-
return
|
|
6424
|
+
var cc = null;
|
|
6425
|
+
function lc() {
|
|
6426
|
+
return cc ||= $s(), cc;
|
|
6341
6427
|
}
|
|
6342
|
-
function
|
|
6428
|
+
function uc(e) {
|
|
6343
6429
|
return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
|
|
6344
6430
|
}
|
|
6345
|
-
function
|
|
6431
|
+
function dc(e) {
|
|
6346
6432
|
let t = [];
|
|
6347
6433
|
for (let n = 0; n < e.length; n += 1) {
|
|
6348
6434
|
let r = e[n];
|
|
@@ -6352,13 +6438,13 @@ function Xs(e) {
|
|
|
6352
6438
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
6353
6439
|
!a || o?.type !== "inline" || t.push({
|
|
6354
6440
|
id: a,
|
|
6355
|
-
text:
|
|
6441
|
+
text: uc(o),
|
|
6356
6442
|
level: i
|
|
6357
6443
|
});
|
|
6358
6444
|
}
|
|
6359
6445
|
return t;
|
|
6360
6446
|
}
|
|
6361
|
-
function
|
|
6447
|
+
function fc(e) {
|
|
6362
6448
|
return Pe.sanitize(e, { ADD_ATTR: [
|
|
6363
6449
|
"target",
|
|
6364
6450
|
"open",
|
|
@@ -6366,16 +6452,16 @@ function Zs(e) {
|
|
|
6366
6452
|
"disabled"
|
|
6367
6453
|
] });
|
|
6368
6454
|
}
|
|
6369
|
-
function
|
|
6370
|
-
let t =
|
|
6455
|
+
function pc(e) {
|
|
6456
|
+
let t = lc(), n = {}, r = t.parse(e ?? "", n);
|
|
6371
6457
|
return {
|
|
6372
|
-
html:
|
|
6373
|
-
headings:
|
|
6458
|
+
html: fc(t.renderer.render(r, t.options, n)),
|
|
6459
|
+
headings: dc(r)
|
|
6374
6460
|
};
|
|
6375
6461
|
}
|
|
6376
6462
|
//#endregion
|
|
6377
6463
|
//#region src/utils/markdownEnhance.ts
|
|
6378
|
-
function
|
|
6464
|
+
function mc(e) {
|
|
6379
6465
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
6380
6466
|
if (e.dataset.mdPronto) return;
|
|
6381
6467
|
e.dataset.mdPronto = "1";
|
|
@@ -6390,7 +6476,7 @@ function $s(e) {
|
|
|
6390
6476
|
}), e.appendChild(t);
|
|
6391
6477
|
});
|
|
6392
6478
|
}
|
|
6393
|
-
function
|
|
6479
|
+
function hc(e) {
|
|
6394
6480
|
let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
|
|
6395
6481
|
t.forEach((e) => {
|
|
6396
6482
|
if (n.has(e)) return;
|
|
@@ -6401,8 +6487,8 @@ function ec(e) {
|
|
|
6401
6487
|
i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
|
|
6402
6488
|
});
|
|
6403
6489
|
}
|
|
6404
|
-
function
|
|
6405
|
-
|
|
6490
|
+
function gc(e) {
|
|
6491
|
+
hc(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
|
|
6406
6492
|
if (e.dataset.mdPronto) return;
|
|
6407
6493
|
let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
|
|
6408
6494
|
if (!n.length) return;
|
|
@@ -6424,11 +6510,11 @@ function tc(e) {
|
|
|
6424
6510
|
e.prepend(r), a(0);
|
|
6425
6511
|
});
|
|
6426
6512
|
}
|
|
6427
|
-
var
|
|
6428
|
-
async function
|
|
6429
|
-
return
|
|
6513
|
+
var _c = null, vc = 0;
|
|
6514
|
+
async function yc() {
|
|
6515
|
+
return _c ||= import("mermaid").then((e) => e.default), _c;
|
|
6430
6516
|
}
|
|
6431
|
-
var
|
|
6517
|
+
var bc = /* @__PURE__ */ new Set([
|
|
6432
6518
|
"script",
|
|
6433
6519
|
"iframe",
|
|
6434
6520
|
"object",
|
|
@@ -6444,59 +6530,59 @@ var ac = /* @__PURE__ */ new Set([
|
|
|
6444
6530
|
"animate",
|
|
6445
6531
|
"set"
|
|
6446
6532
|
]);
|
|
6447
|
-
function
|
|
6533
|
+
function xc(e) {
|
|
6448
6534
|
for (let t of Array.from(e.attributes)) {
|
|
6449
6535
|
let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
|
|
6450
6536
|
(n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
|
|
6451
6537
|
}
|
|
6452
|
-
for (let t of Array.from(e.children))
|
|
6538
|
+
for (let t of Array.from(e.children)) bc.has(t.localName.toLowerCase()) ? t.remove() : xc(t);
|
|
6453
6539
|
}
|
|
6454
|
-
function
|
|
6540
|
+
function Sc(e) {
|
|
6455
6541
|
let t = new DOMParser().parseFromString(e, "image/svg+xml");
|
|
6456
6542
|
if (t.querySelector("parsererror")) return null;
|
|
6457
6543
|
let n = t.documentElement;
|
|
6458
|
-
return n.localName.toLowerCase() === "svg" ? (
|
|
6544
|
+
return n.localName.toLowerCase() === "svg" ? (xc(n), n) : null;
|
|
6459
6545
|
}
|
|
6460
|
-
function
|
|
6546
|
+
function Cc(e, t, n) {
|
|
6461
6547
|
return e.getPropertyValue(t).trim() || n;
|
|
6462
6548
|
}
|
|
6463
|
-
function
|
|
6464
|
-
let t = getComputedStyle(document.documentElement), n =
|
|
6549
|
+
function wc(e) {
|
|
6550
|
+
let t = getComputedStyle(document.documentElement), n = Cc(t, "--surface", "#ffffff"), r = Cc(t, "--fg", "#141a22"), i = Cc(t, "--primary", "#1f5092"), a = Cc(t, "--primary-soft", "#eef4fb"), o = Cc(t, "--border-strong", "#cdd6e2");
|
|
6465
6551
|
e.initialize({
|
|
6466
6552
|
startOnLoad: !1,
|
|
6467
6553
|
securityLevel: "strict",
|
|
6468
6554
|
theme: "base",
|
|
6469
|
-
fontFamily:
|
|
6555
|
+
fontFamily: Cc(t, "--font-sans", "inherit"),
|
|
6470
6556
|
flowchart: { useMaxWidth: !0 },
|
|
6471
6557
|
themeVariables: {
|
|
6472
6558
|
background: n,
|
|
6473
6559
|
primaryColor: a,
|
|
6474
6560
|
primaryTextColor: r,
|
|
6475
6561
|
primaryBorderColor: i,
|
|
6476
|
-
secondaryColor:
|
|
6477
|
-
tertiaryColor:
|
|
6562
|
+
secondaryColor: Cc(t, "--surface-3", "#eef2f7"),
|
|
6563
|
+
tertiaryColor: Cc(t, "--surface-2", "#f8fafc"),
|
|
6478
6564
|
lineColor: o,
|
|
6479
6565
|
textColor: r,
|
|
6480
6566
|
mainBkg: a,
|
|
6481
6567
|
nodeBorder: i,
|
|
6482
|
-
clusterBkg:
|
|
6568
|
+
clusterBkg: Cc(t, "--surface-2", "#f8fafc"),
|
|
6483
6569
|
clusterBorder: o,
|
|
6484
6570
|
fontSize: "13px"
|
|
6485
6571
|
}
|
|
6486
6572
|
});
|
|
6487
6573
|
}
|
|
6488
|
-
async function
|
|
6574
|
+
async function Tc(e, t = !1) {
|
|
6489
6575
|
let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
|
|
6490
6576
|
if (!n.length) return;
|
|
6491
|
-
let r = await
|
|
6492
|
-
|
|
6577
|
+
let r = await yc();
|
|
6578
|
+
wc(r);
|
|
6493
6579
|
for (let e of n) {
|
|
6494
6580
|
let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
|
|
6495
6581
|
if (t.trim()) {
|
|
6496
6582
|
e.querySelector(".md-mermaid__svg")?.remove();
|
|
6497
6583
|
try {
|
|
6498
|
-
|
|
6499
|
-
let { svg: n } = await r.render(`md-diagrama-${
|
|
6584
|
+
vc += 1;
|
|
6585
|
+
let { svg: n } = await r.render(`md-diagrama-${vc}`, t), i = Sc(n);
|
|
6500
6586
|
if (!i) {
|
|
6501
6587
|
e.dataset.mdEstado = "erro";
|
|
6502
6588
|
continue;
|
|
@@ -6509,15 +6595,15 @@ async function uc(e, t = !1) {
|
|
|
6509
6595
|
}
|
|
6510
6596
|
}
|
|
6511
6597
|
}
|
|
6512
|
-
async function
|
|
6513
|
-
e && (
|
|
6598
|
+
async function Ec(e) {
|
|
6599
|
+
e && (mc(e), gc(e), await Tc(e));
|
|
6514
6600
|
}
|
|
6515
6601
|
//#endregion
|
|
6516
6602
|
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
6517
|
-
var
|
|
6603
|
+
var Dc = {
|
|
6518
6604
|
key: 0,
|
|
6519
6605
|
class: "w-markdown-view w-markdown-view--empty"
|
|
6520
|
-
},
|
|
6606
|
+
}, Oc = ["innerHTML"], kc = /* @__PURE__ */ x({
|
|
6521
6607
|
__name: "WMarkdownView",
|
|
6522
6608
|
props: {
|
|
6523
6609
|
source: {},
|
|
@@ -6525,42 +6611,42 @@ var fc = {
|
|
|
6525
6611
|
},
|
|
6526
6612
|
emits: ["headings"],
|
|
6527
6613
|
setup(e, { emit: t }) {
|
|
6528
|
-
let n = e, r = t, i = I(null), a = I(
|
|
6529
|
-
H(o, (e) => r("headings", e.headings), { immediate: !0 }), H(s, () => void O(() =>
|
|
6614
|
+
let n = e, r = t, i = I(null), a = I(qs()), o = f(() => (a.value, pc(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
|
|
6615
|
+
H(o, (e) => r("headings", e.headings), { immediate: !0 }), H(s, () => void O(() => Ec(i.value)));
|
|
6530
6616
|
let l = null;
|
|
6531
6617
|
function u() {
|
|
6532
|
-
typeof MutationObserver > "u" || (l = new MutationObserver(() => void
|
|
6618
|
+
typeof MutationObserver > "u" || (l = new MutationObserver(() => void Tc(i.value, !0)), l.observe(document.documentElement, {
|
|
6533
6619
|
attributes: !0,
|
|
6534
6620
|
attributeFilter: ["class"]
|
|
6535
6621
|
}));
|
|
6536
6622
|
}
|
|
6537
6623
|
return M(async () => {
|
|
6538
|
-
await O(), await
|
|
6539
|
-
}), ee(() => l?.disconnect()), (t, n) => c.value ? (P(), h("div",
|
|
6624
|
+
await O(), await Ec(i.value), u(), a.value ||= (await Js(), !0);
|
|
6625
|
+
}), ee(() => l?.disconnect()), (t, n) => c.value ? (P(), h("div", Dc, z(e.emptyText), 1)) : (P(), h("div", {
|
|
6540
6626
|
key: 1,
|
|
6541
6627
|
ref_key: "raiz",
|
|
6542
6628
|
ref: i,
|
|
6543
6629
|
class: "w-markdown-view",
|
|
6544
6630
|
innerHTML: s.value
|
|
6545
|
-
}, null, 8,
|
|
6631
|
+
}, null, 8, Oc));
|
|
6546
6632
|
}
|
|
6547
|
-
}),
|
|
6633
|
+
}), Ac = {
|
|
6548
6634
|
class: "w-markdown-editor__toolbar",
|
|
6549
6635
|
role: "toolbar",
|
|
6550
6636
|
"aria-label": "Formatação markdown"
|
|
6551
|
-
},
|
|
6637
|
+
}, jc = [
|
|
6552
6638
|
"aria-label",
|
|
6553
6639
|
"title",
|
|
6554
6640
|
"disabled",
|
|
6555
6641
|
"onClick"
|
|
6556
|
-
],
|
|
6642
|
+
], Mc = ["aria-pressed"], Nc = ["aria-pressed"], Pc = {
|
|
6557
6643
|
key: 0,
|
|
6558
6644
|
class: "w-markdown-editor__ajuda"
|
|
6559
|
-
},
|
|
6645
|
+
}, Fc = [
|
|
6560
6646
|
"value",
|
|
6561
6647
|
"disabled",
|
|
6562
6648
|
"placeholder"
|
|
6563
|
-
],
|
|
6649
|
+
], Ic = /* @__PURE__ */ x({
|
|
6564
6650
|
__name: "WMarkdownEditor",
|
|
6565
6651
|
props: {
|
|
6566
6652
|
modelValue: {},
|
|
@@ -6742,7 +6828,7 @@ var fc = {
|
|
|
6742
6828
|
}
|
|
6743
6829
|
];
|
|
6744
6830
|
return (t, n) => (P(), h("div", { class: k(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
|
|
6745
|
-
g("div",
|
|
6831
|
+
g("div", Ac, [
|
|
6746
6832
|
(P(), h(d, null, L(ne, (t) => g("button", {
|
|
6747
6833
|
key: t.label,
|
|
6748
6834
|
type: "button",
|
|
@@ -6762,7 +6848,7 @@ var fc = {
|
|
|
6762
6848
|
"w-markdown-editor__glyph--italic": t.glyph === "I"
|
|
6763
6849
|
}]),
|
|
6764
6850
|
"aria-hidden": "true"
|
|
6765
|
-
}, z(t.glyph), 3))], 8,
|
|
6851
|
+
}, z(t.glyph), 3))], 8, jc)), 64)),
|
|
6766
6852
|
g("button", {
|
|
6767
6853
|
type: "button",
|
|
6768
6854
|
class: k(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": F.value }]),
|
|
@@ -6773,7 +6859,7 @@ var fc = {
|
|
|
6773
6859
|
}, [...n[1] ||= [g("i", {
|
|
6774
6860
|
class: "pi pi-question-circle",
|
|
6775
6861
|
"aria-hidden": "true"
|
|
6776
|
-
}, null, -1)]], 10,
|
|
6862
|
+
}, null, -1)]], 10, Mc),
|
|
6777
6863
|
o.value ? m("", !0) : (P(), h("button", {
|
|
6778
6864
|
key: 0,
|
|
6779
6865
|
type: "button",
|
|
@@ -6785,9 +6871,9 @@ var fc = {
|
|
|
6785
6871
|
}, [g("i", {
|
|
6786
6872
|
class: k(a.value ? "pi pi-pencil" : "pi pi-eye"),
|
|
6787
6873
|
"aria-hidden": "true"
|
|
6788
|
-
}, null, 2)], 10,
|
|
6874
|
+
}, null, 2)], 10, Nc))
|
|
6789
6875
|
]),
|
|
6790
|
-
F.value ? (P(), h("dl",
|
|
6876
|
+
F.value ? (P(), h("dl", Pc, [(P(), h(d, null, L(te, (e) => (P(), h(d, { key: e.sintaxe }, [g("dt", null, z(e.sintaxe), 1), g("dd", null, z(e.efeito), 1)], 64))), 64))])) : m("", !0),
|
|
6791
6877
|
g("div", {
|
|
6792
6878
|
class: "w-markdown-editor__body",
|
|
6793
6879
|
style: j({
|
|
@@ -6804,7 +6890,7 @@ var fc = {
|
|
|
6804
6890
|
placeholder: e.placeholder,
|
|
6805
6891
|
spellcheck: "false",
|
|
6806
6892
|
onInput: l
|
|
6807
|
-
}, null, 40,
|
|
6893
|
+
}, null, 40, Fc)) : m("", !0), c.value ? (P(), p(kc, {
|
|
6808
6894
|
key: 1,
|
|
6809
6895
|
class: "w-markdown-editor__preview",
|
|
6810
6896
|
source: e.modelValue,
|
|
@@ -6812,28 +6898,28 @@ var fc = {
|
|
|
6812
6898
|
}, null, 8, ["source"])) : m("", !0)], 4)
|
|
6813
6899
|
], 2));
|
|
6814
6900
|
}
|
|
6815
|
-
}),
|
|
6901
|
+
}), Lc = {
|
|
6816
6902
|
key: 0,
|
|
6817
6903
|
class: "w-md-toc",
|
|
6818
6904
|
"aria-label": "Índice do documento"
|
|
6819
|
-
},
|
|
6905
|
+
}, Rc = { class: "w-md-toc__titulo" }, zc = {
|
|
6820
6906
|
key: 0,
|
|
6821
6907
|
class: "w-md-toc__busca"
|
|
6822
|
-
},
|
|
6908
|
+
}, Bc = { class: "w-md-toc__lista" }, Vc = [
|
|
6823
6909
|
"aria-expanded",
|
|
6824
6910
|
"aria-label",
|
|
6825
6911
|
"onClick"
|
|
6826
|
-
],
|
|
6912
|
+
], Hc = {
|
|
6827
6913
|
key: 1,
|
|
6828
6914
|
class: "w-md-toc__chevron w-md-toc__chevron--vazio",
|
|
6829
6915
|
"aria-hidden": "true"
|
|
6830
|
-
},
|
|
6916
|
+
}, Uc = ["href", "onClick"], Wc = {
|
|
6831
6917
|
key: 0,
|
|
6832
6918
|
class: "w-md-toc__lista"
|
|
6833
|
-
},
|
|
6919
|
+
}, Gc = ["href", "onClick"], Kc = {
|
|
6834
6920
|
key: 0,
|
|
6835
6921
|
class: "w-md-toc__vazio"
|
|
6836
|
-
},
|
|
6922
|
+
}, qc = /* @__PURE__ */ x({
|
|
6837
6923
|
__name: "WMarkdownToc",
|
|
6838
6924
|
props: {
|
|
6839
6925
|
headings: {},
|
|
@@ -6889,9 +6975,9 @@ var fc = {
|
|
|
6889
6975
|
block: "start"
|
|
6890
6976
|
}));
|
|
6891
6977
|
}
|
|
6892
|
-
return H(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (P(), h("nav",
|
|
6893
|
-
g("p",
|
|
6894
|
-
e.searchable ? (P(), h("div",
|
|
6978
|
+
return H(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (P(), h("nav", Lc, [
|
|
6979
|
+
g("p", Rc, z(e.title), 1),
|
|
6980
|
+
e.searchable ? (P(), h("div", zc, [i[1] ||= g("i", {
|
|
6895
6981
|
class: "pi pi-search",
|
|
6896
6982
|
"aria-hidden": "true"
|
|
6897
6983
|
}, null, -1), W(g("input", {
|
|
@@ -6903,7 +6989,7 @@ var fc = {
|
|
|
6903
6989
|
g("div", {
|
|
6904
6990
|
class: "w-md-toc__corpo",
|
|
6905
6991
|
style: j({ maxHeight: e.maxHeight })
|
|
6906
|
-
}, [g("ul",
|
|
6992
|
+
}, [g("ul", Bc, [(P(!0), h(d, null, L(c.value, (e) => (P(), h("li", {
|
|
6907
6993
|
key: e.titulo.id,
|
|
6908
6994
|
class: "w-md-toc__grupo"
|
|
6909
6995
|
}, [g("div", { class: k(["w-md-toc__item w-md-toc__item--n2", { "w-md-toc__item--ativo": n.value === e.titulo.id }]) }, [e.filhos.length ? (P(), h("button", {
|
|
@@ -6916,19 +7002,19 @@ var fc = {
|
|
|
6916
7002
|
}, [g("i", {
|
|
6917
7003
|
class: k(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
|
|
6918
7004
|
"aria-hidden": "true"
|
|
6919
|
-
}, null, 2)], 8,
|
|
7005
|
+
}, null, 2)], 8, Vc)) : (P(), h("span", Hc)), g("a", {
|
|
6920
7006
|
href: `#${e.titulo.id}`,
|
|
6921
7007
|
onClick: G((t) => v(e.titulo.id), ["prevent"])
|
|
6922
|
-
}, z(e.titulo.text), 9,
|
|
7008
|
+
}, z(e.titulo.text), 9, Uc)], 2), u(e) ? (P(), h("ul", Wc, [(P(!0), h(d, null, L(e.filhos, (e) => (P(), h("li", {
|
|
6923
7009
|
key: e.id,
|
|
6924
7010
|
class: k(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
|
|
6925
7011
|
}, [g("a", {
|
|
6926
7012
|
href: `#${e.id}`,
|
|
6927
7013
|
onClick: G((t) => v(e.id), ["prevent"])
|
|
6928
|
-
}, z(e.text), 9,
|
|
7014
|
+
}, z(e.text), 9, Gc)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (P(), h("p", Kc, "Nenhuma seção encontrada")) : m("", !0)], 4)
|
|
6929
7015
|
])) : m("", !0);
|
|
6930
7016
|
}
|
|
6931
|
-
}),
|
|
7017
|
+
}), Jc = /* @__PURE__ */ x({
|
|
6932
7018
|
name: "WDialog",
|
|
6933
7019
|
inheritAttrs: !1,
|
|
6934
7020
|
__name: "WDialog",
|
|
@@ -6939,16 +7025,16 @@ var fc = {
|
|
|
6939
7025
|
fn: U((t) => [R(e.$slots, n, A(S(t ?? {})))])
|
|
6940
7026
|
}))]), 1040, ["append-to"]));
|
|
6941
7027
|
}
|
|
6942
|
-
}),
|
|
7028
|
+
}), Yc = ["aria-label"], Xc = [
|
|
6943
7029
|
"aria-selected",
|
|
6944
7030
|
"tabindex",
|
|
6945
7031
|
"disabled",
|
|
6946
7032
|
"onClick",
|
|
6947
7033
|
"onKeydown"
|
|
6948
|
-
],
|
|
7034
|
+
], Zc = {
|
|
6949
7035
|
key: 1,
|
|
6950
7036
|
class: "w-tab-bar__badge"
|
|
6951
|
-
},
|
|
7037
|
+
}, Qc = /* @__PURE__ */ x({
|
|
6952
7038
|
__name: "WTabBar",
|
|
6953
7039
|
props: {
|
|
6954
7040
|
modelValue: {},
|
|
@@ -6997,20 +7083,20 @@ var fc = {
|
|
|
6997
7083
|
"aria-hidden": "true"
|
|
6998
7084
|
}, null, 2)) : m("", !0),
|
|
6999
7085
|
g("span", null, z(t.label), 1),
|
|
7000
|
-
t.badge !== void 0 && t.badge !== null ? (P(), h("span",
|
|
7001
|
-
], 42,
|
|
7086
|
+
t.badge !== void 0 && t.badge !== null ? (P(), h("span", Zc, z(t.badge), 1)) : m("", !0)
|
|
7087
|
+
], 42, Xc))), 128))], 8, Yc));
|
|
7002
7088
|
}
|
|
7003
|
-
}),
|
|
7089
|
+
}), $c = { class: "w-tab-nav" }, el = ["aria-label"], tl = [
|
|
7004
7090
|
"tabindex",
|
|
7005
7091
|
"aria-selected",
|
|
7006
7092
|
"onClick",
|
|
7007
7093
|
"onAuxclick",
|
|
7008
7094
|
"onContextmenu",
|
|
7009
7095
|
"onKeydown"
|
|
7010
|
-
],
|
|
7096
|
+
], nl = ["title"], rl = ["aria-label", "onClick"], il = ["aria-label", "onClick"], al = {
|
|
7011
7097
|
key: 0,
|
|
7012
7098
|
class: "w-tab-nav__actions"
|
|
7013
|
-
},
|
|
7099
|
+
}, ol = /* @__PURE__ */ x({
|
|
7014
7100
|
__name: "WTabNav",
|
|
7015
7101
|
props: {
|
|
7016
7102
|
tabs: {},
|
|
@@ -7108,7 +7194,7 @@ var fc = {
|
|
|
7108
7194
|
let t = i.value[e]?.group;
|
|
7109
7195
|
return !!t && t !== i.value[e - 1]?.group;
|
|
7110
7196
|
}
|
|
7111
|
-
return (t, n) => (P(), h("div",
|
|
7197
|
+
return (t, n) => (P(), h("div", $c, [
|
|
7112
7198
|
g("div", {
|
|
7113
7199
|
ref_key: "trilho",
|
|
7114
7200
|
ref: s,
|
|
@@ -7150,7 +7236,7 @@ var fc = {
|
|
|
7150
7236
|
}, null, 2)) : m("", !0), g("span", {
|
|
7151
7237
|
class: "w-tab-nav__title",
|
|
7152
7238
|
title: e.title
|
|
7153
|
-
}, z(e.title), 9,
|
|
7239
|
+
}, z(e.title), 9, nl)]),
|
|
7154
7240
|
g("button", {
|
|
7155
7241
|
type: "button",
|
|
7156
7242
|
class: "w-tab-nav__menu",
|
|
@@ -7160,7 +7246,7 @@ var fc = {
|
|
|
7160
7246
|
}, [...n[0] ||= [g("i", {
|
|
7161
7247
|
class: "pi pi-ellipsis-v",
|
|
7162
7248
|
"aria-hidden": "true"
|
|
7163
|
-
}, null, -1)]], 8,
|
|
7249
|
+
}, null, -1)]], 8, rl),
|
|
7164
7250
|
e.closable ? (P(), h("button", {
|
|
7165
7251
|
key: 0,
|
|
7166
7252
|
type: "button",
|
|
@@ -7171,9 +7257,9 @@ var fc = {
|
|
|
7171
7257
|
}, [...n[1] ||= [g("i", {
|
|
7172
7258
|
class: "pi pi-times",
|
|
7173
7259
|
"aria-hidden": "true"
|
|
7174
|
-
}, null, -1)]], 8,
|
|
7175
|
-
], 46,
|
|
7176
|
-
t.$slots.actions ? (P(), h("div",
|
|
7260
|
+
}, null, -1)]], 8, il)) : m("", !0)
|
|
7261
|
+
], 46, tl)], 64))), 128))], 8, el),
|
|
7262
|
+
t.$slots.actions ? (P(), h("div", al, [R(t.$slots, "actions")])) : m("", !0),
|
|
7177
7263
|
b(V(ve), {
|
|
7178
7264
|
ref_key: "menu",
|
|
7179
7265
|
ref: _,
|
|
@@ -7181,7 +7267,7 @@ var fc = {
|
|
|
7181
7267
|
}, null, 8, ["model"])
|
|
7182
7268
|
]));
|
|
7183
7269
|
}
|
|
7184
|
-
}),
|
|
7270
|
+
}), sl = x({
|
|
7185
7271
|
name: "WTabPane",
|
|
7186
7272
|
props: {
|
|
7187
7273
|
tab: {
|
|
@@ -7227,7 +7313,7 @@ var fc = {
|
|
|
7227
7313
|
key: e.tab.remount
|
|
7228
7314
|
}) : null;
|
|
7229
7315
|
}
|
|
7230
|
-
}),
|
|
7316
|
+
}), cl = { class: "w-tab-viewport" }, ll = { class: "w-tab-viewport__scroll" }, ul = /* @__PURE__ */ x({
|
|
7231
7317
|
__name: "WTabViewport",
|
|
7232
7318
|
props: { tabs: {} },
|
|
7233
7319
|
setup(e) {
|
|
@@ -7247,12 +7333,12 @@ var fc = {
|
|
|
7247
7333
|
return H(r, (e) => {
|
|
7248
7334
|
let t = new Set(e.map((e) => e.key));
|
|
7249
7335
|
for (let e of i.keys()) t.has(e) || i.delete(e);
|
|
7250
|
-
}), (t, i) => (P(), h("div",
|
|
7336
|
+
}), (t, i) => (P(), h("div", cl, [(P(!0), h(d, null, L(r.value, (t) => W((P(), h("div", {
|
|
7251
7337
|
key: `${t.key}#${t.remount}`,
|
|
7252
7338
|
ref_for: !0,
|
|
7253
7339
|
ref: (e) => o(t.key, e),
|
|
7254
7340
|
class: "w-tab-viewport__pane"
|
|
7255
|
-
}, [g("div",
|
|
7341
|
+
}, [g("div", ll, [b(V(sl), {
|
|
7256
7342
|
tab: t,
|
|
7257
7343
|
api: e.tabs,
|
|
7258
7344
|
active: t.key === n.value,
|
|
@@ -7264,26 +7350,26 @@ var fc = {
|
|
|
7264
7350
|
"host-el"
|
|
7265
7351
|
])])])), [[le, t.key === n.value]])), 128))]));
|
|
7266
7352
|
}
|
|
7267
|
-
}),
|
|
7353
|
+
}), dl = ["aria-busy"], fl = { class: "w-kanban-board__header" }, pl = { class: "w-kanban-board__title" }, ml = { class: "w-kanban-board__count" }, hl = [
|
|
7268
7354
|
"aria-label",
|
|
7269
7355
|
"onDragover",
|
|
7270
7356
|
"onDragleave",
|
|
7271
7357
|
"onDrop"
|
|
7272
|
-
],
|
|
7358
|
+
], gl = {
|
|
7273
7359
|
key: 0,
|
|
7274
7360
|
class: "w-kanban-board__indicator"
|
|
7275
|
-
},
|
|
7361
|
+
}, _l = [
|
|
7276
7362
|
"draggable",
|
|
7277
7363
|
"onDragstart",
|
|
7278
7364
|
"onClick",
|
|
7279
7365
|
"onKeydown"
|
|
7280
|
-
],
|
|
7366
|
+
], vl = { class: "w-kanban-board__card-fallback" }, yl = {
|
|
7281
7367
|
key: 0,
|
|
7282
7368
|
class: "w-kanban-board__indicator"
|
|
7283
|
-
},
|
|
7369
|
+
}, bl = {
|
|
7284
7370
|
key: 1,
|
|
7285
7371
|
class: "w-kanban-board__empty"
|
|
7286
|
-
},
|
|
7372
|
+
}, xl = /* @__PURE__ */ x({
|
|
7287
7373
|
__name: "WKanbanBoard",
|
|
7288
7374
|
props: {
|
|
7289
7375
|
columns: {},
|
|
@@ -7386,7 +7472,7 @@ var fc = {
|
|
|
7386
7472
|
key: r.value,
|
|
7387
7473
|
class: k(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
|
|
7388
7474
|
style: j(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
|
|
7389
|
-
}, [g("header",
|
|
7475
|
+
}, [g("header", fl, [R(t.$slots, "column-header", { column: r }, () => [g("span", pl, z(r.label), 1), g("span", ml, z(r.items.length), 1)]), R(t.$slots, "column-action", { column: r })]), g("div", {
|
|
7390
7476
|
ref_for: !0,
|
|
7391
7477
|
ref: (e) => s(r.value, e),
|
|
7392
7478
|
class: "w-kanban-board__list",
|
|
@@ -7400,7 +7486,7 @@ var fc = {
|
|
|
7400
7486
|
onDragleave: (e) => b(r, e),
|
|
7401
7487
|
onDrop: (e) => x(r, e)
|
|
7402
7488
|
}, [
|
|
7403
|
-
(P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div",
|
|
7489
|
+
(P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div", gl)) : m("", !0), g("div", {
|
|
7404
7490
|
class: k(["w-kanban-board__card", {
|
|
7405
7491
|
"w-kanban-board__card--dragging": f(e),
|
|
7406
7492
|
"w-kanban-board__card--static": !u(e)
|
|
@@ -7415,13 +7501,13 @@ var fc = {
|
|
|
7415
7501
|
}, [R(t.$slots, "card", {
|
|
7416
7502
|
item: e,
|
|
7417
7503
|
column: r
|
|
7418
|
-
}, () => [g("span",
|
|
7419
|
-
T(r, r.items.length) ? (P(), h("div",
|
|
7420
|
-
r.items.length ? m("", !0) : (P(), h("div",
|
|
7421
|
-
], 44,
|
|
7504
|
+
}, () => [g("span", vl, z(l(e)), 1)])], 42, _l)], 64))), 128)),
|
|
7505
|
+
T(r, r.items.length) ? (P(), h("div", yl)) : m("", !0),
|
|
7506
|
+
r.items.length ? m("", !0) : (P(), h("div", bl, [R(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
|
|
7507
|
+
], 44, hl)], 6))), 128))], 10, dl));
|
|
7422
7508
|
}
|
|
7423
7509
|
});
|
|
7424
7510
|
//#endregion
|
|
7425
|
-
export {
|
|
7511
|
+
export { Yi as A, Un as B, Oa as C, ta as D, sa as E, Ci as F, It as G, ln as H, di as I, gt as J, Mt as K, Fr as L, Wi as M, Ai as N, ea as O, wi as P, qn as R, za as S, fa as T, Jt as U, zn as V, Lt as W, _t as X, bt as Y, Xe as Z, lo as _, Jc as a, Va as b, kc as c, Zo as d, Oo as f, _o as g, xo as h, Qc as i, Zi as j, Ji as k, Fs as l, Eo as m, ul as n, qc as o, Do as p, yt as q, ol as r, Ic as s, xl as t, as as u, Za as v, ya as w, Ba as x, Ua as y, Kn as z };
|
|
7426
7512
|
|
|
7427
|
-
//# sourceMappingURL=components-
|
|
7513
|
+
//# sourceMappingURL=components-BNyzL6pd.js.map
|