@bagelink/vue 0.0.145 → 0.0.155

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/style.css CHANGED
@@ -749,11 +749,11 @@
749
749
  border-radius: var(--btn-border-radius);
750
750
  }
751
751
 
752
- .modal-title[data-v-ca1b8501] {
752
+ .modal-title[data-v-1799b7d0] {
753
753
  margin-top: 0.5rem;
754
754
  }
755
755
  @media screen and (max-width: 910px) {
756
- .modal-title[data-v-ca1b8501] {
756
+ .modal-title[data-v-1799b7d0] {
757
757
  margin-top: 1rem;
758
758
  }
759
759
  }
@@ -2191,6 +2191,31 @@ input[type='email'][data-v-ed81a514] {
2191
2191
  box-shadow: 0 0 10px 0 rgb(0 0 0 /20%);
2192
2192
  }
2193
2193
 
2194
+ .bagel-input[data-v-a5b28c58] {
2195
+ height: 100%;
2196
+ margin: 0;
2197
+ }
2198
+ .bagel-input label[data-v-a5b28c58] {
2199
+ margin-bottom: 0;
2200
+ }
2201
+ .bagel-input textarea[data-v-a5b28c58] {
2202
+ height: 100%;
2203
+ resize: none;
2204
+ background: var(--input-bg);
2205
+ margin-bottom: 0.5rem;
2206
+ }
2207
+ .character-limit[data-v-a5b28c58] {
2208
+ font-size: 0.6rem;
2209
+ color: var(--input-color);
2210
+ position: absolute;
2211
+ top: 0.25rem;
2212
+ inset-inline-end: 0;
2213
+ }
2214
+
2215
+ .no-edit[data-v-188270a2] {
2216
+ cursor: not-allowed;
2217
+ }
2218
+
2194
2219
  .chart-line {
2195
2220
  width: 100%;
2196
2221
  height: 300px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.145",
4
+ "version": "0.0.155",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -51,7 +51,7 @@
51
51
  "./vite.config.ts"
52
52
  ],
53
53
  "dependencies": {
54
- "vue": "^3.3.9"
54
+ "vue": "^3.3.10"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@vue-macros/reactivity-transform": "^0.4.0"
@@ -11,6 +11,12 @@
11
11
  >
12
12
  <header class="tool-bar">
13
13
  <slot name="toolbar" />
14
+ <Btn
15
+ :style="{ float: side ? 'left' : 'right' }"
16
+ flat
17
+ icon="close"
18
+ @click="closeModal"
19
+ />
14
20
  </header>
15
21
  <h3 class="modal-title">
16
22
  {{ title }}
@@ -35,7 +41,7 @@ import { onMounted, onUnmounted } from 'vue';
35
41
  import { type BtnOptions, Btn, useEscape } from '@bagelink/vue';
36
42
  import '../styles/modal.css';
37
43
 
38
- defineProps<{
44
+ const props = defineProps<{
39
45
  side?: boolean;
40
46
  title?: string;
41
47
  dismissable?: boolean;
@@ -53,7 +59,7 @@ const closeModal = () => {
53
59
  }, 200);
54
60
  };
55
61
 
56
- const escapeKeyClose = (e: KeyboardEvent) => useEscape(e, () => closeModal());
62
+ const escapeKeyClose = (e: KeyboardEvent) => props?.dismissable && useEscape(e, () => closeModal());
57
63
 
58
64
  onMounted(() => {
59
65
  setTimeout(() => {
@@ -90,7 +90,7 @@ const runDelete = () => {
90
90
  closeModal();
91
91
  };
92
92
 
93
- const escapeKeyClose = (e: KeyboardEvent) => useEscape(e, () => closeModal());
93
+ const escapeKeyClose = (e: KeyboardEvent) => props?.dismissable && useEscape(e, () => closeModal());
94
94
 
95
95
  onMounted(() => {
96
96
  setTimeout(() => {
@@ -96,8 +96,6 @@ interface ListItem {
96
96
  description?: string;
97
97
  }
98
98
 
99
- const initialized = ref(false);
100
-
101
99
  async function initList(e: Event) {
102
100
  await getLinkOptions(getElValue(e));
103
101
  showList.value = true;
@@ -15,3 +15,8 @@ export { default as RichTextEditor } from './RichTextEditor.vue';
15
15
  export { default as TableField } from './TableField.vue';
16
16
  export { default as DurationInput } from './DurationInput.vue';
17
17
  export { default as TextInput } from './TextInput.vue';
18
+ export { default as TextArea } from './TextArea.vue';
19
+ export { default as Checkbox } from './Checkbox.vue';
20
+ export { default as ColorPicker } from './ColorPicker.vue';
21
+ export { default as DynamicLinkField } from './DynamicLinkField.vue';
22
+ export { default as PlainText } from './PlainText.vue';