@privyid/persona 0.21.0 → 0.23.0
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/accordion/Accordion.vue +5 -2
- package/dist/components/accordion/AccordionItem.vue +9 -7
- package/dist/components/avatar/Avatar.vue.d.ts +2 -2
- package/dist/components/badge/Badge.vue +21 -3
- package/dist/components/badge/Badge.vue.d.ts +1 -1
- package/dist/components/banner/Banner.vue +5 -0
- package/dist/components/banner/Banner.vue.d.ts +9 -0
- package/dist/components/button/Button.vue +18 -18
- package/dist/components/calendar/Calendar.vue.d.ts +2 -2
- package/dist/components/calendar/adapter/adapter.d.ts +1 -8
- package/dist/components/calendar/adapter/adapter.mjs +0 -10
- package/dist/components/calendar/adapter/date.mjs +2 -2
- package/dist/components/calendar/adapter/month.mjs +2 -2
- package/dist/components/camera/Camera.vue.d.ts +3 -3
- package/dist/components/card/Card.vue.d.ts +1 -1
- package/dist/components/card/CardSection.vue +1 -0
- package/dist/components/card/CardSection.vue.d.ts +1 -1
- package/dist/components/carousel/Carousel.vue.d.ts +8 -8
- package/dist/components/chart/ChartSet.vue.d.ts +2 -2
- package/dist/components/chart/ChartVal.vue.d.ts +4 -4
- package/dist/components/checkbox/Checkbox.vue +98 -112
- package/dist/components/checkbox/icon/IconCheckbox.vue +13 -0
- package/dist/components/checkbox/icon/IconInderteminate.vue +12 -0
- package/dist/components/contextual-bar/ContextualBar.vue +67 -19
- package/dist/components/contextual-bar/ContextualBar.vue.d.ts +4 -4
- package/dist/components/contextual-bar/index.d.ts +1 -1
- package/dist/components/cropper/Cropper.vue.d.ts +10 -10
- package/dist/components/datepicker/Datepicker.vue +2 -0
- package/dist/components/datepicker/Datepicker.vue.d.ts +3 -3
- package/dist/components/dialog/Dialog.vue +2 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/divider/Divider.vue +1 -1
- package/dist/components/dot/Dot.vue.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.vue +303 -222
- package/dist/components/dropdown/DropdownItem.vue +8 -8
- package/dist/components/dropdown-subitem/DropdownSubitem.vue.d.ts +1 -1
- package/dist/components/dropzone/Dropzone.vue.d.ts +5 -5
- package/dist/components/filterbar/pinned/PinnedDate.vue +2 -0
- package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +3 -3
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue +10 -6
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +1 -1
- package/dist/components/filterbar/pinned/PinnedSelect.vue +11 -7
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +4 -4
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +7 -7
- package/dist/components/global/store.d.ts +2 -1
- package/dist/components/input/Input.vue +16 -5
- package/dist/components/input/Input.vue.d.ts +6 -5
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input-file/InputFile.vue.d.ts +5 -5
- package/dist/components/input-pin/InputPin.vue.d.ts +3 -3
- package/dist/components/input-range/InputRange.vue.d.ts +8 -8
- package/dist/components/label/Label.vue +31 -12
- package/dist/components/label/Label.vue.d.ts +2 -2
- package/dist/components/list-group/ListGroup.vue.d.ts +1 -1
- package/dist/components/list-group/ListGroupItem.vue +2 -2
- package/dist/components/main/Main.vue +4 -2
- package/dist/components/markdown/index.d.ts +6 -1
- package/dist/components/markdown/index.mjs +8 -2
- package/dist/components/meta.json +135 -0
- package/dist/components/modal/Modal.vue +215 -12
- package/dist/components/modal/Modal.vue.d.ts +56 -2
- package/dist/components/modal/index.d.ts +1 -1
- package/dist/components/nav/Nav.vue +5 -1
- package/dist/components/nav/Nav.vue.d.ts +1 -1
- package/dist/components/nav/NavItem.vue.d.ts +2 -2
- package/dist/components/nav/NavItemDropdown.vue.d.ts +3 -3
- package/dist/components/nav/NavSubItem.vue +6 -6
- package/dist/components/navbar/Navbar.vue.d.ts +1 -1
- package/dist/components/navbar/NavbarBrand.vue +1 -1
- package/dist/components/pagination/Pagination.vue +9 -0
- package/dist/components/pagination/Pagination.vue.d.ts +10 -0
- package/dist/components/pdf-helipad/PdfHelipad.vue +101 -85
- package/dist/components/pdf-helipad/utils/use-drag.d.ts +2 -7
- package/dist/components/pdf-helipad/utils/use-drag.mjs +1 -1
- package/dist/components/pdf-object/PdfObject.vue.d.ts +3 -3
- package/dist/components/pdf-object/index.d.ts +7 -0
- package/dist/components/pdf-object/utils/use-drag.d.ts +1 -0
- package/dist/components/pdf-object/utils/use-drag.mjs +1 -1
- package/dist/components/pdf-text/PdfText.vue.d.ts +4 -4
- package/dist/components/pdf-viewer/PdfViewer.vue.d.ts +6 -6
- package/dist/components/progress-indicator/ProgressIndicator.vue.d.ts +2 -2
- package/dist/components/progressbar/Progressbar.vue.d.ts +7 -7
- package/dist/components/radio/Radio.vue.d.ts +5 -5
- package/dist/components/ringbar/Ringbar.vue.d.ts +6 -6
- package/dist/components/select/Select.vue +402 -214
- package/dist/components/select/SelectInput.vue +102 -0
- package/dist/components/select/SelectTags.vue +57 -0
- package/dist/components/select/adapter/adapter.d.ts +1 -0
- package/dist/components/select/adapter/async-adapter.d.ts +13 -1
- package/dist/components/select/adapter/async-adapter.mjs +8 -15
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.mjs +4 -1
- package/dist/components/sheet/Sheet.vue +2 -3
- package/dist/components/sidebar/Sidebar.vue +101 -116
- package/dist/components/sidebar/SidebarBrand.vue +1 -1
- package/dist/components/sidebar/SidebarContent.vue +27 -0
- package/dist/components/sidebar/SidebarNav.vue +78 -87
- package/dist/components/sidebar-menu/SidebarMenu.vue +57 -204
- package/dist/components/sidebar-menu/SidebarMenuItem.vue +70 -0
- package/dist/components/signature-text/SignatureText.vue.d.ts +5 -5
- package/dist/components/steps/StepSlider.vue +2 -2
- package/dist/components/steps/Steps.vue.d.ts +2 -2
- package/dist/components/strengthbar/Strengthbar.vue.d.ts +9 -9
- package/dist/components/table/index.d.ts +5 -8
- package/dist/components/table-flex/TableFlex.vue +14 -11
- package/dist/components/table-static/TableStatic.vue +131 -119
- package/dist/components/table-static/TableStaticRoot.vue +42 -0
- package/dist/components/tabs/Tab.vue +13 -15
- package/dist/components/tabs/TabContent.vue +64 -23
- package/dist/components/tabs/Tabs.vue +93 -75
- package/dist/components/text/Text.vue +15 -7
- package/dist/components/text/Text.vue.d.ts +11 -2
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/textarea/Textarea.vue.d.ts +5 -5
- package/dist/components/toggle/Toggle.vue +12 -1
- package/dist/components/toggle/Toggle.vue.d.ts +16 -7
- package/dist/components/tooltip/index.mjs +1 -1
- package/dist/components/tooltip/utils/create-handler.mjs +1 -1
- package/dist/components/tour/TourDialog.vue +6 -0
- package/dist/components/truncate/Truncate.vue +1 -1
- package/dist/components/truncate/Truncate.vue.d.ts +2 -2
- package/dist/components/utils/date.d.ts +21 -0
- package/dist/components/utils/date.mjs +15 -0
- package/dist/components/utils/vnode.mjs +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.mjs +4 -0
- package/dist/module.json +1 -1
- package/package.json +17 -17
- package/dist/components/checkbox/Checkbox.vue.d.ts +0 -84
- package/dist/components/dropdown/Dropdown.vue.d.ts +0 -147
- package/dist/components/pdf-helipad/PdfHelipad.vue.d.ts +0 -45
- package/dist/components/select/Select.vue.d.ts +0 -157
- package/dist/components/sidebar/Sidebar.vue.d.ts +0 -80
- package/dist/components/sidebar/SidebarNav.vue.d.ts +0 -66
- package/dist/components/sidebar-menu/SidebarMenu.vue.d.ts +0 -91
- package/dist/components/tabs/Tab.vue.d.ts +0 -23
- package/dist/components/tabs/TabContent.vue.d.ts +0 -14
- package/dist/components/tabs/Tabs.vue.d.ts +0 -80
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
import { useVModel } from '@vueuse/core'
|
|
21
21
|
import { type AccordionItem, ACCORDION_CONTEXT } from '.'
|
|
22
22
|
import {
|
|
23
|
-
PropType,
|
|
23
|
+
PropType,
|
|
24
|
+
computed,
|
|
25
|
+
provide,
|
|
26
|
+
readonly,
|
|
24
27
|
} from 'vue-demi'
|
|
25
28
|
import Item from './AccordionItem.vue'
|
|
26
29
|
|
|
@@ -54,7 +57,7 @@ const props = defineProps({
|
|
|
54
57
|
})
|
|
55
58
|
|
|
56
59
|
const emit = defineEmits<{
|
|
57
|
-
'update:modelValue': [
|
|
60
|
+
'update:modelValue': [string],
|
|
58
61
|
}>()
|
|
59
62
|
|
|
60
63
|
const modelValue = useVModel(props, 'modelValue', emit, { passive: true })
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
class="accordion__item__activator"
|
|
13
13
|
data-testid="accordion-item-activator"
|
|
14
14
|
@click="toggle">
|
|
15
|
-
<Subheading>
|
|
15
|
+
<Subheading class="accordion__item__title">
|
|
16
16
|
{{ title }}
|
|
17
17
|
</Subheading>
|
|
18
18
|
<slot
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
import { useVModel } from '@vueuse/core'
|
|
45
45
|
import { ACCORDION_CONTEXT, generateId } from '.'
|
|
46
46
|
import {
|
|
47
|
-
computed,
|
|
47
|
+
computed,
|
|
48
|
+
inject,
|
|
49
|
+
watch,
|
|
48
50
|
} from 'vue-demi'
|
|
49
51
|
|
|
50
52
|
import Subheading from '../subheading/Subheading.vue'
|
|
@@ -74,11 +76,11 @@ const props = defineProps({
|
|
|
74
76
|
default: false,
|
|
75
77
|
},
|
|
76
78
|
})
|
|
77
|
-
const emit = defineEmits
|
|
78
|
-
'update:modelValue',
|
|
79
|
-
'expand',
|
|
80
|
-
'collapse',
|
|
81
|
-
|
|
79
|
+
const emit = defineEmits<{
|
|
80
|
+
'update:modelValue': [boolean],
|
|
81
|
+
'expand': [],
|
|
82
|
+
'collapse': [],
|
|
83
|
+
}>()
|
|
82
84
|
|
|
83
85
|
const model = useVModel(props, 'modelValue', emit, { passive: true })
|
|
84
86
|
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
imgClass: {
|
|
25
|
-
type: (StringConstructor |
|
|
25
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
26
26
|
default: undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
@@ -51,7 +51,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
53
|
imgClass: {
|
|
54
|
-
type: (StringConstructor |
|
|
54
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
55
55
|
default: undefined;
|
|
56
56
|
};
|
|
57
57
|
}>> & {
|
|
@@ -51,7 +51,17 @@ export default defineComponent({
|
|
|
51
51
|
--p-color-primary-light: lighten(theme(colors.brand.accent), 40%);
|
|
52
52
|
--p-color-dark-primary-light: darken(theme(colors.dark.brand.accent), 40%);
|
|
53
53
|
|
|
54
|
-
@apply inline-block font-bold text-xs px-2 py-0.5
|
|
54
|
+
@apply inline-block font-bold text-xs px-2 py-0.5 rounded-full space-x-1 align-middle;
|
|
55
|
+
|
|
56
|
+
> .persona-icon,
|
|
57
|
+
> svg {
|
|
58
|
+
@apply inline-block;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:not(&--variant-default&--default) {
|
|
62
|
+
@apply text-state-emphasis;
|
|
63
|
+
@apply dark:text-dark-state-emphasis
|
|
64
|
+
}
|
|
55
65
|
|
|
56
66
|
/**
|
|
57
67
|
* Provide colors variant
|
|
@@ -64,8 +74,16 @@ export default defineComponent({
|
|
|
64
74
|
&--default {
|
|
65
75
|
--p-bg-variant-default: theme(backgroundColor.inverse);
|
|
66
76
|
--p-bg-dark-variant-default: theme(backgroundColor.dark.inverse);
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
|
|
78
|
+
&:not([class^='bg-'], [class*='bg-']) {
|
|
79
|
+
@apply bg-[color:var(--p-bg-variant-default)];
|
|
80
|
+
@apply dark:bg-[color:var(--p-bg-dark-variant-default)];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:not([class^='text-'], [class*='text-']) {
|
|
84
|
+
@apply text-state-emphasis;
|
|
85
|
+
@apply dark:text-dark-state-emphasis dark:text-dark-on-emphasis;
|
|
86
|
+
}
|
|
69
87
|
}
|
|
70
88
|
|
|
71
89
|
&--primary {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
data-testid="banner"
|
|
5
5
|
:class="classNames">
|
|
6
6
|
<div
|
|
7
|
+
v-if="!noIcon"
|
|
7
8
|
class="banner__icon"
|
|
8
9
|
data-testid="banner-icon"
|
|
9
10
|
:class="{ 'banner__icon--custom' : $slots.icon }">
|
|
@@ -53,6 +54,10 @@ export default defineComponent({
|
|
|
53
54
|
dismissable: {
|
|
54
55
|
type: Boolean,
|
|
55
56
|
default: true
|
|
57
|
+
},
|
|
58
|
+
noIcon: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
56
61
|
}
|
|
57
62
|
},
|
|
58
63
|
emits: ["dismissed"],
|
|
@@ -9,6 +9,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
|
+
noIcon: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
12
16
|
}, {
|
|
13
17
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
14
18
|
show: import("vue-demi").Ref<boolean>;
|
|
@@ -23,10 +27,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
23
27
|
type: BooleanConstructor;
|
|
24
28
|
default: boolean;
|
|
25
29
|
};
|
|
30
|
+
noIcon: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
26
34
|
}>> & {
|
|
27
35
|
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
28
36
|
}, {
|
|
29
37
|
variant: StyleVariant;
|
|
30
38
|
dismissable: boolean;
|
|
39
|
+
noIcon: boolean;
|
|
31
40
|
}, {}>;
|
|
32
41
|
export default _default;
|
|
@@ -116,10 +116,10 @@ const tagName = computed(() => {
|
|
|
116
116
|
* Last Update : Nov 21, 2022
|
|
117
117
|
*/
|
|
118
118
|
.btn {
|
|
119
|
-
--p-color-primary-hover: darken(theme(colors.brand.
|
|
120
|
-
--p-color-dark-primary-hover: darken(theme(colors.dark.brand.
|
|
121
|
-
--p-color-primary-focus: darken(theme(colors.brand.
|
|
122
|
-
--p-color-dark-primary-focus: darken(theme(colors.dark.brand.
|
|
119
|
+
--p-color-primary-hover: darken(theme(colors.brand.action), 5%);
|
|
120
|
+
--p-color-dark-primary-hover: darken(theme(colors.dark.brand.action), 5%);
|
|
121
|
+
--p-color-primary-focus: darken(theme(colors.brand.action), 10%);
|
|
122
|
+
--p-color-dark-primary-focus: darken(theme(colors.dark.brand.action), 10%);
|
|
123
123
|
--p-color-info-hover: darken(theme(backgroundColor.info.emphasis), 5%);
|
|
124
124
|
--p-color-dark-info-hover: darken(theme(backgroundColor.dark.info.emphasis), 5%);
|
|
125
125
|
--p-color-info-focus: darken(theme(backgroundColor.info.emphasis), 10%);
|
|
@@ -181,13 +181,13 @@ const tagName = computed(() => {
|
|
|
181
181
|
|
|
182
182
|
&.btn {
|
|
183
183
|
&--default {
|
|
184
|
-
@apply bg-default-alpha focus:bg-subtle-alpha active:bg-subtle-alpha
|
|
185
|
-
@apply dark:bg-dark-default-alpha focus:dark:bg-dark-subtle-alpha active:dark:bg-dark-subtle-alpha
|
|
184
|
+
@apply bg-default-alpha focus:bg-subtle-alpha active:bg-subtle-alpha hover:text-default focus:text-default;
|
|
185
|
+
@apply dark:bg-dark-default-alpha focus:dark:bg-dark-subtle-alpha active:dark:bg-dark-subtle-alpha hover:dark:text-dark-default focus:dark:text-dark-default;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
&--primary {
|
|
189
|
-
@apply bg-brand-
|
|
190
|
-
@apply dark:bg-dark-brand-
|
|
189
|
+
@apply bg-brand-action hover:bg-[color:var(--p-color-primary-hover)] focus:bg-[color:var(--p-color-primary-focus)] active:bg-[color:var(--p-color-primary-focus)];
|
|
190
|
+
@apply dark:bg-dark-brand-action hover:dark:bg-[color:var(--p-color-dark-primary-hover)] focus:dark:bg-[color:var(--p-color-dark-primary-focus)] active:dark:bg-[color:var(--p-color-dark-primary-focus)];
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
&--info {
|
|
@@ -214,8 +214,8 @@ const tagName = computed(() => {
|
|
|
214
214
|
|
|
215
215
|
&&--variant-outline,
|
|
216
216
|
&&--variant-ghost {
|
|
217
|
-
@apply border border-solid text-
|
|
218
|
-
@apply dark:text-dark-
|
|
217
|
+
@apply border border-solid text-default hover:text-default hover:shadow-lg focus:shadow-none active:shadow-none focus:text-default active:text-default;
|
|
218
|
+
@apply dark:text-dark-default hover:dark:text-dark-default focus:dark:text-dark-default active:dark:text-dark-default;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
/**
|
|
@@ -228,13 +228,13 @@ const tagName = computed(() => {
|
|
|
228
228
|
&&--variant-outline {
|
|
229
229
|
&.btn {
|
|
230
230
|
&--default {
|
|
231
|
-
@apply border-default-alpha hover:border-subtle-alpha active:border-subtle-alpha focus:border-subtle-alpha;
|
|
232
|
-
@apply dark:border-dark-default-alpha hover:dark:border-dark-subtle-alpha active:dark:border-dark-subtle-alpha focus:dark:border-dark-subtle-alpha;
|
|
231
|
+
@apply text-default border-default-alpha hover:border-subtle-alpha active:border-subtle-alpha focus:border-subtle-alpha;
|
|
232
|
+
@apply dark:text-dark-default dark:border-dark-default-alpha hover:dark:border-dark-subtle-alpha active:dark:border-dark-subtle-alpha focus:dark:border-dark-subtle-alpha;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
&--primary {
|
|
236
|
-
@apply border-brand-
|
|
237
|
-
@apply dark:border-dark-brand-
|
|
236
|
+
@apply border-brand-action hover:border-[color:var(--p-color-primary-hover)] focus:border-[color:var(--p-color-primary-focus)] active:border-[color:var(--p-color-primary-focus)];
|
|
237
|
+
@apply dark:border-dark-brand-action border-brand-action hover:dark:border-[color:var(--p-color-dark-primary-hover)] focus:dark:border-[color:var(--p-color-dark-primary-focus)] active:dark:border-[color:var(--p-color-dark-primary-focus)];
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
&--info {
|
|
@@ -276,13 +276,13 @@ const tagName = computed(() => {
|
|
|
276
276
|
|
|
277
277
|
&.btn {
|
|
278
278
|
&--default {
|
|
279
|
-
@apply text-
|
|
280
|
-
@apply dark:text-dark-
|
|
279
|
+
@apply text-default hover:text-default focus:text-default active:text-default ;
|
|
280
|
+
@apply dark:text-dark-default hover:dark:text-dark-default focus:dark:text-dark-default active:dark:text-dark-default;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
&--primary {
|
|
284
|
-
@apply text-brand-
|
|
285
|
-
@apply dark:text-dark-brand-
|
|
284
|
+
@apply text-brand-action hover:text-[color:var(--p-color-primary-hover)] focus:text-[color:var(--p-color-primary-focus)] active:text-[color:var(--p-color-primary-focus)];
|
|
285
|
+
@apply dark:text-dark-brand-action hover:dark:text-[color:var(--p-color-dark-primary-hover)] focus:dark:text-[color:var(--p-color-dark-primary-focus)] active:dark:text-[color:var(--p-color-dark-primary-focus)];
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
&--info {
|
|
@@ -179,14 +179,14 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
179
179
|
"onUpdate:start"?: ((...args: any[]) => any) | undefined;
|
|
180
180
|
"onUpdate:end"?: ((...args: any[]) => any) | undefined;
|
|
181
181
|
}, {
|
|
182
|
-
modelValue: Date | [Date, Date];
|
|
183
182
|
start: Date;
|
|
184
|
-
mode: "date" | "month" | "year";
|
|
185
183
|
end: Date;
|
|
186
184
|
min: Date;
|
|
187
185
|
max: Date;
|
|
186
|
+
modelValue: Date | [Date, Date];
|
|
188
187
|
disabled: boolean;
|
|
189
188
|
readonly: boolean;
|
|
189
|
+
mode: "date" | "month" | "year";
|
|
190
190
|
range: boolean;
|
|
191
191
|
minRange: string;
|
|
192
192
|
maxRange: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
|
-
import { Duration } from 'date-fns';
|
|
2
|
+
import { type Duration } from 'date-fns';
|
|
3
3
|
export interface CalendarItem {
|
|
4
4
|
value: Date;
|
|
5
5
|
text: string;
|
|
@@ -27,12 +27,5 @@ export interface CalendarAdapter {
|
|
|
27
27
|
export declare const CalendarFormat: readonly ["date", "month", "year"];
|
|
28
28
|
export type CalendarMode = typeof CalendarFormat[number];
|
|
29
29
|
export declare function defineAdapter(adapter: CalendarAdapter): CalendarAdapter;
|
|
30
|
-
/**
|
|
31
|
-
* Format date using date-fns/format,
|
|
32
|
-
* Automatically switch local following global lang setting.
|
|
33
|
-
* @param date Date
|
|
34
|
-
* @param formatStr date format
|
|
35
|
-
*/
|
|
36
|
-
export declare function formatDate(date: Date, formatStr: string): string;
|
|
37
30
|
export declare function validateDuration(duration?: string): boolean;
|
|
38
31
|
export declare function parseDuration(duration?: string): Duration | undefined;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
format
|
|
3
|
-
} from "date-fns";
|
|
4
|
-
import id from "date-fns/locale/id/index";
|
|
5
|
-
import en from "date-fns/locale/en-US/index";
|
|
6
|
-
import { getLang } from "../../global/store.mjs";
|
|
7
1
|
import { chunk } from "lodash-es";
|
|
8
|
-
const localePacks = { en, id };
|
|
9
2
|
export const CalendarFormat = [
|
|
10
3
|
"date",
|
|
11
4
|
"month",
|
|
@@ -14,9 +7,6 @@ export const CalendarFormat = [
|
|
|
14
7
|
export function defineAdapter(adapter) {
|
|
15
8
|
return adapter;
|
|
16
9
|
}
|
|
17
|
-
export function formatDate(date, formatStr) {
|
|
18
|
-
return format(date, formatStr, { locale: localePacks[getLang()] });
|
|
19
|
-
}
|
|
20
10
|
const DURATION_SUFFIX = {
|
|
21
11
|
Y: "years",
|
|
22
12
|
y: "years",
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
isWithinInterval
|
|
14
14
|
} from "date-fns";
|
|
15
15
|
import {
|
|
16
|
-
defineAdapter
|
|
17
|
-
formatDate
|
|
16
|
+
defineAdapter
|
|
18
17
|
} from "./adapter.mjs";
|
|
18
|
+
import { formatDate } from "../../utils/date.mjs";
|
|
19
19
|
function getInterval(date) {
|
|
20
20
|
const start = startOfWeek(startOfMonth(date), { weekStartsOn: 1 });
|
|
21
21
|
const end = endOfWeek(endOfMonth(date), { weekStartsOn: 1 });
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
subYears
|
|
11
11
|
} from "date-fns";
|
|
12
12
|
import {
|
|
13
|
-
defineAdapter
|
|
14
|
-
formatDate
|
|
13
|
+
defineAdapter
|
|
15
14
|
} from "./adapter.mjs";
|
|
15
|
+
import { formatDate } from "../../utils/date.mjs";
|
|
16
16
|
function getInterval(date) {
|
|
17
17
|
const start = startOfYear(date);
|
|
18
18
|
const end = endOfYear(date);
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
49
49
|
toast: (text: string) => void;
|
|
50
50
|
deviceId: ComputedRef<string | undefined>;
|
|
51
51
|
constraints: ComputedRef<MediaStreamConstraints>;
|
|
52
|
-
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("change" | "
|
|
52
|
+
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("change" | "start" | "update:modelValue" | "result")[], "change" | "start" | "update:modelValue" | "result", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
53
53
|
modelValue: {
|
|
54
54
|
type: PropType<string | string[] | File | File[]>;
|
|
55
55
|
default: string;
|
|
@@ -81,13 +81,13 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
81
81
|
}>> & {
|
|
82
82
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
84
|
-
onResult?: ((...args: any[]) => any) | undefined;
|
|
85
84
|
onStart?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
onResult?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
}, {
|
|
87
|
+
modelValue: string | string[] | File | File[];
|
|
87
88
|
facingMode: ConstrainDOMString;
|
|
88
89
|
mask: MaskVariant;
|
|
89
90
|
mirror: boolean | "preview" | "all";
|
|
90
|
-
modelValue: string | string[] | File | File[];
|
|
91
91
|
modelModifiers: ModelModifier;
|
|
92
92
|
adapter: Adapter;
|
|
93
93
|
silent: boolean;
|
|
@@ -67,8 +67,8 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
67
67
|
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
dismissable: boolean;
|
|
70
|
-
title: string;
|
|
71
70
|
disabled: boolean;
|
|
71
|
+
title: string;
|
|
72
72
|
element: ElementVariant;
|
|
73
73
|
sectioned: boolean;
|
|
74
74
|
callout: boolean;
|
|
@@ -17,11 +17,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
width: {
|
|
20
|
-
type: (
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
height: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
loop: {
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
autoplayInterval: {
|
|
36
|
-
type: (
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
37
|
default: number;
|
|
38
38
|
};
|
|
39
39
|
splideOptions: {
|
|
@@ -66,11 +66,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
66
66
|
default: string;
|
|
67
67
|
};
|
|
68
68
|
width: {
|
|
69
|
-
type: (
|
|
69
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
70
70
|
default: string;
|
|
71
71
|
};
|
|
72
72
|
height: {
|
|
73
|
-
type: (
|
|
73
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
74
74
|
default: string;
|
|
75
75
|
};
|
|
76
76
|
loop: {
|
|
@@ -82,7 +82,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
82
82
|
default: boolean;
|
|
83
83
|
};
|
|
84
84
|
autoplayInterval: {
|
|
85
|
-
type: (
|
|
85
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
86
86
|
default: number;
|
|
87
87
|
};
|
|
88
88
|
splideOptions: {
|
|
@@ -98,11 +98,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
98
98
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
modelValue: number;
|
|
101
|
-
direction: DirectionVariant;
|
|
102
101
|
align: AlignmentVariant;
|
|
103
102
|
width: string | number;
|
|
104
|
-
height: string | number;
|
|
105
103
|
loop: boolean;
|
|
104
|
+
height: string | number;
|
|
105
|
+
direction: DirectionVariant;
|
|
106
106
|
autoplay: boolean;
|
|
107
107
|
autoplayInterval: string | number;
|
|
108
108
|
splideOptions: Options;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
2
2
|
name: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
}, unknown, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
7
7
|
name: {
|
|
8
|
-
type: (
|
|
8
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
}>>, {}, {}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
2
2
|
name: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
value: {
|
|
7
|
-
type: (
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
color: {
|
|
@@ -13,11 +13,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
13
13
|
};
|
|
14
14
|
}, unknown, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
15
15
|
name: {
|
|
16
|
-
type: (
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
19
|
value: {
|
|
20
|
-
type: (
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
21
|
required: true;
|
|
22
22
|
};
|
|
23
23
|
color: {
|