@bagelink/vue 0.0.233-beta.0 → 0.0.235-beta.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/dist/components/ModalBglForm.vue.d.ts +2 -2
- package/dist/components/ModalBglForm.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts +2 -2
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +12 -10
- package/dist/index.mjs +12 -10
- package/dist/style.css +141 -266
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ModalBglForm.vue +23 -7
- package/src/components/ModalForm.vue +9 -33
- package/src/components/TableSchema.vue +11 -4
- package/src/components/index.ts +0 -1
- package/src/styles/dark.css +2 -13
- package/src/styles/inputs.css +98 -231
- package/src/styles/theme.css +21 -29
- package/src/utils/index.ts +0 -6
- package/src/components/formkit/index.ts +0 -24
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
14
14
|
type: import("vue").PropType<BtnOptions[]>;
|
|
15
15
|
};
|
|
16
16
|
schema: {
|
|
17
|
-
type: import("vue").PropType<BglFormSchemaT
|
|
17
|
+
type: import("vue").PropType<BglFormSchemaT & (() => BglFormSchemaT)>;
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
onSubmit: {
|
|
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
40
40
|
type: import("vue").PropType<BtnOptions[]>;
|
|
41
41
|
};
|
|
42
42
|
schema: {
|
|
43
|
-
type: import("vue").PropType<BglFormSchemaT
|
|
43
|
+
type: import("vue").PropType<BglFormSchemaT & (() => BglFormSchemaT)>;
|
|
44
44
|
required: true;
|
|
45
45
|
};
|
|
46
46
|
onSubmit: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalBglForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalBglForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModalBglForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalBglForm.vue"],"names":[],"mappings":"AAgCA;AAGA,OAAO,EACD,UAAU,EAAwB,KAAK,cAAc,EAC1D,MAAM,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuO7B,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type BglFormSchemaT } from '..';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
data: any[];
|
|
4
|
-
schema: BglFormSchemaT;
|
|
4
|
+
schema: BglFormSchemaT & (() => BglFormSchemaT);
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
6
|
select: (...args: any[]) => void;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
data: any[];
|
|
9
|
-
schema: BglFormSchemaT;
|
|
9
|
+
schema: BglFormSchemaT & (() => BglFormSchemaT);
|
|
10
10
|
}>>> & {
|
|
11
11
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}, {}, {}>, Partial<Record<string, (_: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAoEA;AAGA,OAAO,EACN,KAAK,cAAc,EAMnB,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAoEA;AAGA,OAAO,EACN,KAAK,cAAc,EAMnB,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;AA4TvB,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -20,7 +20,6 @@ export { default as Card } from './Card.vue';
|
|
|
20
20
|
export { default as Avatar } from './Avatar.vue';
|
|
21
21
|
export { default as Title } from './Title.vue';
|
|
22
22
|
export * from './charts';
|
|
23
|
-
export * from './formkit';
|
|
24
23
|
export * from './form';
|
|
25
24
|
export * from './dashboard';
|
|
26
25
|
export * from './whatsapp';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,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;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,aAAa,CAAC;AAE/C,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -2350,10 +2350,6 @@ const copyText = async (text, cb) => {
|
|
|
2350
2350
|
if (cb)
|
|
2351
2351
|
cb("Copied to clipboard");
|
|
2352
2352
|
};
|
|
2353
|
-
const useFormkit = () => {
|
|
2354
|
-
const formkit = vue.inject("FormKitConfig");
|
|
2355
|
-
return formkit;
|
|
2356
|
-
};
|
|
2357
2353
|
const initials = (...strArr) => {
|
|
2358
2354
|
strArr = strArr.map((str) => str.split(/\s/)).flat();
|
|
2359
2355
|
return strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
|
|
@@ -14972,7 +14968,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
14972
14968
|
};
|
|
14973
14969
|
}
|
|
14974
14970
|
});
|
|
14975
|
-
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
14971
|
+
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-b81f66ed"]]);
|
|
14976
14972
|
const _hoisted_1$D = { class: "accordion-item" };
|
|
14977
14973
|
const _hoisted_2$x = {
|
|
14978
14974
|
key: 0,
|
|
@@ -15385,12 +15381,19 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15385
15381
|
__name: "TableSchema",
|
|
15386
15382
|
props: {
|
|
15387
15383
|
data: {},
|
|
15388
|
-
schema: {}
|
|
15384
|
+
schema: { type: Function }
|
|
15389
15385
|
},
|
|
15390
15386
|
emits: ["select"],
|
|
15391
15387
|
setup(__props, { emit: __emit }) {
|
|
15392
15388
|
const slots = vue.useSlots();
|
|
15393
15389
|
const loading = vue.ref(true);
|
|
15390
|
+
const props2 = __props;
|
|
15391
|
+
const computedSchema = vue.computed(() => {
|
|
15392
|
+
if (typeof props2.schema === "function") {
|
|
15393
|
+
return props2.schema();
|
|
15394
|
+
}
|
|
15395
|
+
return props2.schema;
|
|
15396
|
+
});
|
|
15394
15397
|
const emit2 = __emit;
|
|
15395
15398
|
const selectElement = (data2) => emit2("select", data2);
|
|
15396
15399
|
let sortDirection = vue.ref("");
|
|
@@ -15410,7 +15413,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15410
15413
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
|
|
15411
15414
|
vue.createElementVNode("table", _hoisted_2$r, [
|
|
15412
15415
|
vue.createElementVNode("thead", _hoisted_3$m, [
|
|
15413
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
15416
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field) => {
|
|
15414
15417
|
return vue.openBlock(), vue.createElementBlock("th", {
|
|
15415
15418
|
class: "col",
|
|
15416
15419
|
key: field.id,
|
|
@@ -15440,7 +15443,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15440
15443
|
class: "row row-item position-relative",
|
|
15441
15444
|
key: row.id
|
|
15442
15445
|
}, [
|
|
15443
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
15446
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field) => {
|
|
15444
15447
|
var _a2, _b;
|
|
15445
15448
|
return vue.openBlock(), vue.createElementBlock("td", {
|
|
15446
15449
|
class: "col",
|
|
@@ -15479,7 +15482,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15479
15482
|
};
|
|
15480
15483
|
}
|
|
15481
15484
|
});
|
|
15482
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
15485
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-89607f2f"]]);
|
|
15483
15486
|
const _sfc_main$p = {};
|
|
15484
15487
|
const _hoisted_1$w = { class: "flex space-between" };
|
|
15485
15488
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -36802,6 +36805,5 @@ exports.initials = initials;
|
|
|
36802
36805
|
exports.keyToLabel = keyToLabel;
|
|
36803
36806
|
exports.useBagel = useBagel;
|
|
36804
36807
|
exports.useEscape = useEscape;
|
|
36805
|
-
exports.useFormkit = useFormkit;
|
|
36806
36808
|
exports.useI18nT = useI18nT;
|
|
36807
36809
|
exports.useModal = useModal;
|
package/dist/index.mjs
CHANGED
|
@@ -2348,10 +2348,6 @@ const copyText = async (text, cb) => {
|
|
|
2348
2348
|
if (cb)
|
|
2349
2349
|
cb("Copied to clipboard");
|
|
2350
2350
|
};
|
|
2351
|
-
const useFormkit = () => {
|
|
2352
|
-
const formkit = inject("FormKitConfig");
|
|
2353
|
-
return formkit;
|
|
2354
|
-
};
|
|
2355
2351
|
const initials = (...strArr) => {
|
|
2356
2352
|
strArr = strArr.map((str) => str.split(/\s/)).flat();
|
|
2357
2353
|
return strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
|
|
@@ -14970,7 +14966,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14970
14966
|
};
|
|
14971
14967
|
}
|
|
14972
14968
|
});
|
|
14973
|
-
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
14969
|
+
const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-b81f66ed"]]);
|
|
14974
14970
|
const _hoisted_1$D = { class: "accordion-item" };
|
|
14975
14971
|
const _hoisted_2$x = {
|
|
14976
14972
|
key: 0,
|
|
@@ -15383,12 +15379,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15383
15379
|
__name: "TableSchema",
|
|
15384
15380
|
props: {
|
|
15385
15381
|
data: {},
|
|
15386
|
-
schema: {}
|
|
15382
|
+
schema: { type: Function }
|
|
15387
15383
|
},
|
|
15388
15384
|
emits: ["select"],
|
|
15389
15385
|
setup(__props, { emit: __emit }) {
|
|
15390
15386
|
const slots = useSlots();
|
|
15391
15387
|
const loading = ref(true);
|
|
15388
|
+
const props2 = __props;
|
|
15389
|
+
const computedSchema = computed(() => {
|
|
15390
|
+
if (typeof props2.schema === "function") {
|
|
15391
|
+
return props2.schema();
|
|
15392
|
+
}
|
|
15393
|
+
return props2.schema;
|
|
15394
|
+
});
|
|
15392
15395
|
const emit2 = __emit;
|
|
15393
15396
|
const selectElement = (data2) => emit2("select", data2);
|
|
15394
15397
|
let sortDirection = ref("");
|
|
@@ -15408,7 +15411,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15408
15411
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
15409
15412
|
createElementVNode("table", _hoisted_2$r, [
|
|
15410
15413
|
createElementVNode("thead", _hoisted_3$m, [
|
|
15411
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(
|
|
15414
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
|
|
15412
15415
|
return openBlock(), createElementBlock("th", {
|
|
15413
15416
|
class: "col",
|
|
15414
15417
|
key: field.id,
|
|
@@ -15438,7 +15441,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15438
15441
|
class: "row row-item position-relative",
|
|
15439
15442
|
key: row.id
|
|
15440
15443
|
}, [
|
|
15441
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(
|
|
15444
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
|
|
15442
15445
|
var _a2, _b;
|
|
15443
15446
|
return openBlock(), createElementBlock("td", {
|
|
15444
15447
|
class: "col",
|
|
@@ -15477,7 +15480,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15477
15480
|
};
|
|
15478
15481
|
}
|
|
15479
15482
|
});
|
|
15480
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
15483
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-89607f2f"]]);
|
|
15481
15484
|
const _sfc_main$p = {};
|
|
15482
15485
|
const _hoisted_1$w = { class: "flex space-between" };
|
|
15483
15486
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -36801,7 +36804,6 @@ export {
|
|
|
36801
36804
|
keyToLabel,
|
|
36802
36805
|
useBagel,
|
|
36803
36806
|
useEscape,
|
|
36804
|
-
useFormkit,
|
|
36805
36807
|
useI18nT,
|
|
36806
36808
|
useModal
|
|
36807
36809
|
};
|