gnui 1.1.8 → 1.2.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/@types/gnui.d.ts +195 -154
- package/README.md +9 -3
- package/assets/NotoSansKR-Black.otf +0 -0
- package/assets/NotoSansKR-Black.woff +0 -0
- package/assets/NotoSansKR-Black.woff2 +0 -0
- package/assets/NotoSansKR-Bold.otf +0 -0
- package/assets/NotoSansKR-Bold.woff +0 -0
- package/assets/NotoSansKR-Bold.woff2 +0 -0
- package/assets/NotoSansKR-DemiLight.otf +0 -0
- package/assets/NotoSansKR-DemiLight.woff +0 -0
- package/assets/NotoSansKR-DemiLight.woff2 +0 -0
- package/assets/NotoSansKR-Light.otf +0 -0
- package/assets/NotoSansKR-Light.woff +0 -0
- package/assets/NotoSansKR-Light.woff2 +0 -0
- package/assets/NotoSansKR-Medium.otf +0 -0
- package/assets/NotoSansKR-Medium.woff +0 -0
- package/assets/NotoSansKR-Medium.woff2 +0 -0
- package/assets/NotoSansKR-Regular.otf +0 -0
- package/assets/NotoSansKR-Regular.woff +0 -0
- package/assets/NotoSansKR-Regular.woff2 +0 -0
- package/assets/NotoSansKR-Thin.otf +0 -0
- package/assets/NotoSansKR-Thin.woff +0 -0
- package/assets/NotoSansKR-Thin.woff2 +0 -0
- package/assets/{LICENSE_OFL.txt → OFL.txt} +93 -92
- package/assets/images/flags.png +0 -0
- package/dist/js/gnui.esm.js +19752 -17631
- package/dist/js/gnui.js +19757 -17927
- package/dist/js/gnui.min.js +23 -1
- package/dist/styles/default.css +1 -3
- package/dist/styles/gpi.css +1 -3
- package/dist/styles/green24.css +1 -0
- package/dist/styles/insights.css +1 -3
- package/dist/styles/nac.css +1 -3
- package/dist/styles/ztnac.css +1 -0
- package/package.json +39 -30
- package/styleguide/assets/components.js +1031 -579
- package/styleguide/assets/guide.js +28 -26
- package/styleguide/assets/okadia.css +115 -117
- package/styleguide/assets/theme.css +140 -82
- package/styleguide/category/COLOR/index.html +75 -77
- package/styleguide/category/COMPONENT/Alert(js)/index.html +89 -92
- package/styleguide/category/COMPONENT/Bignumber/index.html +78 -82
- package/styleguide/category/COMPONENT/Breadcrumb/index.html +78 -82
- package/styleguide/category/COMPONENT/Calendar(js)/index.html +89 -92
- package/styleguide/category/COMPONENT/Card/index.html +78 -82
- package/styleguide/category/COMPONENT/Chart(js)/index.html +89 -92
- package/styleguide/category/COMPONENT/Datagrid(js)/index.html +354 -206
- package/styleguide/category/COMPONENT/Datalist(js)/index.html +471 -0
- package/styleguide/category/COMPONENT/Growl(js)/index.html +89 -92
- package/styleguide/category/COMPONENT/JsonView(js)/index.html +544 -246
- package/styleguide/category/{CONTROLS → COMPONENT}/MenuButton(js)/index.html +116 -92
- package/styleguide/category/COMPONENT/Message(js)/index.html +219 -95
- package/styleguide/category/COMPONENT/Modal(js)/index.html +128 -94
- package/styleguide/category/COMPONENT/Pagination/index.html +78 -82
- package/styleguide/category/COMPONENT/Panel/index.html +78 -82
- package/styleguide/category/COMPONENT/Progressbar(js)/index.html +89 -92
- package/styleguide/category/COMPONENT/Tab(js)/index.html +122 -93
- package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +88 -89
- package/styleguide/category/COMPONENT/Tooltip(js)/index.html +175 -92
- package/styleguide/category/COMPONENT/Tree(js)/index.html +95 -92
- package/styleguide/category/CONTROLS/Button(js)/index.html +110 -95
- package/styleguide/category/CONTROLS/Checkbox/index.html +82 -86
- package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +147 -93
- package/styleguide/category/CONTROLS/Datepicker(js)/index.html +124 -92
- package/styleguide/category/CONTROLS/Dropdown(js)/index.html +161 -132
- package/styleguide/category/CONTROLS/File/index.html +78 -82
- package/styleguide/category/CONTROLS/Form/Control/index.html +78 -82
- package/styleguide/category/CONTROLS/Form/Field/index.html +78 -82
- package/styleguide/category/CONTROLS/Form/Plain/index.html +78 -82
- package/styleguide/category/CONTROLS/Input/index.html +80 -84
- package/styleguide/category/CONTROLS/MultiText(js)/index.html +105 -92
- package/styleguide/category/CONTROLS/Picklist(js)/index.html +165 -141
- package/styleguide/category/CONTROLS/Radio/index.html +78 -82
- package/styleguide/category/CONTROLS/Select/index.html +80 -84
- package/styleguide/category/CONTROLS/SelectButton(js)/index.html +147 -92
- package/styleguide/category/CONTROLS/Slider/index.html +78 -82
- package/styleguide/category/CONTROLS/Switch(js)/index.html +105 -93
- package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +89 -92
- package/styleguide/category/CONTROLS/Textarea/index.html +78 -82
- package/styleguide/category/{COMPONENT → CONTROLS}/Time(js)/index.html +111 -92
- package/styleguide/category/ELEMENTS/Box/index.html +78 -82
- package/styleguide/category/ELEMENTS/Icon/index.html +122 -82
- package/styleguide/category/ELEMENTS/Image/index.html +78 -82
- package/styleguide/category/ELEMENTS/List/index.html +78 -82
- package/styleguide/category/ELEMENTS/Table/index.html +78 -82
- package/styleguide/category/ELEMENTS/Tag/index.html +78 -82
- package/styleguide/category/ELEMENTS/Title/index.html +78 -82
- package/styleguide/category/LAYOUT/Container/index.html +78 -82
- package/styleguide/category/LAYOUT/Grid/index.html +78 -82
- package/styleguide/category/LAYOUT/Splitter(js)/index.html +89 -92
- package/styleguide/category/UTILITY/index.html +80 -82
- package/styleguide/category/Utils/index.html +97 -71
- package/styleguide/color.html +66 -65
- package/styleguide/index.html +66 -65
- package/styleguide/tag/javascript/index.html +1984 -1011
- package/styleguide/tag/v.0.1.0/index.html +2730 -1568
- package/assets/NotoSansCJKkr-Black.otf +0 -0
- package/assets/NotoSansCJKkr-Bold.otf +0 -0
- package/assets/NotoSansCJKkr-DemiLight.otf +0 -0
- package/assets/NotoSansCJKkr-Light.otf +0 -0
- package/assets/NotoSansCJKkr-Medium.otf +0 -0
- package/assets/NotoSansCJKkr-Regular.otf +0 -0
- package/assets/NotoSansCJKkr-Thin.otf +0 -0
- package/assets/NotoSansMonoCJKkr-Bold.otf +0 -0
- package/assets/NotoSansMonoCJKkr-Regular.otf +0 -0
- package/assets/README +0 -11
- package/dist/styles/zt-nac.css +0 -3
package/@types/gnui.d.ts
CHANGED
|
@@ -5,144 +5,166 @@ declare module 'gnui' {
|
|
|
5
5
|
export function create(type: string, options?: GNUIOptionsInterface): GNCoreInstanceInterface;
|
|
6
6
|
|
|
7
7
|
interface Utils {
|
|
8
|
-
slideup(element: Node, duration: number): void
|
|
9
|
-
fadeout(element: Node, duration: number): void
|
|
10
|
-
attr(element: any, name: any, value?: any): any
|
|
11
|
-
hasAttr(element: any, name: string): any
|
|
12
|
-
removeAttr(element: any, name: string): any
|
|
13
|
-
data(element: any, attribute: string): any
|
|
14
|
-
addClass(element: any, ...args: any[]): any
|
|
15
|
-
removeClass(element: any, ...args: any[]): any
|
|
16
|
-
removeClasses(element: any, cls: string): any
|
|
17
|
-
replaceClass(element: any, ...args: any[]): any
|
|
18
|
-
hasClass(element: any, cls: string): any
|
|
19
|
-
toggleClass(element: any, ...args: any[]): any
|
|
20
|
-
hslToRgb([h, s, l]: Array<number>): Array<number
|
|
21
|
-
hslToHex([h, s, l]: Array<number>): string
|
|
22
|
-
hexToHsl(color: string): Array<number
|
|
23
|
-
rgbToHsl(color: string): Array<number
|
|
24
|
-
rgbToHex(color: Array<number>): string
|
|
25
|
-
hexToRgb(color: string): Array<number
|
|
26
|
-
hexPrefix(hexCode: number): string
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
8
|
+
slideup(element: Node, duration: number): void;
|
|
9
|
+
fadeout(element: Node, duration: number): void;
|
|
10
|
+
attr(element: any, name: any, value?: any): any;
|
|
11
|
+
hasAttr(element: any, name: string): any;
|
|
12
|
+
removeAttr(element: any, name: string): any;
|
|
13
|
+
data(element: any, attribute: string): any;
|
|
14
|
+
addClass(element: any, ...args: any[]): any;
|
|
15
|
+
removeClass(element: any, ...args: any[]): any;
|
|
16
|
+
removeClasses(element: any, cls: string): any;
|
|
17
|
+
replaceClass(element: any, ...args: any[]): any;
|
|
18
|
+
hasClass(element: any, cls: string): any;
|
|
19
|
+
toggleClass(element: any, ...args: any[]): any;
|
|
20
|
+
hslToRgb([h, s, l]: Array<number>): Array<number>;
|
|
21
|
+
hslToHex([h, s, l]: Array<number>): string;
|
|
22
|
+
hexToHsl(color: string): Array<number>;
|
|
23
|
+
rgbToHsl(color: string): Array<number>;
|
|
24
|
+
rgbToHex(color: Array<number>): string;
|
|
25
|
+
hexToRgb(color: string): Array<number>;
|
|
26
|
+
hexPrefix(hexCode: number): string;
|
|
27
|
+
isHexPattern(color: string): boolean;
|
|
28
|
+
contrastColor(hex: string): string;
|
|
29
|
+
offset(element: any, coordinates?: any): any;
|
|
30
|
+
position(element: any, parent?: any): any;
|
|
31
|
+
$(selector: any, context?: any): any;
|
|
32
|
+
$$(selector: any, context?: any): any;
|
|
33
|
+
fragment(html: any): any;
|
|
34
|
+
empty(element: any): any;
|
|
35
|
+
html(parent: any, html?: any): any;
|
|
36
|
+
text(parent: any, text?: any): any;
|
|
37
|
+
val(parent: any, text?: any): any;
|
|
38
|
+
prepend(parent: any, element: any): any;
|
|
39
|
+
append(parent: any, element: any): any;
|
|
40
|
+
before(ref: any, element: any): any;
|
|
41
|
+
after(ref: any, element: any): any;
|
|
42
|
+
remove(element: any): any;
|
|
43
|
+
on(...args: any[]): Function;
|
|
44
|
+
off(targets: Array<any> | any, type: string, listener: any, useCapture: boolean): void;
|
|
45
|
+
once(...args: any[]): any;
|
|
46
|
+
trigger(targets: any[] | Node, event: string | Event, detail?: any): any;
|
|
47
|
+
createEvent(e: string | Event, bubbles: boolean, cancelable: boolean, detail: any): any;
|
|
48
|
+
toEventTargets(target: any): any;
|
|
49
|
+
isTouch(e: any): any;
|
|
50
|
+
getEventPos(e: any, prop: string): any;
|
|
51
|
+
isVoidElement(element: any): any;
|
|
52
|
+
isVisible(element: any): any;
|
|
53
|
+
isInput(element: any): any;
|
|
54
|
+
filter(element: any, selector: any): any;
|
|
55
|
+
within(element: any, selector: any): any;
|
|
56
|
+
hyphenate(str: string): any;
|
|
57
|
+
camelize(str: string): any;
|
|
58
|
+
trim(str: string): string;
|
|
59
|
+
hasOwn(obj: any, key: any): any;
|
|
60
|
+
isFunction(obj: any): boolean;
|
|
61
|
+
isObject(obj: any): boolean;
|
|
62
|
+
isArray(obj: any): boolean;
|
|
63
|
+
isPlainObject(obj: any): boolean;
|
|
64
|
+
isWindow(obj: any): boolean;
|
|
65
|
+
isDocument(obj: any): boolean;
|
|
66
|
+
isNode(obj: any): boolean;
|
|
67
|
+
isElement(obj: any): boolean;
|
|
68
|
+
isNodeCollection(obj: any): boolean;
|
|
69
|
+
isString(value: any): boolean;
|
|
70
|
+
isBoolean(value: any): boolean;
|
|
71
|
+
isNumber(value: any): boolean;
|
|
72
|
+
isNumeric(value: any): boolean;
|
|
73
|
+
isEmpty(obj: any): boolean | number;
|
|
74
|
+
isUndefined(value: any): boolean;
|
|
75
|
+
isHtml(str: string): boolean | string[];
|
|
76
|
+
isDate(value: any): boolean;
|
|
77
|
+
toBoolean(value: any): boolean | any;
|
|
78
|
+
toFinite(value: any): number;
|
|
79
|
+
toInteger(value: any): number;
|
|
80
|
+
toNumber(value: any): number;
|
|
81
|
+
getNumber(value: any): number;
|
|
82
|
+
toFloat(value: any): number;
|
|
83
|
+
toNode(element: any): HTMLElement;
|
|
84
|
+
toNodes(element: any): any[];
|
|
85
|
+
toWindow(element: any): any;
|
|
86
|
+
toList(value: any): any;
|
|
87
|
+
toMs(time: any): any;
|
|
88
|
+
toDate(value: any): Date;
|
|
89
|
+
toJson(str: string): any;
|
|
90
|
+
isEqual(value: any, other: any): any;
|
|
91
|
+
normalizeMacFormat(mac: string): string;
|
|
92
|
+
isMAC(macStr: string, sep?: string): boolean;
|
|
93
|
+
isNetworkAndBroadcastAddr(ipStr: string): boolean;
|
|
94
|
+
isIP(ipStr: string, version?: string, ipPattern?: string): boolean;
|
|
95
|
+
isIPv4Pattern(ipStr: string, ipPattern?: string, isSubnetMask?: boolean): boolean;
|
|
96
|
+
isIPv6Pattern(ipStr: string, ipPattern?: string): boolean;
|
|
97
|
+
isIPv4(ipStr: string): boolean;
|
|
98
|
+
isIPv4Exclusive(ipStr: string): boolean;
|
|
99
|
+
isIPv6(ipStr: string): boolean;
|
|
100
|
+
isCidrIPv4(ipStr: string): boolean;
|
|
101
|
+
isCidrIPv6(ipStr: string): boolean;
|
|
102
|
+
isRangeIPv4(ipStr: string): boolean;
|
|
103
|
+
isRangeIPv6(ipStr: string): boolean;
|
|
104
|
+
isLongRangeIPv4(ipStr: string): boolean;
|
|
105
|
+
isLongRangeIPv6(ipStr: string): boolean;
|
|
106
|
+
startsWith(str: string, search: string): any;
|
|
107
|
+
endsWith(str: string, search: string): any;
|
|
108
|
+
includes(obj: any, search: any): boolean;
|
|
109
|
+
each(obj: any, cb: any): boolean;
|
|
110
|
+
last(array: Array<any>): any;
|
|
111
|
+
clamp(number: number, min: number, max: number): any;
|
|
112
|
+
extend(defaults: any, options: any): any;
|
|
113
|
+
objExtends(...args: any[]): any;
|
|
114
|
+
objClone(obj: any): any;
|
|
115
|
+
sortBy(array: Array<any>, prop: string): Array<any>;
|
|
116
|
+
removeBy(array: Array<any>, predicate: Function): Array<any>;
|
|
117
|
+
uniqBy(array: Array<any>, prop: string): Array<any>;
|
|
118
|
+
sumBy(array: Array<any>, prop?: string): Number;
|
|
119
|
+
random(min: number, max: number): number;
|
|
120
|
+
drag(element: HTMLElement): void;
|
|
121
|
+
dragLayout(element: HTMLElement, boundary: Array<number>, events: { drag?: Function; dragStart?: Function; dragEnd?: Function }): void;
|
|
122
|
+
query(selector: any, context: any): any;
|
|
123
|
+
queryAll(selector: any, context: any): any;
|
|
124
|
+
find(selector: any, context: any): any;
|
|
125
|
+
findAll(selector: any, context: any): any;
|
|
126
|
+
matches(element: any, selector: any): any;
|
|
127
|
+
closest(element: any, selector: any): any;
|
|
128
|
+
parent(element: any): any;
|
|
129
|
+
parents(element: any, selector?: any): any;
|
|
130
|
+
children(element: any, selector?: any): any;
|
|
131
|
+
next(element: any): any;
|
|
132
|
+
prev(element: any): any;
|
|
133
|
+
nextUntil(element: any, selector?: any): any;
|
|
134
|
+
siblings(element: any, selector?: any): any;
|
|
135
|
+
escape(css: any): string;
|
|
136
|
+
isEquals(compareFrom: any, compareTo: any): boolean;
|
|
137
|
+
style(element: any, name: keyof CSSStyleDeclaration, value?: any): any;
|
|
138
|
+
styles(element: any, styles: { [key: string]: string | number }): void | any;
|
|
139
|
+
removeStyle(element: any, name: string | Array<string>): any;
|
|
140
|
+
css(element: any, property: any, value?: any): any;
|
|
141
|
+
getUnit(property: string, value: any): any;
|
|
142
|
+
getStyles(element: any, pseudoElt?: any): any;
|
|
143
|
+
getStyle(element: any, property: any, pseudoElt?: any): any;
|
|
144
|
+
propName(name: string): any;
|
|
145
|
+
scrollTop(element: any, top: number): void;
|
|
146
|
+
scrollIntoView(element: any, offsetBy: number): any;
|
|
147
|
+
scrollParents(element: any, overflowRe?: RegExp): any;
|
|
148
|
+
getViewport(scrollElement: any): any;
|
|
149
|
+
getCenterX(): number;
|
|
150
|
+
getCenterY(): number;
|
|
151
|
+
getPositionX(element: HTMLElement): number;
|
|
152
|
+
getPositionY(element: HTMLElement): number;
|
|
153
|
+
isIE: boolean;
|
|
154
|
+
getBrowser(): string;
|
|
155
|
+
getOS(): string;
|
|
156
|
+
assign(target: any, ...args: Array<any>): any;
|
|
157
|
+
selInput: string;
|
|
158
|
+
dayOfMonth(year: number, month: number): number;
|
|
159
|
+
dateDiff(date1: string | number | Date, date2: string | number | Date): number;
|
|
160
|
+
byteSize(orgValue: number): string | number;
|
|
161
|
+
commaNum(num: number): string;
|
|
162
|
+
parseBundle(text: string, locale: string): string;
|
|
163
|
+
textToMultiLangs(text: string): { [key: string]: string };
|
|
164
|
+
formatString(str: string, args: string[]): string;
|
|
165
|
+
copyToClipboard(text: string): void;
|
|
166
|
+
generateUUID(): string;
|
|
167
|
+
getByteSize(str: string): number;
|
|
146
168
|
}
|
|
147
169
|
|
|
148
170
|
interface GNCoreInstanceInterface {
|
|
@@ -167,21 +189,25 @@ declare module 'gnui' {
|
|
|
167
189
|
}
|
|
168
190
|
|
|
169
191
|
interface GNUIConfigInterface {
|
|
170
|
-
target?: string|HTMLElement;
|
|
192
|
+
target?: string | HTMLElement;
|
|
171
193
|
name?: string;
|
|
172
194
|
animation?: GNUIAnimation;
|
|
173
|
-
align?: GNUIAlign;
|
|
195
|
+
align?: GNUIAlign | GNUIOrientation;
|
|
174
196
|
color?: GNUIColor;
|
|
175
197
|
data?: any;
|
|
198
|
+
headers?: any[];
|
|
199
|
+
tipField?: string;
|
|
200
|
+
childField?: string;
|
|
176
201
|
size?: GNUISize;
|
|
177
202
|
state?: GNUIState;
|
|
178
203
|
style?: GNUIStyle;
|
|
179
204
|
border?: GNUIBorder;
|
|
180
|
-
width?: number|string;
|
|
181
|
-
height?: number;
|
|
182
|
-
|
|
205
|
+
width?: number | string;
|
|
206
|
+
height?: number | string;
|
|
207
|
+
bodyHeight?: string;
|
|
208
|
+
scrollHeight?: number | string;
|
|
183
209
|
icon?: string;
|
|
184
|
-
orientation?:
|
|
210
|
+
orientation?: GNUIOrientation;
|
|
185
211
|
space?: number;
|
|
186
212
|
panel?: Array<any>;
|
|
187
213
|
timer?: any;
|
|
@@ -195,6 +221,12 @@ declare module 'gnui' {
|
|
|
195
221
|
hasClose?: boolean;
|
|
196
222
|
hasFigure?: boolean;
|
|
197
223
|
hasSearch?: boolean;
|
|
224
|
+
hasCheck?: boolean;
|
|
225
|
+
hasOrder?: boolean;
|
|
226
|
+
hasDelete?: boolean;
|
|
227
|
+
checkCapturing?: boolean;
|
|
228
|
+
isEllipsis?: boolean;
|
|
229
|
+
fixHeader?: boolean;
|
|
198
230
|
indeterminate?: boolean;
|
|
199
231
|
isModal?: boolean;
|
|
200
232
|
direction?: string;
|
|
@@ -212,8 +244,17 @@ declare module 'gnui' {
|
|
|
212
244
|
value?: any;
|
|
213
245
|
position?: number;
|
|
214
246
|
parent?: GNCoreInstanceInterface;
|
|
215
|
-
|
|
216
|
-
|
|
247
|
+
onClick?: Function;
|
|
248
|
+
onConfirm?: Function;
|
|
249
|
+
onSort?: Function;
|
|
250
|
+
onSelect?: Function;
|
|
251
|
+
onToggle?: Function;
|
|
252
|
+
onCheckAll?: Function;
|
|
253
|
+
onCheck?: Function;
|
|
254
|
+
onDragEnd?: Function;
|
|
255
|
+
onChange?: Function;
|
|
256
|
+
textSets?: { [key: string]: string };
|
|
257
|
+
delegates?: { [key: string]: string };
|
|
217
258
|
[propName: string]: any; // 임의의 프로퍼티 정의
|
|
218
259
|
}
|
|
219
260
|
|
|
@@ -221,12 +262,12 @@ declare module 'gnui' {
|
|
|
221
262
|
onChange?: Function;
|
|
222
263
|
}
|
|
223
264
|
|
|
224
|
-
type GNUIAnimation = 'slideup'|'fadeout';
|
|
225
|
-
type GNUIAlign = 'full'|'left'|'center'|'right';
|
|
226
|
-
type
|
|
227
|
-
type
|
|
228
|
-
type
|
|
229
|
-
type
|
|
230
|
-
type
|
|
231
|
-
|
|
265
|
+
type GNUIAnimation = 'slideup' | 'fadeout';
|
|
266
|
+
type GNUIAlign = 'full' | 'left' | 'center' | 'right';
|
|
267
|
+
type GNUIOrientation = 'horizontal' | 'vertical';
|
|
268
|
+
type GNUIStyle = 'inline-block' | 'full' | 'round';
|
|
269
|
+
type GNUIBorder = 'outline' | 'border' | 'stripe' | 'borderless';
|
|
270
|
+
type GNUIColor = '' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'cancel' | 'link' | 'trans' | 'secondary' | 'mono' | 'guide';
|
|
271
|
+
type GNUISize = '' | 'small' | 'normal' | 'medium' | 'large';
|
|
272
|
+
type GNUIState = '' | 'hover' | 'focus' | 'active';
|
|
232
273
|
}
|
package/README.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
## 개발환경 설정
|
|
2
|
+
|
|
2
3
|
1. 터미널에서 `npm install`하여 필요한 패키지를 설치한다.
|
|
3
4
|
2. `npm run dev` 스크립트를 수행한다.
|
|
4
5
|
3. 브라우저에서 **styleguide/index.html** 파일을 확인한다.
|
|
5
6
|
4. 수정 테스트
|
|
6
7
|
|
|
7
8
|
## 테마 추가방법
|
|
9
|
+
|
|
8
10
|
- theme 폴더에 scss 파일을 생성한 후, 템플릿에 맞게 테마에서 사용될 값을 재정의 한다. (default.scss 참조)
|
|
9
11
|
> aigis_config.yml 파일 내 color_theme 항목에 신규 추가한 테마명(파일명과 동일)을 추가하면 가이드화면에서 테마 전환 후 확인 가능하다.
|
|
10
12
|
|
|
11
13
|
## Coding Conventions
|
|
14
|
+
|
|
12
15
|
### CSS
|
|
16
|
+
|
|
13
17
|
1. 들여쓰기는 공백 2문자를 사용한다.
|
|
14
18
|
1. 클래스, 아이디명은 케밥 케이스(kebab-case)를 사용한다.
|
|
15
19
|
1. 가독성을 위해 선언 블록을 여는 중괄호 앞에는 1문자를 공백으로 넣고, 닫는 중괄호는 새로운 행에 배치한다.
|
|
@@ -25,17 +29,19 @@
|
|
|
25
29
|
1. padding, margin, font, background, border, border-radius 등 축약형 사용이 가능한 프로퍼티는 가능한 한 축약형을 사용한다.
|
|
26
30
|
|
|
27
31
|
### Sass
|
|
32
|
+
|
|
28
33
|
1. scss 문법을 사용한다.
|
|
29
34
|
1. 속성, @include, 중첩 선택자 순으로 선언한다. @include 선언 이후에는 개행을 한다.
|
|
30
35
|
1. 변수명은 케밥 케이스를 사용한다.
|
|
31
|
-
1. private 변수인 경우 밑줄(_)을 접두사로 사용한다. (e.g
|
|
36
|
+
1. private 변수인 경우 밑줄(\_)을 접두사로 사용한다. (e.g $\_sub-color)
|
|
32
37
|
1. Extend 지시자는 사용하지 않는다.
|
|
33
38
|
1. 선택자 중첩은 최대 3단계까지만 사용한다.
|
|
34
|
-
1. 통일성이 있어야 하는 속성 (border-width, font-size, background-color, font-weight, color 등)은 init에 정의하고 variables에 참조하여 사용한다.
|
|
39
|
+
1. 통일성이 있어야 하는 속성 (border-width, font-size, background-color, font-weight, color 등)은 init에 정의하고 variables에 참조하여 사용한다.
|
|
35
40
|
|
|
36
41
|
### ts
|
|
42
|
+
|
|
37
43
|
1. 들여쓰기는 공백 2문자를 사용한다.
|
|
38
|
-
2. 함수명, 변수명은 알파벳으로 시작하며,
|
|
44
|
+
2. 함수명, 변수명은 알파벳으로 시작하며, 첫글자가 소문자인 카멜케이스(lowerCamelCase)를 사용한다.
|
|
39
45
|
3. 가독성을 위해 선언 블록을 여는 중괄호 앞에는 1문자를 공백으로 넣고, 닫는 중괄호는 새로운 행에 배치한다.
|
|
40
46
|
4. 연산자와 쉼표 뒤에는 공백을 둔다.
|
|
41
47
|
5. 생성자는 대문자로 시작한다.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|