eco-vue-js 0.11.46 → 0.11.47
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/dist/components/DatePicker/components/CalendarDay.vue.js +2 -2
- package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +5 -3
- package/eslint/configs/configJson.js +4 -4
- package/eslint/configs/configTypescript.js +8 -8
- package/eslint/configs/configVue.js +2 -2
- package/package.json +1 -1
- package/tailwind-base/plugins/internal-variables.ts +1 -0
|
@@ -86,8 +86,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
class: normalizeClass(["square-9 relative flex items-center justify-center rounded-full", {
|
|
87
87
|
"w-ripple w-ripple-hover": !isDisabled.value && !_ctx.readonly,
|
|
88
88
|
"opacity-50": isDisabled.value,
|
|
89
|
-
"bg-primary dark:bg-primary-dark
|
|
90
|
-
"bg-negative dark:bg-negative-dark
|
|
89
|
+
"bg-primary dark:bg-primary-dark font-semibold text-[--w-date-picker-day,#ffffff]": isSelected.value,
|
|
90
|
+
"bg-negative dark:bg-negative-dark font-semibold text-[--w-date-picker-day,#ffffff]": !isSelected.value && _ctx.isToday
|
|
91
91
|
}])
|
|
92
92
|
}, [
|
|
93
93
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.startOfDay.getDate()), 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarValue.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarValue.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CalendarValue.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/components/CalendarValue.vue"],"names":[],"mappings":"AAsBA;AA+DA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,IAAI,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AAkFF,wBAQG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed, onBeforeMount, createElementBlock, openBlock, normalizeClass, createElementVNode, toDisplayString
|
|
1
|
+
import { defineComponent, computed, onBeforeMount, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { useSemanticTypeBackgroundMap, SemanticType } from '../../../utils/SemanticType.js';
|
|
2
3
|
import { isSameMonth, dateFormat, getStartOfMonth } from '../../../utils/dateTime.js';
|
|
3
4
|
|
|
4
5
|
const _hoisted_1 = { class: "mb-0.5 font-normal tracking-wide" };
|
|
@@ -19,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
20
|
if (!props.value || !clickable.value) return;
|
|
20
21
|
emit("update:currentDate", getStartOfMonth(props.value));
|
|
21
22
|
};
|
|
23
|
+
const semanticTypeBackgroundMap = useSemanticTypeBackgroundMap();
|
|
22
24
|
onBeforeMount(() => {
|
|
23
25
|
if (props.autoFocus) {
|
|
24
26
|
updateCurrentDate();
|
|
@@ -26,9 +28,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
28
|
});
|
|
27
29
|
return (_ctx, _cache) => {
|
|
28
30
|
return openBlock(), createElementBlock("div", {
|
|
29
|
-
class: normalizeClass(["
|
|
31
|
+
class: normalizeClass(["relative w-full select-none rounded-xl bg-gradient-to-tr px-4 py-3", [{
|
|
30
32
|
"w-ripple w-ripple-hover cursor-pointer": clickable.value
|
|
31
|
-
}]),
|
|
33
|
+
}, unref(semanticTypeBackgroundMap)[unref(SemanticType).PRIMARY]]]),
|
|
32
34
|
onClick: updateCurrentDate
|
|
33
35
|
}, [
|
|
34
36
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.title), 1),
|
|
@@ -5,11 +5,11 @@ export default [
|
|
|
5
5
|
{
|
|
6
6
|
files: ['**/*.json'],
|
|
7
7
|
rules: {
|
|
8
|
-
'jsonc/indent': ['
|
|
9
|
-
'jsonc/key-spacing': ['
|
|
8
|
+
'jsonc/indent': ['warn', 2, {}],
|
|
9
|
+
'jsonc/key-spacing': ['warn', {beforeColon: false, afterColon: true, mode: 'strict'}],
|
|
10
10
|
'jsonc/comma-style': ['error', 'last'],
|
|
11
|
-
'jsonc/object-curly-newline': ['
|
|
12
|
-
'jsonc/object-property-newline': '
|
|
11
|
+
'jsonc/object-curly-newline': ['warn', 'always'],
|
|
12
|
+
'jsonc/object-property-newline': 'warn',
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
]
|
|
@@ -17,15 +17,15 @@ export default (config = {}) => [
|
|
|
17
17
|
sourceType: 'module',
|
|
18
18
|
},
|
|
19
19
|
rules: {
|
|
20
|
-
semi: ['
|
|
21
|
-
quotes: ['
|
|
22
|
-
indent: ['
|
|
23
|
-
'comma-dangle': ['
|
|
24
|
-
'comma-spacing': ['
|
|
25
|
-
'object-curly-spacing': ['
|
|
20
|
+
semi: ['warn', 'never'],
|
|
21
|
+
quotes: ['warn', 'single', {allowTemplateLiterals: true}],
|
|
22
|
+
indent: ['warn', 2, {SwitchCase: 1}],
|
|
23
|
+
'comma-dangle': ['warn', 'always-multiline'],
|
|
24
|
+
'comma-spacing': ['warn', {before: false, after: true}],
|
|
25
|
+
'object-curly-spacing': ['warn', 'never'],
|
|
26
26
|
'func-call-spacing': 'off',
|
|
27
|
-
'template-curly-spacing': ['
|
|
28
|
-
'space-before-function-paren': ['
|
|
27
|
+
'template-curly-spacing': ['warn', 'always'],
|
|
28
|
+
'space-before-function-paren': ['warn', {anonymous: 'always', named: 'never', asyncArrow: 'always'}],
|
|
29
29
|
'no-undef': 'off',
|
|
30
30
|
'default-case-last': 'off',
|
|
31
31
|
'no-console': ['warn'],
|
|
@@ -2,7 +2,7 @@ export default [
|
|
|
2
2
|
{
|
|
3
3
|
files: ['**/*.vue'],
|
|
4
4
|
rules: {
|
|
5
|
-
'vue/script-indent': ['
|
|
5
|
+
'vue/script-indent': ['warn', 2, {
|
|
6
6
|
baseIndent: 0,
|
|
7
7
|
switchCase: 1,
|
|
8
8
|
ignores: [],
|
|
@@ -11,7 +11,7 @@ export default [
|
|
|
11
11
|
'vue/block-order': ['error', {
|
|
12
12
|
order: ['template', 'script[setup]', 'style'],
|
|
13
13
|
}],
|
|
14
|
-
'vue/multiline-html-element-content-newline': ['
|
|
14
|
+
'vue/multiline-html-element-content-newline': ['warn', {
|
|
15
15
|
ignoreWhenEmpty: true,
|
|
16
16
|
ignores: ['pre', 'textarea', 'span', 'tspan', 'template'],
|
|
17
17
|
allowEmptyLines: false,
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ const pluginDefault = plugin(function ({matchUtilities, theme}) {
|
|
|
13
13
|
'w-toggle-caret': value => ({'--w-toggle-caret': value}),
|
|
14
14
|
'w-checkbox-color': value => ({'--w-checkbox-color': value}),
|
|
15
15
|
'w-nav-item-dot-color': value => ({'--w-nav-item-dot-color': value}),
|
|
16
|
+
'w-date-picker-day': value => ({'--w-date-picker-day': value}),
|
|
16
17
|
},
|
|
17
18
|
{values: flattenColorPalette(theme('colors'))},
|
|
18
19
|
)
|