@volverjs/ui-vue 0.0.10-beta.54 → 0.0.10-beta.56

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 (30) hide show
  1. package/auto-imports.d.ts +3 -0
  2. package/dist/components/VvCombobox/VvCombobox.es.js +357 -357
  3. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  4. package/dist/components/VvInputText/VvInputText.es.js +150 -44
  5. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  6. package/dist/components/VvInputText/VvInputText.vue.d.ts +6 -6
  7. package/dist/components/VvInputText/index.d.ts +1 -1
  8. package/dist/components/VvTextarea/VvTextarea.es.js +966 -67
  9. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  10. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +52 -0
  11. package/dist/components/VvTextarea/index.d.ts +37 -1
  12. package/dist/components/index.es.js +542 -284
  13. package/dist/components/index.umd.js +1 -1
  14. package/dist/icons.es.js +3 -3
  15. package/dist/icons.umd.js +1 -1
  16. package/dist/stories/InputText/InputText.test.d.ts +1 -0
  17. package/dist/stories/InputText/InputTextIso.stories.d.ts +10 -0
  18. package/dist/utils/DateUtilities.d.ts +22 -0
  19. package/package.json +22 -22
  20. package/src/assets/icons/detailed.json +1 -1
  21. package/src/assets/icons/normal.json +1 -1
  22. package/src/assets/icons/simple.json +1 -1
  23. package/src/components/VvCombobox/VvCombobox.vue +3 -3
  24. package/src/components/VvInputText/VvInputText.vue +103 -63
  25. package/src/components/VvInputText/index.ts +1 -1
  26. package/src/components/VvTextarea/VvTextarea.vue +108 -5
  27. package/src/components/VvTextarea/index.ts +32 -1
  28. package/src/stories/InputText/InputText.test.ts +25 -0
  29. package/src/stories/InputText/InputTextIso.stories.ts +69 -0
  30. package/src/utils/DateUtilities.ts +98 -0
@@ -2,3 +2,4 @@ import type { PlayAttributes } from '@/test/types';
2
2
  export declare function checkNullTest({ canvasElement }: PlayAttributes): Promise<void>;
3
3
  export declare function checkUndefinedTest({ canvasElement }: PlayAttributes): Promise<void>;
4
4
  export declare function defaultTest({ canvasElement, args }: PlayAttributes): Promise<void>;
5
+ export declare function isoTest({ canvasElement, args }: PlayAttributes): Promise<void>;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import VvInputText from '@/components/VvInputText/VvInputText.vue';
3
+ declare const meta: Meta<typeof VvInputText>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof VvInputText>;
6
+ export declare const TypeDate: Story;
7
+ export declare const TypeTime: Story;
8
+ export declare const TypeTimeMinute: Story;
9
+ export declare const TypeMonth: Story;
10
+ export declare const TypeDateTime: Story;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Checks if a string is a valid ISO date string
3
+ * @param dateString
4
+ * @returns True if valid ISO date string
5
+ */
6
+ export declare function isDateIsoString(dateString: unknown): boolean;
7
+ /**
8
+ * Converts a Date object to a string value for input element
9
+ * @param date - Date object or string
10
+ * @param typeOfInput - Type of HTML input element
11
+ * @param withSeconds - Include seconds in time value
12
+ * @returns String value for input element
13
+ */
14
+ export declare function getInputValueFromDate(date: Date | string, typeOfInput?: 'date' | 'time' | 'month' | 'datetime-local', withSeconds?: boolean): string;
15
+ /**
16
+ * Converts an input string to a Date object based on input type
17
+ * @param value - String value from input element
18
+ * @param typeOfInput - Type of HTML input element
19
+ * @returns Date object or null if invalid
20
+ * @throws Error for invalid input format
21
+ */
22
+ export declare function getDateFromInputValue(value: string, typeOfInput?: 'date' | 'time' | 'month' | 'datetime-local'): Date | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@volverjs/ui-vue",
3
3
  "type": "module",
4
- "version": "0.0.10-beta.54",
4
+ "version": "0.0.10-beta.56",
5
5
  "description": "@volverjs/ui-vue is a lightweight Vue 3 component library to accompany @volverjs/style.",
6
6
  "author": "8 Wave S.r.l.",
7
7
  "license": "MIT",
@@ -398,41 +398,41 @@
398
398
  "yargs": "^17.7.2"
399
399
  },
400
400
  "devDependencies": {
401
- "@antfu/eslint-config": "^3.8.0",
401
+ "@antfu/eslint-config": "3.8.0",
402
402
  "@babel/core": "^7.26.0",
403
403
  "@babel/preset-env": "^7.26.0",
404
404
  "@babel/preset-typescript": "^7.26.0",
405
405
  "@iconify/types": "^2.0.0",
406
406
  "@iconify/utils": "^2.1.33",
407
407
  "@nabla/vite-plugin-eslint": "^2.0.4",
408
- "@storybook/addon-a11y": "^8.4.2",
409
- "@storybook/addon-actions": "^8.4.2",
410
- "@storybook/addon-docs": "^8.4.2",
411
- "@storybook/addon-essentials": "^8.4.2",
412
- "@storybook/addon-interactions": "^8.4.2",
413
- "@storybook/addon-links": "^8.4.2",
414
- "@storybook/cli": "^8.4.2",
415
- "@storybook/client-logger": "^8.4.2",
416
- "@storybook/core-common": "^8.4.2",
417
- "@storybook/preview-api": "^8.4.2",
418
- "@storybook/test": "^8.4.2",
408
+ "@storybook/addon-a11y": "^8.4.5",
409
+ "@storybook/addon-actions": "^8.4.5",
410
+ "@storybook/addon-docs": "^8.4.5",
411
+ "@storybook/addon-essentials": "^8.4.5",
412
+ "@storybook/addon-interactions": "^8.4.5",
413
+ "@storybook/addon-links": "^8.4.5",
414
+ "@storybook/cli": "^8.4.5",
415
+ "@storybook/client-logger": "^8.4.5",
416
+ "@storybook/core-common": "^8.4.5",
417
+ "@storybook/preview-api": "^8.4.5",
418
+ "@storybook/test": "^8.4.5",
419
419
  "@storybook/test-runner": "^0.19.1",
420
- "@storybook/types": "^8.4.2",
421
- "@storybook/vue3": "^8.4.2",
422
- "@storybook/vue3-vite": "^8.4.2",
420
+ "@storybook/types": "^8.4.5",
421
+ "@storybook/vue3": "^8.4.5",
422
+ "@storybook/vue3-vite": "^8.4.5",
423
423
  "@tsconfig/node18": "^18.2.4",
424
424
  "@types/jest-axe": "^3.5.9",
425
425
  "@types/jsdom": "^21.1.7",
426
- "@types/node": "^22.9.0",
426
+ "@types/node": "^22.9.1",
427
427
  "@types/pica": "^9.0.4",
428
428
  "@types/yargs": "^17.0.33",
429
429
  "@vitejs/plugin-vue": "^5.2.0",
430
- "@vue/compiler-sfc": "^3.5.12",
430
+ "@vue/compiler-sfc": "^3.5.13",
431
431
  "@vue/eslint-config-typescript": "^14.1.3",
432
432
  "@vue/test-utils": "^2.4.6",
433
433
  "@vue/tsconfig": "^0.6.0",
434
434
  "change-case": "^5.4.4",
435
- "eslint": "^9.14.0",
435
+ "eslint": "^9.15.0",
436
436
  "glob": "7.2.3",
437
437
  "jest-axe": "^9.0.0",
438
438
  "jest-diff": "^29.7.0",
@@ -442,14 +442,14 @@
442
442
  "prettier": "^3.3.3",
443
443
  "pretty-format": "^29.7.0",
444
444
  "remark": "^15.0.1",
445
- "sass": "^1.80.7",
446
- "storybook": "^8.4.2",
445
+ "sass": "^1.81.0",
446
+ "storybook": "^8.4.5",
447
447
  "storybook-addon-markdown-docs": "^2.0.0",
448
448
  "storybook-dark-mode": "^4.0.2",
449
449
  "terser": "^5.36.0",
450
450
  "ts-node": "^10.9.2",
451
451
  "typescript": "~5.6.3",
452
- "unplugin-auto-import": "^0.18.3",
452
+ "unplugin-auto-import": "^0.18.5",
453
453
  "unplugin-vue-components": "^0.27.4",
454
454
  "vite": "^5.4.11",
455
455
  "vite-plugin-externalize-deps": "^0.8.0",