@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.
- package/client.d.ts +5 -0
- package/config/nuxt.d.ts +1 -0
- package/config/nuxt.js +1 -1
- package/config/vite.js +3 -2
- package/lib/components/SActionList.vue +2 -2
- package/lib/components/SActionMenu.vue +4 -4
- package/lib/components/SAvatar.vue +1 -1
- package/lib/components/SAvatarStack.vue +12 -12
- package/lib/components/SButton.vue +5 -7
- package/lib/components/SCard.vue +2 -2
- package/lib/components/SChartBar.vue +37 -12
- package/lib/components/SChartPie.vue +13 -7
- package/lib/components/SControlActionBarCollapse.vue +2 -4
- package/lib/components/SControlInputSearch.vue +7 -2
- package/lib/components/SDataListItem.vue +1 -3
- package/lib/components/SDescAvatar.vue +1 -1
- package/lib/components/SDescDay.vue +2 -2
- package/lib/components/SDescFile.vue +2 -4
- package/lib/components/SDescItem.vue +2 -1
- package/lib/components/SDescLabel.vue +1 -1
- package/lib/components/SDescLink.vue +2 -7
- package/lib/components/SDescPill.vue +2 -4
- package/lib/components/SDescText.vue +2 -2
- package/lib/components/SDropdown.vue +1 -1
- package/lib/components/SDropdownSectionFilter.vue +11 -11
- package/lib/components/SFragment.vue +1 -1
- package/lib/components/SInputAddon.vue +13 -11
- package/lib/components/SInputBase.vue +11 -11
- package/lib/components/SInputCheckbox.vue +6 -3
- package/lib/components/SInputCheckboxes.vue +7 -3
- package/lib/components/SInputDate.vue +3 -5
- package/lib/components/SInputDropdown.vue +26 -28
- package/lib/components/SInputDropdownItem.vue +21 -11
- package/lib/components/SInputFile.vue +9 -6
- package/lib/components/SInputFileUpload.vue +9 -11
- package/lib/components/SInputFileUploadItem.vue +8 -4
- package/lib/components/SInputHMS.vue +3 -1
- package/lib/components/SInputImage.vue +4 -2
- package/lib/components/SInputNumber.vue +9 -10
- package/lib/components/SInputRadio.vue +3 -2
- package/lib/components/SInputRadios.vue +6 -5
- package/lib/components/SInputSegments.vue +5 -7
- package/lib/components/SInputSegmentsOption.vue +1 -2
- package/lib/components/SInputSelect.vue +6 -4
- package/lib/components/SInputSwitch.vue +4 -1
- package/lib/components/SInputSwitches.vue +5 -3
- package/lib/components/SInputText.vue +16 -16
- package/lib/components/SInputTextarea.vue +7 -3
- package/lib/components/SInputYMD.vue +3 -1
- package/lib/components/SLink.vue +2 -2
- package/lib/components/SLocalNav.vue +1 -1
- package/lib/components/SLocalNavActions.vue +1 -1
- package/lib/components/SLocalNavMenu.vue +2 -2
- package/lib/components/SLoginPagePasswordDialog.vue +2 -2
- package/lib/components/SM.vue +1 -1
- package/lib/components/SMFade.vue +1 -1
- package/lib/components/SMarkdown.vue +3 -2
- package/lib/components/SModal.vue +2 -2
- package/lib/components/SSnackbar.vue +2 -2
- package/lib/components/SSteps.vue +6 -6
- package/lib/components/STable.vue +70 -27
- package/lib/components/STableCell.vue +14 -17
- package/lib/components/STableCellAvatars.vue +1 -1
- package/lib/components/STableCellDay.vue +12 -5
- package/lib/components/STableCellNumber.vue +2 -3
- package/lib/components/STableCellPath.vue +2 -2
- package/lib/components/STableCellText.vue +2 -3
- package/lib/components/STableColumn.vue +38 -16
- package/lib/components/STableFooter.vue +10 -2
- package/lib/components/STableHeader.vue +0 -1
- package/lib/components/STableHeaderMenu.vue +4 -4
- package/lib/components/STableHeaderMenuItem.vue +1 -1
- package/lib/components/STooltip.vue +3 -3
- package/lib/composables/Dropdown.ts +10 -1
- package/lib/composables/Error.ts +37 -37
- package/lib/composables/Grid.ts +1 -4
- package/lib/composables/Image.ts +2 -3
- package/lib/composables/Lang.ts +1 -1
- package/lib/composables/Markdown.ts +1 -1
- package/lib/composables/Table.ts +0 -2
- package/lib/composables/Theme.ts +1 -1
- package/lib/composables/Utils.ts +11 -4
- package/lib/composables/Validation.ts +1 -4
- package/lib/http/Http.ts +23 -17
- package/lib/styles/variables-deprecated.css +0 -1
- package/lib/styles/variables.css +16 -16
- package/lib/support/Chart.ts +0 -1
- package/lib/support/DateRange.ts +1 -1
- package/lib/support/Day.ts +12 -65
- package/lib/support/File.ts +7 -16
- package/lib/support/Utils.ts +7 -40
- package/lib/validation/Rule.ts +6 -21
- package/lib/validation/rules/decimal.ts +3 -3
- package/lib/validation/rules/email.ts +1 -1
- package/lib/validation/rules/index.ts +1 -1
- package/lib/validation/rules/negativeInteger.ts +1 -1
- package/lib/validation/rules/positiveInteger.ts +1 -1
- package/lib/validation/rules/requiredHms.ts +2 -2
- package/lib/validation/rules/requiredIf.ts +1 -4
- package/lib/validation/rules/requiredYmd.ts +2 -2
- package/lib/validation/rules/slackChannelName.ts +4 -1
- package/lib/validation/rules/zeroOrNegativeInteger.ts +1 -1
- package/lib/validation/rules/zeroOrPositiveInteger.ts +1 -1
- package/lib/validation/validators/after.ts +1 -5
- package/lib/validation/validators/afterOrEqual.ts +1 -5
- package/lib/validation/validators/before.ts +1 -4
- package/lib/validation/validators/beforeOrEqual.ts +1 -5
- package/lib/validation/validators/decimal.ts +7 -9
- package/lib/validation/validators/email.ts +4 -8
- package/lib/validation/validators/fileExtension.ts +7 -15
- package/lib/validation/validators/hms.ts +26 -15
- package/lib/validation/validators/index.ts +0 -2
- package/lib/validation/validators/maxFileSize.ts +3 -13
- package/lib/validation/validators/maxLength.ts +1 -7
- package/lib/validation/validators/maxTotalFileSize.ts +3 -26
- package/lib/validation/validators/maxValue.ts +2 -6
- package/lib/validation/validators/minLength.ts +1 -7
- package/lib/validation/validators/minValue.ts +2 -6
- package/lib/validation/validators/month.ts +1 -7
- package/lib/validation/validators/negativeInteger.ts +1 -7
- package/lib/validation/validators/positiveInteger.ts +1 -7
- package/lib/validation/validators/required.ts +5 -28
- package/lib/validation/validators/requiredHmsIf.ts +11 -13
- package/lib/validation/validators/requiredIf.ts +5 -11
- package/lib/validation/validators/requiredYmdIf.ts +11 -13
- package/lib/validation/validators/slackChannelName.ts +11 -11
- package/lib/validation/validators/url.ts +7 -5
- package/lib/validation/validators/ymd.ts +36 -30
- package/package.json +38 -38
- package/lib/validation/validators/requiredHms.ts +0 -9
- 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.
|
|
5
|
-
"packageManager": "pnpm@
|
|
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.
|
|
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.
|
|
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.
|
|
57
|
+
"dayjs": "^1.11.19",
|
|
58
58
|
"fuse.js": "^7.1.0",
|
|
59
|
-
"lodash-es": "^4.17.
|
|
59
|
+
"lodash-es": "^4.17.22",
|
|
60
60
|
"markdown-it": "^14.1.0",
|
|
61
61
|
"normalize.css": "^8.0.1",
|
|
62
|
-
"pinia": "^3.0.
|
|
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.
|
|
67
|
-
"vue-router": "^4.
|
|
66
|
+
"vue": "^3.5.26",
|
|
67
|
+
"vue-router": "^4.6.4"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@sentry/browser": "^10.
|
|
71
|
-
"@sentry/vue": "^10.
|
|
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
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
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.
|
|
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.
|
|
91
|
+
"@iconify-json/ri": "^1.2.7",
|
|
92
92
|
"@popperjs/core": "^2.11.8",
|
|
93
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
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": "^
|
|
98
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
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.
|
|
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": "^
|
|
104
|
+
"@vueuse/core": "^14.1.0",
|
|
105
105
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
106
|
-
"dayjs": "^1.11.
|
|
107
|
-
"eslint": "
|
|
106
|
+
"dayjs": "^1.11.19",
|
|
107
|
+
"eslint": "^9.39.2",
|
|
108
108
|
"fuse.js": "^7.1.0",
|
|
109
|
-
"happy-dom": "^
|
|
109
|
+
"happy-dom": "^20.1.0",
|
|
110
110
|
"histoire": "0.16.5",
|
|
111
|
-
"lodash-es": "^4.17.
|
|
111
|
+
"lodash-es": "^4.17.22",
|
|
112
112
|
"markdown-it": "^14.1.0",
|
|
113
113
|
"normalize.css": "^8.0.1",
|
|
114
|
-
"pinia": "^3.0.
|
|
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.
|
|
119
|
-
"typescript": "~5.9.
|
|
118
|
+
"release-it": "^19.2.3",
|
|
119
|
+
"typescript": "~5.9.3",
|
|
120
120
|
"v-calendar": "3.0.1",
|
|
121
|
-
"vite": "^6.
|
|
122
|
-
"vitepress": "^2.0.0-alpha.
|
|
121
|
+
"vite": "^6.4.1",
|
|
122
|
+
"vitepress": "^2.0.0-alpha.15",
|
|
123
123
|
"vitest": "^3.2.4",
|
|
124
|
-
"vue": "^3.5.
|
|
125
|
-
"vue-router": "^4.
|
|
126
|
-
"vue-tsc": "^3.
|
|
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
|
-
}
|