yuyeon 0.3.4-rc.2 → 0.3.4-rc.4
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/style.css +1 -1
- package/dist/yuyeon.js +440 -431
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/components/draggable/YDraggable.js.map +1 -1
- package/lib/components/draggable/index.js +2 -0
- package/lib/components/draggable/index.js.map +1 -0
- package/lib/components/input/YInput.scss +1 -1
- package/lib/components/radio/YRadio.js +58 -0
- package/lib/components/radio/YRadio.js.map +1 -0
- package/lib/components/radio/YRadio.scss +38 -0
- package/lib/components/radio/YRadioIcon.js +33 -0
- package/lib/components/radio/YRadioIcon.js.map +1 -0
- package/lib/components/radio/YRadioIcon.scss +44 -0
- package/lib/components/radio/index.js +3 -0
- package/lib/components/radio/index.js.map +1 -0
- package/lib/components/text-highlighter/YTextHighlighter.js +2 -1
- package/lib/components/text-highlighter/YTextHighlighter.js.map +1 -1
- package/lib/composables/validation.js +4 -1
- package/lib/composables/validation.js.map +1 -1
- package/lib/util/string.js +3 -0
- package/lib/util/string.js.map +1 -1
- package/package.json +1 -1
- package/types/components/draggable/index.d.ts +1 -0
- package/types/components/radio/YRadio.d.ts +25 -0
- package/types/components/radio/YRadioIcon.d.ts +6 -0
- package/types/components/radio/index.d.ts +2 -0
- package/types/shims.d.ts +2 -1
- package/types/util/string.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YDraggable.js","names":["computed","defineComponent","h","ref","unref","useRender","getHtmlElement","YDraggable","name","props","as","Object","String","handle","disabled","Boolean","capture","exact","container","onDragStart","Function","emits","setup","_ref","slots","emit","targetRef","dragging","originPosition","position","targetEl","value","handleEl","el","hEl","querySelector","nodeType","containerEl","document","undefined","slotProps","start","e","console","log","target","containerRect","getBoundingClientRect","targetRect","pos","x","clientX","left","scrollLeft","y","clientY","top","scrollTop","move","end","default","window","config"],"sources":["../../../src/components/draggable/YDraggable.
|
|
1
|
+
{"version":3,"file":"YDraggable.js","names":["computed","defineComponent","h","ref","unref","useRender","getHtmlElement","YDraggable","name","props","as","Object","String","handle","disabled","Boolean","capture","exact","container","onDragStart","Function","emits","setup","_ref","slots","emit","targetRef","dragging","originPosition","position","targetEl","value","handleEl","el","hEl","querySelector","nodeType","containerEl","document","undefined","slotProps","start","e","console","log","target","containerRect","getBoundingClientRect","targetRect","pos","x","clientX","left","scrollLeft","y","clientY","top","scrollTop","move","end","default","window","config"],"sources":["../../../src/components/draggable/YDraggable.tsx"],"sourcesContent":["import {\n MaybeRef,\n PropType,\n computed,\n defineComponent,\n h,\n ref,\n unref,\n} from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { getHtmlElement } from '@/util/index';\n\ntype Coord = { x: number; y: number };\n\nexport const YDraggable = defineComponent({\n name: 'YDraggable',\n props: {\n as: [Object, String] as PropType<object | string>,\n handle: [Object, String] as PropType<MaybeRef<HTMLElement | string>>,\n disabled: Boolean,\n capture: Boolean,\n exact: Boolean,\n container: [Object, String] as PropType<\n MaybeRef<HTMLElement | SVGElement | null> | string\n >,\n onDragStart: Function as PropType<\n (pos: Coord, e: PointerEvent) => boolean | undefined\n >,\n },\n emits: ['start'],\n setup(props, { slots, emit }) {\n const targetRef = ref();\n const dragging = ref(false);\n const originPosition = ref();\n const position = ref();\n\n const targetEl = computed(() => {\n return getHtmlElement(targetRef.value);\n });\n\n const handleEl = computed(() => {\n let el = targetEl.value;\n if (typeof props.handle === 'string') {\n const hEl = targetEl.value?.querySelector(props.handle);\n if (hEl?.nodeType === 1) el = hEl;\n }\n return el;\n });\n\n const containerEl = computed(() => {\n const container = unref(props.container);\n if (typeof container === 'string') {\n return document.querySelector(container);\n } else if (container) {\n return getHtmlElement(container);\n }\n return undefined;\n });\n\n const slotProps = computed(() => {\n return {\n handle: handleEl.value,\n };\n });\n\n const start = (e: PointerEvent) => {\n console.log('start', e);\n if (props.disabled) return;\n if (props.exact && e.target !== targetEl.value) return;\n\n const container = containerEl.value;\n const containerRect = container?.getBoundingClientRect?.();\n const targetRect = targetEl.value?.getBoundingClientRect();\n const pos = {\n x:\n e.clientX -\n (container\n ? targetRect.left - containerRect!.left + container.scrollLeft\n : targetRect.left),\n y:\n e.clientY -\n (container\n ? targetRect.top - containerRect!.top + container.scrollTop\n : targetRect.top),\n };\n if (props.onDragStart?.(pos, e) === false) return;\n originPosition.value = pos;\n };\n\n const move = (e: PointerEvent) => {\n console.log('move', e);\n };\n\n const end = (e: PointerEvent) => {\n console.log('end', e);\n };\n\n useRender(() => {\n if (slots.default) {\n return h(\n props.as || 'div',\n { ref: targetRef },\n slots.default(slotProps.value),\n );\n }\n return h('div');\n });\n\n if (window) {\n const config = { capture: props.capture ?? true };\n // useEventListener(handleEl, 'pointerdown', start, config);\n // useEventListener(window, 'pointermove', move, config);\n // useEventListener(window, 'pointerup', end, config);\n }\n\n return {\n targetEl,\n handleEl,\n dragging,\n position,\n };\n },\n});\n\nexport type YDraggable = InstanceType<typeof YDraggable>;\n"],"mappings":"AAAA,SAGEA,QAAQ,EACRC,eAAe,EACfC,CAAC,EACDC,GAAG,EACHC,KAAK,QACA,KAAK;AAAC,SAEJC,SAAS;AAAA,SACTC,cAAc;AAIvB,OAAO,MAAMC,UAAU,GAAGN,eAAe,CAAC;EACxCO,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAE;IACLC,EAAE,EAAE,CAACC,MAAM,EAAEC,MAAM,CAA8B;IACjDC,MAAM,EAAE,CAACF,MAAM,EAAEC,MAAM,CAA6C;IACpEE,QAAQ,EAAEC,OAAO;IACjBC,OAAO,EAAED,OAAO;IAChBE,KAAK,EAAEF,OAAO;IACdG,SAAS,EAAE,CAACP,MAAM,EAAEC,MAAM,CAEzB;IACDO,WAAW,EAAEC;EAGf,CAAC;EACDC,KAAK,EAAE,CAAC,OAAO,CAAC;EAChBC,KAAKA,CAACb,KAAK,EAAAc,IAAA,EAAmB;IAAA,IAAjB;MAAEC,KAAK;MAAEC;IAA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,CAACpB,SAAS,CAACT,KAAK,CAC/B,CAAC;MACH;MACA,OAAO7B,CAAC,CAAC,KAAK,CAAC;IACjB,CAAC,CAAC;IAEF,IAAI2D,MAAM,EAAE;MACV,MAAMC,MAAM,GAAG;QAAE9C,OAAO,EAAEP,KAAK,CAACO,OAAO,IAAI;MAAK,CAAC;MACjD;MACA;MACA;IACF;;IAEA,OAAO;MACLc,QAAQ;MACRE,QAAQ;MACRL,QAAQ;MACRE;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/draggable/index.ts"],"sourcesContent":["export * from './YDraggable';\n"],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { useRender } from "../../composables/component.js";
|
|
3
|
+
import { defineComponent, getUid, propsFactory } from "../../util/component/index.js";
|
|
4
|
+
import { YRadioIcon } from "./YRadioIcon.js";
|
|
5
|
+
import "./YRadio.scss";
|
|
6
|
+
export const pressYRadioPropsOptions = propsFactory({
|
|
7
|
+
modelValue: Boolean,
|
|
8
|
+
disabled: Boolean,
|
|
9
|
+
value: String,
|
|
10
|
+
label: String
|
|
11
|
+
}, 'YRadio');
|
|
12
|
+
const YRadio = defineComponent({
|
|
13
|
+
name: 'YRadio',
|
|
14
|
+
props: {
|
|
15
|
+
...pressYRadioPropsOptions()
|
|
16
|
+
},
|
|
17
|
+
slots: Object,
|
|
18
|
+
emits: ['update:modelValue', 'input'],
|
|
19
|
+
setup(props, _ref) {
|
|
20
|
+
let {
|
|
21
|
+
slots,
|
|
22
|
+
attrs,
|
|
23
|
+
emit
|
|
24
|
+
} = _ref;
|
|
25
|
+
const uid = getUid();
|
|
26
|
+
function onInput(e) {
|
|
27
|
+
emit('input', e);
|
|
28
|
+
}
|
|
29
|
+
useRender(() => {
|
|
30
|
+
const inputId = `input-${uid}`;
|
|
31
|
+
return _createVNode("div", {
|
|
32
|
+
"class": ['y-radio', {
|
|
33
|
+
'z-radio--disabled': props.disabled
|
|
34
|
+
}]
|
|
35
|
+
}, [slots.leading && slots.leading(), _createVNode("div", {
|
|
36
|
+
"class": "y-radio__input"
|
|
37
|
+
}, [slots.icon ? slots.icon() : _createVNode(YRadioIcon, {
|
|
38
|
+
"active": props.modelValue,
|
|
39
|
+
"disabled": props.disabled
|
|
40
|
+
}, null), _createVNode("input", {
|
|
41
|
+
"id": inputId,
|
|
42
|
+
"name": attrs.name,
|
|
43
|
+
"type": "radio",
|
|
44
|
+
"value": props.value,
|
|
45
|
+
"checked": props.modelValue,
|
|
46
|
+
"disabled": props.disabled,
|
|
47
|
+
"class": "y-radio__input-native",
|
|
48
|
+
"onInput": onInput
|
|
49
|
+
}, null)]), slots.label ? slots.label({
|
|
50
|
+
inputId
|
|
51
|
+
}) : _createVNode("label", {
|
|
52
|
+
"for": inputId,
|
|
53
|
+
"class": "y-radio__label"
|
|
54
|
+
}, [props.label])]);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=YRadio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YRadio.js","names":["useRender","defineComponent","getUid","propsFactory","YRadioIcon","pressYRadioPropsOptions","modelValue","Boolean","disabled","value","String","label","YRadio","name","props","slots","Object","emits","setup","_ref","attrs","emit","uid","onInput","e","inputId","_createVNode","leading","icon"],"sources":["../../../src/components/radio/YRadio.tsx"],"sourcesContent":["import type { PropType, SlotsType } from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { defineComponent, getUid, propsFactory } from '@/util/component';\n\nimport { YRadioIcon } from './YRadioIcon';\n\nimport './YRadio.scss';\n\nexport const pressYRadioPropsOptions = propsFactory(\n {\n modelValue: Boolean as PropType<boolean>,\n disabled: Boolean as PropType<boolean>,\n value: String as PropType<string>,\n label: String as PropType<string>,\n },\n 'YRadio',\n);\n\nconst YRadio = defineComponent({\n name: 'YRadio',\n props: {\n ...pressYRadioPropsOptions(),\n },\n slots: Object as SlotsType<{\n leading: any;\n icon: any;\n label: any;\n trailing: any;\n }>,\n emits: ['update:modelValue', 'input'],\n setup(props, { slots, attrs, emit }) {\n const uid = getUid();\n\n function onInput(e: Event) {\n emit('input', e);\n }\n\n useRender(() => {\n const inputId = `input-${uid}`;\n return (\n <div class={['y-radio', { 'z-radio--disabled': props.disabled }]}>\n {slots.leading && slots.leading()}\n <div class=\"y-radio__input\">\n {slots.icon ? (\n slots.icon()\n ) : (\n <YRadioIcon active={props.modelValue} disabled={props.disabled} />\n )}\n <input\n id={inputId}\n name={attrs.name as string}\n type=\"radio\"\n value={props.value}\n checked={props.modelValue}\n disabled={props.disabled}\n class=\"y-radio__input-native\"\n onInput={onInput}\n />\n </div>\n {slots.label ? (\n slots.label({ inputId })\n ) : (\n <label for={inputId} class=\"y-radio__label\">\n {props.label}\n </label>\n )}\n </div>\n );\n });\n },\n});\n"],"mappings":";SAESA,SAAS;AAAA,SACTC,eAAe,EAAEC,MAAM,EAAEC,YAAY;AAAA,SAErCC,UAAU;AAEnB;AAEA,OAAO,MAAMC,uBAAuB,GAAGF,YAAY,CACjD;EACEG,UAAU,EAAEC,OAA4B;EACxCC,QAAQ,EAAED,OAA4B;EACtCE,KAAK,EAAEC,MAA0B;EACjCC,KAAK,EAAED;AACT,CAAC,EACD,QACF,CAAC;AAED,MAAME,MAAM,GAAGX,eAAe,CAAC;EAC7BY,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAE;IACL,GAAGT,uBAAuB,CAAC;EAC7B,CAAC;EACDU,KAAK,EAAEC,MAKL;EACFC,KAAK,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC;EACrCC,KAAKA,CAACJ,KAAK,EAAAK,IAAA,EAA0B;IAAA,IAAxB;MAAEJ,KAAK;MAAEK,KAAK;MAAEC;IAAK,CAAC,GAAAF,IAAA;IACjC,MAAMG,GAAG,GAAGpB,MAAM,CAAC,CAAC;IAEpB,SAASqB,OAAOA,CAACC,CAAQ,EAAE;MACzBH,IAAI,CAAC,OAAO,EAAEG,CAAC,CAAC;IAClB;IAEAxB,SAAS,CAAC,MAAM;MACd,MAAMyB,OAAO,GAAI,SAAQH,GAAI,EAAC;MAC9B,OAAAI,YAAA;QAAA,SACc,CAAC,SAAS,EAAE;UAAE,mBAAmB,EAAEZ,KAAK,CAACN;QAAS,CAAC;MAAC,IAC7DO,KAAK,CAACY,OAAO,IAAIZ,KAAK,CAACY,OAAO,CAAC,CAAC,EAAAD,YAAA;QAAA;MAAA,IAE9BX,KAAK,CAACa,IAAI,GACTb,KAAK,CAACa,IAAI,CAAC,CAAC,GAAAF,YAAA,CAAAtB,UAAA;QAAA,UAEQU,KAAK,CAACR,UAAU;QAAA,YAAYQ,KAAK,CAACN;MAAQ,QAC/D,EAAAkB,YAAA;QAAA,MAEKD,OAAO;QAAA,QACLL,KAAK,CAACP,IAAI;QAAA;QAAA,SAETC,KAAK,CAACL,KAAK;QAAA,WACTK,KAAK,CAACR,UAAU;QAAA,YACfQ,KAAK,CAACN,QAAQ;QAAA;QAAA,WAEfe;MAAO,YAGnBR,KAAK,CAACJ,KAAK,GACVI,KAAK,CAACJ,KAAK,CAAC;QAAEc;MAAQ,CAAC,CAAC,GAAAC,YAAA;QAAA,OAEZD,OAAO;QAAA;MAAA,IAChBX,KAAK,CAACH,KAAK,EAEf;IAGP,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.y-radio {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
|
|
7
|
+
&__input {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
|
|
12
|
+
.y-radio-icon {
|
|
13
|
+
width: 24px;
|
|
14
|
+
height: 24px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
input {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
position: absolute;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__label {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--disabled & {
|
|
33
|
+
&__input input,
|
|
34
|
+
&__label {
|
|
35
|
+
cursor: default;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { useRender } from "../../composables/component.js";
|
|
3
|
+
import { defineComponent } from "../../util/component/component.js";
|
|
4
|
+
import "./YRadioIcon.scss";
|
|
5
|
+
export const YRadioIcon = defineComponent({
|
|
6
|
+
name: 'YRadioIcon',
|
|
7
|
+
props: {
|
|
8
|
+
active: Boolean,
|
|
9
|
+
disabled: Boolean
|
|
10
|
+
},
|
|
11
|
+
setup(props) {
|
|
12
|
+
useRender(() => _createVNode("svg", {
|
|
13
|
+
"class": ['y-radio-icon', {
|
|
14
|
+
'y-radio-icon--active': props.active,
|
|
15
|
+
'y-radio-icon--disabled': props.disabled
|
|
16
|
+
}],
|
|
17
|
+
"viewBox": "0 0 24 24"
|
|
18
|
+
}, [_createVNode("circle", {
|
|
19
|
+
"class": "y-radio-icon__plate",
|
|
20
|
+
"r": "11",
|
|
21
|
+
"cx": "12",
|
|
22
|
+
"cy": "12",
|
|
23
|
+
"stroke-width": "2",
|
|
24
|
+
"stroke": "currentColor"
|
|
25
|
+
}, null), _createVNode("circle", {
|
|
26
|
+
"class": "y-radio-icon__bead",
|
|
27
|
+
"r": "6",
|
|
28
|
+
"cx": "12",
|
|
29
|
+
"cy": "12"
|
|
30
|
+
}, null)]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=YRadioIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YRadioIcon.js","names":["useRender","defineComponent","YRadioIcon","name","props","active","Boolean","disabled","setup","_createVNode"],"sources":["../../../src/components/radio/YRadioIcon.tsx"],"sourcesContent":["import { useRender } from '@/composables/component';\nimport { defineComponent } from '@/util/component/component';\n\nimport './YRadioIcon.scss';\n\nexport const YRadioIcon = defineComponent({\n name: 'YRadioIcon',\n props: {\n active: Boolean,\n disabled: Boolean,\n },\n setup(props) {\n useRender(() => (\n <svg\n class={[\n 'y-radio-icon',\n {\n 'y-radio-icon--active': props.active,\n 'y-radio-icon--disabled': props.disabled,\n },\n ]}\n viewBox=\"0 0 24 24\"\n >\n <circle\n class=\"y-radio-icon__plate\"\n r=\"11\"\n cx=\"12\"\n cy=\"12\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n />\n <circle class=\"y-radio-icon__bead\" r=\"6\" cx=\"12\" cy=\"12\" />\n </svg>\n ));\n },\n});\n\nexport type YRadioIcon = InstanceType<typeof YRadioIcon>;\n"],"mappings":";SAASA,SAAS;AAAA,SACTC,eAAe;AAExB;AAEA,OAAO,MAAMC,UAAU,GAAGD,eAAe,CAAC;EACxCE,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAE;IACLC,MAAM,EAAEC,OAAO;IACfC,QAAQ,EAAED;EACZ,CAAC;EACDE,KAAKA,CAACJ,KAAK,EAAE;IACXJ,SAAS,CAAC,MAAAS,YAAA;MAAA,SAEC,CACL,cAAc,EACd;QACE,sBAAsB,EAAEL,KAAK,CAACC,MAAM;QACpC,wBAAwB,EAAED,KAAK,CAACG;MAClC,CAAC,CACF;MAAA;IAAA,IAAAE,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA,UAAAA,YAAA;MAAA;MAAA;MAAA;MAAA;IAAA,UAaJ,CAAC;EACJ;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.y-radio-icon {
|
|
2
|
+
--y-radio-icon-outline: var(--y-theme-outline, #c8c8c8);
|
|
3
|
+
width: 24px;
|
|
4
|
+
height: 24px;
|
|
5
|
+
|
|
6
|
+
&__plate {
|
|
7
|
+
fill: none;
|
|
8
|
+
stroke: var(--y-radio-icon-outline);
|
|
9
|
+
stroke-width: 1;
|
|
10
|
+
color: inherit;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__bead {
|
|
14
|
+
fill: none;
|
|
15
|
+
transform: scale(1.2);
|
|
16
|
+
transform-origin: center;
|
|
17
|
+
color: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--active:not(&--disabled) {
|
|
21
|
+
color: var(--y-theme-primary);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&--disabled {
|
|
25
|
+
color: var(--y-theme-disabled);
|
|
26
|
+
cursor: default;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--active &,
|
|
30
|
+
&--disabled & {
|
|
31
|
+
&__plate {
|
|
32
|
+
stroke: currentColor;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--active &__bead {
|
|
37
|
+
fill: currentColor;
|
|
38
|
+
stroke: currentColor;
|
|
39
|
+
transform: scale(1);
|
|
40
|
+
transition:
|
|
41
|
+
fill 200ms ease-in,
|
|
42
|
+
transform 120ms ease;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/radio/index.ts"],"sourcesContent":["export * from './YRadioIcon';\r\nexport * from './YRadio';\r\n\r\n"],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from 'vue';
|
|
2
2
|
import { defineComponent } from "../../util/component/index.js";
|
|
3
|
+
import { escapeRegExp } from "../../util/string.js";
|
|
3
4
|
import "./YTextHighlighter.scss";
|
|
4
5
|
export const YTextHighlighter = defineComponent({
|
|
5
6
|
name: 'YTextHighlighter',
|
|
@@ -26,7 +27,7 @@ export const YTextHighlighter = defineComponent({
|
|
|
26
27
|
if (keyword && text) {
|
|
27
28
|
const split = [];
|
|
28
29
|
let stack = text;
|
|
29
|
-
const keyExp = new RegExp(keyword, this.sensitive ? '' : 'i');
|
|
30
|
+
const keyExp = new RegExp(escapeRegExp(keyword), this.sensitive ? '' : 'i');
|
|
30
31
|
while (stack.length > 0) {
|
|
31
32
|
const index = stack.search(keyExp);
|
|
32
33
|
if (index < 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YTextHighlighter.js","names":["h","defineComponent","YTextHighlighter","name","props","text","type","String","keyword","color","sensitive","Boolean","computed","splitText","split","stack","keyExp","RegExp","length","index","search","push","isKeyword","substring","methods","createItem","staticClass","createHighlightKeywordItem","class","style","backgroundColor","createSplitTexts","map","splitItem","render","children"],"sources":["../../../src/components/text-highlighter/YTextHighlighter.ts"],"sourcesContent":["import { type VNode, h } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YTextHighlighter.js","names":["h","defineComponent","escapeRegExp","YTextHighlighter","name","props","text","type","String","keyword","color","sensitive","Boolean","computed","splitText","split","stack","keyExp","RegExp","length","index","search","push","isKeyword","substring","methods","createItem","staticClass","createHighlightKeywordItem","class","style","backgroundColor","createSplitTexts","map","splitItem","render","children"],"sources":["../../../src/components/text-highlighter/YTextHighlighter.ts"],"sourcesContent":["import { type VNode, h } from 'vue';\n\nimport { defineComponent } from '@/util/component';\nimport { escapeRegExp } from '@/util/string';\n\nimport './YTextHighlighter.scss';\n\nexport const YTextHighlighter = defineComponent({\n name: 'YTextHighlighter',\n props: {\n text: {\n type: String,\n },\n keyword: {\n type: String,\n },\n color: {\n type: String,\n },\n sensitive: {\n type: Boolean,\n },\n },\n computed: {\n splitText(): { text: string; isKeyword: boolean }[] {\n const { keyword, text } = this;\n if (keyword && text) {\n const split: { text: string; isKeyword: boolean }[] = [];\n let stack = text;\n const keyExp = new RegExp(\n escapeRegExp(keyword),\n this.sensitive ? '' : 'i',\n );\n while (stack.length > 0) {\n const index = stack.search(keyExp);\n if (index < 0) {\n split.push({ text: stack, isKeyword: false });\n stack = '';\n } else if (index < 1) {\n split.push({\n text: stack.substring(0, keyword.length),\n isKeyword: true,\n });\n stack = stack.substring(keyword.length, stack.length);\n } else {\n split.push({ text: stack.substring(0, index), isKeyword: false });\n split.push({\n text: stack.substring(index, index + keyword.length),\n isKeyword: true,\n });\n stack = stack.substring(index + keyword.length, stack.length);\n }\n }\n return split;\n }\n return [{ text: this.text || '', isKeyword: false }];\n },\n },\n methods: {\n createItem(text: string): VNode {\n return h(\n 'span',\n {\n staticClass: 'y-text-highlighter__item',\n },\n [text],\n );\n },\n createHighlightKeywordItem(text: string): VNode {\n return h(\n 'span',\n {\n staticClass: 'y-text-highlighter__item',\n class: 'y-text-highlighter__item--highlight',\n style: {\n backgroundColor: this.color,\n },\n },\n [text],\n );\n },\n createSplitTexts(): VNode[] {\n return this.splitText.map((splitItem) => {\n if (splitItem.isKeyword) {\n return this.createHighlightKeywordItem(splitItem.text);\n }\n return this.createItem(splitItem.text);\n });\n },\n },\n render(): VNode {\n const children = this.createSplitTexts();\n return h('span', { staticClass: 'y-text-highlighter' }, children);\n },\n});\n\nexport type YTextHighlighter = InstanceType<typeof YTextHighlighter>;\n"],"mappings":"AAAA,SAAqBA,CAAC,QAAQ,KAAK;AAAC,SAE3BC,eAAe;AAAA,SACfC,YAAY;AAErB;AAEA,OAAO,MAAMC,gBAAgB,GAAGF,eAAe,CAAC;EAC9CG,IAAI,EAAE,kBAAkB;EACxBC,KAAK,EAAE;IACLC,IAAI,EAAE;MACJC,IAAI,EAAEC;IACR,CAAC;IACDC,OAAO,EAAE;MACPF,IAAI,EAAEC;IACR,CAAC;IACDE,KAAK,EAAE;MACLH,IAAI,EAAEC;IACR,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAEK;IACR;EACF,CAAC;EACD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{ computed, getCurrentInstance, onBeforeMount, onBeforeUnmount, ref, watch } from 'vue';
|
|
2
2
|
import { getUid, propsFactory } from "../util/component/index.js";
|
|
3
3
|
import { useModelDuplex } from "./communication.js";
|
|
4
4
|
import { useForm } from "./form.js";
|
|
@@ -101,6 +101,9 @@ export function useValidation(props, name) {
|
|
|
101
101
|
resetError();
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
onBeforeUnmount(() => {
|
|
105
|
+
form?.unregister?.(cid.value);
|
|
106
|
+
});
|
|
104
107
|
onBeforeMount(() => {
|
|
105
108
|
form?.register({
|
|
106
109
|
id: cid.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","names":["computed","getCurrentInstance","onBeforeMount","ref","watch","getUid","propsFactory","useModelDuplex","useForm","useToggleScope","pressValidationPropsOptions","readonly","Boolean","disabled","status","type","String","validator","value","includes","helperText","validators","Array","validateOn","validationValue","maxErrors","Number","default","useValidation","props","name","uid","arguments","length","undefined","cid","model","validationModel","vm","form","validating","onSet","Set","split","blur","has","input","lazy","submit","errorResult","errors","isReadonly","isDisabled","isLoading","loading","isError","isSuccess","invokeValidators","focused","unwatch","val","results","isArray","handler","result","console","warn","push","resetError","resetValidation","register","id","vnode","validate"],"sources":["../../src/composables/validation.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"validation.js","names":["computed","getCurrentInstance","onBeforeMount","onBeforeUnmount","ref","watch","getUid","propsFactory","useModelDuplex","useForm","useToggleScope","pressValidationPropsOptions","readonly","Boolean","disabled","status","type","String","validator","value","includes","helperText","validators","Array","validateOn","validationValue","maxErrors","Number","default","useValidation","props","name","uid","arguments","length","undefined","cid","model","validationModel","vm","form","validating","onSet","Set","split","blur","has","input","lazy","submit","errorResult","errors","isReadonly","isDisabled","isLoading","loading","isError","isSuccess","invokeValidators","focused","unwatch","val","results","isArray","handler","result","console","warn","push","resetError","resetValidation","unregister","register","id","vnode","validate"],"sources":["../../src/composables/validation.ts"],"sourcesContent":["import {\n type PropType,\n computed,\n getCurrentInstance,\n onBeforeMount,\n onBeforeUnmount,\n ref,\n watch,\n} from 'vue';\n\nimport { getUid, propsFactory } from '@/util/component';\n\nimport { useModelDuplex } from './communication';\nimport { useForm } from './form';\nimport { useToggleScope } from './scope';\n\nexport interface ValidationProps {\n validateOn: 'input' | 'blur' | 'lazy' | 'submit' | string;\n}\n\nexport const pressValidationPropsOptions = propsFactory(\n {\n readonly: Boolean as PropType<boolean>,\n disabled: Boolean as PropType<boolean>,\n status: {\n type: String as PropType<'success' | 'warning' | 'error' | undefined>,\n validator(value: string) {\n return ['success', 'warning', 'error'].includes(value);\n },\n },\n helperText: String,\n validators: Array as PropType<((v: any) => boolean | string)[] | string[]>,\n validateOn: {\n type: String as PropType<ValidationProps['validateOn']>,\n },\n validationValue: null,\n maxErrors: {\n type: [Number, String] as PropType<number | string>,\n default: 1,\n },\n },\n 'validation',\n);\n\nexport function useValidation(props: any, name: string, uid = getUid()) {\n const cid = computed(() => props.name ?? uid);\n const model = useModelDuplex(props, 'modelValue');\n const validationModel = computed(() =>\n props.validationValue === undefined ? model.value : props.validationValue,\n );\n const vm = getCurrentInstance()!;\n const form = useForm();\n const validating = ref(false);\n const validateOn = computed(() => {\n let value = props.validateOn || 'input';\n if (value === 'lazy') value = 'input,lazy';\n const onSet = new Set(value?.split(',') ?? []);\n\n return {\n blur: onSet.has('blur') || onSet.has('input'),\n input: onSet.has('input'),\n lazy: onSet.has('lazy'),\n submit: onSet.has('submit'),\n };\n });\n\n const errorResult = ref();\n const errors = ref<any[]>([]);\n\n const isReadonly = computed(() => props.readonly || form?.isReadonly.value);\n\n const isDisabled = computed(() => props.disabled || form?.isDisabled.value);\n\n const isLoading = computed(() => props.loading || form?.isLoading.value);\n\n const isError = computed(() => {\n return props.status === 'error' || errors.value.length > 0;\n });\n\n const isSuccess = computed(() => {\n return !isError.value && props.status === 'success';\n });\n\n useToggleScope(\n () => validateOn.value.input,\n () => {\n watch(validationModel, () => {\n if (validationModel.value != null) {\n invokeValidators();\n } else if (props.focused) {\n const unwatch = watch(\n () => props.focused,\n (val) => {\n if (!val) invokeValidators();\n\n unwatch();\n },\n );\n }\n });\n },\n );\n\n async function invokeValidators() {\n const results: any[] = [];\n validating.value = true;\n\n if (Array.isArray(props.validators)) {\n for (const validator of props.validators) {\n if (results.length >= +(props.maxErrors ?? 1)) {\n break;\n }\n\n const handler =\n typeof validator === 'function' ? validator : () => validator;\n const result = await handler(validationModel.value);\n\n if (result === true) {\n continue;\n }\n\n if (result !== false && typeof result !== 'string') {\n console.warn('Wrong validator return type');\n continue;\n }\n results.push(result || '');\n }\n }\n validating.value = false;\n errors.value = results;\n errorResult.value = results?.[0];\n\n return results;\n }\n\n function resetError() {\n errors.value = [];\n errorResult.value = undefined;\n }\n\n async function resetValidation() {\n if (!validateOn.value.lazy) {\n await invokeValidators();\n } else {\n resetError();\n }\n }\n\n onBeforeUnmount(() => {\n form?.unregister?.(cid.value);\n });\n\n onBeforeMount(() => {\n form?.register({\n id: cid.value,\n vnode: vm.vnode,\n resetValidation,\n validate: invokeValidators,\n });\n });\n\n return {\n invokeValidators,\n resetError,\n validating,\n validateOn,\n errorResult,\n errors,\n isReadonly,\n isDisabled,\n isLoading,\n isError,\n isSuccess,\n };\n}\n"],"mappings":"AAAA,SAEEA,QAAQ,EACRC,kBAAkB,EAClBC,aAAa,EACbC,eAAe,EACfC,GAAG,EACHC,KAAK,QACA,KAAK;AAAC,SAEJC,MAAM,EAAEC,YAAY;AAAA,SAEpBC,cAAc;AAAA,SACdC,OAAO;AAAA,SACPC,cAAc;AAMvB,OAAO,MAAMC,2BAA2B,GAAGJ,YAAY,CACrD;EACEK,QAAQ,EAAEC,OAA4B;EACtCC,QAAQ,EAAED,OAA4B;EACtCE,MAAM,EAAE;IACNC,IAAI,EAAEC,MAA+D;IACrEC,SAASA,CAACC,KAAa,EAAE;MACvB,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CA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+B,WAAW,CAAC/B,KAAK,GAAGgB,SAAS;EAC/B;EAEA,eAAemC,eAAeA,CAAA,EAAG;IAC/B,IAAI,CAAC9C,UAAU,CAACL,KAAK,CAAC6B,IAAI,EAAE;MAC1B,MAAMU,gBAAgB,CAAC,CAAC;IAC1B,CAAC,MAAM;MACLW,UAAU,CAAC,CAAC;IACd;EACF;EAEAlE,eAAe,CAAC,MAAM;IACpBqC,IAAI,EAAE+B,UAAU,GAAGnC,GAAG,CAACjB,KAAK,CAAC;EAC/B,CAAC,CAAC;EAEFjB,aAAa,CAAC,MAAM;IAClBsC,IAAI,EAAEgC,QAAQ,CAAC;MACbC,EAAE,EAAErC,GAAG,CAACjB,KAAK;MACbuD,KAAK,EAAEnC,EAAE,CAACmC,KAAK;MACfJ,eAAe;MACfK,QAAQ,EAAEjB;IACZ,CAAC,CAAC;EACJ,CAAC,CAAC;EAEF,OAAO;IACLA,gBAAgB;IAChBW,UAAU;IACV5B,UAAU;IACVjB,UAAU;IACV0B,WAAW;IACXC,MAAM;IACNC,UAAU;IACVC,UAAU;IACVC,SAAS;IACTE,OAAO;IACPC;EACF,CAAC;AACH"}
|
package/lib/util/string.js
CHANGED
package/lib/util/string.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.js","names":["camelToPascal","str","charAt","toUpperCase","slice","toKebabCase","from","arguments","length","undefined","res","index","char","charCode","charCodeAt","toLowerCase","kebabToCamel","randomCharOne","Math","floor","random","simpleBraceParse","input","pattern","results","match","pointer","exec","variable","start","end","lastIndex","prevText","substring","push","type","content","trim"],"sources":["../../src/util/string.ts"],"sourcesContent":["export function camelToPascal(str: string) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function toKebabCase(str: string, from: 'camel' | 'pascal' = 'camel') {\n let res = '';\n for (let index = 0; index < str.length; index += 1) {\n const char = str[index];\n const charCode = char.charCodeAt(0);\n if (charCode >= 65 && charCode <= 90) {\n res += `${\n index === 0 && from === 'camel' ? '' : '-'\n }${char.toLowerCase()}`;\n } else {\n res += char;\n }\n }\n return res;\n}\n\nexport function kebabToCamel(str: string) {\n let res = '';\n let index = 0;\n while (index < str.length) {\n const char = str[index];\n if (char === '-') {\n index += 1;\n res += str[index].toUpperCase();\n } else {\n res += char;\n }\n index += 1;\n }\n return res;\n}\n\nexport function randomCharOne(str: string) {\n if (str) {\n return str.charAt(Math.floor(Math.random() * str.length));\n }\n return '';\n}\n\nexport function simpleBraceParse(input: string) {\n const pattern = /\\{([^{}]+)\\}/g;\n const results = [];\n let match;\n let pointer = 0;\n\n while ((match = pattern.exec(input)) !== null) {\n const variable = match[1];\n const start = match.index;\n const end = pattern.lastIndex;\n if (start > 0) {\n const prevText = input.substring(pointer, start);\n results.push({\n type: 'text',\n content: prevText,\n });\n }\n if (variable.trim()) {\n results.push({\n type: 'variable',\n content: variable.trim(),\n });\n }\n\n pointer = end;\n }\n\n results.push({\n type: 'text',\n content: input.substring(pointer, input.length),\n });\n\n return results;\n}\n"],"mappings":"AAAA,OAAO,SAASA,aAAaA,CAACC,GAAW,EAAE;EACzC,OAAOA,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,GAAG,CAACG,KAAK,CAAC,CAAC,CAAC;AACnD;AAEA,OAAO,SAASC,WAAWA,CAACJ,GAAW,EAAsC;EAAA,IAApCK,IAAwB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,OAAO;EACzE,IAAIG,GAAG,GAAG,EAAE;EACZ,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGV,GAAG,CAACO,MAAM,EAAEG,KAAK,IAAI,CAAC,EAAE;IAClD,MAAMC,IAAI,GAAGX,GAAG,CAACU,KAAK,CAAC;IACvB,MAAME,QAAQ,GAAGD,IAAI,CAACE,UAAU,CAAC,CAAC,CAAC;IACnC,IAAID,QAAQ,IAAI,EAAE,IAAIA,Q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AK,CAACd,KAAK;IACzB,MAAMmB,GAAG,GAAGP,OAAO,CAACQ,SAAS;IAC7B,IAAIF,KAAK,GAAG,CAAC,EAAE;MACb,MAAMG,QAAQ,GAAGV,KAAK,CAACW,SAAS,CAACP,OAAO,EAAEG,KAAK,CAAC;MAChDL,OAAO,CAACU,IAAI,CAAC;QACXC,IAAI,EAAE,MAAM;QACZC,OAAO,EAAEJ;MACX,CAAC,CAAC;IACJ;IACA,IAAIJ,QAAQ,CAACS,IAAI,CAAC,CAAC,EAAE;MACnBb,OAAO,CAACU,IAAI,CAAC;QACXC,IAAI,EAAE,UAAU;QAChBC,OAAO,EAAER,QAAQ,CAACS,IAAI,CAAC;MACzB,CAAC,CAAC;IACJ;IAEAX,OAAO,GAAGI,GAAG;EACf;EAEAN,OAAO,CAACU,IAAI,CAAC;IACXC,IAAI,EAAE,MAAM;IACZC,OAAO,EAAEd,KAAK,CAACW,SAAS,CAACP,OAAO,EAAEJ,KAAK,CAACd,MAAM;EAChD,CAAC,CAAC;EAEF,OAAOgB,OAAO;AAChB"}
|
|
1
|
+
{"version":3,"file":"string.js","names":["camelToPascal","str","charAt","toUpperCase","slice","toKebabCase","from","arguments","length","undefined","res","index","char","charCode","charCodeAt","toLowerCase","kebabToCamel","randomCharOne","Math","floor","random","simpleBraceParse","input","pattern","results","match","pointer","exec","variable","start","end","lastIndex","prevText","substring","push","type","content","trim","escapeRegExp","replace"],"sources":["../../src/util/string.ts"],"sourcesContent":["export function camelToPascal(str: string) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function toKebabCase(str: string, from: 'camel' | 'pascal' = 'camel') {\n let res = '';\n for (let index = 0; index < str.length; index += 1) {\n const char = str[index];\n const charCode = char.charCodeAt(0);\n if (charCode >= 65 && charCode <= 90) {\n res += `${\n index === 0 && from === 'camel' ? '' : '-'\n }${char.toLowerCase()}`;\n } else {\n res += char;\n }\n }\n return res;\n}\n\nexport function kebabToCamel(str: string) {\n let res = '';\n let index = 0;\n while (index < str.length) {\n const char = str[index];\n if (char === '-') {\n index += 1;\n res += str[index].toUpperCase();\n } else {\n res += char;\n }\n index += 1;\n }\n return res;\n}\n\nexport function randomCharOne(str: string) {\n if (str) {\n return str.charAt(Math.floor(Math.random() * str.length));\n }\n return '';\n}\n\nexport function simpleBraceParse(input: string) {\n const pattern = /\\{([^{}]+)\\}/g;\n const results = [];\n let match;\n let pointer = 0;\n\n while ((match = pattern.exec(input)) !== null) {\n const variable = match[1];\n const start = match.index;\n const end = pattern.lastIndex;\n if (start > 0) {\n const prevText = input.substring(pointer, start);\n results.push({\n type: 'text',\n content: prevText,\n });\n }\n if (variable.trim()) {\n results.push({\n type: 'variable',\n content: variable.trim(),\n });\n }\n\n pointer = end;\n }\n\n results.push({\n type: 'text',\n content: input.substring(pointer, input.length),\n });\n\n return results;\n}\n\nexport function escapeRegExp(str: string) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n}\n"],"mappings":"AAAA,OAAO,SAASA,aAAaA,CAACC,GAAW,EAAE;EACzC,OAAOA,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,GAAG,CAACG,KAAK,CAAC,CAAC,CAAC;AACnD;AAEA,OAAO,SAASC,WAAWA,CAACJ,GAAW,EAAsC;EAAA,IAApCK,IAAwB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,OAAO;EACzE,IAAIG,GAAG,GAAG,EAAE;EACZ,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGV,GAAG,CAACO,MAAM,EAAEG,KAAK,IAAI,CAAC,EAAE;IAClD,MAAMC,IAAI,GAAGX,GAAG,CAACU,KAAK,CAAC;IACvB,MAAME,QAAQ,GAAGD,IAAI,CAACE,UAAU,CAAC,CAAC,CAAC;IACnC,IAAID,QAAQ,IAAI,EAAE,IAAIA,QAAQ,IAAI,EAAE,EAAE;MACpC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,GAAG,GAAGP,OAAO,CAACQ,SAAS;IAC7B,IAAIF,KAAK,GAAG,CAAC,EAAE;MACb,MAAMG,QAAQ,GAAGV,KAAK,CAACW,SAAS,CAACP,OAAO,EAAEG,KAAK,CAAC;MAChDL,OAAO,CAACU,IAAI,CAAC;QACXC,IAAI,EAAE,MAAM;QACZC,OAAO,EAAEJ;MACX,CAAC,CAAC;IACJ;IACA,IAAIJ,QAAQ,CAACS,IAAI,CAAC,CAAC,EAAE;MACnBb,OAAO,CAACU,IAAI,CAAC;QACXC,IAAI,EAAE,UAAU;QAChBC,OAAO,EAAER,QAAQ,CAACS,IAAI,CAAC;MACzB,CAAC,CAAC;IACJ;IAEAX,OAAO,GAAGI,GAAG;EACf;EAEAN,OAAO,CAACU,IAAI,CAAC;IACXC,IAAI,EAAE,MAAM;IACZC,OAAO,EAAEd,KAAK,CAACW,SAAS,CAACP,OAAO,EAAEJ,KAAK,CAACd,MAAM;EAChD,CAAC,CAAC;EAEF,OAAOgB,OAAO;AAChB;AAEA,OAAO,SAASc,YAAYA,CAACrC,GAAW,EAAE;EACxC,OAAOA,GAAG,CAACsC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC;AACnD"}
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './YDraggable';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const pressYRadioPropsOptions: <Defaults extends {
|
|
4
|
+
modelValue?: unknown;
|
|
5
|
+
disabled?: unknown;
|
|
6
|
+
value?: unknown;
|
|
7
|
+
label?: unknown;
|
|
8
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
9
|
+
modelValue: unknown extends Defaults["modelValue"] ? PropType<boolean> : {
|
|
10
|
+
type: PropType<unknown extends Defaults["modelValue"] ? boolean : boolean | Defaults["modelValue"]>;
|
|
11
|
+
default: unknown extends Defaults["modelValue"] ? boolean : boolean | Defaults["modelValue"];
|
|
12
|
+
};
|
|
13
|
+
disabled: unknown extends Defaults["disabled"] ? PropType<boolean> : {
|
|
14
|
+
type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
|
|
15
|
+
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
|
16
|
+
};
|
|
17
|
+
value: unknown extends Defaults["value"] ? PropType<string> : {
|
|
18
|
+
type: PropType<unknown extends Defaults["value"] ? string : string | Defaults["value"]>;
|
|
19
|
+
default: unknown extends Defaults["value"] ? string : string | Defaults["value"];
|
|
20
|
+
};
|
|
21
|
+
label: unknown extends Defaults["label"] ? PropType<string> : {
|
|
22
|
+
type: PropType<unknown extends Defaults["label"] ? string : string | Defaults["label"]>;
|
|
23
|
+
default: unknown extends Defaults["label"] ? string : string | Defaults["label"];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
export declare const YRadioIcon: import('vue').DefineComponent<{
|
|
3
|
+
active: BooleanConstructor;
|
|
4
|
+
disabled: BooleanConstructor;
|
|
5
|
+
}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string>;
|
|
6
|
+
export type YRadioIcon = InstanceType<typeof YRadioIcon>;
|
package/types/shims.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { YAlert, YApp, YBadge, YButton, YCard, YCardBody, YCardFooter, YCardHeader, YCheckbox, YChip, YDataTable, YDataTableLayerRow, YDataTableLayerRows, YDataTableServer, YDateCalendar, YDatePicker, YDialog, YDividePanel, YDivider, YDropdown, YExpandHTransition, YExpandVTransition, YFieldInput, YForm, YHover, YIcon, YInput, YInputCheckbox, YIpv4Field, YLayer, YList, YListItem, YMenu, YMonthPicker, YPagination, YProgressBar, YProgressRing, YSelect, YSnackbar, YSpinnerRing, YSwitch, YTab, YTable, YTabs, YTextHighlighter, YTextarea, YTi, YTooltip, YTreeView, YTreeViewNode } from 'yuyeon/components';
|
|
1
|
+
import { YAlert, YApp, YBadge, YButton, YCard, YCardBody, YCardFooter, YCardHeader, YCheckbox, YChip, YDataTable, YDataTableLayerRow, YDataTableLayerRows, YDataTableServer, YDateCalendar, YDatePicker, YDialog, YDividePanel, YDivider, YDropdown, YExpandHTransition, YExpandVTransition, YFieldInput, YForm, YHover, YIcon, YInput, YInputCheckbox, YIpv4Field, YLayer, YList, YListItem, YMenu, YMonthPicker, YPagination, YProgressBar, YProgressRing, YSelect, YSnackbar, YSpinnerRing, YSwitch, YTab, YTable, YTabs, YTextHighlighter, YTextarea, YTi, YTooltip, YTreeView, YTreeViewNode, YTextEllipsis } from 'yuyeon/components';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
declare module '@vue/runtime-core' {
|
|
@@ -54,5 +54,6 @@ declare module '@vue/runtime-core' {
|
|
|
54
54
|
YTi: typeof YTi;
|
|
55
55
|
YTextHighlighter: typeof YTextHighlighter;
|
|
56
56
|
YProgressRing: typeof YProgressRing;
|
|
57
|
+
YTextEllipsis: typeof YTextEllipsis
|
|
57
58
|
}
|
|
58
59
|
}
|
package/types/util/string.d.ts
CHANGED