bitboss-ui 0.2.35 → 0.2.36
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/index101.js +2 -2
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +4 -4
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +7 -7
- package/dist/index17.js +8 -8
- package/dist/index19.js +3 -3
- package/dist/index197.js +2 -3
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -35
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -6
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +33 -376
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +6 -134
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -2
- package/dist/index203.js +15 -18
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +19 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +18 -172
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +29 -23
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +8 -373
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -16
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +10 -16
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +3 -20
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +3 -29
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +378 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +134 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +2 -3
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +165 -226
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +23 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +373 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +235 -2
- package/dist/index219.js.map +1 -1
- package/dist/index221.js +9 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +118 -25
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -17
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +78 -8
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +25 -118
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +17 -79
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +3 -434
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +428 -82
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +86 -197
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +200 -6
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +223 -294
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +258 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +295 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +5 -116
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -106
- package/dist/index236.js.map +1 -1
- package/dist/index241.js +2 -224
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +2 -258
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +116 -68
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +105 -159
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +160 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -2
- package/dist/index246.js.map +1 -1
- package/dist/index248.js +69 -4
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +15 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index253.js +2 -15
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +2 -2
- package/dist/index255.js +1 -1
- package/dist/index29.js +3 -3
- package/dist/index31.js +5 -5
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +1 -1
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index53.js +10 -10
- package/dist/index53.js.map +1 -1
- package/dist/index65.js +5 -5
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index77.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index9.js +10 -10
- package/dist/index9.js.map +1 -1
- package/dist/src/components/BaseButton/BaseButton.vue.d.ts +67 -11
- package/dist/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +33 -33
- package/dist/src/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
- package/dist/src/components/BaseDialog/BaseDialog.vue.d.ts +5 -5
- package/dist/src/components/BaseInputContainer/BaseInputContainer.vue.d.ts +2 -2
- package/dist/src/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +33 -33
- package/dist/src/components/BaseSelect/BaseSelect.vue.d.ts +39 -39
- package/dist/src/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
- package/dist/src/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +33 -33
- package/dist/src/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
- package/dist/src/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +45 -45
- package/dist/src/components/BbDropdown/BbDropdown.vue.d.ts +3 -3
- package/dist/src/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/src/components/BbIntersection/BbIntersection.vue.d.ts +1 -1
- package/dist/src/components/BbOffCanvas/BbOffCanvas.vue.d.ts +6 -6
- package/dist/src/components/BbPopover/BbPopover.vue.d.ts +3 -3
- package/dist/src/components/BbRadio/BbRadio.vue.d.ts +1 -1
- package/dist/src/components/BbRadioGroup/BbRadioGroup.vue.d.ts +45 -45
- package/dist/src/components/BbRatio/BbRatio.vue.d.ts +1 -1
- package/dist/src/components/BbSelect/BbSelect.vue.d.ts +54 -54
- package/dist/src/components/BbSlider/BbSlider.vue.d.ts +1 -1
- package/dist/src/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
- package/dist/src/components/BbSwitch/BbSwitch.vue.d.ts +1 -1
- package/dist/src/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +45 -45
- package/dist/src/components/BbTable/BbTable.vue.d.ts +3 -3
- package/dist/src/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index35.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, ref as b, computed as n, watch as F, openBlock as m, createElementBlock as p, normalizeClass as N, normalizeProps as c, mergeProps as h, createCommentVNode as S, createElementVNode as l, renderSlot as x, guardReactiveProps as f } from "vue";
|
|
2
|
-
import { isCssColor as V } from "./
|
|
3
|
-
import { when as A } from "./
|
|
2
|
+
import { isCssColor as V } from "./index197.js";
|
|
3
|
+
import { when as A } from "./index198.js";
|
|
4
4
|
const J = { class: "bb-base-switch-container" }, M = /* @__PURE__ */ l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1), O = [
|
|
5
5
|
M
|
|
6
6
|
], H = /* @__PURE__ */ I({
|
package/dist/index47.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as u, ref as d, watch as f, openBlock as a, createElementBlock as l, normalizeProps as b, guardReactiveProps as z, createElementVNode as v, renderSlot as g, createCommentVNode as h } from "vue";
|
|
2
|
-
import { isCssColor as _ } from "./
|
|
2
|
+
import { isCssColor as _ } from "./index197.js";
|
|
3
3
|
const k = { class: "bb-avatar__fallback" }, C = ["alt", "sizes", "src", "srcset"], B = /* @__PURE__ */ p({
|
|
4
4
|
__name: "BbAvatar",
|
|
5
5
|
props: {
|
package/dist/index49.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
|
2
|
-
import { isCssColor as r } from "./
|
|
2
|
+
import { isCssColor as r } from "./index197.js";
|
|
3
3
|
import { isNil as B } from "./index120.js";
|
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
|
5
5
|
__name: "BbBadge",
|
package/dist/index53.js
CHANGED
|
@@ -4,17 +4,14 @@ import "./index10.js";
|
|
|
4
4
|
const f = /* @__PURE__ */ t({
|
|
5
5
|
__name: "BbButton",
|
|
6
6
|
props: {
|
|
7
|
-
block: { type: Boolean },
|
|
8
|
-
disabled: { type: Boolean },
|
|
9
|
-
text: {},
|
|
10
|
-
tag: {},
|
|
11
7
|
activeClass: {},
|
|
12
8
|
ariaCurrentValue: {},
|
|
13
|
-
|
|
14
|
-
replace: { type: Boolean },
|
|
15
|
-
to: {},
|
|
9
|
+
block: { type: Boolean },
|
|
16
10
|
data: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
exactActiveClass: {},
|
|
17
13
|
headers: {},
|
|
14
|
+
href: {},
|
|
18
15
|
method: {},
|
|
19
16
|
onBefore: { type: Function },
|
|
20
17
|
onCancel: { type: Function },
|
|
@@ -27,9 +24,12 @@ const f = /* @__PURE__ */ t({
|
|
|
27
24
|
preserveScroll: { type: [Boolean, Function] },
|
|
28
25
|
preserveState: { type: [Boolean, Function, null] },
|
|
29
26
|
queryStringArrayFormat: {},
|
|
30
|
-
type:
|
|
31
|
-
|
|
32
|
-
target: {}
|
|
27
|
+
replace: { type: Boolean },
|
|
28
|
+
tag: {},
|
|
29
|
+
target: {},
|
|
30
|
+
text: {},
|
|
31
|
+
to: {},
|
|
32
|
+
type: {}
|
|
33
33
|
},
|
|
34
34
|
setup(s) {
|
|
35
35
|
return (e, i) => (o(), n(r(l), a(e.$props, { class: "bb-button" }), {
|
package/dist/index53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index53.js","sources":["../src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { BaseButtonProps } from '../BaseButton/BaseButton.vue';\nimport { BaseButton } from '@/index';\n\nexport type BbButtonProps = BaseButtonProps;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbButton',\n props: {\n
|
|
1
|
+
{"version":3,"file":"index53.js","sources":["../src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { BaseButtonProps } from '../BaseButton/BaseButton.vue';\nimport { BaseButton } from '@/index';\n\nexport type BbButtonProps = BaseButtonProps;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbButton',\n props: {\n activeClass: {},\n ariaCurrentValue: {},\n block: { type: Boolean },\n data: {},\n disabled: { type: Boolean },\n exactActiveClass: {},\n headers: {},\n href: {},\n method: {},\n onBefore: { type: Function },\n onCancel: { type: Function },\n onCancelToken: { type: Function },\n onFinish: { type: Function },\n only: {},\n onProgress: { type: Function },\n onStart: { type: Function },\n onSuccess: { type: Function },\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n replace: { type: Boolean },\n tag: {},\n target: {},\n text: {},\n to: {},\n type: {}\n },\n setup(__props: any) {\n\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_unref(BaseButton), _mergeProps(_ctx.$props, { class: \"bb-button\" }), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","_ctx","_cache","_openBlock","_createBlock","_unref","BaseButton","_mergeProps","_withCtx","_renderSlot"],"mappings":";;;AAQA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,MAAM,CAAC;AAAA,IACP,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,CAAC;AAAA,IACnB,SAAS,CAAC;AAAA,IACV,MAAM,CAAC;AAAA,IACP,QAAQ,CAAC;AAAA,IACT,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,eAAe,EAAE,MAAM,SAAS;AAAA,IAChC,UAAU,EAAE,MAAM,SAAS;AAAA,IAC3B,MAAM,CAAC;AAAA,IACP,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,SAAS,EAAE,MAAM,SAAS;AAAA,IAC1B,WAAW,EAAE,MAAM,SAAS;AAAA,IAC5B,gBAAgB,EAAE,MAAM,CAAC,SAAS,QAAQ,EAAE;AAAA,IAC5C,eAAe,EAAE,MAAM,CAAC,SAAS,UAAU,IAAI,EAAE;AAAA,IACjD,wBAAwB,CAAC;AAAA,IACzB,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,KAAK,CAAC;AAAA,IACN,QAAQ,CAAC;AAAA,IACT,MAAM,CAAC;AAAA,IACP,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAMf,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAaC,EAAOC,CAAU,GAAGC,EAAYN,EAAK,QAAQ,EAAE,OAAO,YAAa,CAAA,GAAG;AAAA,MACvG,SAASO,EAAS,MAAM;AAAA,QACtBC,EAAYR,EAAK,QAAQ,SAAS;AAAA,MAAA,CACnC;AAAA,MACD,GAAG;AAAA,OACF,EAAE;AAAA,EAEP;AAEA,CAAC;"}
|
package/dist/index65.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Y, computed as M, ref as v, openBlock as D, createElementBlock as H, mergeProps as S, createElementVNode as h, renderSlot as y, normalizeProps as Z, guardReactiveProps as ee, unref as c, createBlock as te, Teleport as oe, normalizeClass as ne, normalizeStyle as z, Fragment as N, renderList as ae, createVNode as le, withCtx as se, createCommentVNode as ie } from "vue";
|
|
2
|
-
import { findRightIndex as I } from "./
|
|
3
|
-
import { useFloating as re, arrow as ue } from "./
|
|
2
|
+
import { findRightIndex as I } from "./index221.js";
|
|
3
|
+
import { useFloating as re, arrow as ue } from "./index222.js";
|
|
4
4
|
import { useId as de } from "./index7.js";
|
|
5
5
|
import { wait as U } from "./index122.js";
|
|
6
6
|
import ce from "./index9.js";
|
|
7
7
|
import "./index10.js";
|
|
8
|
-
import V from "./
|
|
9
|
-
import { autoUpdate as fe, flip as pe, shift as be } from "./
|
|
10
|
-
import { offset as me } from "./
|
|
8
|
+
import V from "./index217.js";
|
|
9
|
+
import { autoUpdate as fe, flip as pe, shift as be } from "./index213.js";
|
|
10
|
+
import { offset as me } from "./index218.js";
|
|
11
11
|
const ve = ["id", "aria-labelledby"], we = { class: "bb-dropdown__items-container" }, Me = /* @__PURE__ */ Y({
|
|
12
12
|
__name: "BbDropdown",
|
|
13
13
|
props: {
|
package/dist/index69.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
|
2
|
-
import { findInTree as ae } from "./
|
|
2
|
+
import { findInTree as ae } from "./index226.js";
|
|
3
3
|
import { useId as re } from "./index7.js";
|
|
4
4
|
import oe from "./index118.js";
|
|
5
5
|
import "./index183.js";
|
|
@@ -57,7 +57,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
|
|
|
57
57
|
if (r.includes("/"))
|
|
58
58
|
e.push(r);
|
|
59
59
|
else {
|
|
60
|
-
b || (b = await import("./
|
|
60
|
+
b || (b = await import("./index225.js").then((s) => s.i));
|
|
61
61
|
const o = b.getType(r);
|
|
62
62
|
if (!o)
|
|
63
63
|
throw new Error(
|
package/dist/index72.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
|
2
|
-
import { throttle as c } from "./
|
|
2
|
+
import { throttle as c } from "./index199.js";
|
|
3
3
|
const M = /* @__PURE__ */ h({
|
|
4
4
|
__name: "BbIntersection",
|
|
5
5
|
props: {
|
package/dist/index75.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, ref as s, useAttrs as G, computed as m, onMounted as J, watch as Q, onBeforeUnmount as X, openBlock as y, createBlock as Y, Teleport as Z, createElementVNode as o, mergeProps as N, createElementBlock as w, renderSlot as l, createTextVNode as ee, toDisplayString as z, createCommentVNode as B, nextTick as te } from "vue";
|
|
2
|
-
import { useFocusTrap as oe } from "./
|
|
2
|
+
import { useFocusTrap as oe } from "./index200.js";
|
|
3
3
|
import { useId as L } from "./index7.js";
|
|
4
4
|
import { wait as O } from "./index122.js";
|
|
5
5
|
const se = { class: "bb-offcanvas-close" }, ae = { class: "bb-offcanvas-close__content" }, ne = { class: "bb-offcanvas-close__label" }, le = /* @__PURE__ */ o("span", { class: "bb-offcanvas-close__icon" }, [
|
package/dist/index77.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, computed as y, ref as p, onMounted as A, onBeforeUnmount as B, openBlock as V, createElementBlock as k, createElementVNode as u, renderSlot as g, createTextVNode as b, Fragment as E, renderList as P, normalizeClass as W, toDisplayString as h, nextTick as z } from "vue";
|
|
2
|
-
import R from "./
|
|
2
|
+
import R from "./index224.js";
|
|
3
3
|
const T = { "aria-label": "Navigazione" }, F = ["disabled"], L = ["disabled", "onClick"], D = ["disabled"], O = /* @__PURE__ */ x({
|
|
4
4
|
__name: "BbPagination",
|
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as V, ref as a, computed as _, openBlock as p, createElementBlock as h, mergeProps as B, createElementVNode as d, renderSlot as P, normalizeProps as I, guardReactiveProps as R, unref as g, createBlock as D, Teleport as U, normalizeClass as W, normalizeStyle as j, createCommentVNode as y, withCtx as G, nextTick as J } from "vue";
|
|
2
|
-
import { useFloating as K, arrow as Q } from "./
|
|
3
|
-
import { useFocusTrap as X } from "./
|
|
2
|
+
import { useFloating as K, arrow as Q } from "./index222.js";
|
|
3
|
+
import { useFocusTrap as X } from "./index200.js";
|
|
4
4
|
import { useId as Y } from "./index7.js";
|
|
5
5
|
import { wait as E } from "./index122.js";
|
|
6
6
|
import Z from "./index9.js";
|
|
7
7
|
import "./index10.js";
|
|
8
|
-
import { autoUpdate as ee, flip as oe, shift as te } from "./
|
|
9
|
-
import { offset as ae } from "./
|
|
8
|
+
import { autoUpdate as ee, flip as oe, shift as te } from "./index213.js";
|
|
9
|
+
import { offset as ae } from "./index218.js";
|
|
10
10
|
const re = ["id"], ne = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "bb-popover__bubble"
|
package/dist/index9.js
CHANGED
|
@@ -2,17 +2,14 @@ import { defineComponent as v, getCurrentInstance as c, computed as n, resolveCo
|
|
|
2
2
|
const A = /* @__PURE__ */ v({
|
|
3
3
|
__name: "BaseButton",
|
|
4
4
|
props: {
|
|
5
|
-
block: { type: Boolean },
|
|
6
|
-
disabled: { type: Boolean },
|
|
7
|
-
text: {},
|
|
8
|
-
tag: { default: "button" },
|
|
9
5
|
activeClass: {},
|
|
10
6
|
ariaCurrentValue: {},
|
|
11
|
-
|
|
12
|
-
replace: { type: Boolean },
|
|
13
|
-
to: {},
|
|
7
|
+
block: { type: Boolean },
|
|
14
8
|
data: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
exactActiveClass: {},
|
|
15
11
|
headers: {},
|
|
12
|
+
href: {},
|
|
16
13
|
method: {},
|
|
17
14
|
onBefore: {},
|
|
18
15
|
onCancel: {},
|
|
@@ -25,9 +22,12 @@ const A = /* @__PURE__ */ v({
|
|
|
25
22
|
preserveScroll: { type: [Boolean, Function] },
|
|
26
23
|
preserveState: { type: [Boolean, Function, null] },
|
|
27
24
|
queryStringArrayFormat: {},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
target: {}
|
|
25
|
+
replace: { type: Boolean },
|
|
26
|
+
tag: { default: "button" },
|
|
27
|
+
target: {},
|
|
28
|
+
text: {},
|
|
29
|
+
to: {},
|
|
30
|
+
type: { default: "button" }
|
|
31
31
|
},
|
|
32
32
|
setup(d) {
|
|
33
33
|
var o, s, l, i;
|
package/dist/index9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":["../src/components/BaseButton/BaseButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { CommonProps, NonVoidElementTag } from '@/types/CommonProps';\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { InertiaLinkProps } from '@inertiajs/vue3';\nimport type { RouterLinkProps } from 'vue-router';\n\nexport type BaseButtonProps = Pick<CommonProps, 'block' | 'disabled' | 'text'> &\n\tNonVoidElementTag &\n\tPartial<\n\t\tPick<\n\t\t\tRouterLinkProps,\n\t\t\t'activeClass' | 'ariaCurrentValue' | 'exactActiveClass' | 'replace' | 'to'\n\t\t>\n\t> &\n\tPartial<\n\t\tPick<\n\t\t\tInertiaLinkProps,\n\t\t\t| 'data'\n\t\t\t| 'headers'\n\t\t\t| 'method'\n\t\t\t| 'onBefore'\n\t\t\t| 'onCancel'\n\t\t\t| 'onCancelToken'\n\t\t\t| 'onFinish'\n\t\t\t| 'only'\n\t\t\t| 'onProgress'\n\t\t\t| 'onStart'\n\t\t\t| 'onSuccess'\n\t\t\t| 'preserveScroll'\n\t\t\t| 'preserveState'\n\t\t\t| 'queryStringArrayFormat'\n\t\t>\n\t> &\n\tPartial<{\n\t\t/**\n\t\t * Gets the classification and default behavior of the button.\n\t\t */\n\t\ttype: HTMLButtonElement['type'];\n\t\t/**\n\t\t * Returns the hyperlink's URL.\n\t\t *\n\t\t * Can be set, to change the URL.\n\t\t */\n\t\thref: HTMLAnchorElement['href'];\n\t\t/**\n\t\t * Sets or retrieves the window or frame at which to target content.\n\t\t */\n\t\ttarget: HTMLAnchorElement['target'];\n\t}>;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseButton',\n props: {\n block: { type: Boolean },\n disabled: { type: Boolean },\n text: {},\n tag: { default: 'button' },\n activeClass: {},\n ariaCurrentValue: {},\n exactActiveClass: {},\n replace: { type: Boolean },\n to: {},\n data: {},\n headers: {},\n method: {},\n onBefore: {},\n onCancel: {},\n onCancelToken: {},\n onFinish: {},\n only: {},\n onProgress: {},\n onStart: {},\n onSuccess: {},\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n type: { default: 'button' },\n href: {},\n target: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n/* Ignore because possibly undefined */\n// @ts-ignore\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-ignore\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\tif (isInertia && !props.disabled) return resolveComponent('Link');\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) return resolveComponent('NuxtLink');\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\t'aria-disabled': boolean;\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\t\tdata: BaseButtonProps['data'];\n\t\tdisabled: boolean;\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\t\theaders: BaseButtonProps['headers'];\n\t\thref: string;\n\t\tmethod: BaseButtonProps['method'];\n\t\tonBefore: BaseButtonProps['onBefore'];\n\t\tonCancel: BaseButtonProps['onCancel'];\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\t\tonFinish: BaseButtonProps['onFinish'];\n\t\tonly: BaseButtonProps['only'];\n\t\tonProgress: BaseButtonProps['onProgress'];\n\t\tonStart: BaseButtonProps['onStart'];\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\t\treplace: BaseButtonProps['replace'];\n\t\trole: string;\n\t\tstyle: { [rule: string]: string };\n\t\ttarget: string;\n\t\tto: BaseButtonProps['to'];\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\tswitch (tag.value) {\n\t\tcase 'button':\n\t\t\tinitial.disabled = props.disabled;\n\t\t\tinitial.type = props.type;\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\t// When rendering as anchor prevent navigation if disabled\n\t\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\t\tif (props.disabled) {\n\t\t\t\tinitial['aria-disabled'] = true;\n\t\t\t\tinitial.role = 'link';\n\t\t\t} else {\n\t\t\t\t// Only attach the href to active links\n\t\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\t\tinitial.href = props.href;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'router-link':\n\t\t\tinitial.to = props.to;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn initial;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(tag.value), _mergeProps({ class: classes.value }, attributes.value), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n _: 3\n }, 16, [\"class\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolveComponent","classes","attributes","initial","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot","_createTextVNode","_toDisplayString"],"mappings":";AAqDA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,KAAK,EAAE,SAAS,SAAS;AAAA,IACzB,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,kBAAkB,CAAC;AAAA,IACnB,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,IACP,SAAS,CAAC;AAAA,IACV,QAAQ,CAAC;AAAA,IACT,UAAU,CAAC;AAAA,IACX,U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,WAAW,IAAI,MAAM;AAAA,UAC5CQ,EAAiBC,EAAiBT,EAAK,IAAI,GAAG,CAAC;AAAA,QAAA,CAChD;AAAA,MAAA,CACF;AAAA,MACD,GAAG;AAAA,IAAA,GACF,IAAI,CAAC,OAAO,CAAC;AAAA,EAElB;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index9.js","sources":["../src/components/BaseButton/BaseButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nexport type BaseButtonProps = {\n\t/**\n\t * Class to apply when the link is active\n\t */\n\tactiveClass?: string;\n\n\t/**\n\t * Value passed to the attribute `aria-current` when the link is exact active.\n\t *\n\t * @defaultValue `'page'`\n\t */\n\tariaCurrentValue?:\n\t\t| 'page'\n\t\t| 'step'\n\t\t| 'location'\n\t\t| 'date'\n\t\t| 'time'\n\t\t| 'true'\n\t\t| 'false';\n\n\t/**\n\t * Displays the component as full width.\n\t */\n\tblock?: boolean;\n\n\tdata?: object;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Class to apply when the link is exact active\n\t */\n\texactActiveClass?: string;\n\n\theaders?: object;\n\n\t/**\n\t * Returns the hyperlink's URL.\n\t *\n\t * Can be set, to change the URL.\n\t */\n\thref?: HTMLAnchorElement['href'];\n\n\tmethod?: 'get' | 'post' | 'put' | 'patch' | 'delete';\n\n\tonBefore?: () => void;\n\n\tonCancel?: () => void;\n\n\tonCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;\n\n\tonFinish?: () => void;\n\n\tonly?: string[];\n\n\tonProgress?: (progress: { percentage: number | undefined }) => void;\n\n\tonStart?: () => void;\n\n\tonSuccess?: () => void;\n\n\tpreserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);\n\n\tpreserveState?:\n\t\t| boolean\n\t\t| ((props: { [key: string]: unknown }) => boolean)\n\t\t| null;\n\n\tqueryStringArrayFormat?: 'brackets' | 'indices';\n\n\t/**\n\t * Calls `router.replace` instead of `router.push`.\n\t */\n\treplace?: boolean;\n\n\t/**\n\t * Any HTML tag corresponding to a non-void HTMl element.\n\t */\n\ttag?: string;\n\n\t/**\n\t * Sets or retrieves the window or frame at which to target content.\n\t */\n\ttarget?: HTMLAnchorElement['target'];\n\n\t/**\n\t * Text content of the component.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Route Location the link should navigate to when clicked on.\n\t */\n\tto?: RouteLocationRaw;\n\n\t/**\n\t * Gets the classification and default behavior of the button.\n\t */\n\ttype?: HTMLButtonElement['type'];\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseButton',\n props: {\n activeClass: {},\n ariaCurrentValue: {},\n block: { type: Boolean },\n data: {},\n disabled: { type: Boolean },\n exactActiveClass: {},\n headers: {},\n href: {},\n method: {},\n onBefore: {},\n onCancel: {},\n onCancelToken: {},\n onFinish: {},\n only: {},\n onProgress: {},\n onStart: {},\n onSuccess: {},\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n replace: { type: Boolean },\n tag: { default: 'button' },\n target: {},\n text: {},\n to: {},\n type: { default: 'button' }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n/* Ignore because possibly undefined */\n// @ts-ignore\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-ignore\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\tif (isInertia && !props.disabled) return resolveComponent('Link');\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) return resolveComponent('NuxtLink');\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\n\t\t'aria-disabled': boolean;\n\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\n\t\tdata: BaseButtonProps['data'];\n\n\t\tdisabled: boolean;\n\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\n\t\theaders: BaseButtonProps['headers'];\n\n\t\thref: string;\n\n\t\tmethod: BaseButtonProps['method'];\n\n\t\tonBefore: BaseButtonProps['onBefore'];\n\n\t\tonCancel: BaseButtonProps['onCancel'];\n\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\n\t\tonFinish: BaseButtonProps['onFinish'];\n\n\t\tonly: BaseButtonProps['only'];\n\n\t\tonProgress: BaseButtonProps['onProgress'];\n\n\t\tonStart: BaseButtonProps['onStart'];\n\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\n\t\treplace: BaseButtonProps['replace'];\n\n\t\trole: string;\n\n\t\tstyle: { [rule: string]: string };\n\n\t\ttarget: string;\n\n\t\tto: BaseButtonProps['to'];\n\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\tswitch (tag.value) {\n\t\tcase 'button':\n\t\t\tinitial.disabled = props.disabled;\n\t\t\tinitial.type = props.type;\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\t// When rendering as anchor prevent navigation if disabled\n\t\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\t\tif (props.disabled) {\n\t\t\t\tinitial['aria-disabled'] = true;\n\t\t\t\tinitial.role = 'link';\n\t\t\t} else {\n\t\t\t\t// Only attach the href to active links\n\t\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\t\tinitial.href = props.href;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'router-link':\n\t\t\tinitial.to = props.to;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn initial;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(tag.value), _mergeProps({ class: classes.value }, attributes.value), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n _: 3\n }, 16, [\"class\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolveComponent","classes","attributes","initial","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot","_createTextVNode","_toDisplayString"],"mappings":";AA+GA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,MAAM,CAAC;AAAA,IACP,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,CAAC;AAAA,IACnB,SAAS,CAAC;AAAA,IACV,MAAM,CAAC;AAAA,IACP,QAAQ,CAAC;AAAA,IACT,UAAU,CAAC;AAAA,IACX,UAAU,CAAC;AAAA,IACX,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,MAAM,CAAC;AAAA,IACP,YAAY,CAAC;AAAA,IACb,SAAS,CAAC;AAAA,IACV,WAAW,CAAC;AAAA,IACZ,gBAAgB,EAAE,MAAM,CAAC,SAAS,QAAQ,EAAE;AAAA,IAC5C,eAAe,EAAE,MAA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GACF,IAAI,CAAC,OAAO,CAAC;AAAA,EAElB;AAEA,CAAC;"}
|
|
@@ -1,22 +1,78 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
import type { RouterLinkProps } from 'vue-router';
|
|
4
|
-
export type BaseButtonProps = Pick<CommonProps, 'block' | 'disabled' | 'text'> & NonVoidElementTag & Partial<Pick<RouterLinkProps, 'activeClass' | 'ariaCurrentValue' | 'exactActiveClass' | 'replace' | 'to'>> & Partial<Pick<InertiaLinkProps, 'data' | 'headers' | 'method' | 'onBefore' | 'onCancel' | 'onCancelToken' | 'onFinish' | 'only' | 'onProgress' | 'onStart' | 'onSuccess' | 'preserveScroll' | 'preserveState' | 'queryStringArrayFormat'>> & Partial<{
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
export type BaseButtonProps = {
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
4
|
+
* Class to apply when the link is active
|
|
5
|
+
*/
|
|
6
|
+
activeClass?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Value passed to the attribute `aria-current` when the link is exact active.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue `'page'`
|
|
11
|
+
*/
|
|
12
|
+
ariaCurrentValue?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
|
|
13
|
+
/**
|
|
14
|
+
* Displays the component as full width.
|
|
7
15
|
*/
|
|
8
|
-
|
|
16
|
+
block?: boolean;
|
|
17
|
+
data?: object;
|
|
18
|
+
/**
|
|
19
|
+
* Disables the component
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Class to apply when the link is exact active
|
|
24
|
+
*/
|
|
25
|
+
exactActiveClass?: string;
|
|
26
|
+
headers?: object;
|
|
9
27
|
/**
|
|
10
28
|
* Returns the hyperlink's URL.
|
|
11
29
|
*
|
|
12
30
|
* Can be set, to change the URL.
|
|
13
31
|
*/
|
|
14
|
-
href
|
|
32
|
+
href?: HTMLAnchorElement['href'];
|
|
33
|
+
method?: 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
34
|
+
onBefore?: () => void;
|
|
35
|
+
onCancel?: () => void;
|
|
36
|
+
onCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;
|
|
37
|
+
onFinish?: () => void;
|
|
38
|
+
only?: string[];
|
|
39
|
+
onProgress?: (progress: {
|
|
40
|
+
percentage: number | undefined;
|
|
41
|
+
}) => void;
|
|
42
|
+
onStart?: () => void;
|
|
43
|
+
onSuccess?: () => void;
|
|
44
|
+
preserveScroll?: boolean | ((props: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}) => boolean);
|
|
47
|
+
preserveState?: boolean | ((props: {
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
}) => boolean) | null;
|
|
50
|
+
queryStringArrayFormat?: 'brackets' | 'indices';
|
|
51
|
+
/**
|
|
52
|
+
* Calls `router.replace` instead of `router.push`.
|
|
53
|
+
*/
|
|
54
|
+
replace?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Any HTML tag corresponding to a non-void HTMl element.
|
|
57
|
+
*/
|
|
58
|
+
tag?: string;
|
|
15
59
|
/**
|
|
16
60
|
* Sets or retrieves the window or frame at which to target content.
|
|
17
61
|
*/
|
|
18
|
-
target
|
|
19
|
-
|
|
62
|
+
target?: HTMLAnchorElement['target'];
|
|
63
|
+
/**
|
|
64
|
+
* Text content of the component.
|
|
65
|
+
*/
|
|
66
|
+
text?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Route Location the link should navigate to when clicked on.
|
|
69
|
+
*/
|
|
70
|
+
to?: RouteLocationRaw;
|
|
71
|
+
/**
|
|
72
|
+
* Gets the classification and default behavior of the button.
|
|
73
|
+
*/
|
|
74
|
+
type?: HTMLButtonElement['type'];
|
|
75
|
+
};
|
|
20
76
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseButtonProps>, {
|
|
21
77
|
tag: string;
|
|
22
78
|
type: string;
|
|
@@ -24,8 +80,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
80
|
tag: string;
|
|
25
81
|
type: string;
|
|
26
82
|
}>>>, {
|
|
27
|
-
type: "
|
|
28
|
-
tag:
|
|
83
|
+
type: "submit" | "reset" | "button";
|
|
84
|
+
tag: string;
|
|
29
85
|
}, {}>, Readonly<{
|
|
30
86
|
default?: ((props: {}) => any) | undefined;
|
|
31
87
|
}> & {
|
|
@@ -105,6 +105,9 @@ export type BaseCheckboxGroupEvents = {
|
|
|
105
105
|
(e: 'update:modelValue', value: any): void;
|
|
106
106
|
};
|
|
107
107
|
declare const _default: <T = any>(__VLS_props: {
|
|
108
|
+
disabled?: boolean | undefined;
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
autofocus?: (boolean | "true" | "false") | undefined;
|
|
108
111
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
109
112
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
110
113
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -113,28 +116,25 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
113
116
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
114
117
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
115
118
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
116
|
-
autofocus?: (boolean | "true" | "false") | undefined;
|
|
117
119
|
id?: string | undefined;
|
|
118
|
-
name?: string | undefined;
|
|
119
120
|
readonly?: (boolean | "true" | "false") | undefined;
|
|
120
|
-
|
|
121
|
+
hasErrors?: boolean | undefined;
|
|
121
122
|
color?: string | undefined;
|
|
123
|
+
modelValue: any[];
|
|
124
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
125
|
+
matchStrategy?: "string" | "equality" | undefined;
|
|
122
126
|
dependencies?: any[] | undefined;
|
|
123
127
|
depsDebounceTime?: number | undefined;
|
|
124
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
125
128
|
enforceCoherence?: boolean | undefined;
|
|
126
|
-
hasErrors?: boolean | undefined;
|
|
127
|
-
hideLabel?: boolean | undefined;
|
|
128
129
|
itemText?: (T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => string) | undefined) | undefined;
|
|
129
130
|
itemValue?: (T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => any) | undefined) | undefined;
|
|
130
|
-
loadingText?: string | undefined;
|
|
131
|
-
matchStrategy?: "string" | "equality" | undefined;
|
|
132
131
|
modelValueDebounceTime?: number | undefined;
|
|
133
|
-
noDataText?: string | undefined;
|
|
134
|
-
modelValue: any[];
|
|
135
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
136
132
|
onInactive?: (() => any) | undefined;
|
|
133
|
+
direction?: "horizontal" | "vertical" | undefined;
|
|
134
|
+
hideLabel?: boolean | undefined;
|
|
137
135
|
items: T[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => T[]);
|
|
136
|
+
loadingText?: string | undefined;
|
|
137
|
+
noDataText?: string | undefined;
|
|
138
138
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
139
139
|
attrs: any;
|
|
140
140
|
slots: Readonly<{
|
|
@@ -181,6 +181,9 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
181
181
|
emit: BaseCheckboxGroupEvents;
|
|
182
182
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
183
183
|
props: {
|
|
184
|
+
disabled?: boolean | undefined;
|
|
185
|
+
name?: string | undefined;
|
|
186
|
+
autofocus?: (boolean | "true" | "false") | undefined;
|
|
184
187
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
185
188
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
186
189
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -189,28 +192,25 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
189
192
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
190
193
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
191
194
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
192
|
-
autofocus?: (boolean | "true" | "false") | undefined;
|
|
193
195
|
id?: string | undefined;
|
|
194
|
-
name?: string | undefined;
|
|
195
196
|
readonly?: (boolean | "true" | "false") | undefined;
|
|
196
|
-
|
|
197
|
+
hasErrors?: boolean | undefined;
|
|
197
198
|
color?: string | undefined;
|
|
199
|
+
modelValue: any[];
|
|
200
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
201
|
+
matchStrategy?: "string" | "equality" | undefined;
|
|
198
202
|
dependencies?: any[] | undefined;
|
|
199
203
|
depsDebounceTime?: number | undefined;
|
|
200
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
201
204
|
enforceCoherence?: boolean | undefined;
|
|
202
|
-
hasErrors?: boolean | undefined;
|
|
203
|
-
hideLabel?: boolean | undefined;
|
|
204
205
|
itemText?: (T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => string) | undefined) | undefined;
|
|
205
206
|
itemValue?: (T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => any) | undefined) | undefined;
|
|
206
|
-
loadingText?: string | undefined;
|
|
207
|
-
matchStrategy?: "string" | "equality" | undefined;
|
|
208
207
|
modelValueDebounceTime?: number | undefined;
|
|
209
|
-
noDataText?: string | undefined;
|
|
210
|
-
modelValue: any[];
|
|
211
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
212
208
|
onInactive?: (() => any) | undefined;
|
|
209
|
+
direction?: "horizontal" | "vertical" | undefined;
|
|
210
|
+
hideLabel?: boolean | undefined;
|
|
213
211
|
items: T[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => T[]);
|
|
212
|
+
loadingText?: string | undefined;
|
|
213
|
+
noDataText?: string | undefined;
|
|
214
214
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
215
215
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
216
216
|
attrs: any;
|
|
@@ -261,6 +261,9 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
261
261
|
}> & {
|
|
262
262
|
__ctx?: {
|
|
263
263
|
props: {
|
|
264
|
+
disabled?: boolean | undefined;
|
|
265
|
+
name?: string | undefined;
|
|
266
|
+
autofocus?: (boolean | "true" | "false") | undefined;
|
|
264
267
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
265
268
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
266
269
|
onChange?: ((event: Event) => any) | undefined;
|
|
@@ -269,28 +272,25 @@ declare const _default: <T = any>(__VLS_props: {
|
|
|
269
272
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
270
273
|
onMousedown?: ((event: MouseEvent) => any) | undefined;
|
|
271
274
|
onMouseup?: ((event: MouseEvent) => any) | undefined;
|
|
272
|
-
autofocus?: (boolean | "true" | "false") | undefined;
|
|
273
275
|
id?: string | undefined;
|
|
274
|
-
name?: string | undefined;
|
|
275
276
|
readonly?: (boolean | "true" | "false") | undefined;
|
|
276
|
-
|
|
277
|
+
hasErrors?: boolean | undefined;
|
|
277
278
|
color?: string | undefined;
|
|
279
|
+
modelValue: any[];
|
|
280
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
281
|
+
matchStrategy?: "string" | "equality" | undefined;
|
|
278
282
|
dependencies?: any[] | undefined;
|
|
279
283
|
depsDebounceTime?: number | undefined;
|
|
280
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
281
284
|
enforceCoherence?: boolean | undefined;
|
|
282
|
-
hasErrors?: boolean | undefined;
|
|
283
|
-
hideLabel?: boolean | undefined;
|
|
284
285
|
itemText?: (T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => string) | undefined) | undefined;
|
|
285
286
|
itemValue?: (T extends object ? NestedKeyOf<T> | ((item: T) => string) : ((item: T) => any) | undefined) | undefined;
|
|
286
|
-
loadingText?: string | undefined;
|
|
287
|
-
matchStrategy?: "string" | "equality" | undefined;
|
|
288
287
|
modelValueDebounceTime?: number | undefined;
|
|
289
|
-
noDataText?: string | undefined;
|
|
290
|
-
modelValue: any[];
|
|
291
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
292
288
|
onInactive?: (() => any) | undefined;
|
|
289
|
+
direction?: "horizontal" | "vertical" | undefined;
|
|
290
|
+
hideLabel?: boolean | undefined;
|
|
293
291
|
items: T[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<T[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => T[]);
|
|
292
|
+
loadingText?: string | undefined;
|
|
293
|
+
noDataText?: string | undefined;
|
|
294
294
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
295
295
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
296
296
|
attrs: any;
|
|
@@ -92,8 +92,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
92
92
|
onInactive?: (() => any) | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
autocomplete: string;
|
|
95
|
-
allowWriting: boolean;
|
|
96
95
|
width: string | number;
|
|
96
|
+
allowWriting: boolean;
|
|
97
97
|
}, {}>, Readonly<{
|
|
98
98
|
'prepend-outer'?: ((props: object) => any) | undefined;
|
|
99
99
|
prepend?: ((props: object) => any) | undefined;
|
|
@@ -73,15 +73,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
73
73
|
onHidden?: (() => any) | undefined;
|
|
74
74
|
onShown?: (() => any) | undefined;
|
|
75
75
|
}, {
|
|
76
|
+
size: number | ({
|
|
77
|
+
size?: any;
|
|
78
|
+
} & string) | keyof Sizes;
|
|
79
|
+
transition: string;
|
|
76
80
|
closeLabel: string;
|
|
77
|
-
overlayClasses: import("../../types/Classes").Classes;
|
|
78
81
|
panelClasses: import("../../types/Classes").Classes;
|
|
82
|
+
overlayClasses: import("../../types/Classes").Classes;
|
|
79
83
|
showClose: boolean;
|
|
80
|
-
transition: string;
|
|
81
84
|
transitionDuration: number;
|
|
82
|
-
size: number | ({
|
|
83
|
-
size?: any;
|
|
84
|
-
} & string) | keyof Sizes;
|
|
85
85
|
}, {}>, Readonly<BaseDialogSlots> & BaseDialogSlots>;
|
|
86
86
|
export default _default;
|
|
87
87
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -84,11 +84,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
84
84
|
reverse: boolean;
|
|
85
85
|
tag: string;
|
|
86
86
|
}>>>, {
|
|
87
|
+
tag: string;
|
|
88
|
+
reverse: boolean;
|
|
87
89
|
direction: string;
|
|
88
90
|
inputPosition: "left" | "center" | "right";
|
|
89
91
|
labelPosition: "left" | "center" | "right";
|
|
90
|
-
reverse: boolean;
|
|
91
|
-
tag: string;
|
|
92
92
|
labelTag: string;
|
|
93
93
|
}, {}>, Readonly<BaseInputContainerSlots> & BaseInputContainerSlots>;
|
|
94
94
|
export default _default;
|