@bagelink/vue 0.0.1135 → 0.0.1137

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.
Files changed (72) hide show
  1. package/dist/components/AddressSearch.vue.d.ts +6 -6
  2. package/dist/components/Alert.vue.d.ts +2 -2
  3. package/dist/components/Alert.vue.d.ts.map +1 -1
  4. package/dist/components/Badge.vue.d.ts +3 -3
  5. package/dist/components/Badge.vue.d.ts.map +1 -1
  6. package/dist/components/Btn.vue.d.ts +3 -3
  7. package/dist/components/Btn.vue.d.ts.map +1 -1
  8. package/dist/components/DropDown.vue.d.ts +3 -3
  9. package/dist/components/DropDown.vue.d.ts.map +1 -1
  10. package/dist/components/Icon/Icon.vue.d.ts +11 -0
  11. package/dist/components/Icon/Icon.vue.d.ts.map +1 -0
  12. package/dist/components/Icon/constants.d.ts +4 -0
  13. package/dist/components/Icon/constants.d.ts.map +1 -0
  14. package/dist/components/Icon/types.d.ts +5 -0
  15. package/dist/components/Icon/types.d.ts.map +1 -0
  16. package/dist/components/ListItem.vue.d.ts +2 -2
  17. package/dist/components/ListItem.vue.d.ts.map +1 -1
  18. package/dist/components/NavBar.vue.d.ts +3 -3
  19. package/dist/components/NavBar.vue.d.ts.map +1 -1
  20. package/dist/components/Pill.vue.d.ts +4 -4
  21. package/dist/components/Pill.vue.d.ts.map +1 -1
  22. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  23. package/dist/components/form/inputs/NumberInput.vue.d.ts +3 -3
  24. package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
  25. package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
  26. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  27. package/dist/components/form/inputs/SelectInput.vue.d.ts +22 -22
  28. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  29. package/dist/components/form/inputs/TelInput.vue.d.ts +6 -6
  30. package/dist/components/form/inputs/TextInput.vue.d.ts +3 -3
  31. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  32. package/dist/components/index.d.ts +1 -2
  33. package/dist/components/index.d.ts.map +1 -1
  34. package/dist/components/layout/TabsNav.vue.d.ts +2 -2
  35. package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
  36. package/dist/index.cjs +4649 -226
  37. package/dist/index.mjs +4649 -226
  38. package/dist/style.css +1998 -3504
  39. package/dist/types/BtnOptions.d.ts +2 -2
  40. package/dist/types/BtnOptions.d.ts.map +1 -1
  41. package/dist/types/NavLink.d.ts +2 -2
  42. package/dist/types/NavLink.d.ts.map +1 -1
  43. package/dist/types/index.d.ts +3 -3
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/src/components/AccordionItem.vue +3 -3
  47. package/src/components/Alert.vue +2 -2
  48. package/src/components/Badge.vue +3 -3
  49. package/src/components/Btn.vue +6 -6
  50. package/src/components/Carousel.vue +12 -12
  51. package/src/components/Dropdown.vue +3 -3
  52. package/src/components/Icon/Icon.vue +49 -0
  53. package/src/components/Icon/constants.ts +4427 -0
  54. package/src/components/Icon/types.ts +6 -0
  55. package/src/components/ListItem.vue +2 -2
  56. package/src/components/NavBar.vue +6 -6
  57. package/src/components/Pill.vue +7 -7
  58. package/src/components/TableSchema.vue +3 -4
  59. package/src/components/form/inputs/NumberInput.vue +3 -3
  60. package/src/components/form/inputs/PasswordInput.vue +3 -3
  61. package/src/components/form/inputs/RichText/richTextTypes.d.ts +2 -2
  62. package/src/components/form/inputs/SelectInput.vue +2 -2
  63. package/src/components/form/inputs/TableField.vue +3 -3
  64. package/src/components/form/inputs/TextInput.vue +6 -6
  65. package/src/components/index.ts +1 -2
  66. package/src/components/layout/TabsNav.vue +2 -2
  67. package/src/styles/theme.css +258 -266
  68. package/src/types/BtnOptions.ts +2 -2
  69. package/src/types/NavLink.ts +2 -2
  70. package/src/types/index.ts +4 -3
  71. package/src/components/MaterialIcon.vue +0 -21
  72. package/src/types/materialIcons.ts +0 -3761
@@ -0,0 +1,6 @@
1
+ import type { FONT_AWESOME_ICONS, MATERIAL_ICONS } from './constants'
2
+
3
+ export type FontAwesomeIcons = (typeof FONT_AWESOME_ICONS)[number]
4
+ export type MaterialIcons = (typeof MATERIAL_ICONS)[number]
5
+
6
+ export type IconType = MaterialIcons | FontAwesomeIcons
@@ -1,12 +1,12 @@
1
1
  <script lang="ts" setup>
2
- import type { MaterialIcons } from '@bagelink/vue'
2
+ import type { IconType } from '@bagelink/vue'
3
3
  import { Avatar, Icon } from '@bagelink/vue'
4
4
 
5
5
  defineProps<{
6
6
  src?: string
7
7
  showAvatar?: boolean
8
8
  to?: string
9
- icon?: MaterialIcons
9
+ icon?: IconType
10
10
  title?: string
11
11
  subtitle?: string
12
12
  flat?: boolean
@@ -1,13 +1,13 @@
1
1
  <script lang="ts" setup>
2
- import type { MaterialIcons, NavLink } from '@bagelink/vue'
3
- import { MaterialIcon } from '@bagelink/vue'
2
+ import type { IconType, NavLink } from '@bagelink/vue'
3
+ import { Icon } from '@bagelink/vue'
4
4
  import { onMounted } from 'vue'
5
5
 
6
6
  withDefaults(
7
7
  defineProps<{
8
8
  footerLinks?: NavLink[]
9
9
  links?: NavLink[]
10
- homeIcon?: MaterialIcons
10
+ homeIcon?: IconType
11
11
  homeLabel?: string
12
12
  homeTo?: string
13
13
  }>(),
@@ -48,7 +48,7 @@ onMounted(calcIsOpen)
48
48
  @click="toggleMenu"
49
49
  @keypress.enter="toggleMenu"
50
50
  >
51
- <MaterialIcon icon="chevron_right" class="top-arrow" />
51
+ <Icon icon="chevron_right" class="top-arrow" />
52
52
  </div>
53
53
 
54
54
  <div class="full-nav">
@@ -62,7 +62,7 @@ onMounted(calcIsOpen)
62
62
  :to="link.to"
63
63
  @click="link.onClick?.()"
64
64
  >
65
- <MaterialIcon :icon="link.icon" />
65
+ <Icon :icon="link.icon" />
66
66
  <div class="tooltip">
67
67
  {{ link.label }}
68
68
  </div>
@@ -79,7 +79,7 @@ onMounted(calcIsOpen)
79
79
  :to="link.to"
80
80
  @click="link.onClick?.()"
81
81
  >
82
- <MaterialIcon :icon="link.icon" />
82
+ <Icon :icon="link.icon" />
83
83
  <div class="tooltip">
84
84
  {{ link.label }}
85
85
  </div>
@@ -1,18 +1,18 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons, ThemeType } from '@bagelink/vue'
3
- import { Btn, MaterialIcon } from '@bagelink/vue'
2
+ import type { IconType, ThemeType } from '@bagelink/vue'
3
+ import { Btn, Icon } from '@bagelink/vue'
4
4
  import { useSlots } from 'vue'
5
5
 
6
6
  interface BtnProp {
7
- icon?: MaterialIcons
7
+ icon?: IconType
8
8
  onClick: () => void
9
9
  value?: string
10
10
  }
11
11
 
12
12
  const props = defineProps<{
13
13
  disabled?: boolean
14
- icon?: MaterialIcons
15
- iconEnd?: MaterialIcons
14
+ icon?: IconType
15
+ iconEnd?: IconType
16
16
  color?: ThemeType
17
17
  theme?: ThemeType
18
18
  flat?: boolean
@@ -90,12 +90,12 @@ const computedBackgroundColor = $computed(
90
90
  <Btn class="bgl_pill-btn" round thin v-bind="btn" />
91
91
  </div>
92
92
  </div>
93
- <MaterialIcon v-if="icon" :icon="icon" />
93
+ <Icon v-if="icon" :icon="icon" />
94
94
  <slot />
95
95
  <template v-if="!slots.default && (value)">
96
96
  {{ value || modelValue }}
97
97
  </template>
98
- <MaterialIcon v-if="iconEnd" :icon="iconEnd" />
98
+ <Icon v-if="iconEnd" :icon="iconEnd" />
99
99
  <div v-if="loading" class="loading" />
100
100
  <div v-else>
101
101
  <div v-if="btnEnd" class="flex h-100">
@@ -2,8 +2,7 @@
2
2
  import type { BglFormSchemaT } from '@bagelink/vue'
3
3
  import {
4
4
  BglComponent,
5
-
6
- MaterialIcon,
5
+ Icon,
7
6
  isDate,
8
7
  keyToLabel,
9
8
  useBglSchema
@@ -110,7 +109,7 @@ const computedData = computed(() => {
110
109
 
111
110
  function transform(rowData: any) {
112
111
  const obj: { [key: string]: any } = { ...rowData }
113
- const schemaFields = computedSchema.filter(f => f.id)
112
+ const schemaFields = computedSchema.filter((f: any) => f.id)
114
113
 
115
114
  for (const field of schemaFields) {
116
115
  const fieldData = rowData[`${field.id}`]
@@ -235,7 +234,7 @@ watch(
235
234
  class="list-arrows"
236
235
  :class="{ sorted: sortField === field.id }"
237
236
  >
238
- <MaterialIcon
237
+ <Icon
239
238
  :class="{ desc: sortDirection === 'DESC' }"
240
239
  icon="keyboard_arrow_up"
241
240
  />
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons } from '@bagelink/vue'
2
+ import type { IconType } from '@bagelink/vue'
3
3
  import { Icon, Btn } from '@bagelink/vue'
4
4
  import { watch } from 'vue'
5
5
 
@@ -11,8 +11,8 @@ interface NumberInputProps {
11
11
  max?: number
12
12
  step?: number
13
13
  spinner?: boolean
14
- iconStart?: MaterialIcons
15
- icon?: MaterialIcons
14
+ iconStart?: IconType
15
+ icon?: IconType
16
16
  label?: string
17
17
  placeholder?: string
18
18
  disabled?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons } from '@bagelink/vue'
2
+ import type { IconType } from '@bagelink/vue'
3
3
  import { Btn, TextInput } from '@bagelink/vue'
4
4
 
5
5
  export interface TextInputProps {
@@ -15,8 +15,8 @@ export interface TextInputProps {
15
15
  shrink?: boolean
16
16
  disabled?: boolean
17
17
  nativeInputAttrs?: { [key: string]: any }
18
- icon?: MaterialIcons
19
- iconStart?: MaterialIcons
18
+ icon?: IconType
19
+ iconStart?: IconType
20
20
  multiline?: boolean
21
21
  autoheight?: boolean
22
22
  code?: boolean
@@ -1,4 +1,4 @@
1
- import type { MaterialIcons } from '@bagelink/vue'
1
+ import type { IconType } from '@bagelink/vue'
2
2
 
3
3
  export interface Modal {
4
4
  showModalForm: (options: {
@@ -76,6 +76,6 @@ export type ToolbarConfig = ToolbarConfigOption[]
76
76
  export interface ToolbarOption {
77
77
  name: ToolbarConfigOption
78
78
  label?: string
79
- icon?: MaterialIcons
79
+ icon?: IconType
80
80
  class?: string
81
81
  }
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import type { MaterialIcons, Option } from '@bagelink/vue'
2
+ import type { IconType, Option } from '@bagelink/vue'
3
3
  import {
4
4
  Btn,
5
5
  Card,
@@ -22,7 +22,7 @@ interface PropTypes {
22
22
  label?: string
23
23
  fullWidth?: boolean
24
24
  multiselect?: boolean
25
- icon?: MaterialIcons
25
+ icon?: IconType
26
26
  hideLabel?: boolean
27
27
  defaultValue?: Option
28
28
  clearable?: boolean
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { Btn, MaterialIcon, formatString } from '@bagelink/vue'
2
+ import { Btn, Icon, formatString } from '@bagelink/vue'
3
3
  import { onMounted, ref } from 'vue'
4
4
  import { VueDraggableNext } from 'vue-draggable-next'
5
5
 
@@ -105,7 +105,7 @@ onMounted(() => {
105
105
  class="flex table-row"
106
106
  >
107
107
  <div class="table-reorder">
108
- <MaterialIcon icon="more_vert" />
108
+ <Icon icon="more_vert" />
109
109
  </div>
110
110
  <div
111
111
  v-for="field in entityMeta?.fields"
@@ -123,7 +123,7 @@ onMounted(() => {
123
123
  </div>
124
124
 
125
125
  <div class="table-action">
126
- <MaterialIcon
126
+ <Icon
127
127
  icon="delete"
128
128
  @click="removeRow(index)"
129
129
  />
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons } from '@bagelink/vue'
2
+ import type { IconType } from '@bagelink/vue'
3
3
  import {
4
- MaterialIcon,
4
+ Icon,
5
5
  useDebounceFn
6
6
 
7
7
  } from '@bagelink/vue'
@@ -23,8 +23,8 @@ const props = withDefaults(
23
23
  disabled?: boolean
24
24
  type?: string
25
25
  nativeInputAttrs?: { [key: string]: any }
26
- icon?: MaterialIcons
27
- iconStart?: MaterialIcons
26
+ icon?: IconType
27
+ iconStart?: IconType
28
28
  multiline?: boolean
29
29
  autoheight?: boolean
30
30
  code?: boolean
@@ -125,12 +125,12 @@ onMounted(() => {
125
125
  @focusout="onFocusout"
126
126
  />
127
127
  <p v-if="helptext">{{ helptext }}</p>
128
- <MaterialIcon
128
+ <Icon
129
129
  v-if="iconStart"
130
130
  class="iconStart"
131
131
  :icon="iconStart"
132
132
  />
133
- <MaterialIcon
133
+ <Icon
134
134
  v-if="icon"
135
135
  :icon
136
136
  />
@@ -15,6 +15,7 @@ export { default as Dropdown } from './Dropdown.vue'
15
15
  export { default as FieldSetVue } from './FieldSetVue.vue'
16
16
  export { default as Flag } from './Flag.vue'
17
17
  export * from './form'
18
+ export { default as Icon } from './Icon/Icon.vue'
18
19
  export { default as IframeVue } from './IframeVue.vue'
19
20
  export { default as Image } from './Image.vue'
20
21
  export * from './layout'
@@ -22,8 +23,6 @@ export { default as ListItem } from './ListItem.vue'
22
23
  export { default as ListView } from './ListView.vue'
23
24
  export { default as Loading } from './Loading.vue'
24
25
  export { default as MapEmbed } from './MapEmbed.vue'
25
- export { default as MaterialIcon } from './MaterialIcon.vue'
26
- export { default as Icon } from './MaterialIcon.vue'
27
26
 
28
27
  export { default as Modal } from './Modal.vue'
29
28
  export { default as ModalConfirm } from './ModalConfirm.vue'
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons } from '@bagelink/vue'
2
+ import type { IconType } from '@bagelink/vue'
3
3
  import { Icon } from '@bagelink/vue'
4
4
  import { nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'
5
5
  import { useTabs } from './tabsManager'
@@ -7,7 +7,7 @@ import { useTabs } from './tabsManager'
7
7
  interface TabType {
8
8
  id?: string
9
9
  label?: string
10
- icon?: MaterialIcons
10
+ icon?: IconType
11
11
  }
12
12
 
13
13
  const props = defineProps<{