yuyeon 0.3.4-rc.1 → 0.3.4-rc.3
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 +1293 -1281
- 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/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/table/YDataTable.js +7 -4
- package/lib/components/table/YDataTable.js.map +1 -1
- package/lib/components/table/YDataTableControl.js +8 -6
- package/lib/components/table/YDataTableControl.js.map +1 -1
- package/lib/components/table/YDataTableControl.scss +10 -0
- package/lib/components/table/YDataTableServer.js +8 -5
- package/lib/components/table/YDataTableServer.js.map +1 -1
- package/lib/components/text-highlighter/YTextHighlighter.js +2 -1
- package/lib/components/text-highlighter/YTextHighlighter.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/components/table/YDataTable.d.ts +3 -0
- package/types/components/table/YDataTableControl.d.ts +12 -0
- package/types/components/table/YDataTableServer.d.ts +20 -8
- package/types/shims.d.ts +2 -1
- package/types/util/string.d.ts +1 -0
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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C,CAAC,GAAGnB,GAAG,CAACO,MAAM,CAAC,CAAC;EAC3D;EACA,OAAO,EAAE;AACX;AAEA,OAAO,SAASa,gBAAgBA,CAACC,KAAa,EAAE;EAC9C,MAAMC,OAAO,GAAG,eAAe;EAC/B,MAAMC,OAAO,GAAG,EAAE;EAClB,IAAIC,KAAK;EACT,IAAIC,OAAO,GAAG,CAAC;EAEf,OAAO,CAACD,KAAK,GAAGF,OAAO,CAACI,IAAI,CAACL,KAAK,CAAC,MAAM,IAAI,EAAE;IAC7C,MAAMM,QAAQ,GAAGH,KAAK,CAAC,CAAC,CAAC;IACzB,MAAMI,KAAK,GAAGJ,KAAK,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,I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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>;
|
|
@@ -496,6 +496,9 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
496
496
|
type: PropType<string | number>;
|
|
497
497
|
default: number;
|
|
498
498
|
};
|
|
499
|
+
paginationProps: {
|
|
500
|
+
type: ObjectConstructor;
|
|
501
|
+
};
|
|
499
502
|
}, {
|
|
500
503
|
paginatedItems: import('vue').ComputedRef<readonly any[]>;
|
|
501
504
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -6,6 +6,7 @@ export declare const pressYDataTableControlPropsOptions: <Defaults extends {
|
|
|
6
6
|
pageLength?: unknown;
|
|
7
7
|
setPageSize?: unknown;
|
|
8
8
|
setPage?: unknown;
|
|
9
|
+
paginationProps?: unknown;
|
|
9
10
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
10
11
|
page: unknown extends Defaults["page"] ? {
|
|
11
12
|
type: PropType<string | number>;
|
|
@@ -39,6 +40,14 @@ export declare const pressYDataTableControlPropsOptions: <Defaults extends {
|
|
|
39
40
|
type: PropType<unknown extends Defaults["setPage"] ? (page: number) => void : ((page: number) => void) | Defaults["setPage"]>;
|
|
40
41
|
default: unknown extends Defaults["setPage"] ? (page: number) => void : ((page: number) => void) | Defaults["setPage"];
|
|
41
42
|
};
|
|
43
|
+
paginationProps: unknown extends Defaults["paginationProps"] ? {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
} : Omit<{
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
}, "type" | "default"> & {
|
|
48
|
+
type: PropType<unknown extends Defaults["paginationProps"] ? Record<string, any> : Record<string, any> | Defaults["paginationProps"]>;
|
|
49
|
+
default: unknown extends Defaults["paginationProps"] ? Record<string, any> : Record<string, any> | Defaults["paginationProps"];
|
|
50
|
+
};
|
|
42
51
|
};
|
|
43
52
|
export declare const YDataTableControl: import('vue').DefineComponent<{
|
|
44
53
|
page: {
|
|
@@ -52,5 +61,8 @@ export declare const YDataTableControl: import('vue').DefineComponent<{
|
|
|
52
61
|
pageLength: PropType<number>;
|
|
53
62
|
setPageSize: PropType<(pageSize: number) => void>;
|
|
54
63
|
setPage: PropType<(page: number) => void>;
|
|
64
|
+
paginationProps: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
};
|
|
55
67
|
}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string>;
|
|
56
68
|
export type YDataTableControl = InstanceType<typeof YDataTableControl>;
|
|
@@ -39,6 +39,7 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
39
39
|
'onKeydown:row'?: unknown;
|
|
40
40
|
page?: unknown;
|
|
41
41
|
pageSize?: unknown;
|
|
42
|
+
paginationProps?: unknown;
|
|
42
43
|
total?: unknown;
|
|
43
44
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
44
45
|
tag: unknown extends Defaults["tag"] ? {
|
|
@@ -150,14 +151,14 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
150
151
|
default: unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"];
|
|
151
152
|
};
|
|
152
153
|
itemComparator: unknown extends Defaults["itemComparator"] ? {
|
|
153
|
-
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
154
|
-
default: () => typeof import('../../util').deepEqual;
|
|
154
|
+
type: PropType<string | typeof import('../../util/common').deepEqual>;
|
|
155
|
+
default: () => typeof import('../../util/common').deepEqual;
|
|
155
156
|
} : Omit<{
|
|
156
|
-
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
157
|
-
default: () => typeof import('../../util').deepEqual;
|
|
157
|
+
type: PropType<string | typeof import('../../util/common').deepEqual>;
|
|
158
|
+
default: () => typeof import('../../util/common').deepEqual;
|
|
158
159
|
}, "type" | "default"> & {
|
|
159
|
-
type: PropType<unknown extends Defaults["itemComparator"] ? string | typeof import('../../util').deepEqual : NonNullable<string | typeof import('../../util').deepEqual> | Defaults["itemComparator"]>;
|
|
160
|
-
default: unknown extends Defaults["itemComparator"] ? string | typeof import('../../util').deepEqual : NonNullable<string | typeof import('../../util').deepEqual> | Defaults["itemComparator"];
|
|
160
|
+
type: PropType<unknown extends Defaults["itemComparator"] ? string | typeof import('../../util/common').deepEqual : NonNullable<string | typeof import('../../util/common').deepEqual> | Defaults["itemComparator"]>;
|
|
161
|
+
default: unknown extends Defaults["itemComparator"] ? string | typeof import('../../util/common').deepEqual : NonNullable<string | typeof import('../../util/common').deepEqual> | Defaults["itemComparator"];
|
|
161
162
|
};
|
|
162
163
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
163
164
|
type: PropType<readonly {
|
|
@@ -409,6 +410,14 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
409
410
|
type: PropType<unknown extends Defaults["pageSize"] ? string | number : NonNullable<string | number> | Defaults["pageSize"]>;
|
|
410
411
|
default: unknown extends Defaults["pageSize"] ? string | number : NonNullable<string | number> | Defaults["pageSize"];
|
|
411
412
|
};
|
|
413
|
+
paginationProps: unknown extends Defaults["paginationProps"] ? {
|
|
414
|
+
type: ObjectConstructor;
|
|
415
|
+
} : Omit<{
|
|
416
|
+
type: ObjectConstructor;
|
|
417
|
+
}, "type" | "default"> & {
|
|
418
|
+
type: PropType<unknown extends Defaults["paginationProps"] ? Record<string, any> : Record<string, any> | Defaults["paginationProps"]>;
|
|
419
|
+
default: unknown extends Defaults["paginationProps"] ? Record<string, any> : Record<string, any> | Defaults["paginationProps"];
|
|
420
|
+
};
|
|
412
421
|
total: unknown extends Defaults["total"] ? {
|
|
413
422
|
type: PropType<string | number>;
|
|
414
423
|
required: true;
|
|
@@ -461,8 +470,8 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
461
470
|
default: () => never[];
|
|
462
471
|
};
|
|
463
472
|
itemComparator: {
|
|
464
|
-
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
465
|
-
default: () => typeof import('../../util').deepEqual;
|
|
473
|
+
type: PropType<string | typeof import('../../util/common').deepEqual>;
|
|
474
|
+
default: () => typeof import('../../util/common').deepEqual;
|
|
466
475
|
};
|
|
467
476
|
sortBy: {
|
|
468
477
|
type: PropType<readonly {
|
|
@@ -529,6 +538,9 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
529
538
|
type: PropType<string | number>;
|
|
530
539
|
default: number;
|
|
531
540
|
};
|
|
541
|
+
paginationProps: {
|
|
542
|
+
type: ObjectConstructor;
|
|
543
|
+
};
|
|
532
544
|
total: {
|
|
533
545
|
type: PropType<string | number>;
|
|
534
546
|
required: true;
|
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