@globalbrain/sefirot 4.31.0 → 4.32.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.
Files changed (131) hide show
  1. package/client.d.ts +5 -0
  2. package/config/nuxt.d.ts +1 -0
  3. package/config/nuxt.js +1 -1
  4. package/config/vite.js +3 -2
  5. package/lib/components/SActionList.vue +2 -2
  6. package/lib/components/SActionMenu.vue +4 -4
  7. package/lib/components/SAvatar.vue +1 -1
  8. package/lib/components/SAvatarStack.vue +12 -12
  9. package/lib/components/SButton.vue +5 -7
  10. package/lib/components/SCard.vue +2 -2
  11. package/lib/components/SChartBar.vue +37 -12
  12. package/lib/components/SChartPie.vue +13 -7
  13. package/lib/components/SControlActionBarCollapse.vue +2 -4
  14. package/lib/components/SControlInputSearch.vue +7 -2
  15. package/lib/components/SDataListItem.vue +1 -3
  16. package/lib/components/SDescAvatar.vue +1 -1
  17. package/lib/components/SDescDay.vue +2 -2
  18. package/lib/components/SDescFile.vue +2 -4
  19. package/lib/components/SDescItem.vue +2 -1
  20. package/lib/components/SDescLabel.vue +1 -1
  21. package/lib/components/SDescLink.vue +2 -7
  22. package/lib/components/SDescPill.vue +2 -4
  23. package/lib/components/SDescText.vue +2 -2
  24. package/lib/components/SDropdown.vue +1 -1
  25. package/lib/components/SDropdownSectionFilter.vue +11 -11
  26. package/lib/components/SFragment.vue +1 -1
  27. package/lib/components/SInputAddon.vue +13 -11
  28. package/lib/components/SInputBase.vue +11 -11
  29. package/lib/components/SInputCheckbox.vue +6 -3
  30. package/lib/components/SInputCheckboxes.vue +7 -3
  31. package/lib/components/SInputDate.vue +3 -5
  32. package/lib/components/SInputDropdown.vue +26 -28
  33. package/lib/components/SInputDropdownItem.vue +21 -11
  34. package/lib/components/SInputFile.vue +9 -6
  35. package/lib/components/SInputFileUpload.vue +9 -11
  36. package/lib/components/SInputFileUploadItem.vue +8 -4
  37. package/lib/components/SInputHMS.vue +3 -1
  38. package/lib/components/SInputImage.vue +4 -2
  39. package/lib/components/SInputNumber.vue +9 -10
  40. package/lib/components/SInputRadio.vue +3 -2
  41. package/lib/components/SInputRadios.vue +6 -5
  42. package/lib/components/SInputSegments.vue +5 -7
  43. package/lib/components/SInputSegmentsOption.vue +1 -2
  44. package/lib/components/SInputSelect.vue +6 -4
  45. package/lib/components/SInputSwitch.vue +4 -1
  46. package/lib/components/SInputSwitches.vue +5 -3
  47. package/lib/components/SInputText.vue +16 -16
  48. package/lib/components/SInputTextarea.vue +7 -3
  49. package/lib/components/SInputYMD.vue +3 -1
  50. package/lib/components/SLink.vue +2 -2
  51. package/lib/components/SLocalNav.vue +1 -1
  52. package/lib/components/SLocalNavActions.vue +1 -1
  53. package/lib/components/SLocalNavMenu.vue +2 -2
  54. package/lib/components/SLoginPagePasswordDialog.vue +2 -2
  55. package/lib/components/SM.vue +1 -1
  56. package/lib/components/SMFade.vue +1 -1
  57. package/lib/components/SMarkdown.vue +3 -2
  58. package/lib/components/SModal.vue +2 -2
  59. package/lib/components/SSnackbar.vue +2 -2
  60. package/lib/components/SSteps.vue +6 -6
  61. package/lib/components/STable.vue +70 -27
  62. package/lib/components/STableCell.vue +14 -17
  63. package/lib/components/STableCellAvatars.vue +1 -1
  64. package/lib/components/STableCellDay.vue +12 -5
  65. package/lib/components/STableCellNumber.vue +2 -3
  66. package/lib/components/STableCellPath.vue +2 -2
  67. package/lib/components/STableCellText.vue +2 -3
  68. package/lib/components/STableColumn.vue +38 -16
  69. package/lib/components/STableFooter.vue +10 -2
  70. package/lib/components/STableHeader.vue +0 -1
  71. package/lib/components/STableHeaderMenu.vue +4 -4
  72. package/lib/components/STableHeaderMenuItem.vue +1 -1
  73. package/lib/components/STooltip.vue +3 -3
  74. package/lib/composables/Dropdown.ts +10 -1
  75. package/lib/composables/Error.ts +37 -37
  76. package/lib/composables/Grid.ts +1 -4
  77. package/lib/composables/Image.ts +2 -3
  78. package/lib/composables/Lang.ts +1 -1
  79. package/lib/composables/Markdown.ts +1 -1
  80. package/lib/composables/Table.ts +0 -2
  81. package/lib/composables/Theme.ts +1 -1
  82. package/lib/composables/Utils.ts +11 -4
  83. package/lib/composables/Validation.ts +1 -4
  84. package/lib/http/Http.ts +23 -17
  85. package/lib/styles/variables-deprecated.css +0 -1
  86. package/lib/styles/variables.css +16 -16
  87. package/lib/support/Chart.ts +0 -1
  88. package/lib/support/DateRange.ts +1 -1
  89. package/lib/support/Day.ts +12 -65
  90. package/lib/support/File.ts +7 -16
  91. package/lib/support/Utils.ts +7 -40
  92. package/lib/validation/Rule.ts +6 -21
  93. package/lib/validation/rules/decimal.ts +3 -3
  94. package/lib/validation/rules/email.ts +1 -1
  95. package/lib/validation/rules/index.ts +1 -1
  96. package/lib/validation/rules/negativeInteger.ts +1 -1
  97. package/lib/validation/rules/positiveInteger.ts +1 -1
  98. package/lib/validation/rules/requiredHms.ts +2 -2
  99. package/lib/validation/rules/requiredIf.ts +1 -4
  100. package/lib/validation/rules/requiredYmd.ts +2 -2
  101. package/lib/validation/rules/slackChannelName.ts +4 -1
  102. package/lib/validation/rules/zeroOrNegativeInteger.ts +1 -1
  103. package/lib/validation/rules/zeroOrPositiveInteger.ts +1 -1
  104. package/lib/validation/validators/after.ts +1 -5
  105. package/lib/validation/validators/afterOrEqual.ts +1 -5
  106. package/lib/validation/validators/before.ts +1 -4
  107. package/lib/validation/validators/beforeOrEqual.ts +1 -5
  108. package/lib/validation/validators/decimal.ts +7 -9
  109. package/lib/validation/validators/email.ts +4 -8
  110. package/lib/validation/validators/fileExtension.ts +7 -15
  111. package/lib/validation/validators/hms.ts +26 -15
  112. package/lib/validation/validators/index.ts +0 -2
  113. package/lib/validation/validators/maxFileSize.ts +3 -13
  114. package/lib/validation/validators/maxLength.ts +1 -7
  115. package/lib/validation/validators/maxTotalFileSize.ts +3 -26
  116. package/lib/validation/validators/maxValue.ts +2 -6
  117. package/lib/validation/validators/minLength.ts +1 -7
  118. package/lib/validation/validators/minValue.ts +2 -6
  119. package/lib/validation/validators/month.ts +1 -7
  120. package/lib/validation/validators/negativeInteger.ts +1 -7
  121. package/lib/validation/validators/positiveInteger.ts +1 -7
  122. package/lib/validation/validators/required.ts +5 -28
  123. package/lib/validation/validators/requiredHmsIf.ts +11 -13
  124. package/lib/validation/validators/requiredIf.ts +5 -11
  125. package/lib/validation/validators/requiredYmdIf.ts +11 -13
  126. package/lib/validation/validators/slackChannelName.ts +11 -11
  127. package/lib/validation/validators/url.ts +7 -5
  128. package/lib/validation/validators/ymd.ts +36 -30
  129. package/package.json +38 -38
  130. package/lib/validation/validators/requiredHms.ts +0 -9
  131. package/lib/validation/validators/requiredYmd.ts +0 -9
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
3
  "type": "module",
4
- "version": "4.31.0",
5
- "packageManager": "pnpm@9.15.4",
4
+ "version": "4.32.0",
5
+ "packageManager": "pnpm@10.28.0",
6
6
  "description": "Vue Components for Global Brain Design System.",
7
7
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",
8
8
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "story:build": "NODE_NO_WARNINGS=1 VITE_CJS_IGNORE_WARNING=1 histoire build",
34
34
  "story:preview": "NODE_NO_WARNINGS=1 VITE_CJS_IGNORE_WARNING=1 histoire preview --port 4010",
35
35
  "type": "vue-tsc --noEmit",
36
- "lint": "eslint --fix .",
37
- "lint:fail": "eslint .",
36
+ "lint": "eslint --fix",
37
+ "lint:fail": "eslint --max-warnings 0",
38
38
  "vitest": "vitest",
39
39
  "vitest:run": "vitest run",
40
40
  "coverage": "vitest run --coverage",
@@ -44,31 +44,31 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@iconify-json/ph": "^1.2.2",
47
- "@iconify-json/ri": "^1.2.5",
47
+ "@iconify-json/ri": "^1.2.7",
48
48
  "@popperjs/core": "^2.11.8",
49
49
  "@types/body-scroll-lock": "^3.1.2",
50
50
  "@types/lodash-es": "^4.17.12",
51
51
  "@types/markdown-it": "^14.1.2",
52
- "@vue/reactivity": "^3.5.18",
52
+ "@vue/reactivity": "^3.5.26",
53
53
  "@vuelidate/core": "^2.0.3",
54
54
  "@vuelidate/validators": "^2.0.4",
55
- "@vueuse/core": "^12 || ^13",
55
+ "@vueuse/core": "^12 || ^13 || ^14",
56
56
  "body-scroll-lock": "4.0.0-beta.0",
57
- "dayjs": "^1.11.13",
57
+ "dayjs": "^1.11.19",
58
58
  "fuse.js": "^7.1.0",
59
- "lodash-es": "^4.17.21",
59
+ "lodash-es": "^4.17.22",
60
60
  "markdown-it": "^14.1.0",
61
61
  "normalize.css": "^8.0.1",
62
- "pinia": "^3.0.3",
62
+ "pinia": "^3.0.4",
63
63
  "postcss": "^8.5.6",
64
64
  "postcss-nested": "^7.0.2",
65
65
  "v-calendar": "3.0.1",
66
- "vue": "^3.5.18",
67
- "vue-router": "^4.5.1"
66
+ "vue": "^3.5.26",
67
+ "vue-router": "^4.6.4"
68
68
  },
69
69
  "dependencies": {
70
- "@sentry/browser": "^10.5.0",
71
- "@sentry/vue": "^10.5.0",
70
+ "@sentry/browser": "^10.33.0",
71
+ "@sentry/vue": "^10.33.0",
72
72
  "@tanstack/vue-virtual": "3.0.0-beta.62",
73
73
  "@tinyhttp/content-disposition": "^2.2.2",
74
74
  "@tinyhttp/cookie": "^2.1.1",
@@ -76,53 +76,53 @@
76
76
  "@types/file-saver": "^2.0.7",
77
77
  "@types/qs": "^6.14.0",
78
78
  "d3": "^7.9.0",
79
- "dompurify": "^3.2.6",
80
79
  "file-saver": "^2.0.5",
81
80
  "html2canvas": "^1.4.1",
82
- "magic-string": "^0.30.17",
83
- "ofetch": "^1.4.1",
84
- "qs": "^6.14.0",
85
- "unplugin-icons": "^22.2.0"
81
+ "isomorphic-dompurify": "^2.35.0",
82
+ "magic-string": "^0.30.21",
83
+ "ofetch": "^1.5.1",
84
+ "qs": "^6.14.1",
85
+ "unplugin-icons": "^22.5.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@globalbrain/eslint-config": "^1.7.1",
88
+ "@globalbrain/eslint-config": "^2.1.0",
89
89
  "@histoire/plugin-vue": "0.16.5",
90
90
  "@iconify-json/ph": "^1.2.2",
91
- "@iconify-json/ri": "^1.2.5",
91
+ "@iconify-json/ri": "^1.2.7",
92
92
  "@popperjs/core": "^2.11.8",
93
- "@release-it/conventional-changelog": "^10.0.1",
93
+ "@release-it/conventional-changelog": "^10.0.4",
94
94
  "@types/body-scroll-lock": "^3.1.2",
95
95
  "@types/lodash-es": "^4.17.12",
96
96
  "@types/markdown-it": "^14.1.2",
97
- "@types/node": "^24.3.0",
98
- "@vitejs/plugin-vue": "^6.0.1",
97
+ "@types/node": "^25.0.7",
98
+ "@vitejs/plugin-vue": "^6.0.3",
99
99
  "@vitest/coverage-v8": "^3.2.4",
100
- "@vue/reactivity": "^3.5.18",
100
+ "@vue/reactivity": "^3.5.26",
101
101
  "@vue/test-utils": "^2.4.6",
102
102
  "@vuelidate/core": "^2.0.3",
103
103
  "@vuelidate/validators": "^2.0.4",
104
- "@vueuse/core": "^13.0.0",
104
+ "@vueuse/core": "^14.1.0",
105
105
  "body-scroll-lock": "4.0.0-beta.0",
106
- "dayjs": "^1.11.13",
107
- "eslint": "8.57.0",
106
+ "dayjs": "^1.11.19",
107
+ "eslint": "^9.39.2",
108
108
  "fuse.js": "^7.1.0",
109
- "happy-dom": "^18.0.1",
109
+ "happy-dom": "^20.1.0",
110
110
  "histoire": "0.16.5",
111
- "lodash-es": "^4.17.21",
111
+ "lodash-es": "^4.17.22",
112
112
  "markdown-it": "^14.1.0",
113
113
  "normalize.css": "^8.0.1",
114
- "pinia": "^3.0.3",
114
+ "pinia": "^3.0.4",
115
115
  "postcss": "^8.5.6",
116
116
  "postcss-nested": "^7.0.2",
117
117
  "punycode": "^2.3.1",
118
- "release-it": "^19.0.4",
119
- "typescript": "~5.9.2",
118
+ "release-it": "^19.2.3",
119
+ "typescript": "~5.9.3",
120
120
  "v-calendar": "3.0.1",
121
- "vite": "^6.3.5",
122
- "vitepress": "^2.0.0-alpha.11",
121
+ "vite": "^6.4.1",
122
+ "vitepress": "^2.0.0-alpha.15",
123
123
  "vitest": "^3.2.4",
124
- "vue": "^3.5.18",
125
- "vue-router": "^4.5.1",
126
- "vue-tsc": "^3.0.5"
124
+ "vue": "^3.5.26",
125
+ "vue-router": "^4.6.4",
126
+ "vue-tsc": "^3.2.2"
127
127
  }
128
128
  }
@@ -1,9 +0,0 @@
1
- import { HmsMap, type HmsType, isHms } from '../../support/Day'
2
-
3
- export function requiredHms(value: unknown, required: HmsType[] = ['h', 'm', 's']): boolean {
4
- if (!isHms(value, required)) {
5
- return false
6
- }
7
-
8
- return required.every((r) => value[HmsMap[r]] != null)
9
- }
@@ -1,9 +0,0 @@
1
- import { YmdMap, type YmdType, isYmd } from '../../support/Day'
2
-
3
- export function requiredYmd(value: unknown, required: YmdType[] = ['y', 'm', 'd']): boolean {
4
- if (!isYmd(value, required)) {
5
- return false
6
- }
7
-
8
- return required.every((r) => value[YmdMap[r]] != null)
9
- }