@bagelink/vue 0.0.843 → 0.0.847
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/Modal.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +10 -8
- package/dist/index.mjs +10 -8
- package/dist/style.css +56 -48
- package/package.json +1 -1
- package/src/components/Modal.vue +1 -0
- package/src/components/TableSchema.vue +10 -9
- package/src/components/form/inputs/PasswordInput.vue +3 -1
- package/src/styles/appearance.css +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA4JA,OAAO,EAEN,KAAK,UAAU,EAIf,MAAM,eAAe,CAAA;AAOtB,OAAO,qBAAqB,CAAA;AAqC5B,iBAAS,UAAU,SAGlB;AAsBD,iBAAS,cAAc;;yBAyJM,GAAG;yBACF,GAAG;wBACJ,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAhPb,OAAO;YACN,MAAM;YACN,MAAM;kBACA,OAAO;cACX,UAAU,EAAE;cACZ,OAAO;;;;;;WALV,OAAO;YACN,MAAM;YACN,MAAM;kBACA,OAAO;cACX,UAAU,EAAE;cACZ,OAAO;;;kFAmPhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AA4iBA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;AAItB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAGtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsaxD,mBAAmB,CAAC;;;;;;;;;wBAtNZ,MAAM,EAAE;;cA5MnB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;wBACL,OAAO;qBACV,OAAO;4BACA,MAAM,IAAI;MA6ZwD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;;UApDuE,GAAG;UAsD9E;0BAvNS,CAAC,OAAO,SAAiC,CAAC;6BACvC,CAAC,UAAU,QAAoC,CAAC;gCAC7C,CAAC,aAAa,EAAC,MAAM,EAAE,CAAC;KAqNL;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhbvE,wBAgb4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/PasswordInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PasswordInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/PasswordInput.vue"],"names":[],"mappings":"AAgEA,OAAO,EAAO,KAAK,aAAa,EAAa,MAAM,eAAe,CAAA;AAElE,MAAM,WAAW,cAAc;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IACzC,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CACpC;AAGD,QAAA,IAAI,eAAe,EAAG,cAAc,CAAC;AAiBrC,KAAK,iBAAiB,GAAG;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,eAAe,CAAC;;;;;;;;AA2F3B,wBAOG"}
|
package/dist/index.cjs
CHANGED
|
@@ -53158,7 +53158,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
53158
53158
|
style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
53159
53159
|
flat: "",
|
|
53160
53160
|
icon: "close",
|
|
53161
|
-
onClick: closeModal
|
|
53161
|
+
onClick: closeModal,
|
|
53162
|
+
thin: ""
|
|
53162
53163
|
}, null, 8, ["style"]),
|
|
53163
53164
|
_ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$3), {
|
|
53164
53165
|
key: 0,
|
|
@@ -53984,13 +53985,13 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
53984
53985
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
53985
53986
|
setup(__props, { emit: __emit }) {
|
|
53986
53987
|
vue.useCssVars((_ctx) => ({
|
|
53987
|
-
"
|
|
53988
|
+
"706cfbe3": vue.unref(computedItemHeight)
|
|
53988
53989
|
}));
|
|
53989
53990
|
const emit2 = __emit;
|
|
53990
53991
|
const slots = vue.useSlots();
|
|
53991
53992
|
const loading = vue.useModel(__props, "loading");
|
|
53992
53993
|
const itemHeight = vue.useModel(__props, "itemHeight");
|
|
53993
|
-
const
|
|
53994
|
+
const computedItemHeight = vue.computed(() => `${itemHeight.value}px`);
|
|
53994
53995
|
let sortField = vue.ref("");
|
|
53995
53996
|
let sortDirection = vue.ref("ASC");
|
|
53996
53997
|
const selectedItems = vue.useModel(
|
|
@@ -54013,8 +54014,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54013
54014
|
function transform(rowData) {
|
|
54014
54015
|
var _a2;
|
|
54015
54016
|
const obj = { ...rowData };
|
|
54016
|
-
const
|
|
54017
|
-
for (const field of
|
|
54017
|
+
const schemaFields = computedSchema.value.filter((f2) => f2.id);
|
|
54018
|
+
for (const field of schemaFields) {
|
|
54018
54019
|
const fieldData = rowData[`${field.id}`];
|
|
54019
54020
|
const newFieldVal = (_a2 = field.transform) == null ? void 0 : _a2.call(field, fieldData, rowData);
|
|
54020
54021
|
Object.assign(obj, {
|
|
@@ -54024,6 +54025,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54024
54025
|
}
|
|
54025
54026
|
return obj;
|
|
54026
54027
|
}
|
|
54028
|
+
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
54027
54029
|
const computedData = vue.computed(() => {
|
|
54028
54030
|
if (!sortField.value || __props.useServerSort === true) return __props.data.map(transform);
|
|
54029
54031
|
return __props.data.map(transform).sort(
|
|
@@ -54034,8 +54036,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54034
54036
|
aValue = new Date(aValue).getTime();
|
|
54035
54037
|
bValue = new Date(bValue).getTime();
|
|
54036
54038
|
}
|
|
54037
|
-
const numAValue = Number.parseInt(`${aValue}`.replaceAll(
|
|
54038
|
-
const numBValue = Number.parseInt(`${bValue}`.replaceAll(
|
|
54039
|
+
const numAValue = Number.parseInt(`${aValue}`.replaceAll(NON_DIGIT_REGEX, ""), 10);
|
|
54040
|
+
const numBValue = Number.parseInt(`${bValue}`.replaceAll(NON_DIGIT_REGEX, ""), 10);
|
|
54039
54041
|
if (!Number.isNaN(numAValue) && !Number.isNaN(numBValue)) {
|
|
54040
54042
|
if (sortDirection.value === "ASC") return numAValue - numBValue;
|
|
54041
54043
|
return numBValue - numAValue;
|
|
@@ -54206,7 +54208,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54206
54208
|
};
|
|
54207
54209
|
}
|
|
54208
54210
|
});
|
|
54209
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
54211
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d8ca38b1"]]);
|
|
54210
54212
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
54211
54213
|
__name: "Title",
|
|
54212
54214
|
props: {
|
package/dist/index.mjs
CHANGED
|
@@ -53156,7 +53156,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
53156
53156
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
53157
53157
|
flat: "",
|
|
53158
53158
|
icon: "close",
|
|
53159
|
-
onClick: closeModal
|
|
53159
|
+
onClick: closeModal,
|
|
53160
|
+
thin: ""
|
|
53160
53161
|
}, null, 8, ["style"]),
|
|
53161
53162
|
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
53162
53163
|
key: 0,
|
|
@@ -53982,13 +53983,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
53982
53983
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
53983
53984
|
setup(__props, { emit: __emit }) {
|
|
53984
53985
|
useCssVars((_ctx) => ({
|
|
53985
|
-
"
|
|
53986
|
+
"706cfbe3": unref(computedItemHeight)
|
|
53986
53987
|
}));
|
|
53987
53988
|
const emit2 = __emit;
|
|
53988
53989
|
const slots = useSlots();
|
|
53989
53990
|
const loading = useModel(__props, "loading");
|
|
53990
53991
|
const itemHeight = useModel(__props, "itemHeight");
|
|
53991
|
-
const
|
|
53992
|
+
const computedItemHeight = computed(() => `${itemHeight.value}px`);
|
|
53992
53993
|
let sortField = ref("");
|
|
53993
53994
|
let sortDirection = ref("ASC");
|
|
53994
53995
|
const selectedItems = useModel(
|
|
@@ -54011,8 +54012,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54011
54012
|
function transform(rowData) {
|
|
54012
54013
|
var _a2;
|
|
54013
54014
|
const obj = { ...rowData };
|
|
54014
|
-
const
|
|
54015
|
-
for (const field of
|
|
54015
|
+
const schemaFields = computedSchema.value.filter((f2) => f2.id);
|
|
54016
|
+
for (const field of schemaFields) {
|
|
54016
54017
|
const fieldData = rowData[`${field.id}`];
|
|
54017
54018
|
const newFieldVal = (_a2 = field.transform) == null ? void 0 : _a2.call(field, fieldData, rowData);
|
|
54018
54019
|
Object.assign(obj, {
|
|
@@ -54022,6 +54023,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54022
54023
|
}
|
|
54023
54024
|
return obj;
|
|
54024
54025
|
}
|
|
54026
|
+
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
54025
54027
|
const computedData = computed(() => {
|
|
54026
54028
|
if (!sortField.value || __props.useServerSort === true) return __props.data.map(transform);
|
|
54027
54029
|
return __props.data.map(transform).sort(
|
|
@@ -54032,8 +54034,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54032
54034
|
aValue = new Date(aValue).getTime();
|
|
54033
54035
|
bValue = new Date(bValue).getTime();
|
|
54034
54036
|
}
|
|
54035
|
-
const numAValue = Number.parseInt(`${aValue}`.replaceAll(
|
|
54036
|
-
const numBValue = Number.parseInt(`${bValue}`.replaceAll(
|
|
54037
|
+
const numAValue = Number.parseInt(`${aValue}`.replaceAll(NON_DIGIT_REGEX, ""), 10);
|
|
54038
|
+
const numBValue = Number.parseInt(`${bValue}`.replaceAll(NON_DIGIT_REGEX, ""), 10);
|
|
54037
54039
|
if (!Number.isNaN(numAValue) && !Number.isNaN(numBValue)) {
|
|
54038
54040
|
if (sortDirection.value === "ASC") return numAValue - numBValue;
|
|
54039
54041
|
return numBValue - numAValue;
|
|
@@ -54204,7 +54206,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54204
54206
|
};
|
|
54205
54207
|
}
|
|
54206
54208
|
});
|
|
54207
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
54209
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d8ca38b1"]]);
|
|
54208
54210
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
54209
54211
|
__name: "Title",
|
|
54210
54212
|
props: {
|
package/dist/style.css
CHANGED
|
@@ -951,7 +951,9 @@ data[data-v-6c27f163] {
|
|
|
951
951
|
}
|
|
952
952
|
|
|
953
953
|
.m-password {
|
|
954
|
-
|
|
954
|
+
position: absolute;
|
|
955
|
+
inset-block: 0;
|
|
956
|
+
margin-top: calc(var(--input-height) / 2 + 0.25rem);
|
|
955
957
|
}
|
|
956
958
|
|
|
957
959
|
.radio-input-list[data-v-3e9e030f]{
|
|
@@ -3235,22 +3237,22 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
3235
3237
|
background: transparent;
|
|
3236
3238
|
}
|
|
3237
3239
|
|
|
3238
|
-
.table-list-wrap[data-v-
|
|
3240
|
+
.table-list-wrap[data-v-d8ca38b1] {
|
|
3239
3241
|
min-height: 150px;
|
|
3240
3242
|
}
|
|
3241
|
-
.selected[data-v-
|
|
3243
|
+
.selected[data-v-d8ca38b1] {
|
|
3242
3244
|
background: var(--bgl-primary-tint);
|
|
3243
3245
|
}
|
|
3244
|
-
tbody tr.selected[data-v-
|
|
3246
|
+
tbody tr.selected[data-v-d8ca38b1]:hover {
|
|
3245
3247
|
background: var(--bgl-primary-light);
|
|
3246
3248
|
}
|
|
3247
|
-
.loading-table[data-v-
|
|
3249
|
+
.loading-table[data-v-d8ca38b1] {
|
|
3248
3250
|
position: relative;
|
|
3249
3251
|
}
|
|
3250
|
-
.inset[data-v-
|
|
3252
|
+
.inset[data-v-d8ca38b1] {
|
|
3251
3253
|
inset: 0;
|
|
3252
3254
|
}
|
|
3253
|
-
.loading-table-animation[data-v-
|
|
3255
|
+
.loading-table-animation[data-v-d8ca38b1] {
|
|
3254
3256
|
--size: 60px;
|
|
3255
3257
|
top: 30vh;
|
|
3256
3258
|
inset-inline-start: calc(50% - var(--size));
|
|
@@ -3258,9 +3260,9 @@ tbody tr.selected[data-v-54f3c477]:hover {
|
|
|
3258
3260
|
border-top: 4px solid var(--bgl-primary);
|
|
3259
3261
|
width: var(--size);
|
|
3260
3262
|
height: var(--size);
|
|
3261
|
-
animation: loading-table-
|
|
3263
|
+
animation: loading-table-d8ca38b1 1s linear infinite;
|
|
3262
3264
|
}
|
|
3263
|
-
@keyframes loading-table-
|
|
3265
|
+
@keyframes loading-table-d8ca38b1 {
|
|
3264
3266
|
0% {
|
|
3265
3267
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
3266
3268
|
}
|
|
@@ -3268,52 +3270,51 @@ tbody tr.selected[data-v-54f3c477]:hover {
|
|
|
3268
3270
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
3269
3271
|
}
|
|
3270
3272
|
}
|
|
3271
|
-
.list-arrows[data-v-
|
|
3273
|
+
.list-arrows[data-v-d8ca38b1] {
|
|
3272
3274
|
opacity: 0;
|
|
3273
3275
|
}
|
|
3274
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
3276
|
+
.list-arrows .bgl_icon-font[data-v-d8ca38b1] {
|
|
3275
3277
|
transition: all ease-in-out 0.2s;
|
|
3276
3278
|
}
|
|
3277
|
-
.list-arrows.sorted[data-v-
|
|
3279
|
+
.list-arrows.sorted[data-v-d8ca38b1] {
|
|
3278
3280
|
opacity: 1;
|
|
3279
3281
|
}
|
|
3280
|
-
.col img[data-v-
|
|
3282
|
+
.col img[data-v-d8ca38b1] {
|
|
3281
3283
|
height: 35px;
|
|
3282
3284
|
margin-top: -14px;
|
|
3283
3285
|
margin-bottom: -14px;
|
|
3284
3286
|
border-radius: 5px;
|
|
3285
3287
|
}
|
|
3286
|
-
.list-arrows.sorted .desc[data-v-
|
|
3288
|
+
.list-arrows.sorted .desc[data-v-d8ca38b1] {
|
|
3287
3289
|
transform: rotate(180deg);
|
|
3288
3290
|
display: inline-block;
|
|
3289
3291
|
}
|
|
3290
|
-
table[data-v-
|
|
3291
|
-
border-collapse: separate;
|
|
3292
|
+
table[data-v-d8ca38b1] {
|
|
3292
3293
|
border-spacing: 0 15px;
|
|
3293
3294
|
border-collapse: collapse;
|
|
3294
3295
|
width: 100%;
|
|
3295
3296
|
}
|
|
3296
|
-
th[data-v-
|
|
3297
|
+
th[data-v-d8ca38b1] {
|
|
3297
3298
|
font-size: 0.8rem;
|
|
3298
3299
|
color: var(--bgl-black-tint);
|
|
3299
3300
|
position: sticky;
|
|
3300
3301
|
top: 0;
|
|
3301
3302
|
z-index: 2;
|
|
3302
3303
|
background: var(--bgl-box-bg);
|
|
3303
|
-
height: var(--
|
|
3304
|
+
height: var(--706cfbe3);
|
|
3304
3305
|
vertical-align: bottom;
|
|
3305
3306
|
font-weight: 400;
|
|
3306
3307
|
text-align: start;
|
|
3307
3308
|
}
|
|
3308
|
-
.embedded-field[data-v-
|
|
3309
|
+
.embedded-field[data-v-d8ca38b1] {
|
|
3309
3310
|
margin-bottom: -0.2rem;
|
|
3310
3311
|
margin-top: -0.2rem;
|
|
3311
3312
|
}
|
|
3312
|
-
.row[data-v-
|
|
3313
|
+
.row[data-v-d8ca38b1] {
|
|
3313
3314
|
border-bottom: 1px solid var(--border-color);
|
|
3314
3315
|
cursor: pointer;
|
|
3315
3316
|
}
|
|
3316
|
-
.row.first-row[data-v-
|
|
3317
|
+
.row.first-row[data-v-d8ca38b1] {
|
|
3317
3318
|
font-size: 0.8rem;
|
|
3318
3319
|
color: var(--bgl-black-tint);
|
|
3319
3320
|
position: sticky;
|
|
@@ -3322,7 +3323,7 @@ th[data-v-54f3c477] {
|
|
|
3322
3323
|
background: var(--bgl-box-bg);
|
|
3323
3324
|
vertical-align: bottom;
|
|
3324
3325
|
}
|
|
3325
|
-
.row.first-row[data-v-
|
|
3326
|
+
.row.first-row[data-v-d8ca38b1]::after {
|
|
3326
3327
|
content: '';
|
|
3327
3328
|
border-bottom: 1px solid var(--border-color);
|
|
3328
3329
|
position: absolute;
|
|
@@ -3330,30 +3331,30 @@ th[data-v-54f3c477] {
|
|
|
3330
3331
|
right: 0;
|
|
3331
3332
|
bottom: -1px;
|
|
3332
3333
|
}
|
|
3333
|
-
.first-row .col[data-v-
|
|
3334
|
+
.first-row .col[data-v-d8ca38b1] {
|
|
3334
3335
|
cursor: pointer;
|
|
3335
3336
|
background: var(--bgl-box-bg);
|
|
3336
3337
|
}
|
|
3337
|
-
.col[data-v-
|
|
3338
|
+
.col[data-v-d8ca38b1] {
|
|
3338
3339
|
white-space: nowrap;
|
|
3339
3340
|
padding: 0.75rem 1rem;
|
|
3340
3341
|
transition: var(--bgl-transition);
|
|
3341
3342
|
line-height: 1;
|
|
3342
3343
|
align-items: center;
|
|
3343
3344
|
}
|
|
3344
|
-
.col[data-v-
|
|
3345
|
+
.col[data-v-d8ca38b1]:has(.bagel-input) {
|
|
3345
3346
|
padding: 0rem 0.25rem;
|
|
3346
3347
|
}
|
|
3347
|
-
.col > div[data-v-
|
|
3348
|
+
.col > div[data-v-d8ca38b1] {
|
|
3348
3349
|
display: flex;
|
|
3349
3350
|
gap: 0.5rem;
|
|
3350
3351
|
}
|
|
3351
|
-
.max-col-width[data-v-
|
|
3352
|
+
.max-col-width[data-v-d8ca38b1] {
|
|
3352
3353
|
max-width: 30vw;
|
|
3353
3354
|
overflow: hidden;
|
|
3354
3355
|
text-overflow: ellipsis;
|
|
3355
3356
|
}
|
|
3356
|
-
.col.check .bgl_icon-font[data-v-
|
|
3357
|
+
.col.check .bgl_icon-font[data-v-d8ca38b1] {
|
|
3357
3358
|
border-radius: 100%;
|
|
3358
3359
|
background: var(--bgl-blue-20);
|
|
3359
3360
|
color: var(--bgl-primary);
|
|
@@ -3364,35 +3365,35 @@ th[data-v-54f3c477] {
|
|
|
3364
3365
|
justify-content: center;
|
|
3365
3366
|
margin-top: -2px;
|
|
3366
3367
|
}
|
|
3367
|
-
.rows[data-v-
|
|
3368
|
+
.rows[data-v-d8ca38b1] {
|
|
3368
3369
|
font-size: 0.88em;
|
|
3369
3370
|
}
|
|
3370
|
-
.table-list[data-v-
|
|
3371
|
+
.table-list[data-v-d8ca38b1] {
|
|
3371
3372
|
height: 100%;
|
|
3372
3373
|
position: relative;
|
|
3373
3374
|
padding-left: 0 !important;
|
|
3374
3375
|
padding-right: 0 !important;
|
|
3375
3376
|
overflow: auto;
|
|
3376
3377
|
}
|
|
3377
|
-
.BagelTable .table-list[data-v-
|
|
3378
|
+
.BagelTable .table-list[data-v-d8ca38b1] {
|
|
3378
3379
|
overflow: unset;
|
|
3379
3380
|
}
|
|
3380
|
-
.row-item[data-v-
|
|
3381
|
-
height: var(--
|
|
3381
|
+
.row-item[data-v-d8ca38b1] {
|
|
3382
|
+
height: var(--706cfbe3);
|
|
3382
3383
|
transition: all 200ms ease;
|
|
3383
3384
|
}
|
|
3384
|
-
.row-item[data-v-
|
|
3385
|
+
.row-item[data-v-d8ca38b1]:hover {
|
|
3385
3386
|
background: var(--bgl-gray-light);
|
|
3386
3387
|
}
|
|
3387
|
-
.row-item input[type='checkbox'][data-v-
|
|
3388
|
+
.row-item input[type='checkbox'][data-v-d8ca38b1] {
|
|
3388
3389
|
margin-top: 0.45rem !important;
|
|
3389
3390
|
accent-color: var(--bgl-accent-color);
|
|
3390
3391
|
}
|
|
3391
|
-
.infinite-wrapper[data-v-
|
|
3392
|
+
.infinite-wrapper[data-v-d8ca38b1] {
|
|
3392
3393
|
overflow-y: auto;
|
|
3393
3394
|
width: 100%;
|
|
3394
3395
|
}
|
|
3395
|
-
input[type='checkbox'][data-v-
|
|
3396
|
+
input[type='checkbox'][data-v-d8ca38b1] {
|
|
3396
3397
|
margin-top: 0.3rem !important;
|
|
3397
3398
|
accent-color: var(--bgl-accent-color);
|
|
3398
3399
|
transform: scale(1.2);
|
|
@@ -3404,7 +3405,7 @@ input[type='checkbox'][data-v-54f3c477] {
|
|
|
3404
3405
|
height: 0.85rem;
|
|
3405
3406
|
width: 0.85rem;
|
|
3406
3407
|
}
|
|
3407
|
-
input[type='checkbox'][data-v-
|
|
3408
|
+
input[type='checkbox'][data-v-d8ca38b1]::before {
|
|
3408
3409
|
content: '';
|
|
3409
3410
|
height: 0.85rem;
|
|
3410
3411
|
width: 0.85rem;
|
|
@@ -3417,18 +3418,18 @@ input[type='checkbox'][data-v-54f3c477]::before {
|
|
|
3417
3418
|
transform: scale(1);
|
|
3418
3419
|
position: absolute;
|
|
3419
3420
|
}
|
|
3420
|
-
input[type='checkbox'][data-v-
|
|
3421
|
+
input[type='checkbox'][data-v-d8ca38b1]:hover::before {
|
|
3421
3422
|
opacity: 0.2;
|
|
3422
3423
|
transform: scale(2);
|
|
3423
3424
|
}
|
|
3424
|
-
[lang='he'] [dir='ltr'][data-v-
|
|
3425
|
+
[lang='he'] [dir='ltr'][data-v-d8ca38b1] {
|
|
3425
3426
|
text-align: right;
|
|
3426
3427
|
}
|
|
3427
|
-
th input[type='checkbox'][data-v-
|
|
3428
|
+
th input[type='checkbox'][data-v-d8ca38b1] {
|
|
3428
3429
|
transform: translateY(0.2rem) scale(1.2);
|
|
3429
3430
|
accent-color: var(--bgl-accent-color);
|
|
3430
3431
|
}
|
|
3431
|
-
th[data-v-
|
|
3432
|
+
th[data-v-d8ca38b1]::after {
|
|
3432
3433
|
content: '';
|
|
3433
3434
|
border-bottom: 1px solid var(--border-color);
|
|
3434
3435
|
position: absolute;
|
|
@@ -3436,24 +3437,24 @@ th[data-v-54f3c477]::after {
|
|
|
3436
3437
|
right: 0;
|
|
3437
3438
|
bottom: -1px;
|
|
3438
3439
|
}
|
|
3439
|
-
tr[data-v-
|
|
3440
|
+
tr[data-v-d8ca38b1] {
|
|
3440
3441
|
border-bottom: 1px solid var(--border-color);
|
|
3441
3442
|
cursor: pointer;
|
|
3442
3443
|
align-items: center;
|
|
3443
3444
|
}
|
|
3444
|
-
td[data-v-
|
|
3445
|
-
th[data-v-
|
|
3445
|
+
td[data-v-d8ca38b1],
|
|
3446
|
+
th[data-v-d8ca38b1] {
|
|
3446
3447
|
white-space: nowrap;
|
|
3447
3448
|
padding: 0.75rem 0.65rem;
|
|
3448
3449
|
transition: var(--bgl-transition);
|
|
3449
3450
|
line-height: 1;
|
|
3450
3451
|
}
|
|
3451
|
-
tbody tr[data-v-
|
|
3452
|
+
tbody tr[data-v-d8ca38b1] {
|
|
3452
3453
|
font-size: 0.88em;
|
|
3453
|
-
height: var(--
|
|
3454
|
+
height: var(--706cfbe3);
|
|
3454
3455
|
transition: all 200ms ease;
|
|
3455
3456
|
}
|
|
3456
|
-
tbody tr[data-v-
|
|
3457
|
+
tbody tr[data-v-d8ca38b1]:hover {
|
|
3457
3458
|
background: var(--bgl-gray-light);
|
|
3458
3459
|
}
|
|
3459
3460
|
|
|
@@ -12395,6 +12396,13 @@ body:has([class*="slide-fade"])::-webkit-scrollbar {
|
|
|
12395
12396
|
.bg-input-white .selectinput-btn {
|
|
12396
12397
|
background: var(--bgl-white) !important;
|
|
12397
12398
|
}
|
|
12399
|
+
.bg-input-transparent input,
|
|
12400
|
+
.bg-input-transparent .selectinput-btn {
|
|
12401
|
+
background: transparent !important;
|
|
12402
|
+
}
|
|
12403
|
+
.color-input-transparent input {
|
|
12404
|
+
color: transparent !important;
|
|
12405
|
+
}
|
|
12398
12406
|
.color-input-white input {
|
|
12399
12407
|
color: var(--bgl-white) !important;
|
|
12400
12408
|
}
|
package/package.json
CHANGED
package/src/components/Modal.vue
CHANGED
|
@@ -39,7 +39,7 @@ const slots = useSlots()
|
|
|
39
39
|
const loading = defineModel('loading', { default: false })
|
|
40
40
|
|
|
41
41
|
const itemHeight = defineModel('itemHeight', { default: 50 })
|
|
42
|
-
const
|
|
42
|
+
const computedItemHeight = $computed(() => `${itemHeight.value}px`)
|
|
43
43
|
|
|
44
44
|
let sortField = $ref('')
|
|
45
45
|
let sortDirection = $ref<SortDirectionsT>('ASC')
|
|
@@ -67,9 +67,9 @@ const computedSchema = $computed(() => useBglSchema<T>({
|
|
|
67
67
|
|
|
68
68
|
function transform(rowData: any) {
|
|
69
69
|
const obj: { [key: string]: any } = { ...rowData }
|
|
70
|
-
const
|
|
70
|
+
const schemaFields = computedSchema.filter(f => f.id)
|
|
71
71
|
|
|
72
|
-
for (const field of
|
|
72
|
+
for (const field of schemaFields) {
|
|
73
73
|
const fieldData = rowData[`${field.id}`]
|
|
74
74
|
|
|
75
75
|
const newFieldVal = field.transform?.(fieldData, rowData)
|
|
@@ -82,6 +82,8 @@ function transform(rowData: any) {
|
|
|
82
82
|
return obj
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
const NON_DIGIT_REGEX = /[^\d.-]/g
|
|
86
|
+
|
|
85
87
|
const computedData = computed(() => {
|
|
86
88
|
if (!sortField || useServerSort === true) return data.map(transform)
|
|
87
89
|
|
|
@@ -99,8 +101,8 @@ const computedData = computed(() => {
|
|
|
99
101
|
bValue = new Date(bValue).getTime()
|
|
100
102
|
}
|
|
101
103
|
|
|
102
|
-
const numAValue = Number.parseInt(`${aValue}`.replaceAll(
|
|
103
|
-
const numBValue = Number.parseInt(`${bValue}`.replaceAll(
|
|
104
|
+
const numAValue = Number.parseInt(`${aValue}`.replaceAll(NON_DIGIT_REGEX, ''), 10)
|
|
105
|
+
const numBValue = Number.parseInt(`${bValue}`.replaceAll(NON_DIGIT_REGEX, ''), 10)
|
|
104
106
|
|
|
105
107
|
if (!Number.isNaN(numAValue) && !Number.isNaN(numBValue)) {
|
|
106
108
|
if (sortDirection === 'ASC') return numAValue - numBValue
|
|
@@ -354,7 +356,6 @@ tbody tr.selected:hover {
|
|
|
354
356
|
}
|
|
355
357
|
|
|
356
358
|
table {
|
|
357
|
-
border-collapse: separate;
|
|
358
359
|
border-spacing: 0 15px;
|
|
359
360
|
border-collapse: collapse;
|
|
360
361
|
width: 100%;
|
|
@@ -367,7 +368,7 @@ th {
|
|
|
367
368
|
top: 0;
|
|
368
369
|
z-index: 2;
|
|
369
370
|
background: var(--bgl-box-bg);
|
|
370
|
-
height: v-bind(
|
|
371
|
+
height: v-bind(computedItemHeight);
|
|
371
372
|
vertical-align: bottom;
|
|
372
373
|
font-weight: 400;
|
|
373
374
|
text-align: start;
|
|
@@ -459,7 +460,7 @@ th {
|
|
|
459
460
|
}
|
|
460
461
|
|
|
461
462
|
.row-item {
|
|
462
|
-
height: v-bind(
|
|
463
|
+
height: v-bind(computedItemHeight);
|
|
463
464
|
transition: all 200ms ease;
|
|
464
465
|
}
|
|
465
466
|
|
|
@@ -543,7 +544,7 @@ th {
|
|
|
543
544
|
|
|
544
545
|
tbody tr {
|
|
545
546
|
font-size: 0.88em;
|
|
546
|
-
height: v-bind(
|
|
547
|
+
height: v-bind(computedItemHeight);
|
|
547
548
|
transition: all 200ms ease;
|
|
548
549
|
}
|
|
549
550
|
|
|
@@ -55,6 +55,8 @@ const inputType = $computed(() => (showPwd.value ? 'text' : 'password'))
|
|
|
55
55
|
|
|
56
56
|
<style>
|
|
57
57
|
.m-password {
|
|
58
|
-
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset-block: 0;
|
|
60
|
+
margin-top: calc(var(--input-height) / 2 + 0.25rem);
|
|
59
61
|
}
|
|
60
62
|
</style>
|
|
@@ -291,6 +291,15 @@
|
|
|
291
291
|
background: var(--bgl-white) !important;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
+
.bg-input-transparent input,
|
|
295
|
+
.bg-input-transparent .selectinput-btn {
|
|
296
|
+
background: transparent !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.color-input-transparent input {
|
|
300
|
+
color: transparent !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
294
303
|
.color-input-white input {
|
|
295
304
|
color: var(--bgl-white) !important;
|
|
296
305
|
}
|