@opentinyvue/vue-card-group 2.22.0 → 3.22.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/lib/index.js CHANGED
@@ -61,7 +61,7 @@ var CardGroup = defineComponent({
61
61
  });
62
62
  }
63
63
  });
64
- var version = "2.22.0";
64
+ var version = "3.22.0";
65
65
  CardGroup.model = {
66
66
  prop: "modelValue",
67
67
  event: "update:modelValue"
@@ -1,35 +1,39 @@
1
1
  import { renderless, api } from '@opentinyvue/vue-renderless/card-group/vue';
2
2
  import { defineComponent, $prefix, props, setup } from '@opentinyvue/vue-common';
3
+ import { openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
3
4
 
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
5
+ function _createForOfIteratorHelperLoose(r, e) {
6
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (t) return (t = t.call(r)).next.bind(t);
8
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
9
+ t && (r = t);
10
+ var o = 0;
11
+ return function() {
12
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
13
+ };
10
14
  }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
14
- }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
15
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16
+ }
17
+ function _unsupportedIterableToArray(r, a) {
18
+ if (r) {
19
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
20
+ var t = {}.toString.call(r).slice(8, -1);
21
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
27
22
  }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
23
  }
24
+ function _arrayLikeToArray(r, a) {
25
+ (null == a || a > r.length) && (a = r.length);
26
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
27
+ return n;
28
+ }
29
+ var _export_sfc = function _export_sfc2(sfc, props) {
30
+ var target = sfc.__vccOpts || sfc;
31
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
32
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
33
+ target[key] = val;
34
+ }
35
+ return target;
36
+ };
33
37
 
34
38
  var classes = {
35
39
  "size-large": "grid-cols-[repeat(auto-fill,minmax(theme(spacing.112),1fr))]",
@@ -37,7 +41,7 @@ var classes = {
37
41
  "size-small": "grid-cols-[repeat(auto-fill,minmax(theme(spacing.54),1fr))]",
38
42
  "size-mini": "grid-cols-[repeat(auto-fill,minmax(theme(spacing.32),1fr))]"
39
43
  };
40
- var __vue2_script = defineComponent({
44
+ var _sfc_main = defineComponent({
41
45
  name: $prefix + "CardGroup",
42
46
  componentName: "CardGroup",
43
47
  emits: ["update:modelValue", "change"],
@@ -52,28 +56,18 @@ var __vue2_script = defineComponent({
52
56
  });
53
57
  }
54
58
  });
55
- var render = function render2() {
56
- var _vm = this;
57
- var _h = _vm.$createElement;
58
- var _c = _vm._self._c || _h;
59
- return _c("div", {
60
- staticClass: "w-full grid gap-4",
61
- class: _vm.gcls("size-" + _vm.state.size),
62
- attrs: {
63
- "data-tag": "tiny-card-group"
64
- }
65
- }, [_vm._t("default")], 2);
66
- };
67
- var staticRenderFns = [];
68
- var __cssModules = {};
69
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
70
- function __vue2_injectStyles(context) {
71
- for (var o in __cssModules) {
72
- this[o] = __cssModules[o];
73
- }
59
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
60
+ return openBlock(), createElementBlock(
61
+ "div",
62
+ {
63
+ "data-tag": "tiny-card-group",
64
+ class: normalizeClass(["w-full grid gap-4", _ctx.gcls("size-" + _ctx.state.size)])
65
+ },
66
+ [renderSlot(_ctx.$slots, "default")],
67
+ 2
68
+ /* CLASS */
69
+ );
74
70
  }
75
- var mobileFirst = /* @__PURE__ */ function() {
76
- return __component__.exports;
77
- }();
71
+ var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
78
72
 
79
73
  export { mobileFirst as default };
package/lib/pc.js CHANGED
@@ -1,38 +1,42 @@
1
1
  import { renderless, api } from '@opentinyvue/vue-renderless/card-group/vue';
2
2
  import { defineComponent, $prefix, props, setup } from '@opentinyvue/vue-common';
3
3
  import '@opentinyvue/vue-theme/card-group/index.css';
4
+ import { openBlock, createElementBlock, renderSlot } from 'vue';
4
5
 
5
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
6
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
7
- if (render) {
8
- options.render = render;
9
- options.staticRenderFns = staticRenderFns;
10
- options._compiled = true;
6
+ function _createForOfIteratorHelperLoose(r, e) {
7
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
8
+ if (t) return (t = t.call(r)).next.bind(t);
9
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
10
+ t && (r = t);
11
+ var o = 0;
12
+ return function() {
13
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
14
+ };
11
15
  }
12
- var hook;
13
- if (injectStyles) {
14
- hook = injectStyles;
15
- }
16
- if (hook) {
17
- if (options.functional) {
18
- options._injectStyles = hook;
19
- var originalRender = options.render;
20
- options.render = function renderWithStyleInjection(h, context) {
21
- hook.call(context);
22
- return originalRender(h, context);
23
- };
24
- } else {
25
- var existing = options.beforeCreate;
26
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
27
- }
16
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
+ }
18
+ function _unsupportedIterableToArray(r, a) {
19
+ if (r) {
20
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
21
+ var t = {}.toString.call(r).slice(8, -1);
22
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
28
23
  }
29
- return {
30
- exports: scriptExports,
31
- options
32
- };
33
24
  }
25
+ function _arrayLikeToArray(r, a) {
26
+ (null == a || a > r.length) && (a = r.length);
27
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
28
+ return n;
29
+ }
30
+ var _export_sfc = function _export_sfc2(sfc, props) {
31
+ var target = sfc.__vccOpts || sfc;
32
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
33
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
34
+ target[key] = val;
35
+ }
36
+ return target;
37
+ };
34
38
 
35
- var __vue2_script = defineComponent({
39
+ var _sfc_main = defineComponent({
36
40
  name: $prefix + "CardGroup",
37
41
  componentName: "CardGroup",
38
42
  emits: ["update:modelValue", "change", "handleChange"],
@@ -46,24 +50,12 @@ var __vue2_script = defineComponent({
46
50
  });
47
51
  }
48
52
  });
49
- var render = function render2() {
50
- var _vm = this;
51
- var _h = _vm.$createElement;
52
- var _c = _vm._self._c || _h;
53
- return _c("div", {
54
- staticClass: "tiny-card-group"
55
- }, [_vm._t("default")], 2);
53
+ var _hoisted_1 = {
54
+ class: "tiny-card-group"
56
55
  };
57
- var staticRenderFns = [];
58
- var __cssModules = {};
59
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
60
- function __vue2_injectStyles(context) {
61
- for (var o in __cssModules) {
62
- this[o] = __cssModules[o];
63
- }
56
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
57
+ return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
64
58
  }
65
- var pc = /* @__PURE__ */ function() {
66
- return __component__.exports;
67
- }();
59
+ var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
68
60
 
69
61
  export { pc as default };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-card-group",
3
- "version": "2.22.0",
3
+ "version": "3.22.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~2.22.0",
10
+ "@opentinyvue/vue-common": "~3.22.0",
11
11
  "@opentinyvue/vue-renderless": "~3.22.0",
12
12
  "@opentinyvue/vue-theme": "~3.22.0"
13
13
  },
package/src/index.d.ts CHANGED
@@ -33,5 +33,83 @@ export declare const cardGroupProps: {
33
33
  tiny_theme: StringConstructor;
34
34
  tiny_chart_theme: ObjectConstructor;
35
35
  };
36
- declare const _default: any;
36
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
37
+ modelValue: {};
38
+ customClass: StringConstructor;
39
+ height: StringConstructor;
40
+ autoWidth: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ size: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ status: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ checkType: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ type: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ disabled: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ tiny_mode: StringConstructor;
65
+ tiny_mode_root: BooleanConstructor;
66
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
67
+ tiny_renderless: FunctionConstructor;
68
+ tiny_theme: StringConstructor;
69
+ tiny_chart_theme: ObjectConstructor;
70
+ }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
71
+ [key: string]: any;
72
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
73
+ modelValue: {};
74
+ customClass: StringConstructor;
75
+ height: StringConstructor;
76
+ autoWidth: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ size: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ status: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ checkType: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ type: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ disabled: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ tiny_mode: StringConstructor;
101
+ tiny_mode_root: BooleanConstructor;
102
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
103
+ tiny_renderless: FunctionConstructor;
104
+ tiny_theme: StringConstructor;
105
+ tiny_chart_theme: ObjectConstructor;
106
+ }>>, {
107
+ disabled: boolean;
108
+ size: string;
109
+ type: string;
110
+ status: string;
111
+ tiny_mode_root: boolean;
112
+ autoWidth: boolean;
113
+ checkType: string;
114
+ }, {}>;
37
115
  export default _default;
@@ -1,2 +1,65 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ disabled?: any;
3
+ height?: any;
4
+ size?: any;
5
+ type?: any;
6
+ status?: any;
7
+ customClass?: any;
8
+ tiny_mode?: any;
9
+ tiny_mode_root?: any;
10
+ tiny_template?: any;
11
+ tiny_renderless?: any;
12
+ _constants?: any;
13
+ tiny_theme?: any;
14
+ tiny_chart_theme?: any;
15
+ modelValue?: any;
16
+ autoWidth?: any;
17
+ checkType?: any;
18
+ }>, {
19
+ t: (this: any, path: any, options?: any) => any;
20
+ vm: any;
21
+ f: (props: any, attrs?: {}) => {};
22
+ a: (attrs: any, filters: any, include: any) => {};
23
+ d: (props: any) => void;
24
+ dp: (props: any) => void;
25
+ gcls: (key: any) => any;
26
+ m: (...cssClasses: any[]) => string;
27
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
28
+ disabled?: any;
29
+ height?: any;
30
+ size?: any;
31
+ type?: any;
32
+ status?: any;
33
+ customClass?: any;
34
+ tiny_mode?: any;
35
+ tiny_mode_root?: any;
36
+ tiny_template?: any;
37
+ tiny_renderless?: any;
38
+ _constants?: any;
39
+ tiny_theme?: any;
40
+ tiny_chart_theme?: any;
41
+ modelValue?: any;
42
+ autoWidth?: any;
43
+ checkType?: any;
44
+ }>>> & {
45
+ onChange?: ((...args: any[]) => any) | undefined;
46
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
+ }, {
48
+ readonly disabled?: any;
49
+ readonly height?: any;
50
+ readonly size?: any;
51
+ readonly type?: any;
52
+ readonly status?: any;
53
+ readonly customClass?: any;
54
+ readonly tiny_mode?: any;
55
+ readonly tiny_mode_root?: any;
56
+ readonly tiny_template?: any;
57
+ readonly tiny_renderless?: any;
58
+ readonly _constants?: any;
59
+ readonly tiny_theme?: any;
60
+ readonly tiny_chart_theme?: any;
61
+ readonly modelValue?: any;
62
+ readonly autoWidth?: any;
63
+ readonly checkType?: any;
64
+ }, {}>;
2
65
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,2 +1,66 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ disabled?: any;
3
+ height?: any;
4
+ size?: any;
5
+ type?: any;
6
+ status?: any;
7
+ customClass?: any;
8
+ tiny_mode?: any;
9
+ tiny_mode_root?: any;
10
+ tiny_template?: any;
11
+ tiny_renderless?: any;
12
+ _constants?: any;
13
+ tiny_theme?: any;
14
+ tiny_chart_theme?: any;
15
+ modelValue?: any;
16
+ autoWidth?: any;
17
+ checkType?: any;
18
+ }>, {
19
+ t: (this: any, path: any, options?: any) => any;
20
+ vm: any;
21
+ f: (props: any, attrs?: {}) => {};
22
+ a: (attrs: any, filters: any, include: any) => {};
23
+ d: (props: any) => void;
24
+ dp: (props: any) => void;
25
+ gcls: (key: any) => any;
26
+ m: (...cssClasses: any[]) => string;
27
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue" | "handleChange")[], "change" | "update:modelValue" | "handleChange", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
28
+ disabled?: any;
29
+ height?: any;
30
+ size?: any;
31
+ type?: any;
32
+ status?: any;
33
+ customClass?: any;
34
+ tiny_mode?: any;
35
+ tiny_mode_root?: any;
36
+ tiny_template?: any;
37
+ tiny_renderless?: any;
38
+ _constants?: any;
39
+ tiny_theme?: any;
40
+ tiny_chart_theme?: any;
41
+ modelValue?: any;
42
+ autoWidth?: any;
43
+ checkType?: any;
44
+ }>>> & {
45
+ onChange?: ((...args: any[]) => any) | undefined;
46
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
+ onHandleChange?: ((...args: any[]) => any) | undefined;
48
+ }, {
49
+ readonly disabled?: any;
50
+ readonly height?: any;
51
+ readonly size?: any;
52
+ readonly type?: any;
53
+ readonly status?: any;
54
+ readonly customClass?: any;
55
+ readonly tiny_mode?: any;
56
+ readonly tiny_mode_root?: any;
57
+ readonly tiny_template?: any;
58
+ readonly tiny_renderless?: any;
59
+ readonly _constants?: any;
60
+ readonly tiny_theme?: any;
61
+ readonly tiny_chart_theme?: any;
62
+ readonly modelValue?: any;
63
+ readonly autoWidth?: any;
64
+ readonly checkType?: any;
65
+ }, {}>;
2
66
  export default _default;