yuyeon 0.2.3-rc.2 → 0.2.3-rc.20

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 (108) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.js +3271 -3162
  3. package/dist/yuyeon.umd.cjs +3 -3
  4. package/lib/components/button/YButton.mjs +1 -0
  5. package/lib/components/button/YButton.mjs.map +1 -1
  6. package/lib/components/button/YButton.scss +9 -0
  7. package/lib/components/dialog/YDialog.mjs +2 -1
  8. package/lib/components/dialog/YDialog.mjs.map +1 -1
  9. package/lib/components/dropdown/YDropdown.mjs +9 -3
  10. package/lib/components/dropdown/YDropdown.mjs.map +1 -1
  11. package/lib/components/field-input/YFieldInput.mjs +7 -3
  12. package/lib/components/field-input/YFieldInput.mjs.map +1 -1
  13. package/lib/components/index.mjs +1 -0
  14. package/lib/components/index.mjs.map +1 -1
  15. package/lib/components/input/YInput.mjs +10 -3
  16. package/lib/components/input/YInput.mjs.map +1 -1
  17. package/lib/components/layer/YLayer.mjs +21 -17
  18. package/lib/components/layer/YLayer.mjs.map +1 -1
  19. package/lib/components/layer/base.mjs +2 -1
  20. package/lib/components/layer/base.mjs.map +1 -1
  21. package/lib/components/select/YSelect.mjs +124 -118
  22. package/lib/components/select/YSelect.mjs.map +1 -1
  23. package/lib/components/table/YDataTableBody.mjs +39 -14
  24. package/lib/components/table/YDataTableBody.mjs.map +1 -1
  25. package/lib/components/table/YDataTableCell.mjs +8 -4
  26. package/lib/components/table/YDataTableCell.mjs.map +1 -1
  27. package/lib/components/table/YDataTableHead.mjs +23 -11
  28. package/lib/components/table/YDataTableHead.mjs.map +1 -1
  29. package/lib/components/table/YDataTableRow.mjs +43 -15
  30. package/lib/components/table/YDataTableRow.mjs.map +1 -1
  31. package/lib/components/table/YDataTableServer.mjs +3 -1
  32. package/lib/components/table/YDataTableServer.mjs.map +1 -1
  33. package/lib/components/table/composibles/header.mjs +14 -4
  34. package/lib/components/table/composibles/header.mjs.map +1 -1
  35. package/lib/components/table/composibles/pagination.mjs +2 -2
  36. package/lib/components/table/composibles/pagination.mjs.map +1 -1
  37. package/lib/components/table/types/header.mjs.map +1 -1
  38. package/lib/components/table/types/index.mjs.map +1 -1
  39. package/lib/components/tooltip/YTooltip.mjs +4 -4
  40. package/lib/components/tooltip/YTooltip.mjs.map +1 -1
  41. package/lib/composables/layer-group.mjs +4 -4
  42. package/lib/composables/layer-group.mjs.map +1 -1
  43. package/lib/directives/plate-wave/index.mjs +4 -1
  44. package/lib/directives/plate-wave/index.mjs.map +1 -1
  45. package/lib/i18n/built-in.mjs +2 -2
  46. package/lib/i18n/built-in.mjs.map +1 -1
  47. package/lib/index.mjs.map +1 -1
  48. package/lib/util/component/component.mjs +4 -0
  49. package/lib/util/component/component.mjs.map +1 -1
  50. package/package.json +120 -117
  51. package/types/components/checkbox/YCheckbox.d.ts +1 -1
  52. package/types/components/checkbox/YInputCheckbox.d.ts +2 -2
  53. package/types/components/date-picker/YDateCalendar.d.ts +5 -5
  54. package/types/components/dialog/YDialog.d.ts +4938 -28
  55. package/types/components/draggable/YDraggable.d.ts +8 -8
  56. package/types/components/dropdown/YDropdown.d.ts +17 -11
  57. package/types/components/field-input/YFieldInput.d.ts +3 -3
  58. package/types/components/icons/YIconCheckbox.d.ts +1 -1
  59. package/types/components/icons/YIconPageControl.d.ts +1 -1
  60. package/types/components/icons/YIconSort.d.ts +1 -1
  61. package/types/components/icons/index.d.ts +5 -5
  62. package/types/components/index.d.ts +1 -0
  63. package/types/components/input/YInput.d.ts +1 -1
  64. package/types/components/layer/YLayer.d.ts +1610 -11
  65. package/types/components/layer/active-stack.d.ts +1 -1
  66. package/types/components/layer/base.d.ts +9 -3
  67. package/types/components/menu/YMenu.d.ts +4916 -11
  68. package/types/components/pagination/YPagination.d.ts +3 -3
  69. package/types/components/panel/YDividePanel.d.ts +2 -2
  70. package/types/components/progress-bar/YProgressBar.d.ts +1 -1
  71. package/types/components/select/YSelect.d.ts +129 -98
  72. package/types/components/snackbar/YSnackbar.d.ts +11 -5
  73. package/types/components/tab/YTabs.d.ts +1 -1
  74. package/types/components/table/YDataTable.d.ts +19 -7
  75. package/types/components/table/YDataTableBody.d.ts +13 -1
  76. package/types/components/table/YDataTableCell.d.ts +5 -1
  77. package/types/components/table/YDataTableRow.d.ts +24 -12
  78. package/types/components/table/YDataTableServer.d.ts +19 -7
  79. package/types/components/table/composibles/header.d.ts +50 -10
  80. package/types/components/table/composibles/measure.d.ts +6 -6
  81. package/types/components/table/composibles/pagination.d.ts +8 -8
  82. package/types/components/table/composibles/sorting.d.ts +3 -3
  83. package/types/components/table/types/header.d.ts +2 -1
  84. package/types/components/table/types/index.d.ts +1 -0
  85. package/types/components/text-highlighter/YTextHighlighter.d.ts +1 -1
  86. package/types/components/textarea/YTextarea.d.ts +95 -5
  87. package/types/components/tooltip/YTooltip.d.ts +10 -6
  88. package/types/components/transitions/expand-transition.d.ts +5 -5
  89. package/types/components/transitions/index.d.ts +10 -10
  90. package/types/components/tree-view/YTreeView.d.ts +13 -13
  91. package/types/components/tree-view/YTreeViewNode.d.ts +4 -4
  92. package/types/composables/communication.d.ts +2 -2
  93. package/types/composables/coordinate/index.d.ts +1599 -6
  94. package/types/composables/defaults/index.d.ts +3 -3
  95. package/types/composables/focus.d.ts +1 -1
  96. package/types/composables/form.d.ts +17 -2
  97. package/types/composables/layer-group.d.ts +4 -2
  98. package/types/composables/progress.d.ts +1 -1
  99. package/types/composables/ref.d.ts +1 -1
  100. package/types/composables/resize-observer.d.ts +11 -1
  101. package/types/composables/theme/index.d.ts +7 -7
  102. package/types/composables/timing.d.ts +3 -3
  103. package/types/composables/validation.d.ts +3 -3
  104. package/types/mixins/di.d.ts +1 -1
  105. package/types/mixins/rebind-attrs.d.ts +1 -1
  106. package/types/shims.d.ts +2 -1
  107. package/types/util/anchor.d.ts +1 -1
  108. package/types/util/component/component.d.ts +3 -2
package/lib/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["getCurrentInstance","nextTick","reactive","allComponents","YUYEON_DATE_KEY","YUYEON_DATE_OPTIONS_KEY","createDateModule","createDefaultsModule","YUYEON_DEFAULTS_KEY","createI18nModule","YUYEON_I18N_KEY","YUYEON_ICON_KEY","createIconModule","YUYEON_THEME_KEY","createThemeModule","useTheme","PlateWave","YUYEON_LOGO","defaultOptions","credit","init","options","arguments","length","undefined","defaultsModule","defaults","themeModule","theme","i18nModule","i18n","dateModule","date","localeModule","iconModule","icon","components","install","app","yuyeon","root","instance","rtlModule","Object","keys","forEach","componentName","comp","component","directive","provide","config","globalProperties","$yuyeon","_container","_instance","classList","add","setAttribute","console","log","unmount","mount","vm","scope","stop","useYuyeon","Error","appContext"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Component, ComponentInternalInstance } from 'vue';\r\nimport { getCurrentInstance, nextTick, reactive } from 'vue';\r\nimport * as allComponents from '@/components/';\r\n\r\nimport {\r\n YUYEON_DATE_KEY,\r\n YUYEON_DATE_OPTIONS_KEY,\r\n createDateModule,\r\n} from '@/composables/date';\r\nimport { createDefaultsModule } from '@/composables/defaults';\r\nimport { YUYEON_DEFAULTS_KEY } from '@/composables/defaults/share';\r\nimport { createI18nModule } from '@/composables/i18n';\r\nimport { YUYEON_I18N_KEY } from '@/composables/i18n/share';\r\nimport { YUYEON_ICON_KEY, createIconModule } from '@/composables/icon';\r\nimport {\r\n YUYEON_THEME_KEY,\r\n createThemeModule,\r\n useTheme,\r\n} from '@/composables/theme';\r\nimport PlateWave from '@/directives/plate-wave';\r\nimport { YUYEON_LOGO } from '@/etc';\r\n\r\nimport './styles/base.scss';\r\n\r\nconst defaultOptions = {\r\n credit: true,\r\n};\r\n\r\ndeclare module 'vue' {\r\n interface ComponentCustomProperties {\r\n $yuyeon: any;\r\n }\r\n}\r\n\r\nexport function init(options: any = defaultOptions) {\r\n const defaultsModule = createDefaultsModule(options?.defaults);\r\n const themeModule = createThemeModule(options?.theme);\r\n const i18nModule = createI18nModule(options?.i18n);\r\n const dateModule = createDateModule(options?.date, i18nModule.localeModule);\r\n const iconModule = createIconModule(options?.icon);\r\n const components = options?.components ?? allComponents;\r\n\r\n const install = (app: App) => {\r\n themeModule.install(app);\r\n\r\n const yuyeon = reactive({\r\n app: null as ComponentInternalInstance | null,\r\n root: null as HTMLElement | null,\r\n theme: themeModule.instance,\r\n i18n: {\r\n ...i18nModule.localeModule,\r\n ...i18nModule.rtlModule,\r\n },\r\n date: dateModule,\r\n defaults: defaultsModule,\r\n });\r\n\r\n Object.keys(components).forEach((componentName) => {\r\n const comp = components[componentName as keyof typeof components];\r\n if (typeof comp === 'object' && 'name' in comp)\r\n app.component(componentName, comp as Component);\r\n });\r\n\r\n app.directive('plate-wave', PlateWave);\r\n\r\n app.provide(YUYEON_DEFAULTS_KEY, defaultsModule);\r\n app.provide(YUYEON_THEME_KEY, themeModule.instance);\r\n app.provide(YUYEON_ICON_KEY, iconModule);\r\n app.provide(YUYEON_I18N_KEY, {\r\n ...i18nModule.localeModule,\r\n ...i18nModule.rtlModule,\r\n });\r\n app.provide(YUYEON_DATE_OPTIONS_KEY, dateModule.options);\r\n app.provide(YUYEON_DATE_KEY, dateModule.instance);\r\n\r\n app.config.globalProperties.$yuyeon = yuyeon;\r\n\r\n nextTick(() => {\r\n yuyeon.root = app._container;\r\n yuyeon.app = app._instance as any;\r\n if (yuyeon.root) {\r\n yuyeon.root.classList.add('y-root');\r\n yuyeon.root.setAttribute('data-y-root', '');\r\n themeModule.init(yuyeon);\r\n }\r\n });\r\n\r\n if (options?.credit) {\r\n console.log(YUYEON_LOGO);\r\n }\r\n const { unmount, mount } = app;\r\n app.mount = (...args) => {\r\n const vm = mount(...args);\r\n if (!yuyeon.app) {\r\n yuyeon.app = app._instance as any;\r\n }\r\n if (!yuyeon.root) {\r\n nextTick(() => {\r\n yuyeon.root = app._container;\r\n if (yuyeon.root) {\r\n yuyeon.root.classList.add('y-root');\r\n yuyeon.root.setAttribute('data-y-root', '');\r\n themeModule.init(yuyeon);\r\n }\r\n });\r\n }\r\n app.mount = mount;\r\n return vm;\r\n };\r\n app.unmount = () => {\r\n unmount();\r\n themeModule.scope.stop();\r\n app.unmount = unmount;\r\n };\r\n };\r\n\r\n return {\r\n install,\r\n };\r\n}\r\n\r\nexport function useYuyeon() {\r\n const vm = getCurrentInstance();\r\n if (!vm) throw new Error('[yuyeon] Called outside of setup context');\r\n\r\n return vm.appContext.config.globalProperties.$yuyeon;\r\n}\r\n\r\nexport { useTheme };\r\n"],"mappings":"AACA,SAASA,kBAAkB,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAC,OACtD,KAAKC,aAAa;AAAA,SAGvBC,eAAe,EACfC,uBAAuB,EACvBC,gBAAgB;AAAA,SAETC,oBAAoB;AAAA,SACpBC,mBAAmB;AAAA,SACnBC,gBAAgB;AAAA,SAChBC,eAAe;AAAA,SACfC,eAAe,EAAEC,gBAAgB;AAAA,SAExCC,gBAAgB,EAChBC,iBAAiB,EACjBC,QAAQ;AAAA,OAEHC,SAAS;AAAA,SACPC,WAAW;AAEpB;AAEA,MAAMC,cAAc,GAAG;EACrBC,MAAM,EAAE;AACV,CAAC;AAQD,OAAO,SAASC,IAAIA,CAAA,EAAgC;EAAA,IAA/BC,OAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGJ,cAAc;EAChD,MAAMO,cAAc,GAAGlB,oBAAoB,CAACc,OAAO,EAAEK,QAAQ,CAAC;EAC9D,MAAMC,WAAW,GAAGb,iBAAiB,CAACO,OAAO,EAAEO,KAAK,CAAC;EACrD,MAAMC,UAAU,GAAGpB,gBAAgB,CAACY,OAAO,EAAES,IAAI,CAAC;EAClD,MAAMC,UAAU,GAAGzB,gBAAgB,CAACe,OAAO,EAAEW,IAAI,EAAEH,UAAU,CAACI,YAAY,CAAC;EAC3E,MAAMC,UAAU,GAAGtB,gBAAgB,CAACS,OAAO,EAA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ACjB,OAAOC,EAAE;IACX,CAAC;IACDzB,GAAG,CAACuB,OAAO,GAAG,MAAM;MAClBA,OAAO,CAAC,CAAC;MACTlC,WAAW,CAACqC,KAAK,CAACC,IAAI,CAAC,CAAC;MACxB3B,GAAG,CAACuB,OAAO,GAAGA,OAAO;IACvB,CAAC;EACH,CAAC;EAED,OAAO;IACLxB;EACF,CAAC;AACH;AAEA,OAAO,SAAS6B,SAASA,CAAA,EAAG;EAC1B,MAAMH,EAAE,GAAG/D,kBAAkB,CAAC,CAAC;EAC/B,IAAI,CAAC+D,EAAE,EAAE,MAAM,IAAII,KAAK,CAAC,0CAA0C,CAAC;EAEpE,OAAOJ,EAAE,CAACK,UAAU,CAACjB,MAAM,CAACC,gBAAgB,CAACC,OAAO;AACtD;AAEA,SAAStC,QAAQ"}
1
+ {"version":3,"file":"index.mjs","names":["getCurrentInstance","nextTick","reactive","allComponents","YUYEON_DATE_KEY","YUYEON_DATE_OPTIONS_KEY","createDateModule","createDefaultsModule","YUYEON_DEFAULTS_KEY","createI18nModule","YUYEON_I18N_KEY","YUYEON_ICON_KEY","createIconModule","YUYEON_THEME_KEY","createThemeModule","useTheme","PlateWave","YUYEON_LOGO","defaultOptions","credit","init","options","arguments","length","undefined","defaultsModule","defaults","themeModule","theme","i18nModule","i18n","dateModule","date","localeModule","iconModule","icon","components","install","app","yuyeon","root","instance","rtlModule","Object","keys","forEach","componentName","comp","component","directive","provide","config","globalProperties","$yuyeon","_container","_instance","classList","add","setAttribute","console","log","unmount","mount","vm","scope","stop","useYuyeon","Error","appContext"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Component, ComponentInternalInstance } from 'vue';\nimport { getCurrentInstance, nextTick, reactive } from 'vue';\n\nimport * as allComponents from '@/components/';\nimport {\n YUYEON_DATE_KEY,\n YUYEON_DATE_OPTIONS_KEY,\n createDateModule,\n} from '@/composables/date';\nimport { createDefaultsModule } from '@/composables/defaults';\nimport { YUYEON_DEFAULTS_KEY } from '@/composables/defaults/share';\nimport { createI18nModule } from '@/composables/i18n';\nimport { YUYEON_I18N_KEY } from '@/composables/i18n/share';\nimport { YUYEON_ICON_KEY, createIconModule } from '@/composables/icon';\nimport {\n YUYEON_THEME_KEY,\n createThemeModule,\n useTheme,\n} from '@/composables/theme';\nimport PlateWave from '@/directives/plate-wave';\nimport { YUYEON_LOGO } from '@/etc';\n\nimport './styles/base.scss';\n\nconst defaultOptions = {\n credit: true,\n};\n\ndeclare module 'vue' {\n interface ComponentCustomProperties {\n $yuyeon: any;\n }\n}\n\nexport function init(options: any = defaultOptions) {\n const defaultsModule = createDefaultsModule(options?.defaults);\n const themeModule = createThemeModule(options?.theme);\n const i18nModule = createI18nModule(options?.i18n);\n const dateModule = createDateModule(options?.date, i18nModule.localeModule);\n const iconModule = createIconModule(options?.icon);\n const components = options?.components ?? allComponents;\n\n const install = (app: App) => {\n themeModule.install(app);\n\n const yuyeon = reactive({\n app: null as ComponentInternalInstance | null,\n root: null as HTMLElement | null,\n theme: themeModule.instance,\n i18n: {\n ...i18nModule.localeModule,\n ...i18nModule.rtlModule,\n },\n date: dateModule,\n defaults: defaultsModule,\n });\n\n Object.keys(components).forEach((componentName) => {\n const comp = components[componentName as keyof typeof components];\n if (typeof comp === 'object' && 'name' in comp)\n app.component(componentName, comp as Component);\n });\n\n app.directive('plate-wave', PlateWave);\n\n app.provide(YUYEON_DEFAULTS_KEY, defaultsModule);\n app.provide(YUYEON_THEME_KEY, themeModule.instance);\n app.provide(YUYEON_ICON_KEY, iconModule);\n app.provide(YUYEON_I18N_KEY, {\n ...i18nModule.localeModule,\n ...i18nModule.rtlModule,\n });\n app.provide(YUYEON_DATE_OPTIONS_KEY, dateModule.options);\n app.provide(YUYEON_DATE_KEY, dateModule.instance);\n\n app.config.globalProperties.$yuyeon = yuyeon;\n\n nextTick(() => {\n yuyeon.root = app._container;\n yuyeon.app = app._instance as any;\n if (yuyeon.root) {\n yuyeon.root.classList.add('y-root');\n yuyeon.root.setAttribute('data-y-root', '');\n themeModule.init(yuyeon);\n }\n });\n\n if (options?.credit) {\n console.log(YUYEON_LOGO);\n }\n const { unmount, mount } = app;\n app.mount = (...args) => {\n const vm = mount(...args);\n if (!yuyeon.app) {\n yuyeon.app = app._instance as any;\n }\n if (!yuyeon.root) {\n nextTick(() => {\n yuyeon.root = app._container;\n if (yuyeon.root) {\n yuyeon.root.classList.add('y-root');\n yuyeon.root.setAttribute('data-y-root', '');\n themeModule.init(yuyeon);\n }\n });\n }\n app.mount = mount;\n return vm;\n };\n app.unmount = () => {\n unmount();\n themeModule.scope.stop();\n app.unmount = unmount;\n };\n };\n\n return {\n install,\n };\n}\n\nexport function useYuyeon() {\n const vm = getCurrentInstance();\n if (!vm) throw new Error('[yuyeon] Called outside of setup context');\n\n return vm.appContext.config.globalProperties.$yuyeon;\n}\n\nexport { useTheme };\n"],"mappings":"AACA,SAASA,kBAAkB,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAC,OAEtD,KAAKC,aAAa;AAAA,SAEvBC,eAAe,EACfC,uBAAuB,EACvBC,gBAAgB;AAAA,SAETC,oBAAoB;AAAA,SACpBC,mBAAmB;AAAA,SACnBC,gBAAgB;AAAA,SAChBC,eAAe;AAAA,SACfC,eAAe,EAAEC,gBAAgB;AAAA,SAExCC,gBAAgB,EAChBC,iBAAiB,EACjBC,QAAQ;AAAA,OAEHC,SAAS;AAAA,SACPC,WAAW;AAEpB;AAEA,MAAMC,cAAc,GAAG;EACrBC,MAAM,EAAE;AACV,CAAC;AAQD,OAAO,SAASC,IAAIA,CAAA,EAAgC;EAAA,IAA/BC,OAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGJ,cAAc;EAChD,MAAMO,cAAc,GAAGlB,oBAAoB,CAACc,OAAO,EAAEK,QAAQ,CAAC;EAC9D,MAAMC,WAAW,GAAGb,iBAAiB,CAACO,OAAO,EAAEO,KAAK,CAAC;EACrD,MAAMC,UAAU,G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CAAC;YACnClB,MAAM,CAACC,IAAI,CAACkB,YAAY,CAAC,aAAa,EAAE,EAAE,CAAC;YAC3C/B,WAAW,CAACP,IAAI,CAACmB,MAAM,CAAC;UAC1B;QACF,CAAC,CAAC;MACJ;MACAD,GAAG,CAACwB,KAAK,GAAGA,KAAK;MACjB,OAAOC,EAAE;IACX,CAAC;IACDzB,GAAG,CAACuB,OAAO,GAAG,MAAM;MAClBA,OAAO,CAAC,CAAC;MACTlC,WAAW,CAACqC,KAAK,CAACC,IAAI,CAAC,CAAC;MACxB3B,GAAG,CAACuB,OAAO,GAAGA,OAAO;IACvB,CAAC;EACH,CAAC;EAED,OAAO;IACLxB;EACF,CAAC;AACH;AAEA,OAAO,SAAS6B,SAASA,CAAA,EAAG;EAC1B,MAAMH,EAAE,GAAG/D,kBAAkB,CAAC,CAAC;EAC/B,IAAI,CAAC+D,EAAE,EAAE,MAAM,IAAII,KAAK,CAAC,0CAA0C,CAAC;EAEpE,OAAOJ,EAAE,CAACK,UAAU,CAACjB,MAAM,CAACC,gBAAgB,CAACC,OAAO;AACtD;AAEA,SAAStC,QAAQ"}
@@ -18,5 +18,9 @@ function redefineComponent(options) {
18
18
  }
19
19
  return options;
20
20
  }
21
+ function defineFunctionalComponent(props, context) {
22
+ context.props = props;
23
+ return context;
24
+ }
21
25
  export { redefineComponent as defineComponent };
22
26
  //# sourceMappingURL=component.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.mjs","names":["useDefaultsModule","useSuperDefaults","redefineComponent","options","_setup","setup","props","ctx","defaults","value","_props","provideSubDefaults","name","setupBindings","defineComponent"],"sources":["../../../src/util/component/component.ts"],"sourcesContent":["import { ComponentOptionsWithObjectProps, ComponentOptionsWithoutProps, defineComponent } from 'vue';\r\nimport type {\r\n Component,\r\n ComponentInjectOptions,\r\n ComponentOptions,\r\n ComponentOptionsMixin,\r\n ComponentPropsOptions,\r\n ComponentProvideOptions,\r\n ComputedOptions,\r\n DefineComponent,\r\n Directive,\r\n EmitsOptions,\r\n MethodOptions,\r\n SlotsType,\r\n} from 'vue';\r\n\r\nimport {\r\n useDefaultsModule,\r\n useSuperDefaults,\r\n} from '../../composables/defaults';\r\nimport { EmitsToProps } from './types';\r\n\r\ntype ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> &\r\n Readonly<EmitsToProps<Emits>>;\r\n\r\n// overload 1: no props from options\r\nfunction redefineComponent<\r\n // props\r\n PropsOptions = {},\r\n //\r\n RawBindings = {},\r\n // emits\r\n E extends EmitsOptions = {},\r\n EE extends string = string,\r\n // other options\r\n Data = {},\r\n SetupBindings = {},\r\n Computed extends ComputedOptions = {},\r\n Methods extends MethodOptions = {},\r\n Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,\r\n Extends extends ComponentOptionsMixin = ComponentOptionsMixin,\r\n InjectOptions extends ComponentInjectOptions = {},\r\n InjectKeys extends string = string,\r\n Slots extends SlotsType = {},\r\n LocalComponents extends Record<string, Component> = {},\r\n Directives extends Record<string, Directive> = {},\r\n Exposed extends string = string,\r\n Provide extends ComponentProvideOptions = ComponentProvideOptions,\r\n>(\r\n options: ComponentOptionsWithoutProps<\r\n PropsOptions,\r\n RawBindings,\r\n Data,\r\n Computed,\r\n Methods,\r\n Mixin,\r\n Extends,\r\n E,\r\n EE,\r\n InjectOptions,\r\n InjectKeys,\r\n Slots\r\n >,\r\n): DefineComponent<\r\n PropsOptions,\r\n RawBindings,\r\n Data,\r\n Computed,\r\n Methods,\r\n Mixin,\r\n Extends,\r\n E,\r\n EE\r\n>;\r\n\r\n\r\n// overload 2: defineComponent with options object, infer props from options\r\nfunction redefineComponent<\r\n // props\r\n PropsOptions extends Readonly<ComponentPropsOptions>,\r\n //\r\n RawBindings,\r\n // emits\r\n E extends EmitsOptions = {},\r\n EE extends string = string,\r\n // other options\r\n Data = {},\r\n SetupBindings = {},\r\n Computed extends ComputedOptions = {},\r\n Methods extends MethodOptions = {},\r\n Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,\r\n Extends extends ComponentOptionsMixin = ComponentOptionsMixin,\r\n InjectOptions extends ComponentInjectOptions = {},\r\n InjectKeys extends string = string,\r\n Slots extends SlotsType = {},\r\n LocalComponents extends Record<string, Component> = {},\r\n Directives extends Record<string, Directive> = {},\r\n Exposed extends string = string,\r\n Provide extends ComponentProvideOptions = ComponentProvideOptions,\r\n>(\r\n options: ComponentOptionsWithObjectProps<\r\n PropsOptions,\r\n RawBindings,\r\n Data,\r\n Computed,\r\n Methods,\r\n Mixin,\r\n Extends,\r\n E,\r\n EE,\r\n InjectOptions,\r\n InjectKeys,\r\n Slots\r\n >,\r\n): DefineComponent<\r\n PropsOptions,\r\n RawBindings,\r\n Data,\r\n Computed,\r\n Methods,\r\n Mixin,\r\n Extends,\r\n E,\r\n EE\r\n>;\r\n\r\nfunction redefineComponent(options: ComponentOptions) {\r\n options._setup = options._setup ?? options.setup;\r\n\r\n if (options._setup) {\r\n options.setup = function (props, ctx) {\r\n const defaults = useDefaultsModule();\r\n // Skip props proxy if defaults are not provided\r\n if (!defaults.value) return options._setup(props, ctx);\r\n\r\n const { props: _props, provideSubDefaults } = useSuperDefaults(\r\n props,\r\n options.name,\r\n defaults,\r\n );\r\n\r\n const setupBindings = options._setup(_props, ctx);\r\n\r\n provideSubDefaults();\r\n\r\n return setupBindings;\r\n };\r\n }\r\n\r\n return options;\r\n}\r\n\r\nexport { redefineComponent as defineComponent };\r\n"],"mappings":"SAiBEA,iBAAiB,EACjBC,gBAAgB,gDAOlB;AAmDA;AAkDA,SAASC,iBAAiBA,CAACC,OAAyB,EAAE;EACpDA,OAAO,CAACC,MAAM,GAAGD,OAAO,CAACC,MAAM,IAAID,OAAO,CAACE,KAAK;EAEhD,IAAIF,OAAO,CAACC,MAAM,EAAE;IAClBD,OAAO,CAACE,KAAK,GAAG,UAAUC,KAAK,EAAEC,GAAG,EAAE;MACpC,MAAMC,QAAQ,GAAGR,iBAAiB,CAAC,CAAC;MACpC;MACA,IAAI,CAACQ,QAAQ,CAACC,KAAK,EAAE,OAAON,OAAO,CAACC,MAAM,CAACE,KAAK,EAAEC,GAAG,CAAC;MAEtD,MAAM;QAAED,KAAK,EAAEI,MAAM;QAAEC;MAAmB,CAAC,GAAGV,gBAAgB,CAC5DK,KAAK,EACLH,OAAO,CAACS,IAAI,EACZJ,QACF,CAAC;MAED,MAAMK,aAAa,GAAGV,OAAO,CAACC,MAAM,CAACM,MAAM,EAAEH,GAAG,CAAC;MAEjDI,kBAAkB,CAAC,CAAC;MAEpB,OAAOE,aAAa;IACtB,CAAC;EACH;EAEA,OAAOV,OAAO;AAChB;AAEA,SAASD,iBAAiB,IAAIY,eAAe"}
1
+ {"version":3,"file":"component.mjs","names":["useDefaultsModule","useSuperDefaults","redefineComponent","options","_setup","setup","props","ctx","defaults","value","_props","provideSubDefaults","name","setupBindings","defineFunctionalComponent","context","defineComponent"],"sources":["../../../src/util/component/component.ts"],"sourcesContent":["import {\n ComponentObjectPropsOptions,\n ComponentOptionsWithoutProps,\n ExtractDefaultPropTypes,\n ExtractPropTypes,\n FunctionalComponent,\n defineComponent,\n} from 'vue';\nimport type {\n Component,\n ComponentInjectOptions,\n ComponentOptions,\n ComponentOptionsMixin,\n ComponentPropsOptions,\n ComponentProvideOptions,\n ComputedOptions,\n DefineComponent,\n Directive,\n EmitsOptions,\n MethodOptions,\n SlotsType,\n} from 'vue';\n\nimport {\n useDefaultsModule,\n useSuperDefaults,\n} from '../../composables/defaults';\nimport { EmitsToProps } from './types';\nimport { ComponentOptionsWithObjectProps } from '@vue/runtime-core';\n\ntype ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> &\n Readonly<EmitsToProps<Emits>>;\n\n// overload 1: no props from options\nfunction redefineComponent<\n // props\n PropsOptions = {},\n //\n RawBindings = {},\n // emits\n E extends EmitsOptions = {},\n EE extends string = string,\n // other options\n Data = {},\n SetupBindings = {},\n Computed extends ComputedOptions = {},\n Methods extends MethodOptions = {},\n Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,\n Extends extends ComponentOptionsMixin = ComponentOptionsMixin,\n InjectOptions extends ComponentInjectOptions = {},\n InjectKeys extends string = string,\n Slots extends SlotsType = {},\n LocalComponents extends Record<string, Component> = {},\n Directives extends Record<string, Directive> = {},\n Exposed extends string = string,\n Provide extends ComponentProvideOptions = ComponentProvideOptions,\n>(\n options: ComponentOptionsWithoutProps<\n PropsOptions,\n RawBindings,\n Data,\n Computed,\n Methods,\n Mixin,\n Extends,\n E,\n EE,\n InjectOptions,\n InjectKeys,\n Slots\n >,\n): DefineComponent<\n PropsOptions,\n RawBindings,\n Data,\n Computed,\n Methods,\n Mixin,\n Extends,\n E,\n EE\n>;\n\n// overload 2: defineComponent with options object, infer props from options\nfunction redefineComponent<\n // props\n PropsOptions = ComponentObjectPropsOptions,\n RawBindings = {},\n // emits\n E extends EmitsOptions = {},\n EE extends string = string,\n // other options\n Data = {},\n SetupBindings = {},\n Computed extends ComputedOptions = {},\n Methods extends MethodOptions = {},\n Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,\n Extends extends ComponentOptionsMixin = ComponentOptionsMixin,\n Defaults = ExtractDefaultPropTypes<PropsOptions>,\n InjectOptions extends {} = {},\n InjectKeys extends string = string,\n Slots extends SlotsType = {},\n LocalComponents extends Record<string, Component> = {},\n Directives extends Record<string, Directive> = {},\n Exposed extends string = string,\n Provide extends ComponentProvideOptions = ComponentProvideOptions,\n>(\n options: ComponentOptionsWithObjectProps<\n PropsOptions,\n RawBindings,\n Data,\n Computed,\n Methods,\n Mixin,\n Extends,\n E,\n EE,\n InjectOptions,\n InjectKeys,\n Slots\n >,\n): DefineComponent<\n PropsOptions,\n RawBindings,\n Data,\n Computed,\n Methods,\n Mixin,\n Extends,\n E,\n EE\n>;\n\nfunction redefineComponent(options: ComponentOptions) {\n options._setup = options._setup ?? options.setup;\n\n if (options._setup) {\n options.setup = function (props, ctx) {\n const defaults = useDefaultsModule();\n // Skip props proxy if defaults are not provided\n if (!defaults.value) return options._setup(props, ctx);\n\n const { props: _props, provideSubDefaults } = useSuperDefaults(\n props,\n options.name,\n defaults,\n );\n\n const setupBindings = options._setup(_props, ctx);\n\n provideSubDefaults();\n\n return setupBindings;\n };\n }\n\n return options;\n}\n\nfunction defineFunctionalComponent<\n T extends FunctionalComponent<Props>,\n PropsOptions = ComponentObjectPropsOptions,\n Defaults = ExtractDefaultPropTypes<PropsOptions>,\n Props = Readonly<ExtractPropTypes<PropsOptions>>,\n>(\n props: PropsOptions,\n context: T,\n): FunctionalComponent<Partial<Defaults> & Omit<Props, keyof Defaults>> {\n context.props = props as any;\n return context as any;\n}\n\nexport { redefineComponent as defineComponent };\n"],"mappings":"SAwBEA,iBAAiB,EACjBC,gBAAgB,gDAQlB;AAkDA;AAkDA,SAASC,iBAAiBA,CAACC,OAAyB,EAAE;EACpDA,OAAO,CAACC,MAAM,GAAGD,OAAO,CAACC,MAAM,IAAID,OAAO,CAACE,KAAK;EAEhD,IAAIF,OAAO,CAACC,MAAM,EAAE;IAClBD,OAAO,CAACE,KAAK,GAAG,UAAUC,KAAK,EAAEC,GAAG,EAAE;MACpC,MAAMC,QAAQ,GAAGR,iBAAiB,CAAC,CAAC;MACpC;MACA,IAAI,CAACQ,QAAQ,CAACC,KAAK,EAAE,OAAON,OAAO,CAACC,MAAM,CAACE,KAAK,EAAEC,GAAG,CAAC;MAEtD,MAAM;QAAED,KAAK,EAAEI,MAAM;QAAEC;MAAmB,CAAC,GAAGV,gBAAgB,CAC5DK,KAAK,EACLH,OAAO,CAACS,IAAI,EACZJ,QACF,CAAC;MAED,MAAMK,aAAa,GAAGV,OAAO,CAACC,MAAM,CAACM,MAAM,EAAEH,GAAG,CAAC;MAEjDI,kBAAkB,CAAC,CAAC;MAEpB,OAAOE,aAAa;IACtB,CAAC;EACH;EAEA,OAAOV,OAAO;AAChB;AAEA,SAASW,yBAAyBA,CAMhCR,KAAmB,EACnBS,OAAU,EAC4D;EACtEA,OAAO,CAACT,KAAK,GAAGA,KAAY;EAC5B,OAAOS,OAAO;AAChB;AAEA,SAASb,iBAAiB,IAAIc,eAAe"}
package/package.json CHANGED
@@ -1,117 +1,120 @@
1
- {
2
- "name": "yuyeon",
3
- "version": "0.2.3-rc.2",
4
- "keywords": [
5
- "UI Library",
6
- "Vue"
7
- ],
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/yuyeonUI/yuyeon",
11
- "directory": "packages/yuyeon"
12
- },
13
- "author": "yeonyew",
14
- "license": "Apache-2.0",
15
- "files": [
16
- "dist/",
17
- "lib/",
18
- "types/"
19
- ],
20
- "type": "module",
21
- "exports": {
22
- ".": {
23
- "types": "./types/index.d.ts",
24
- "default": "./lib/index.mjs"
25
- },
26
- "./styles/*": "./lib/styles/*",
27
- "./locales": "./lib/locales/index.mjs",
28
- "./lib": {
29
- "types": "./types/index.d.ts"
30
- },
31
- "./components": {
32
- "types": "./types/components/index.d.ts",
33
- "module": "./lib/components/index.mjs"
34
- },
35
- "./composables": {
36
- "types": "./types/composables/index.d.ts",
37
- "module": "./lib/composables/index.mjs",
38
- "default": "./lib/composables/index.mjs"
39
- },
40
- "./util": {
41
- "types": "./types/util/index.d.ts",
42
- "module": "./lib/util/index.mjs"
43
- },
44
- "./components/*": "./lib/components/*/index.mjs",
45
- "./shims": "./types/shims.d.ts",
46
- "./types/*": "./types/*",
47
- "./*": "./*"
48
- },
49
- "main": "lib/index.mjs",
50
- "module": "lib/index.mjs",
51
- "types": "types/index.d.ts",
52
- "typesVersions": {
53
- "*": {
54
- "lib/index.mjs": [
55
- "types/index.d.ts"
56
- ],
57
- "*": [
58
- "*",
59
- "types/*",
60
- "types/*.d.ts",
61
- "types/*/index.d.ts"
62
- ]
63
- }
64
- },
65
- "scripts": {
66
- "build": "vue-tsc && vite build && yarn run build:lib",
67
- "build:lib": "cross-env NODE_ENV=lib babel src --out-dir lib --source-maps --extensions \".ts\",\".tsx\" --copy-files --no-copy-ignored --out-file-extension .mjs"
68
- },
69
- "dependencies": {
70
- "motion": "^10.15.5"
71
- },
72
- "devDependencies": {
73
- "@babel/cli": "^7.21.0",
74
- "@babel/core": "^7.21.3",
75
- "@babel/preset-env": "^7.20.2",
76
- "@babel/preset-typescript": "^7.21.0",
77
- "@rollup/plugin-alias": "^4.0.3",
78
- "@rollup/plugin-babel": "^6.0.3",
79
- "@rollup/plugin-node-resolve": "^15.2.3",
80
- "@rollup/plugin-typescript": "^11.0.0",
81
- "@trivago/prettier-plugin-sort-imports": "^4.3.0",
82
- "@types/jest": "^28.1.8",
83
- "@types/node": "^18.19.1",
84
- "@types/resize-observer-browser": "^0.1.7",
85
- "@vitejs/plugin-vue": "^5.0.5",
86
- "@vitejs/plugin-vue-jsx": "^4.0.0",
87
- "@vue/babel-plugin-jsx": "^1.2.2",
88
- "@vue/test-utils": "2.4.6",
89
- "autoprefixer": "^10.4.14",
90
- "babel-plugin-add-import-extension": "1.5.1",
91
- "babel-plugin-module-resolver": "^5.0.0",
92
- "babel-plugin-transform-define": "^2.1.0",
93
- "babel-polyfill": "^6.26.0",
94
- "concurrently": "^4.1.1",
95
- "cross-env": "^7.0.3",
96
- "rollup": "^3.20.2",
97
- "rollup-plugin-dts": "^5.3.0",
98
- "rollup-plugin-sass": "^1.2.19",
99
- "rollup-plugin-sourcemaps": "^0.6.3",
100
- "rollup-plugin-terser": "^7.0.2",
101
- "sass": "^1.63.3",
102
- "vite": "^5.3.1",
103
- "vite-plugin-dts": "^3.9.1",
104
- "vue-router": "^4.3.3",
105
- "vue-tsc": "^2.0.21"
106
- },
107
- "peerDependencies": {
108
- "motion": "^10.15.5",
109
- "vue": "^3.3.0",
110
- "vue-i18n": "^9.0.0 || ^10.0.0"
111
- },
112
- "peerDependenciesMeta": {
113
- "vue-i18n": {
114
- "optional": true
115
- }
116
- }
117
- }
1
+ {
2
+ "name": "yuyeon",
3
+ "version": "0.2.3-rc.20",
4
+ "keywords": [
5
+ "UI Library",
6
+ "Vue"
7
+ ],
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/yuyeonUI/yuyeon",
11
+ "directory": "packages/yuyeon"
12
+ },
13
+ "author": "yeonyew",
14
+ "license": "Apache-2.0",
15
+ "files": [
16
+ "dist/",
17
+ "lib/",
18
+ "types/"
19
+ ],
20
+ "type": "module",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./types/index.d.ts",
24
+ "default": "./lib/index.mjs"
25
+ },
26
+ "./styles/*": "./lib/styles/*",
27
+ "./locales": {
28
+ "types": "./types/locales/index.d.ts",
29
+ "default": "./lib/locales/index.mjs"
30
+ },
31
+ "./lib": {
32
+ "types": "./types/index.d.ts"
33
+ },
34
+ "./components": {
35
+ "types": "./types/components/index.d.ts",
36
+ "module": "./lib/components/index.mjs"
37
+ },
38
+ "./components/*": "./lib/components/*/index.mjs",
39
+ "./composables": {
40
+ "types": "./types/composables/index.d.ts",
41
+ "module": "./lib/composables/index.mjs",
42
+ "default": "./lib/composables/index.mjs"
43
+ },
44
+ "./util": {
45
+ "types": "./types/util/index.d.ts",
46
+ "module": "./lib/util/index.mjs"
47
+ },
48
+ "./shims": "./types/shims.d.ts",
49
+ "./types/*": "./types/*",
50
+ "./*": "./*"
51
+ },
52
+ "main": "lib/index.mjs",
53
+ "module": "lib/index.mjs",
54
+ "types": "types/index.d.ts",
55
+ "typesVersions": {
56
+ "*": {
57
+ "lib/index.mjs": [
58
+ "types/index.d.ts"
59
+ ],
60
+ "*": [
61
+ "*",
62
+ "types/*",
63
+ "types/*.d.ts",
64
+ "types/*/index.d.ts"
65
+ ]
66
+ }
67
+ },
68
+ "scripts": {
69
+ "build": "vue-tsc && vite build && yarn run build:lib",
70
+ "build:lib": "cross-env NODE_ENV=lib babel src --out-dir lib --source-maps --extensions \".ts\",\".tsx\" --copy-files --no-copy-ignored --out-file-extension .mjs"
71
+ },
72
+ "dependencies": {
73
+ "motion": "^10.15.5"
74
+ },
75
+ "devDependencies": {
76
+ "@babel/cli": "^7.21.0",
77
+ "@babel/core": "^7.21.3",
78
+ "@babel/preset-env": "^7.20.2",
79
+ "@babel/preset-typescript": "^7.21.0",
80
+ "@rollup/plugin-alias": "^4.0.3",
81
+ "@rollup/plugin-babel": "^6.0.3",
82
+ "@rollup/plugin-node-resolve": "^15.2.3",
83
+ "@rollup/plugin-typescript": "^11.0.0",
84
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
85
+ "@types/jest": "^28.1.8",
86
+ "@types/node": "^18.19.1",
87
+ "@types/resize-observer-browser": "^0.1.7",
88
+ "@vitejs/plugin-vue": "^5.0.5",
89
+ "@vitejs/plugin-vue-jsx": "^4.0.0",
90
+ "@vue/babel-plugin-jsx": "^1.2.2",
91
+ "@vue/test-utils": "2.4.6",
92
+ "autoprefixer": "^10.4.14",
93
+ "babel-plugin-add-import-extension": "1.5.1",
94
+ "babel-plugin-module-resolver": "^5.0.0",
95
+ "babel-plugin-transform-define": "^2.1.0",
96
+ "babel-polyfill": "^6.26.0",
97
+ "concurrently": "^4.1.1",
98
+ "cross-env": "^7.0.3",
99
+ "rollup": "^4.22.4",
100
+ "rollup-plugin-dts": "^5.3.0",
101
+ "rollup-plugin-sass": "^1.2.19",
102
+ "rollup-plugin-sourcemaps": "^0.6.3",
103
+ "rollup-plugin-terser": "^7.0.2",
104
+ "sass": "^1.63.3",
105
+ "vite": "^5.4.6",
106
+ "vite-plugin-dts": "^3.9.1",
107
+ "vue-router": "^4.3.3",
108
+ "vue-tsc": "^2.0.21"
109
+ },
110
+ "peerDependencies": {
111
+ "motion": "^10.15.5",
112
+ "vue": "^3.3.0",
113
+ "vue-i18n": "^9.0.0 || ^10.0.0"
114
+ },
115
+ "peerDependenciesMeta": {
116
+ "vue-i18n": {
117
+ "optional": true
118
+ }
119
+ }
120
+ }
@@ -18,6 +18,6 @@ export declare const YCheckbox: import('vue').DefineComponent<{
18
18
  disabled: PropType<boolean>;
19
19
  readonly: PropType<boolean>;
20
20
  }, {
21
- checked: import('vue').Ref<boolean>;
21
+ checked: import('vue').Ref<boolean, boolean>;
22
22
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "change" | "click" | "focus" | "update:modelValue")[], "blur" | "change" | "click" | "focus" | "update:modelValue">;
23
23
  export type YCheckbox = InstanceType<typeof YCheckbox>;
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<{
10
10
  };
11
11
  disabled: PropType<boolean>;
12
12
  readonly: PropType<boolean>;
13
- }, unknown, {
13
+ }, {}, {
14
14
  counterId: string;
15
15
  checked: boolean;
16
16
  focused: boolean;
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<{
22
22
  checked: BooleanConstructor;
23
23
  indeterminate: BooleanConstructor;
24
24
  disabled: BooleanConstructor;
25
- }, unknown, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string> | null;
25
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string> | null;
26
26
  }, {
27
27
  onFocus(e: FocusEvent): void;
28
28
  onBlur(e: FocusEvent): void;
@@ -92,19 +92,19 @@ export declare const YDateCalendar: import('vue').DefineComponent<{
92
92
  };
93
93
  hideHeader: BooleanConstructor;
94
94
  }, {
95
- day$: import('vue').Ref<never[]>;
96
- container$: import('vue').Ref<any>;
95
+ day$: import('vue').Ref<never[], never[]>;
96
+ container$: import('vue').Ref<any, any>;
97
97
  dateUtil: import('../../composables/date/types').DateInstance<unknown>;
98
98
  displayValue: import('vue').ComputedRef<unknown>;
99
- month: import('vue').Ref<any> & {
99
+ month: import('vue').Ref<any, any> & {
100
100
  readonly rxValue: any;
101
101
  };
102
- year: import('vue').Ref<any> & {
102
+ year: import('vue').Ref<any, any> & {
103
103
  readonly rxValue: any;
104
104
  };
105
105
  rangeStart: import('vue').ComputedRef<any>;
106
106
  rangeEnd: import('vue').ComputedRef<any>;
107
- model: import('vue').Ref<any> & {
107
+ model: import('vue').Ref<any, any> & {
108
108
  readonly rxValue: any;
109
109
  };
110
110
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {