@bagelink/vue 1.4.34 → 1.4.42

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 (51) hide show
  1. package/dist/chunk-CsX-DzYB.cjs +1 -0
  2. package/dist/components/Icon.vue.d.ts +16 -0
  3. package/dist/components/Icon.vue.d.ts.map +1 -0
  4. package/dist/components/calendar/views/CalendarPopover.vue.d.ts +2 -2
  5. package/dist/components/calendar/views/CalendarPopover.vue.d.ts.map +1 -1
  6. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  7. package/dist/components/form/BglFieldSet.vue.d.ts +25 -0
  8. package/dist/components/form/BglFieldSet.vue.d.ts.map +1 -0
  9. package/dist/components/form/inputs/DateInput.vue.d.ts +1 -1
  10. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/DatePicker.vue.d.ts +1 -1
  12. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  13. package/dist/components/index.d.ts +0 -1
  14. package/dist/components/index.d.ts.map +1 -1
  15. package/dist/components/layout/Layout.vue.d.ts +1 -1
  16. package/dist/components/layout/Layout.vue.d.ts.map +1 -1
  17. package/dist/composables/useExcel.d.ts.map +1 -1
  18. package/dist/editor-BpbYtUrx.js +2 -0
  19. package/dist/editor-COZLUDwR.cjs +1 -0
  20. package/dist/editor-CogxCqoB.cjs +3 -0
  21. package/dist/editor-CtWHU9QA.js +1 -0
  22. package/dist/editor-DDp0A6Ty.cjs +1 -0
  23. package/dist/editor-DQOZvXuf.cjs +1 -0
  24. package/dist/editor-Dk9B96i8.cjs +2 -0
  25. package/dist/editor-Dpod7RSB.js +1 -0
  26. package/dist/editor-UnqmwfaW.js +2 -0
  27. package/dist/editor-fhxKzja8.cjs +2 -0
  28. package/dist/editor-mLVzxfYa.js +2 -0
  29. package/dist/editor-smCr3pmQ.cjs +1 -0
  30. package/dist/editor-sxMLITHI.js +1 -0
  31. package/dist/iconify-0J3vK-m1.cjs +1693 -0
  32. package/dist/iconify-Bc1B42Ak.cjs +1771 -0
  33. package/dist/iconify-BiLGk5km.js +1693 -0
  34. package/dist/iconify-DVnNdzog.js +1771 -0
  35. package/dist/index.cjs +28 -40100
  36. package/dist/index.mjs +28 -40100
  37. package/dist/style.css +2 -18528
  38. package/dist/types/timeago.d.ts +23 -0
  39. package/dist/types/timeago.d.ts.map +1 -0
  40. package/dist/vue3-charts.esm-CkXK48ud.js +54 -0
  41. package/dist/vue3-charts.esm-uVj96p6_.cjs +54 -0
  42. package/package.json +3 -11
  43. package/src/components/index.ts +0 -1
  44. package/src/composables/useExcel.ts +15 -1
  45. package/src/styles/layout.css +94 -94
  46. package/src/styles/mobilLayout.css +95 -95
  47. package/vite.config.ts +2 -1
  48. package/dist/components/Carousel2.vue.d.ts +0 -89
  49. package/dist/components/Carousel2.vue.d.ts.map +0 -1
  50. package/src/components/dashboard/Lineart.vue +0 -212
  51. package/src/components/dashboard/index.ts +0 -1
@@ -1,89 +0,0 @@
1
- type Easing = 'ease-in-out' | 'ease-in' | 'ease-out' | 'linear';
2
- type AutoplayMode = 'disabled' | 'standard' | 'linear';
3
- type AutoplayValue = boolean | AutoplayMode;
4
- interface CarouselOptions {
5
- duration?: number;
6
- easing?: Easing;
7
- perPage?: number | {
8
- [key: number]: number;
9
- };
10
- startIndex?: number;
11
- draggable?: boolean;
12
- multipleDrag?: boolean;
13
- threshold?: number;
14
- loop?: boolean;
15
- rtl?: boolean;
16
- autoplay?: AutoplayValue;
17
- autoplayInterval?: number;
18
- autoplaySpeed?: number;
19
- pauseOnHover?: boolean;
20
- dots?: boolean;
21
- slideWidth?: number;
22
- onInit?: () => void;
23
- onChange?: () => void;
24
- }
25
- declare function prev(howManySlides?: number): void;
26
- declare function next(howManySlides?: number): void;
27
- declare function goTo(index: number): void;
28
- declare function remove(index: number): void;
29
- declare function insert(item: Element, index: number): void;
30
- declare function prepend(item: Element): void;
31
- declare function append(item: Element): void;
32
- declare function destroy(restoreMarkup?: boolean): void;
33
- declare function pauseAutoplay(): void;
34
- declare function resumeAutoplay(): void;
35
- declare function __VLS_template(): {
36
- attrs: Partial<{}>;
37
- slots: {
38
- default?(_: {}): any;
39
- };
40
- refs: {
41
- carouselRef: HTMLDivElement;
42
- };
43
- rootEl: HTMLDivElement;
44
- };
45
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
46
- declare const __VLS_component: import('vue').DefineComponent<CarouselOptions, {
47
- prev: typeof prev;
48
- next: typeof next;
49
- goTo: typeof goTo;
50
- remove: typeof remove;
51
- insert: typeof insert;
52
- prepend: typeof prepend;
53
- append: typeof append;
54
- destroy: typeof destroy;
55
- currentSlide: import('vue').Ref<number, number>;
56
- pauseAutoplay: typeof pauseAutoplay;
57
- resumeAutoplay: typeof resumeAutoplay;
58
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
59
- change: () => any;
60
- init: () => any;
61
- }, string, import('vue').PublicProps, Readonly<CarouselOptions> & Readonly<{
62
- onChange?: (() => any) | undefined;
63
- onInit?: (() => any) | undefined;
64
- }>, {
65
- autoplay: AutoplayValue;
66
- loop: boolean;
67
- duration: number;
68
- easing: Easing;
69
- startIndex: number;
70
- draggable: boolean;
71
- multipleDrag: boolean;
72
- threshold: number;
73
- rtl: boolean;
74
- autoplayInterval: number;
75
- autoplaySpeed: number;
76
- pauseOnHover: boolean;
77
- dots: boolean;
78
- slideWidth: number;
79
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
80
- carouselRef: HTMLDivElement;
81
- }, HTMLDivElement>;
82
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
83
- export default _default;
84
- type __VLS_WithTemplateSlots<T, S> = T & {
85
- new (): {
86
- $slots: S;
87
- };
88
- };
89
- //# sourceMappingURL=Carousel2.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Carousel2.vue.d.ts","sourceRoot":"","sources":["../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AK,EAAE,MAAM,GAAG,IAAI,CAkBlD;AAED,iBAAS,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAEpC;AAED,iBAAS,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAEnC;AAED,iBAAS,OAAO,CAAC,aAAa,GAAE,OAAe,GAAG,IAAI,CAkBrD;AAqGD,iBAAS,aAAa,IAAI,IAAI,CAE7B;AAED,iBAAS,cAAc,IAAI,IAAI,CAI9B;AAgDD,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;cA3hCT,aAAa;UAFjB,OAAO;cAPH,MAAM;YACR,MAAM;gBAEF,MAAM;eACP,OAAO;kBACJ,OAAO;eACV,MAAM;SAEZ,OAAO;sBAEM,MAAM;mBACT,MAAM;kBACP,OAAO;UACf,OAAO;gBACD,MAAM;;;kBAiiClB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,212 +0,0 @@
1
- <script lang="ts" setup>
2
- import type { ChartAxis, Data } from 'vue3-charts/dist/types'
3
- import { onMounted, onUnmounted } from 'vue'
4
- import {
5
- Area,
6
- Chart,
7
- Grid,
8
- Line,
9
- Marker,
10
- Tooltip,
11
- } from 'vue3-charts'
12
-
13
- const props = defineProps<{ data: Data[], locale: string }>()
14
-
15
- const data = $computed(() => (props.locale === 'he' ? [...props.data].reverse() : props.data))
16
-
17
- interface Size {
18
- width: number
19
- height: number
20
- }
21
-
22
- // Computed properties
23
- const meanValue = $computed(() => {
24
- const sum = props.data.reduce((acc, curr) => acc + +curr.total_value, 0)
25
- return sum / props.data.length
26
- })
27
-
28
- const axisConfig = $computed<ChartAxis>(() => ({
29
- primary: {
30
- type: 'band',
31
- rotate: true,
32
- ticks: 5,
33
- domain: ['dataMin', 'dataMax'],
34
- tickValues:
35
- props.data.length > 100 ? [''] : props.data.map((d: any) => d.date),
36
- },
37
- secondary: {
38
- domain: ['dataMin', 'dataMax * 1.05'],
39
- type: 'linear',
40
- ticks: 8,
41
- },
42
- }))
43
-
44
- // Constants
45
- const BRAND_COLOR = 'var(--bgl-primary)'
46
-
47
- const tooltipConfiguration = {
48
- date: { label: 'תאריך' },
49
- total_value: {
50
- color: BRAND_COLOR,
51
- label: 'סכום',
52
- format: (v: number) => `₪${v.toLocaleString() || ''}`,
53
- },
54
- total_count: {
55
- label: 'מספר התרומות',
56
- format: (v: number) => `${v.toLocaleString() || ''}`,
57
- },
58
- }
59
-
60
- // Refs
61
- let chartSize = $ref<Size | undefined>()
62
- const chartContainer = $ref<HTMLElement>()
63
- const displayMarker = $ref(true)
64
- const chartMargin = $ref({
65
- left: 0,
66
- top: 0,
67
- right: 0,
68
- bottom: 0,
69
- })
70
-
71
- // Functions
72
- function adjustChartSize() {
73
- chartSize = undefined
74
- const el = chartContainer
75
- if (!el) return
76
- const { width, height } = el.getBoundingClientRect()
77
- chartSize = { width: width - 5, height: height - 10 }
78
- // console.log(chartSize)
79
- }
80
-
81
- function handleResize() {
82
- setTimeout(adjustChartSize, 300)
83
- }
84
-
85
- // Lifecycle hooks
86
- onMounted(() => {
87
- adjustChartSize()
88
- window.addEventListener('resize', handleResize)
89
- })
90
-
91
- onUnmounted(() => {
92
- window.removeEventListener('resize', handleResize)
93
- })
94
-
95
- // Style Configurations
96
- function dotStyling(ctx: { [key: string]: any }) {
97
- return {
98
- r: ctx.active ? 5 : 1,
99
- fill: BRAND_COLOR,
100
- }
101
- }
102
- </script>
103
-
104
- <template>
105
- <div
106
- ref="chartContainer"
107
- class="chart-line"
108
- >
109
- <Chart
110
- v-if="chartSize"
111
- :size="chartSize"
112
- :data
113
- :margin="chartMargin"
114
- :axis="axisConfig"
115
- >
116
- <template #layers>
117
- <Grid
118
- :center="true"
119
- strokeDasharray="2,2"
120
- :hideY="true"
121
- />
122
- <Area
123
- aria-label="Profit/Loss"
124
- :dataKeys="['date', 'total_value']"
125
- type="monotone"
126
- :areaStyle="{ fill: 'url(#grad)' }"
127
- />
128
- <Line
129
- :dataKeys="['date', 'total_value']"
130
- type="monotone"
131
- :dotStyle="dotStyling"
132
- :lineStyle="{ stroke: BRAND_COLOR, r: 2 }"
133
- />
134
- <Marker
135
- v-if="displayMarker"
136
- :value="meanValue"
137
- label="ממוצע"
138
- :color="BRAND_COLOR"
139
- :strokeWidth="2"
140
- strokeDasharray="6 6"
141
- />
142
- <defs>
143
- <linearGradient
144
- id="grad"
145
- gradientTransform="rotate(90)"
146
- >
147
- <stop
148
- offset="0%"
149
- :stop-color="BRAND_COLOR"
150
- stop-opacity="1"
151
- />
152
- <stop
153
- offset="100%"
154
- stop-color="white"
155
- stop-opacity="0.4"
156
- />
157
- </linearGradient>
158
- </defs>
159
- </template>
160
- <template #widgets>
161
- <Tooltip
162
- color="white"
163
- :config="tooltipConfiguration"
164
- />
165
- </template>
166
- </Chart>
167
- </div>
168
- </template>
169
-
170
- <style>
171
- .chart-line {
172
- width: 100%;
173
- height: 300px;
174
- }
175
-
176
- [dir="rtl"] .chart-line {
177
- direction: ltr;
178
- }
179
-
180
- .chart-line .v-tooltip-content>div {
181
- border: none !important;
182
- border-radius: 6px !important;
183
- background-color: black !important;
184
- opacity: 0.7;
185
- padding: 0.5rem 1rem !important;
186
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
187
- font-weight: 300;
188
- }
189
-
190
- .chart-line .v-tooltip-content>div b {
191
- font-weight: 400;
192
- }
193
-
194
- .layer-grid g:last-child {
195
- display: none;
196
- }
197
-
198
- .layer-axis-x .tick:nth-child(2n + 1) {
199
- opacity: 0;
200
- }
201
-
202
- @media screen and (max-width: 910px) {
203
- .chart-line {
204
- height: 140px;
205
- }
206
-
207
- .layer-axis-x .tick {
208
- opacity: 0;
209
- font-size: 0;
210
- }
211
- }
212
- </style>
@@ -1 +0,0 @@
1
- export { default as Lineart } from './Lineart.vue'