@onereach/ui-components 25.3.4-beta.5809.0 → 25.3.4-beta.5811.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrDateFormat-tizCaRnI.mjs","sources":["../../../components/or-date-format-v3/src/styles.ts","../../../components/or-date-format-v3/src/OrDateFormat.vue"],"sourcesContent":["export const DateFormat: string[] = [\n // Layout\n 'inline',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"modelValue\">\n {{ formatDate(modelValue, resolvedFormat, resolvedLocale) }}\n </template>\n\n <template v-else>\n {{ placeholder }}\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { useDateFormat, useLocale } from '@onereach/ui-components-common/hooks';\nimport { DateFormat, FormatFunction } from '@onereach/ui-components-common/types';\nimport { DateTimePickerModelValue, formatDate } from '@onereach/ui-components.or-date-time-picker-v3';\nimport { PropType, computed, defineComponent, ref, toRef } from 'vue';\n\nimport * as Styles from './styles';\n\nexport default defineComponent({\n name: 'OrDateFormat',\n\n
|
|
1
|
+
{"version":3,"file":"OrDateFormat-tizCaRnI.mjs","sources":["../../../components/or-date-format-v3/src/styles.ts","../../../components/or-date-format-v3/src/OrDateFormat.vue"],"sourcesContent":["export const DateFormat: string[] = [\n // Layout\n 'inline',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"modelValue\">\n {{ formatDate(modelValue, resolvedFormat, resolvedLocale) }}\n </template>\n\n <template v-else>\n {{ placeholder }}\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { useDateFormat, useLocale } from '@onereach/ui-components-common/hooks';\nimport { DateFormat, FormatFunction } from '@onereach/ui-components-common/types';\nimport { DateTimePickerModelValue, formatDate } from '@onereach/ui-components.or-date-time-picker-v3';\nimport { PropType, computed, defineComponent, ref, toRef } from 'vue';\n\nimport * as Styles from './styles';\n\nexport default defineComponent({\n name: 'OrDateFormat',\n\n model: {\n prop: 'modelValue',\n event: 'update:modelValue',\n },\n\n props: {\n modelValue: {\n type: undefined as unknown as PropType<DateTimePickerModelValue>,\n default: undefined,\n },\n\n format: {\n type: [String, Function] as PropType<`${DateFormat}` | FormatFunction<DateTimePickerModelValue>>,\n default: undefined,\n },\n\n locale: {\n type: String,\n default: undefined,\n },\n\n placeholder: {\n type: String,\n default: undefined,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup(props) {\n // Refs & Styles\n const root = ref<HTMLElement>();\n\n const rootStyles = computed(() => [\n 'or-date-format-v3',\n ...Styles.DateFormat,\n ]);\n\n // Options\n const resolvedFormat = useDateFormat(toRef(props, 'format'));\n const resolvedLocale = useLocale(toRef(props, 'locale'));\n\n return {\n root,\n rootStyles,\n\n resolvedFormat,\n resolvedLocale,\n\n formatDate,\n };\n },\n});\n</script>\n"],"names":["DateFormat","_sfc_main","defineComponent","props","root","ref","rootStyles","computed","Styles.DateFormat","resolvedFormat","useDateFormat","toRef","resolvedLocale","useLocale","formatDate","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_normalizeClass","_toDisplayString","_Fragment"],"mappings":";;;;;AAAO,MAAMA,IAAuB;AAAA;AAAA,EAElC;AACF,GCoBAC,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EAEA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IAEA,QAAQ;AAAA,MACN,MAAM,CAAC,QAAQ,QAAQ;AAAA,MACvB,SAAS;AAAA,IACX;AAAA,IAEA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IAEA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,QAAQ;AAAA,IACN;AAAA,EACF;AAAA,EAEA,MAAMC,GAAO;AAEX,UAAMC,IAAOC,KAEPC,IAAaC,EAAS,MAAM;AAAA,MAChC;AAAA,MACA,GAAGC;AAAAA,IAAO,CACX,GAGKC,IAAiBC,EAAcC,EAAMR,GAAO,QAAQ,CAAC,GACrDS,IAAiBC,EAAUF,EAAMR,GAAO,QAAQ,CAAC;AAEhD,WAAA;AAAA,MACL,MAAAC;AAAA,MACA,YAAAE;AAAA,MAEA,gBAAAG;AAAA,MACA,gBAAAG;AAAA,MAEA,YAAAE;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;SA9ESC,EAAMC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAA;SACNC,EAAY,GAAAC,EAAA,OAAA;AAAA,IAAA,KAAA;AAAA,WAEFC,EAAUR,EAAA,UAAA;AAAA,EAAA,GAAA;AAAA;QAI1BS,EAEWT,EAAA,WAAAA,EAAA,YAAAA,EAAA,gBAAAA,EAAA,cAAA,CAAA,GAAA,CAAA;AAAA,IAAA,GAAA,EAAA,MAAAM,KAAAC,EAAAG,GAAA,EAAA,KAAA,KAAA;AAAA;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "25.3.4-beta.
|
|
3
|
+
"version": "25.3.4-beta.5811.0",
|
|
4
4
|
"description": "Vue components library for v3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@codemirror/view": "^6",
|
|
47
47
|
"@floating-ui/dom": "1.5.3",
|
|
48
48
|
"@lezer/highlight": "*",
|
|
49
|
-
"@onereach/styles": "^25.3.4-beta.
|
|
50
|
-
"@onereach/ui-components-common": "^25.3.4-beta.
|
|
49
|
+
"@onereach/styles": "^25.3.4-beta.5811.0",
|
|
50
|
+
"@onereach/ui-components-common": "^25.3.4-beta.5811.0",
|
|
51
51
|
"@splidejs/splide": "4.0.6",
|
|
52
52
|
"@tiptap/core": "2.0.3",
|
|
53
53
|
"@tiptap/extension-blockquote": "2.0.3",
|