@bagelink/vue 1.14.10 → 1.14.15
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/Alert.vue.d.ts.map +1 -1
- package/dist/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/components/ImportData.vue.d.ts.map +1 -1
- package/dist/components/Pill.vue.d.ts.map +1 -1
- package/dist/components/Swiper.vue.d.ts.map +1 -1
- package/dist/components/Toast.vue.d.ts.map +1 -1
- package/dist/components/calendar/CalendarPopover.vue.d.ts.map +1 -1
- package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/media.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/Skeleton.vue.d.ts.map +1 -1
- package/dist/dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/dialog/DialogConfirm.vue.d.ts.map +1 -1
- package/dist/index.cjs +148 -145
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +35417 -35475
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/TableSchema.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/calendar/dateUtils.d.ts.map +1 -1
- package/dist/utils/date.d.ts +116 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/fetch.d.ts +29 -0
- package/dist/utils/fetch.d.ts.map +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/string.d.ts +7 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/package.json +1 -5
- package/src/components/AccordionItem.vue +5 -5
- package/src/components/Alert.vue +3 -2
- package/src/components/Avatar.vue +2 -1
- package/src/components/BglVideo.vue +4 -4
- package/src/components/Btn.vue +39 -39
- package/src/components/Card.vue +7 -6
- package/src/components/Dropdown.vue +2 -2
- package/src/components/FieldSetVue.vue +2 -2
- package/src/components/FilterQuery.vue +2 -2
- package/src/components/Image.vue +2 -1
- package/src/components/ImportData.vue +12 -12
- package/src/components/JSONSchema.vue +2 -2
- package/src/components/JsonBuilder.vue +2 -2
- package/src/components/ListItem.vue +1 -1
- package/src/components/MapEmbed/Index.vue +8 -8
- package/src/components/Pill.vue +17 -16
- package/src/components/Spreadsheet/Index.vue +3 -3
- package/src/components/Spreadsheet/SpreadsheetTable.vue +10 -10
- package/src/components/Toast.vue +34 -28
- package/src/components/calendar/CalendarPopover.vue +1 -1
- package/src/components/calendar/Index.vue +1 -1
- package/src/components/calendar/views/AgendaView.vue +2 -2
- package/src/components/calendar/views/DayView.vue +1 -1
- package/src/components/calendar/views/MonthView.vue +5 -5
- package/src/components/dataTable/DataTable.vue +68 -10
- package/src/components/form/FieldArray.vue +5 -5
- package/src/components/form/inputs/ArrayInput.vue +1 -1
- package/src/components/form/inputs/CheckInput.vue +6 -6
- package/src/components/form/inputs/Checkbox.vue +5 -4
- package/src/components/form/inputs/CodeEditor/Index.vue +1 -1
- package/src/components/form/inputs/ColorInput.vue +5 -5
- package/src/components/form/inputs/DatePicker.vue +3 -3
- package/src/components/form/inputs/EmailInput.vue +14 -14
- package/src/components/form/inputs/NumberInput.vue +10 -10
- package/src/components/form/inputs/OTP.vue +2 -2
- package/src/components/form/inputs/PasswordInput.vue +3 -3
- package/src/components/form/inputs/RadioGroup.vue +1 -1
- package/src/components/form/inputs/RichText/editor.css +4 -4
- package/src/components/form/inputs/RichText/index.vue +39 -39
- package/src/components/form/inputs/RichText/utils/media.ts +1 -92
- package/src/components/form/inputs/RichText/utils/table.ts +4 -4
- package/src/components/form/inputs/SelectBtn.vue +1 -1
- package/src/components/form/inputs/SelectInput.vue +13 -13
- package/src/components/form/inputs/SignaturePad.vue +6 -6
- package/src/components/form/inputs/TableField.vue +7 -7
- package/src/components/form/inputs/TelInput.vue +11 -11
- package/src/components/form/inputs/TextInput.vue +10 -10
- package/src/components/form/inputs/ToggleInput.vue +11 -11
- package/src/components/form/inputs/Upload/upload.css +14 -14
- package/src/components/index.ts +0 -3
- package/src/components/layout/AppSidebar.vue +3 -3
- package/src/components/layout/BottomMenu.vue +1 -1
- package/src/components/layout/Skeleton.vue +5 -4
- package/src/components/layout/TabsNav.vue +18 -18
- package/src/index.ts +0 -1
- package/src/plugins/bagel.ts +0 -15
- package/src/styles/app-layout.css +231 -0
- package/src/styles/appearance.css +179 -21
- package/src/styles/bagel.css +103 -97
- package/src/styles/buttons.css +8 -8
- package/src/styles/colors.css +0 -103
- package/src/styles/dark.css +25 -26
- package/src/styles/input-variants.css +11 -11
- package/src/styles/inputs.css +49 -61
- package/src/styles/layout.css +445 -1258
- package/src/styles/loginCard.css +1 -1
- package/src/styles/mobilLayout.css +153 -28
- package/src/styles/text.css +500 -1508
- package/src/styles/theme.css +199 -435
- package/src/styles/transitions.css +4 -4
- package/src/types/TableSchema.ts +1 -0
- package/src/types/index.ts +0 -5
- package/src/utils/calendar/dateUtils.ts +2 -3
- package/src/utils/date.ts +482 -0
- package/src/utils/fetch.ts +128 -0
- package/src/utils/index.ts +35 -0
- package/src/utils/string.ts +56 -0
- package/bin/generateFormSchema.ts +0 -1035
- package/bin/utils.ts +0 -223
- package/src/components/Modal.vue +0 -184
- package/src/components/ModalConfirm.vue +0 -42
- package/src/components/ModalForm.vue +0 -102
- package/src/plugins/modalTypes.ts +0 -61
- package/src/plugins/useModal.ts +0 -225
- package/src/styles/modal.css +0 -120
- package/src/styles/pillColors.css +0 -0
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
Btn,
|
|
7
7
|
Card,
|
|
8
8
|
CheckInput,
|
|
9
|
+
Dialog,
|
|
9
10
|
Icon,
|
|
10
|
-
Modal,
|
|
11
11
|
Pill,
|
|
12
12
|
SelectInput,
|
|
13
13
|
Spreadsheet,
|
|
@@ -1425,7 +1425,7 @@ function getRelatedFieldWithDefaults(parentId: string, field: any) {
|
|
|
1425
1425
|
</div>
|
|
1426
1426
|
</div>
|
|
1427
1427
|
</div>
|
|
1428
|
-
<
|
|
1428
|
+
<Dialog :open="showTransformDialog" title="Configure Transformations" width="l" @update:open="showTransformDialog = $event">
|
|
1429
1429
|
<div v-if="selectedTransformField">
|
|
1430
1430
|
<div class="flex space-between gap-1 mb-1 border-bottom pb-05 m_flex-wrap">
|
|
1431
1431
|
<p>Create transformations for <strong>{{ selectedTransformField.label }}</strong></p>
|
|
@@ -1496,8 +1496,8 @@ function getRelatedFieldWithDefaults(parentId: string, field: any) {
|
|
|
1496
1496
|
<Btn class="ms-auto" value="$t:importData.close" @click="showTransformDialog = false" />
|
|
1497
1497
|
</div>
|
|
1498
1498
|
</div>
|
|
1499
|
-
</
|
|
1500
|
-
<
|
|
1499
|
+
</Dialog>
|
|
1500
|
+
<Dialog :open="showRelatedDialog" title="Configure Related Data" width="xl" @update:open="showRelatedDialog = $event">
|
|
1501
1501
|
<div v-if="selectedRelationField">
|
|
1502
1502
|
<p class="pb-05">
|
|
1503
1503
|
Upload a file with related data for {{ selectedRelationField.label }}
|
|
@@ -1607,9 +1607,9 @@ function getRelatedFieldWithDefaults(parentId: string, field: any) {
|
|
|
1607
1607
|
<Btn class="ms-auto" value="$t:importData.close" @click="showRelatedDialog = false" />
|
|
1608
1608
|
</div>
|
|
1609
1609
|
</div>
|
|
1610
|
-
</
|
|
1610
|
+
</Dialog>
|
|
1611
1611
|
|
|
1612
|
-
<
|
|
1612
|
+
<Dialog :open="showPreviewModal" title="Data Preview & Edit" width="full" @update:open="showPreviewModal = $event">
|
|
1613
1613
|
<div>
|
|
1614
1614
|
<Spreadsheet
|
|
1615
1615
|
v-model="previewData" class="popupPreviewSpreadsheet" :column-config="spreadsheetColumns"
|
|
@@ -1625,9 +1625,9 @@ function getRelatedFieldWithDefaults(parentId: string, field: any) {
|
|
|
1625
1625
|
<Btn value="$t:importData.importData" @click="processData()" />
|
|
1626
1626
|
</div>
|
|
1627
1627
|
</div>
|
|
1628
|
-
</
|
|
1628
|
+
</Dialog>
|
|
1629
1629
|
|
|
1630
|
-
<
|
|
1630
|
+
<Dialog :open="showRelatedTransformDialog" title="Configure Related Transformations" width="l" @update:open="showRelatedTransformDialog = $event">
|
|
1631
1631
|
<div v-if="selectedRelatedTransformField">
|
|
1632
1632
|
<p>
|
|
1633
1633
|
Create transformations for <strong>{{ selectedRelatedTransformField.field.label }}</strong> in {{
|
|
@@ -1713,13 +1713,13 @@ function getRelatedFieldWithDefaults(parentId: string, field: any) {
|
|
|
1713
1713
|
<Btn value="$t:importData.close" @click="showRelatedTransformDialog = false" />
|
|
1714
1714
|
</div>
|
|
1715
1715
|
</div>
|
|
1716
|
-
</
|
|
1716
|
+
</Dialog>
|
|
1717
1717
|
</Card>
|
|
1718
1718
|
</template>
|
|
1719
1719
|
|
|
1720
1720
|
<style>
|
|
1721
1721
|
.fileColSelect {
|
|
1722
|
-
--input-bg: var(--bgl-green-light);
|
|
1722
|
+
--bgl-input-bg: var(--bgl-green-light);
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
1725
1725
|
.fileColSelect .bgl_icon-font {
|
|
@@ -1733,12 +1733,12 @@ function getRelatedFieldWithDefaults(parentId: string, field: any) {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
1735
1735
|
.mapping-table .selectinput-btn:disabled {
|
|
1736
|
-
background: var(--input-bg) !important;
|
|
1736
|
+
background: var(--bgl-input-bg) !important;
|
|
1737
1737
|
cursor: not-allowed !important;
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
1740
1740
|
.field-label {
|
|
1741
|
-
--pill-height: 20px;
|
|
1741
|
+
--bgl-pill-height: 20px;
|
|
1742
1742
|
}
|
|
1743
1743
|
|
|
1744
1744
|
.popupPreviewSpreadsheet .spreadsheet {
|
|
@@ -457,13 +457,13 @@ watch(() => props.modelValue, (newValue) => {
|
|
|
457
457
|
|
|
458
458
|
<style>
|
|
459
459
|
.JSONSchema{
|
|
460
|
-
--input-height: 38px;
|
|
460
|
+
--bgl-input-height: 38px;
|
|
461
461
|
--bgl-accent-color: var(--bgl-purple);
|
|
462
462
|
container-type: inline-size;
|
|
463
463
|
container-name: json-schema;
|
|
464
464
|
}
|
|
465
465
|
.jsonCheckbox{
|
|
466
|
-
--input-height: 44px;
|
|
466
|
+
--bgl-input-height: 44px;
|
|
467
467
|
}
|
|
468
468
|
.jsonFormat {
|
|
469
469
|
gap: 0.25rem !important;
|
|
@@ -216,8 +216,8 @@ watch(() => props.modelValue, () => {
|
|
|
216
216
|
<style scoped>
|
|
217
217
|
.json-builder {
|
|
218
218
|
/* Add any custom styles here */
|
|
219
|
-
--input-height: 27px;
|
|
220
|
-
--input-font-size: 12px;
|
|
219
|
+
--bgl-input-height: 27px;
|
|
220
|
+
--bgl-input-font-size: 12px;
|
|
221
221
|
}
|
|
222
222
|
.grid-json-builder-row{
|
|
223
223
|
grid-template-columns: 2fr 1fr 2fr auto;
|
|
@@ -120,7 +120,7 @@ onMounted(initializeMap)
|
|
|
120
120
|
<style>
|
|
121
121
|
.leaflet-map {
|
|
122
122
|
height: 100%;
|
|
123
|
-
border-radius: var(--input-border-radius);
|
|
123
|
+
border-radius: var(--bgl-input-border-radius);
|
|
124
124
|
position: relative;
|
|
125
125
|
background: var(--bgl-bg);
|
|
126
126
|
direction: ltr;
|
|
@@ -149,27 +149,27 @@ onMounted(initializeMap)
|
|
|
149
149
|
|
|
150
150
|
.leaflet-touch .leaflet-control-zoom-in,
|
|
151
151
|
.leaflet-touch .leaflet-control-zoom-out {
|
|
152
|
-
font-size: var(--input-font-size);
|
|
152
|
+
font-size: var(--bgl-input-font-size);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.leaflet-bar {
|
|
156
|
-
border-radius: var(--input-border-radius) !important;
|
|
156
|
+
border-radius: var(--bgl-input-border-radius) !important;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.leaflet-touch .leaflet-bar a:first-child {
|
|
160
|
-
border-top-left-radius: calc(var(--input-border-radius) - 2px) !important;
|
|
161
|
-
border-top-right-radius: calc(var(--input-border-radius) - 2px) !important;
|
|
160
|
+
border-top-left-radius: calc(var(--bgl-input-border-radius) - 2px) !important;
|
|
161
|
+
border-top-right-radius: calc(var(--bgl-input-border-radius) - 2px) !important;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.leaflet-touch .leaflet-bar a:last-child {
|
|
165
|
-
border-bottom-left-radius: calc(var(--input-border-radius) - 2px) !important;
|
|
166
|
-
border-bottom-right-radius: calc(var(--input-border-radius) - 2px) !important;
|
|
165
|
+
border-bottom-left-radius: calc(var(--bgl-input-border-radius) - 2px) !important;
|
|
166
|
+
border-bottom-right-radius: calc(var(--bgl-input-border-radius) - 2px) !important;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.leaflet-bar a {
|
|
170
170
|
background: var(--bgl-box-bg) !important;
|
|
171
171
|
transition: var(--bgl-transition);
|
|
172
|
-
border-bottom: 1px solid var(--border-color) !important;
|
|
172
|
+
border-bottom: 1px solid var(--bgl-border-color) !important;
|
|
173
173
|
display: flex;
|
|
174
174
|
justify-content: center;
|
|
175
175
|
align-items: center;
|
package/src/components/Pill.vue
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
defineOptions({ name: 'BglPill' })
|
|
2
3
|
import type { IconType, ThemeType } from '@bagelink/vue'
|
|
3
4
|
import type { SetupContext } from 'vue'
|
|
4
5
|
import { Btn, Icon } from '@bagelink/vue'
|
|
@@ -66,7 +67,7 @@ const computedClasses = computed(() => {
|
|
|
66
67
|
<template>
|
|
67
68
|
<div
|
|
68
69
|
class="bgl_pill"
|
|
69
|
-
style="height: var(--pill-height);"
|
|
70
|
+
style="height: var(--bgl-pill-height);"
|
|
70
71
|
:disabled="disabled"
|
|
71
72
|
:class="computedClasses"
|
|
72
73
|
>
|
|
@@ -74,14 +75,14 @@ const computedClasses = computed(() => {
|
|
|
74
75
|
<div v-if="loading" class="loading absolute inset-0 mx-auto" />
|
|
75
76
|
<div class="px-025 flex gap-025 justify-content-center" :class="{ 'opacity-0': loading }">
|
|
76
77
|
<Btn v-if="btn" class="bgl_pill-btn -ms-025" icon-size="0.8" round v-bind="btn" />
|
|
77
|
-
<Icon v-if="icon" class="line-height-0" :icon="icon" style="font-size: var(--pill-font-size)" />
|
|
78
|
+
<Icon v-if="icon" class="line-height-0" :icon="icon" style="font-size: var(--bgl-pill-font-size)" />
|
|
78
79
|
<slot :class="{ uppercase }" />
|
|
79
80
|
<template v-if="!slots.default">
|
|
80
81
|
<p class="pillText inline" :class="{ uppercase }">
|
|
81
82
|
{{ slots.default ? slots.default : value || modelValue }}
|
|
82
83
|
</p>
|
|
83
84
|
</template>
|
|
84
|
-
<Icon v-if="iconEnd" class="line-height-0" :icon="iconEnd" style="font-size: var(--pill-font-size)" />
|
|
85
|
+
<Icon v-if="iconEnd" class="line-height-0" :icon="iconEnd" style="font-size: var(--bgl-pill-font-size)" />
|
|
85
86
|
<Btn v-if="btnEnd" class="bgl_pill-btn -me-025" icon-size="0.8" round v-bind="btnEnd" />
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
@@ -90,21 +91,21 @@ const computedClasses = computed(() => {
|
|
|
90
91
|
|
|
91
92
|
<style scoped>
|
|
92
93
|
.pillLarge{
|
|
93
|
-
--pill-font-size: var(--bgl-font-size);
|
|
94
|
-
--pill-height:auto;
|
|
94
|
+
--bgl-pill-font-size: var(--bgl-font-size);
|
|
95
|
+
--bgl-pill-height:auto;
|
|
95
96
|
}
|
|
96
97
|
.pillSmall{
|
|
97
|
-
--pill-font-size: 9px;
|
|
98
|
-
--pill-height:15px;
|
|
98
|
+
--bgl-pill-font-size: 9px;
|
|
99
|
+
--bgl-pill-height:15px;
|
|
99
100
|
}
|
|
100
101
|
.pillText{
|
|
101
|
-
font-size: var(--pill-font-size);
|
|
102
|
+
font-size: var(--bgl-pill-font-size);
|
|
102
103
|
}
|
|
103
104
|
.bgl_pill-btn{
|
|
104
|
-
color: var(--pill-btn-color);
|
|
105
|
-
background: var(--pill-btn-bg);
|
|
106
|
-
width: calc(var(--pill-height) / 1.25)!important;
|
|
107
|
-
height: calc(var(--pill-height) / 1.25)!important;
|
|
105
|
+
color: var(--bgl-pill-btn-color);
|
|
106
|
+
background: var(--bgl-pill-btn-bg);
|
|
107
|
+
width: calc(var(--bgl-pill-height) / 1.25)!important;
|
|
108
|
+
height: calc(var(--bgl-pill-height) / 1.25)!important;
|
|
108
109
|
}
|
|
109
110
|
.loading {
|
|
110
111
|
border: 1px solid var(--bgl-light-text);
|
|
@@ -129,13 +130,13 @@ const computedClasses = computed(() => {
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
.bgl_pill {
|
|
132
|
-
padding-inline: calc(var(--pill-font-size) / 6);
|
|
133
|
-
padding-block: calc(var(--pill-font-size) / 24);
|
|
133
|
+
padding-inline: calc(var(--bgl-pill-font-size) / 6);
|
|
134
|
+
padding-block: calc(var(--bgl-pill-font-size) / 24);
|
|
134
135
|
transition: var(--bgl-transition);
|
|
135
136
|
display: inline-block;
|
|
136
137
|
margin-inline-end: 0.25rem;
|
|
137
|
-
border-radius: var(--pill-border-radius);
|
|
138
|
-
min-height: var(--pill-height);
|
|
138
|
+
border-radius: var(--bgl-pill-border-radius);
|
|
139
|
+
min-height: var(--bgl-pill-height);
|
|
139
140
|
vertical-align: middle;
|
|
140
141
|
}
|
|
141
142
|
|
|
@@ -265,16 +265,16 @@ function handleSpreadsheetKeyDown(event: KeyboardEvent) {
|
|
|
265
265
|
<style>
|
|
266
266
|
.spreadsheet {
|
|
267
267
|
user-select: none;
|
|
268
|
-
outline: 1px solid var(--border-color);
|
|
268
|
+
outline: 1px solid var(--bgl-border-color);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.spreadsheet-toolbar {
|
|
272
|
-
border-bottom: 1px solid var(--border-color);
|
|
272
|
+
border-bottom: 1px solid var(--bgl-border-color);
|
|
273
273
|
padding-bottom: 0.375rem;
|
|
274
274
|
margin-bottom: 0;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
body>div:has(.spreadsheet) ::-webkit-scrollbar-track {
|
|
278
|
-
background: var(--input-bg) !important;
|
|
278
|
+
background: var(--bgl-input-bg) !important;
|
|
279
279
|
}
|
|
280
280
|
</style>
|
|
@@ -180,7 +180,7 @@ function selectionEdgeClasses(rowIndex: number, localColIndex: number): Record<s
|
|
|
180
180
|
.row-number{
|
|
181
181
|
position: sticky;
|
|
182
182
|
inset-inline-start: 0;
|
|
183
|
-
background: var(--input-bg);
|
|
183
|
+
background: var(--bgl-input-bg);
|
|
184
184
|
color: var(--txt-muted, #888);
|
|
185
185
|
z-index: 1;
|
|
186
186
|
}
|
|
@@ -188,7 +188,7 @@ function selectionEdgeClasses(rowIndex: number, localColIndex: number): Record<s
|
|
|
188
188
|
content: '';
|
|
189
189
|
position: absolute;
|
|
190
190
|
inset: -1px;
|
|
191
|
-
border: 1px solid var(--border-color);
|
|
191
|
+
border: 1px solid var(--bgl-border-color);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.stickyTop{
|
|
@@ -202,11 +202,11 @@ function selectionEdgeClasses(rowIndex: number, localColIndex: number): Record<s
|
|
|
202
202
|
position: absolute;
|
|
203
203
|
display: block;
|
|
204
204
|
inset: 0;
|
|
205
|
-
border-bottom: 1px solid var(--border-color);
|
|
205
|
+
border-bottom: 1px solid var(--bgl-border-color);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.fixed-columns {
|
|
209
|
-
border-right: 2px solid var(--border-color);
|
|
209
|
+
border-right: 2px solid var(--bgl-border-color);
|
|
210
210
|
}
|
|
211
211
|
table {
|
|
212
212
|
border-collapse: collapse;
|
|
@@ -219,14 +219,14 @@ th, td {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
th {
|
|
222
|
-
background: var(--input-bg);
|
|
222
|
+
background: var(--bgl-input-bg);
|
|
223
223
|
white-space: nowrap;
|
|
224
224
|
position: relative;
|
|
225
225
|
padding: 0.25rem 0.5rem;
|
|
226
226
|
font-weight: 500;
|
|
227
227
|
text-align: start;
|
|
228
|
-
border-bottom: 1px solid var(--border-color);
|
|
229
|
-
border-inline-start: 1px solid var(--border-color);
|
|
228
|
+
border-bottom: 1px solid var(--bgl-border-color);
|
|
229
|
+
border-inline-start: 1px solid var(--bgl-border-color);
|
|
230
230
|
|
|
231
231
|
}
|
|
232
232
|
th .bgl_icon-font{
|
|
@@ -257,7 +257,7 @@ td.locked.selected {
|
|
|
257
257
|
background: var(--bgl-primary-light);
|
|
258
258
|
}
|
|
259
259
|
td {
|
|
260
|
-
border: 1px solid var(--border-color);
|
|
260
|
+
border: 1px solid var(--bgl-border-color);
|
|
261
261
|
height: 40px;
|
|
262
262
|
vertical-align: middle;
|
|
263
263
|
}
|
|
@@ -311,7 +311,7 @@ td .bgl-checkbox{
|
|
|
311
311
|
}
|
|
312
312
|
td:has(.bgl-checkbox){
|
|
313
313
|
text-align: center;
|
|
314
|
-
background: var(--input-bg);
|
|
314
|
+
background: var(--bgl-input-bg);
|
|
315
315
|
}
|
|
316
316
|
td:has(:checked){
|
|
317
317
|
background: var(--bgl-primary-light);
|
|
@@ -355,6 +355,6 @@ td:has(:checked){
|
|
|
355
355
|
color: var(--txt-muted, #888);
|
|
356
356
|
font-size: 0.875rem;
|
|
357
357
|
background: var(--bgl-white);
|
|
358
|
-
border: 1px solid var(--border-color);
|
|
358
|
+
border: 1px solid var(--bgl-border-color);
|
|
359
359
|
}
|
|
360
360
|
</style>
|
package/src/components/Toast.vue
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { Icon } from '@bagelink/vue'
|
|
3
3
|
|
|
4
|
+
defineOptions({ name: 'BglToast' })
|
|
5
|
+
|
|
4
6
|
interface Props {
|
|
5
7
|
message: string
|
|
6
8
|
type?: 'success' | 'error' | 'warning' | 'info'
|
|
@@ -35,27 +37,31 @@ withDefaults(defineProps<Props>(), {
|
|
|
35
37
|
|
|
36
38
|
<style>
|
|
37
39
|
.custom-toast {
|
|
38
|
-
--toast-border-radius:
|
|
40
|
+
--toast-border-radius: var(--bgl-btn-border-radius);
|
|
41
|
+
--toast-success: var(--bgl-green);
|
|
42
|
+
--toast-error: var(--bgl-red);
|
|
43
|
+
--toast-warning: var(--bgl-yellow);
|
|
44
|
+
--toast-info: var(--bgl-blue);
|
|
39
45
|
display: flex;
|
|
40
46
|
align-items: center;
|
|
41
|
-
gap:
|
|
42
|
-
padding:
|
|
43
|
-
padding-
|
|
47
|
+
gap: 0.75rem;
|
|
48
|
+
padding: 1rem;
|
|
49
|
+
padding-inline-start: 1.25rem;
|
|
44
50
|
border-radius: var(--toast-border-radius);
|
|
45
|
-
background:
|
|
46
|
-
box-shadow: 0 4px 12px
|
|
51
|
+
background: var(--bgl-box-bg);
|
|
52
|
+
box-shadow: 0 4px 12px var(--bgl-shadow);
|
|
47
53
|
min-width: 300px;
|
|
48
|
-
font-family:
|
|
54
|
+
font-family: var(--bgl-font);
|
|
49
55
|
position: relative;
|
|
50
56
|
overflow: hidden;
|
|
51
|
-
outline: 1px solid var(--border-color);
|
|
52
|
-
|
|
57
|
+
outline: 1px solid var(--bgl-border-color);
|
|
58
|
+
outline-offset: -1px;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
.custom-toast::before {
|
|
56
62
|
content: '';
|
|
57
63
|
position: absolute;
|
|
58
|
-
|
|
64
|
+
inset-inline-start: 0;
|
|
59
65
|
top: 0;
|
|
60
66
|
bottom: 0;
|
|
61
67
|
width: 6px;
|
|
@@ -63,52 +69,52 @@ withDefaults(defineProps<Props>(), {
|
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
.custom-toast--success::before {
|
|
66
|
-
background:
|
|
72
|
+
background: var(--toast-success);
|
|
67
73
|
}
|
|
68
74
|
|
|
69
75
|
.custom-toast--success .custom-toast__icon {
|
|
70
|
-
color:
|
|
76
|
+
color: var(--toast-success);
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
.custom-toast--error::before {
|
|
74
|
-
background:
|
|
80
|
+
background: var(--toast-error);
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
.custom-toast--error .custom-toast__icon {
|
|
78
|
-
color:
|
|
84
|
+
color: var(--toast-error);
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
.custom-toast--warning::before {
|
|
82
|
-
background:
|
|
88
|
+
background: var(--toast-warning);
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
.custom-toast--warning .custom-toast__icon {
|
|
86
|
-
color:
|
|
92
|
+
color: var(--toast-warning);
|
|
87
93
|
}
|
|
88
94
|
|
|
89
95
|
.custom-toast--info::before {
|
|
90
|
-
background:
|
|
96
|
+
background: var(--toast-info);
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
.custom-toast--info .custom-toast__icon {
|
|
94
|
-
color:
|
|
100
|
+
color: var(--toast-info);
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
.custom-toast__icon {
|
|
98
|
-
font-size:
|
|
104
|
+
font-size: 1.25rem;
|
|
99
105
|
font-weight: bold;
|
|
100
106
|
line-height: 1;
|
|
101
107
|
display: flex;
|
|
102
108
|
align-items: center;
|
|
103
109
|
justify-content: center;
|
|
104
|
-
width:
|
|
105
|
-
height:
|
|
110
|
+
width: 1.5rem;
|
|
111
|
+
height: 1.5rem;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
.custom-toast__content {
|
|
109
115
|
flex: 1;
|
|
110
|
-
font-size:
|
|
111
|
-
color:
|
|
116
|
+
font-size: var(--bgl-input-font-size);
|
|
117
|
+
color: var(--bgl-text-color);
|
|
112
118
|
line-height: 1.5;
|
|
113
119
|
}
|
|
114
120
|
|
|
@@ -116,14 +122,14 @@ withDefaults(defineProps<Props>(), {
|
|
|
116
122
|
background: none;
|
|
117
123
|
border: none;
|
|
118
124
|
cursor: pointer;
|
|
119
|
-
font-size:
|
|
120
|
-
color:
|
|
121
|
-
padding:
|
|
125
|
+
font-size: 1.125rem;
|
|
126
|
+
color: var(--bgl-gray);
|
|
127
|
+
padding: 0.25rem;
|
|
122
128
|
line-height: 1;
|
|
123
|
-
transition:
|
|
129
|
+
transition: var(--bgl-transition);
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
.custom-toast__close:hover {
|
|
127
|
-
color:
|
|
133
|
+
color: var(--bgl-text-color);
|
|
128
134
|
}
|
|
129
135
|
</style>
|
|
@@ -78,7 +78,7 @@ function closePopover() {
|
|
|
78
78
|
min-width: 250px;
|
|
79
79
|
max-width: 350px;
|
|
80
80
|
background-color: white;
|
|
81
|
-
border-radius: var(--btn-border-radius);
|
|
81
|
+
border-radius: var(--bgl-btn-border-radius);
|
|
82
82
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
83
83
|
animation: fadeIn 0.2s ease;
|
|
84
84
|
transform-origin: center left;
|
|
@@ -164,7 +164,7 @@ onMounted(() => {
|
|
|
164
164
|
</h3>
|
|
165
165
|
<div class="ms-auto flex gap-025 m_flex-wrap">
|
|
166
166
|
<TabsNav size="s" v-if="viewSwitcher === 'tabs'" :model-value="currentView" :tabs="viewTabs" group="calendar-view" @update:model-value="handleViewChange($event as CalendarView)"
|
|
167
|
-
style="--bgl_tabs-border-radius: calc(var(--btn-border-radius) / 2)" class="txt12 m_mb-05 m_w-100p " align-txt="center" />
|
|
167
|
+
style="--bgl_tabs-border-radius: calc(var(--bgl-btn-border-radius) / 2)" class="txt12 m_mb-05 m_w-100p " align-txt="center" />
|
|
168
168
|
<Dropdown v-else thin :value="currentView" iconEnd="keyboard_arrow_down" color="gray">
|
|
169
169
|
<ListItem v-for="(_, key) in views" :key="key" thin :title="t(`calendar.views.${key.toLowerCase()}`)" @click="handleViewChange(key)" />
|
|
170
170
|
</Dropdown>
|
|
@@ -239,12 +239,12 @@ onUnmounted(() => { containerRef.value?.removeEventListener('scroll', handleScro
|
|
|
239
239
|
display: block;
|
|
240
240
|
width: 1px;
|
|
241
241
|
height: calc(100% - 2rem);
|
|
242
|
-
background: var(--border-color, #e6e8ec);
|
|
242
|
+
background: var(--bgl-border-color, #e6e8ec);
|
|
243
243
|
margin: 0.5rem auto 0;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
/* .agenda-event-card {
|
|
247
|
-
border-inline-start: var(--event-color, var(--bgl-primary)) solid calc(var(--card-border-radius) + 0.25rem);
|
|
247
|
+
border-inline-start: var(--event-color, var(--bgl-primary)) solid calc(var(--bgl-card-border-radius) + 0.25rem);
|
|
248
248
|
} */
|
|
249
249
|
|
|
250
250
|
.agenda-event-card h3::before {
|
|
@@ -277,7 +277,7 @@ onUnmounted(() => {
|
|
|
277
277
|
.events-column {
|
|
278
278
|
flex-grow: 1;
|
|
279
279
|
position: relative;
|
|
280
|
-
border-inline-start: 1px solid var(--border-color);
|
|
280
|
+
border-inline-start: 1px solid var(--bgl-border-color);
|
|
281
281
|
min-height: 100%; /* Ensure the column fills the full height */
|
|
282
282
|
}
|
|
283
283
|
|
|
@@ -166,7 +166,7 @@ function handleEventSelection(event: CalendarEvent, domEvent?: MouseEvent) {
|
|
|
166
166
|
.month-header {
|
|
167
167
|
display: grid;
|
|
168
168
|
grid-template-columns: repeat(7, 1fr);
|
|
169
|
-
border-bottom: 1px solid var(--border-color);
|
|
169
|
+
border-bottom: 1px solid var(--bgl-border-color);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.weekday {
|
|
@@ -181,13 +181,13 @@ function handleEventSelection(event: CalendarEvent, domEvent?: MouseEvent) {
|
|
|
181
181
|
grid-template-rows: repeat(6, 1fr);
|
|
182
182
|
flex-grow: 1;
|
|
183
183
|
overflow: auto;
|
|
184
|
-
border-inline-end: 1px solid var(--border-color);
|
|
184
|
+
border-inline-end: 1px solid var(--bgl-border-color);
|
|
185
185
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.day-cell {
|
|
189
|
-
border-inline-start: 1px solid var(--border-color);
|
|
190
|
-
border-bottom: 1px solid var(--border-color);
|
|
189
|
+
border-inline-start: 1px solid var(--bgl-border-color);
|
|
190
|
+
border-bottom: 1px solid var(--bgl-border-color);
|
|
191
191
|
padding: 0.5rem;
|
|
192
192
|
min-height: 100px;
|
|
193
193
|
display: flex;
|
|
@@ -260,7 +260,7 @@ function handleEventSelection(event: CalendarEvent, domEvent?: MouseEvent) {
|
|
|
260
260
|
min-width: 250px;
|
|
261
261
|
max-width: 350px;
|
|
262
262
|
background-color: white;
|
|
263
|
-
border-radius: var(--btn-border-radius);
|
|
263
|
+
border-radius: var(--bgl-btn-border-radius);
|
|
264
264
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
265
265
|
animation: fadeIn 0.2s ease;
|
|
266
266
|
transform-origin: center left;
|