empower-container 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +378 -377
- package/dist/cjs/DatetimeFormatter.d.ts +3 -3
- package/dist/cjs/DatetimeFormatter.js +389 -389
- package/dist/cjs/Information.d.ts +10 -10
- package/dist/cjs/Information.js +63 -63
- package/dist/cjs/MenuBar.d.ts +24 -24
- package/dist/cjs/MenuBar.js +539 -539
- package/dist/cjs/Modal.d.ts +33 -33
- package/dist/cjs/Modal.js +44 -44
- package/dist/cjs/assets/Asset.d.ts +17 -17
- package/dist/cjs/assets/Asset.js +31 -31
- package/dist/cjs/constants/Constant.d.ts +15 -15
- package/dist/cjs/constants/Constant.js +35 -35
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/inputs/Input.d.ts +25 -25
- package/dist/cjs/inputs/Input.js +106 -106
- package/dist/cjs/inputs/InputSelectionHandler.d.ts +3 -3
- package/dist/cjs/inputs/InputSelectionHandler.js +36 -36
- package/dist/cjs/inputs/Select.d.ts +28 -28
- package/dist/cjs/inputs/Select.js +403 -403
- package/dist/esm/DatetimeFormatter.d.ts +3 -3
- package/dist/esm/DatetimeFormatter.js +385 -385
- package/dist/esm/Information.d.ts +10 -10
- package/dist/esm/Information.js +38 -38
- package/dist/esm/MenuBar.d.ts +24 -24
- package/dist/esm/MenuBar.js +534 -534
- package/dist/esm/Modal.d.ts +33 -33
- package/dist/esm/Modal.js +39 -39
- package/dist/esm/assets/Asset.d.ts +17 -17
- package/dist/esm/assets/Asset.js +28 -28
- package/dist/esm/constants/Constant.d.ts +15 -15
- package/dist/esm/constants/Constant.js +32 -32
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/inputs/Input.d.ts +25 -25
- package/dist/esm/inputs/Input.js +104 -104
- package/dist/esm/inputs/InputSelectionHandler.d.ts +3 -3
- package/dist/esm/inputs/InputSelectionHandler.js +31 -31
- package/dist/esm/inputs/Select.d.ts +28 -28
- package/dist/esm/inputs/Select.js +399 -399
- package/dist/scss/components/_modal.scss +66 -66
- package/dist/scss/elements/_button.scss +132 -132
- package/dist/scss/elements/_index.scss +1 -1
- package/dist/scss/elements/_popover.scss +7 -7
- package/dist/scss/foundation/_colors.scss +59 -59
- package/dist/scss/foundation/_mixins.scss +40 -40
- package/dist/scss/foundation/_normalize.scss +203 -203
- package/dist/scss/foundation/_settings.scss +36 -36
- package/dist/scss/foundation/_typography.scss +94 -94
- package/dist/scss/library/_information.scss +63 -63
- package/dist/scss/library/_input.scss +37 -37
- package/dist/scss/library/_menubar.scss +240 -240
- package/dist/scss/library/_select.scss +258 -258
- package/dist/scss/style.scss +38 -38
- package/package.json +62 -62
- package/tscnofig.old +26 -26
package/README.md
CHANGED
@@ -1,378 +1,379 @@
|
|
1
|
-
# Getting Started with Empower Container
|
2
|
-
1. Menubar
|
3
|
-
2. Modal
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
## 1) Menubar
|
8
|
-
### Implementation
|
9
|
-
```js
|
10
|
-
import { MenuBar } from 'empower-container';
|
11
|
-
```
|
12
|
-
### Options
|
13
|
-
|
14
|
-
```js
|
15
|
-
config: {
|
16
|
-
title: 'Test Title',
|
17
|
-
icon: SVG_REQUEST,
|
18
|
-
showInfo: true,
|
19
|
-
iconType: ['check', "back", 'standard']
|
20
|
-
}
|
21
|
-
```
|
22
|
-
```js
|
23
|
-
mainButton: {
|
24
|
-
show: true,
|
25
|
-
label: 'File a Request',
|
26
|
-
icon: SVG_ADD,
|
27
|
-
actions: [
|
28
|
-
{
|
29
|
-
|
30
|
-
label: "File Leave",
|
31
|
-
action: "leave", // string optional
|
32
|
-
icon: SVG_SUBMIT
|
33
|
-
},
|
34
|
-
{
|
35
|
-
label: "File Overtime",
|
36
|
-
action: "overtime", // string optional
|
37
|
-
icon: SVG_SUBMIT
|
38
|
-
},
|
39
|
-
|
40
|
-
{
|
41
|
-
label: "File Toil",
|
42
|
-
action: "toil", // string optional
|
43
|
-
icon: SVG_SUBMIT
|
44
|
-
},
|
45
|
-
|
46
|
-
{
|
47
|
-
label: "File Amendment",
|
48
|
-
action: "amendment", // string optional
|
49
|
-
icon: SVG_SUBMIT
|
50
|
-
}
|
51
|
-
]
|
52
|
-
}
|
53
|
-
```
|
54
|
-
|
55
|
-
```js
|
56
|
-
button {
|
57
|
-
show: true
|
58
|
-
actions: [{
|
59
|
-
class: 'button',
|
60
|
-
label: "Submit",
|
61
|
-
action: "readytosubmit", // string optional
|
62
|
-
icon: SVG_SUBMIT
|
63
|
-
}]
|
64
|
-
}
|
65
|
-
```
|
66
|
-
```js
|
67
|
-
buttonFooter: {
|
68
|
-
show: true,
|
69
|
-
actions: [{
|
70
|
-
class: 'button',
|
71
|
-
label: "Submit",
|
72
|
-
action: "footer-submit", // string optional
|
73
|
-
icon: SVG_SUBMIT,
|
74
|
-
show: true
|
75
|
-
}]
|
76
|
-
}
|
77
|
-
```
|
78
|
-
```js
|
79
|
-
pagination: {
|
80
|
-
show: true,
|
81
|
-
hideSummary: false,
|
82
|
-
counter: 10,
|
83
|
-
perPage: 10,
|
84
|
-
page: 1,
|
85
|
-
total: 35,
|
86
|
-
}
|
87
|
-
```
|
88
|
-
```js
|
89
|
-
pivot: {
|
90
|
-
show: true,
|
91
|
-
selected: 'all',
|
92
|
-
actions: [
|
93
|
-
{
|
94
|
-
label: "All",
|
95
|
-
value: "all", // string optional
|
96
|
-
},
|
97
|
-
{
|
98
|
-
label: "Pending",
|
99
|
-
value: "pending", // string optional
|
100
|
-
},
|
101
|
-
{
|
102
|
-
label: "Approved",
|
103
|
-
value: "approved", // string optional
|
104
|
-
},
|
105
|
-
{
|
106
|
-
label: "Rejected",
|
107
|
-
value: "rejected", // string optional
|
108
|
-
},
|
109
|
-
{
|
110
|
-
label: "Cancelled",
|
111
|
-
value: "cancelled", // string optional
|
112
|
-
},
|
113
|
-
]
|
114
|
-
}
|
115
|
-
```
|
116
|
-
```js
|
117
|
-
dropdown: {
|
118
|
-
show: true,
|
119
|
-
title: 'File Test',
|
120
|
-
type: 'date-picker-monthly',
|
121
|
-
selection: {
|
122
|
-
startDate: "Feb 2021",
|
123
|
-
endDate: "Feb 2021",
|
124
|
-
},
|
125
|
-
}
|
126
|
-
```
|
127
|
-
```js
|
128
|
-
search: {
|
129
|
-
show: true,
|
130
|
-
value: ''
|
131
|
-
}
|
132
|
-
```
|
133
|
-
```js
|
134
|
-
undoButton: {
|
135
|
-
show: false,
|
136
|
-
isFooter: true,
|
137
|
-
actions: [
|
138
|
-
{
|
139
|
-
class: 'button disabled',
|
140
|
-
show: true,
|
141
|
-
label: "Submit",
|
142
|
-
action: "submit",
|
143
|
-
icon: SVG_SUBMIT,
|
144
|
-
timer: 3,
|
145
|
-
disabled: true
|
146
|
-
},
|
147
|
-
{
|
148
|
-
show: true,
|
149
|
-
label: "Undo Request",
|
150
|
-
action: "undo-request",
|
151
|
-
icon: SVG_UNDO
|
152
|
-
},
|
153
|
-
]
|
154
|
-
}
|
155
|
-
```
|
156
|
-
```js
|
157
|
-
check: {
|
158
|
-
disabled: false,
|
159
|
-
selected: 0,
|
160
|
-
total: 1
|
161
|
-
}
|
162
|
-
```
|
163
|
-
```js
|
164
|
-
info: 'Sample Information'
|
165
|
-
```
|
166
|
-
### Usage
|
167
|
-
|
168
|
-
```html
|
169
|
-
<MenuBar
|
170
|
-
config={menubar.config}
|
171
|
-
mainButton={menubar.mainButton}
|
172
|
-
button={menubar.button}
|
173
|
-
pagination={menubar.pagination}
|
174
|
-
pivot={menubar.pivot}
|
175
|
-
dropdown={menubar.dropdown}
|
176
|
-
search={menubar.search}
|
177
|
-
undoButton={menubar.undoButton}
|
178
|
-
buttonFooter={menubar.buttonFooter}
|
179
|
-
check={menubar.check}
|
180
|
-
info={menubar.info}
|
181
|
-
|
182
|
-
getActions={(action, data) => getActions(action, data)}
|
183
|
-
>
|
184
|
-
<h2>CHILDREN DATA</h2>
|
185
|
-
</MenuBar>
|
186
|
-
```
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
## 2) Modal
|
191
|
-
### Implementation
|
192
|
-
```js
|
193
|
-
import { Modal } from 'empower-container';
|
194
|
-
```
|
195
|
-
### Options
|
196
|
-
|
197
|
-
show: false,
|
198
|
-
hideMenuBar: false, //optional
|
199
|
-
|
200
|
-
```js
|
201
|
-
config: {
|
202
|
-
title: 'Test Title',
|
203
|
-
icon: SVG_REQUEST,
|
204
|
-
showInfo: true,
|
205
|
-
iconType: ['standard', 'close'],
|
206
|
-
modalSize: 'lg'
|
207
|
-
}
|
208
|
-
```
|
209
|
-
```js
|
210
|
-
mainButton: {
|
211
|
-
show: true,
|
212
|
-
label: 'File a Request',
|
213
|
-
icon: SVG_ADD,
|
214
|
-
actions: [
|
215
|
-
{
|
216
|
-
|
217
|
-
label: "File Leave",
|
218
|
-
action: "leave", // string optional
|
219
|
-
icon: SVG_SUBMIT
|
220
|
-
},
|
221
|
-
{
|
222
|
-
label: "File Overtime",
|
223
|
-
action: "overtime", // string optional
|
224
|
-
icon: SVG_SUBMIT
|
225
|
-
},
|
226
|
-
|
227
|
-
{
|
228
|
-
label: "File Toil",
|
229
|
-
action: "toil", // string optional
|
230
|
-
icon: SVG_SUBMIT
|
231
|
-
},
|
232
|
-
|
233
|
-
{
|
234
|
-
label: "File Amendment",
|
235
|
-
action: "amendment", // string optional
|
236
|
-
icon: SVG_SUBMIT
|
237
|
-
}
|
238
|
-
]
|
239
|
-
}
|
240
|
-
```
|
241
|
-
|
242
|
-
```js
|
243
|
-
button {
|
244
|
-
show: true
|
245
|
-
actions: [{
|
246
|
-
class: 'button',
|
247
|
-
label: "Submit",
|
248
|
-
action: "readytosubmit", // string optional
|
249
|
-
icon: SVG_SUBMIT
|
250
|
-
}]
|
251
|
-
}
|
252
|
-
```
|
253
|
-
```js
|
254
|
-
buttonFooter: {
|
255
|
-
show: true,
|
256
|
-
actions: [{
|
257
|
-
class: 'button',
|
258
|
-
label: "Submit",
|
259
|
-
action: "footer-submit", // string optional
|
260
|
-
icon: SVG_SUBMIT,
|
261
|
-
show: true
|
262
|
-
}]
|
263
|
-
},
|
264
|
-
```
|
265
|
-
```js
|
266
|
-
pagination: {
|
267
|
-
show: true,
|
268
|
-
hideSummary: false,
|
269
|
-
counter: 10,
|
270
|
-
perPage: 10,
|
271
|
-
page: 1,
|
272
|
-
total: 35,
|
273
|
-
}
|
274
|
-
```
|
275
|
-
```js
|
276
|
-
pivot: {
|
277
|
-
show: true,
|
278
|
-
selected: 'all',
|
279
|
-
actions: [
|
280
|
-
{
|
281
|
-
label: "All",
|
282
|
-
value: "all", // string optional
|
283
|
-
},
|
284
|
-
{
|
285
|
-
label: "Pending",
|
286
|
-
value: "pending", // string optional
|
287
|
-
},
|
288
|
-
{
|
289
|
-
label: "Approved",
|
290
|
-
value: "approved", // string optional
|
291
|
-
},
|
292
|
-
{
|
293
|
-
label: "Rejected",
|
294
|
-
value: "rejected", // string optional
|
295
|
-
},
|
296
|
-
{
|
297
|
-
label: "Cancelled",
|
298
|
-
value: "cancelled", // string optional
|
299
|
-
},
|
300
|
-
]
|
301
|
-
}
|
302
|
-
```
|
303
|
-
```js
|
304
|
-
dropdown: {
|
305
|
-
show: true,
|
306
|
-
title: 'File Test',
|
307
|
-
type: 'date-picker-monthly',
|
308
|
-
selection: {
|
309
|
-
startDate: "Feb 2021",
|
310
|
-
endDate: "Feb 2021",
|
311
|
-
},
|
312
|
-
}
|
313
|
-
```
|
314
|
-
```js
|
315
|
-
search: {
|
316
|
-
show: true,
|
317
|
-
value: ''
|
318
|
-
}
|
319
|
-
```
|
320
|
-
```js
|
321
|
-
undoButton: {
|
322
|
-
show: false,
|
323
|
-
isFooter: true,
|
324
|
-
actions: [
|
325
|
-
{
|
326
|
-
class: 'button disabled',
|
327
|
-
show: true,
|
328
|
-
label: "Submit",
|
329
|
-
action: "submit", // string optional
|
330
|
-
icon: SVG_SUBMIT,
|
331
|
-
timer: 3,
|
332
|
-
disabled: true
|
333
|
-
},
|
334
|
-
{
|
335
|
-
show: true,
|
336
|
-
label: "Undo Request",
|
337
|
-
action: "undo-request", // string optional
|
338
|
-
icon: SVG_UNDO
|
339
|
-
},
|
340
|
-
]
|
341
|
-
}
|
342
|
-
```
|
343
|
-
```js
|
344
|
-
check: {
|
345
|
-
disabled: false,
|
346
|
-
selected: 0,
|
347
|
-
total: 1
|
348
|
-
}
|
349
|
-
```
|
350
|
-
```js
|
351
|
-
info: 'Sample Information'
|
352
|
-
```
|
353
|
-
### Usage
|
354
|
-
```html
|
355
|
-
<Modal
|
356
|
-
config={menubar.config}
|
357
|
-
mainButton={menubar.mainButton}
|
358
|
-
button={menubar.button}
|
359
|
-
pagination={menubar.pagination}
|
360
|
-
pivot={menubar.pivot}
|
361
|
-
dropdown={menubar.dropdown}
|
362
|
-
search={menubar.search}
|
363
|
-
undoButton={menubar.undoButton}
|
364
|
-
buttonFooter={menubar.buttonFooter}
|
365
|
-
check={menubar.check}
|
366
|
-
info={menubar.info}
|
367
|
-
|
368
|
-
getActions={(action, data) => getActions(action, data)}
|
369
|
-
>
|
370
|
-
<h2>CHILDREN DATA</h2>
|
371
|
-
</Modal>
|
372
|
-
```
|
373
|
-
|
374
|
-
## Changelog
|
375
|
-
* **0.1.
|
376
|
-
* **0.1.
|
377
|
-
* **0.1.
|
1
|
+
# Getting Started with Empower Container
|
2
|
+
1. Menubar
|
3
|
+
2. Modal
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
## 1) Menubar
|
8
|
+
### Implementation
|
9
|
+
```js
|
10
|
+
import { MenuBar } from 'empower-container';
|
11
|
+
```
|
12
|
+
### Options
|
13
|
+
|
14
|
+
```js
|
15
|
+
config: {
|
16
|
+
title: 'Test Title',
|
17
|
+
icon: SVG_REQUEST,
|
18
|
+
showInfo: true,
|
19
|
+
iconType: ['check', "back", 'standard']
|
20
|
+
}
|
21
|
+
```
|
22
|
+
```js
|
23
|
+
mainButton: {
|
24
|
+
show: true,
|
25
|
+
label: 'File a Request',
|
26
|
+
icon: SVG_ADD,
|
27
|
+
actions: [
|
28
|
+
{
|
29
|
+
|
30
|
+
label: "File Leave",
|
31
|
+
action: "leave", // string optional
|
32
|
+
icon: SVG_SUBMIT
|
33
|
+
},
|
34
|
+
{
|
35
|
+
label: "File Overtime",
|
36
|
+
action: "overtime", // string optional
|
37
|
+
icon: SVG_SUBMIT
|
38
|
+
},
|
39
|
+
|
40
|
+
{
|
41
|
+
label: "File Toil",
|
42
|
+
action: "toil", // string optional
|
43
|
+
icon: SVG_SUBMIT
|
44
|
+
},
|
45
|
+
|
46
|
+
{
|
47
|
+
label: "File Amendment",
|
48
|
+
action: "amendment", // string optional
|
49
|
+
icon: SVG_SUBMIT
|
50
|
+
}
|
51
|
+
]
|
52
|
+
}
|
53
|
+
```
|
54
|
+
|
55
|
+
```js
|
56
|
+
button {
|
57
|
+
show: true
|
58
|
+
actions: [{
|
59
|
+
class: 'button',
|
60
|
+
label: "Submit",
|
61
|
+
action: "readytosubmit", // string optional
|
62
|
+
icon: SVG_SUBMIT
|
63
|
+
}]
|
64
|
+
}
|
65
|
+
```
|
66
|
+
```js
|
67
|
+
buttonFooter: {
|
68
|
+
show: true,
|
69
|
+
actions: [{
|
70
|
+
class: 'button',
|
71
|
+
label: "Submit",
|
72
|
+
action: "footer-submit", // string optional
|
73
|
+
icon: SVG_SUBMIT,
|
74
|
+
show: true
|
75
|
+
}]
|
76
|
+
}
|
77
|
+
```
|
78
|
+
```js
|
79
|
+
pagination: {
|
80
|
+
show: true,
|
81
|
+
hideSummary: false,
|
82
|
+
counter: 10,
|
83
|
+
perPage: 10,
|
84
|
+
page: 1,
|
85
|
+
total: 35,
|
86
|
+
}
|
87
|
+
```
|
88
|
+
```js
|
89
|
+
pivot: {
|
90
|
+
show: true,
|
91
|
+
selected: 'all',
|
92
|
+
actions: [
|
93
|
+
{
|
94
|
+
label: "All",
|
95
|
+
value: "all", // string optional
|
96
|
+
},
|
97
|
+
{
|
98
|
+
label: "Pending",
|
99
|
+
value: "pending", // string optional
|
100
|
+
},
|
101
|
+
{
|
102
|
+
label: "Approved",
|
103
|
+
value: "approved", // string optional
|
104
|
+
},
|
105
|
+
{
|
106
|
+
label: "Rejected",
|
107
|
+
value: "rejected", // string optional
|
108
|
+
},
|
109
|
+
{
|
110
|
+
label: "Cancelled",
|
111
|
+
value: "cancelled", // string optional
|
112
|
+
},
|
113
|
+
]
|
114
|
+
}
|
115
|
+
```
|
116
|
+
```js
|
117
|
+
dropdown: {
|
118
|
+
show: true,
|
119
|
+
title: 'File Test',
|
120
|
+
type: 'date-picker-monthly',
|
121
|
+
selection: {
|
122
|
+
startDate: "Feb 2021",
|
123
|
+
endDate: "Feb 2021",
|
124
|
+
},
|
125
|
+
}
|
126
|
+
```
|
127
|
+
```js
|
128
|
+
search: {
|
129
|
+
show: true,
|
130
|
+
value: ''
|
131
|
+
}
|
132
|
+
```
|
133
|
+
```js
|
134
|
+
undoButton: {
|
135
|
+
show: false,
|
136
|
+
isFooter: true,
|
137
|
+
actions: [
|
138
|
+
{
|
139
|
+
class: 'button disabled',
|
140
|
+
show: true,
|
141
|
+
label: "Submit",
|
142
|
+
action: "submit",
|
143
|
+
icon: SVG_SUBMIT,
|
144
|
+
timer: 3,
|
145
|
+
disabled: true
|
146
|
+
},
|
147
|
+
{
|
148
|
+
show: true,
|
149
|
+
label: "Undo Request",
|
150
|
+
action: "undo-request",
|
151
|
+
icon: SVG_UNDO
|
152
|
+
},
|
153
|
+
]
|
154
|
+
}
|
155
|
+
```
|
156
|
+
```js
|
157
|
+
check: {
|
158
|
+
disabled: false,
|
159
|
+
selected: 0,
|
160
|
+
total: 1
|
161
|
+
}
|
162
|
+
```
|
163
|
+
```js
|
164
|
+
info: 'Sample Information'
|
165
|
+
```
|
166
|
+
### Usage
|
167
|
+
|
168
|
+
```html
|
169
|
+
<MenuBar
|
170
|
+
config={menubar.config}
|
171
|
+
mainButton={menubar.mainButton}
|
172
|
+
button={menubar.button}
|
173
|
+
pagination={menubar.pagination}
|
174
|
+
pivot={menubar.pivot}
|
175
|
+
dropdown={menubar.dropdown}
|
176
|
+
search={menubar.search}
|
177
|
+
undoButton={menubar.undoButton}
|
178
|
+
buttonFooter={menubar.buttonFooter}
|
179
|
+
check={menubar.check}
|
180
|
+
info={menubar.info}
|
181
|
+
|
182
|
+
getActions={(action, data) => getActions(action, data)}
|
183
|
+
>
|
184
|
+
<h2>CHILDREN DATA</h2>
|
185
|
+
</MenuBar>
|
186
|
+
```
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
## 2) Modal
|
191
|
+
### Implementation
|
192
|
+
```js
|
193
|
+
import { Modal } from 'empower-container';
|
194
|
+
```
|
195
|
+
### Options
|
196
|
+
|
197
|
+
show: false,
|
198
|
+
hideMenuBar: false, //optional
|
199
|
+
|
200
|
+
```js
|
201
|
+
config: {
|
202
|
+
title: 'Test Title',
|
203
|
+
icon: SVG_REQUEST,
|
204
|
+
showInfo: true,
|
205
|
+
iconType: ['standard', 'close'],
|
206
|
+
modalSize: 'lg'
|
207
|
+
}
|
208
|
+
```
|
209
|
+
```js
|
210
|
+
mainButton: {
|
211
|
+
show: true,
|
212
|
+
label: 'File a Request',
|
213
|
+
icon: SVG_ADD,
|
214
|
+
actions: [
|
215
|
+
{
|
216
|
+
|
217
|
+
label: "File Leave",
|
218
|
+
action: "leave", // string optional
|
219
|
+
icon: SVG_SUBMIT
|
220
|
+
},
|
221
|
+
{
|
222
|
+
label: "File Overtime",
|
223
|
+
action: "overtime", // string optional
|
224
|
+
icon: SVG_SUBMIT
|
225
|
+
},
|
226
|
+
|
227
|
+
{
|
228
|
+
label: "File Toil",
|
229
|
+
action: "toil", // string optional
|
230
|
+
icon: SVG_SUBMIT
|
231
|
+
},
|
232
|
+
|
233
|
+
{
|
234
|
+
label: "File Amendment",
|
235
|
+
action: "amendment", // string optional
|
236
|
+
icon: SVG_SUBMIT
|
237
|
+
}
|
238
|
+
]
|
239
|
+
}
|
240
|
+
```
|
241
|
+
|
242
|
+
```js
|
243
|
+
button {
|
244
|
+
show: true
|
245
|
+
actions: [{
|
246
|
+
class: 'button',
|
247
|
+
label: "Submit",
|
248
|
+
action: "readytosubmit", // string optional
|
249
|
+
icon: SVG_SUBMIT
|
250
|
+
}]
|
251
|
+
}
|
252
|
+
```
|
253
|
+
```js
|
254
|
+
buttonFooter: {
|
255
|
+
show: true,
|
256
|
+
actions: [{
|
257
|
+
class: 'button',
|
258
|
+
label: "Submit",
|
259
|
+
action: "footer-submit", // string optional
|
260
|
+
icon: SVG_SUBMIT,
|
261
|
+
show: true
|
262
|
+
}]
|
263
|
+
},
|
264
|
+
```
|
265
|
+
```js
|
266
|
+
pagination: {
|
267
|
+
show: true,
|
268
|
+
hideSummary: false,
|
269
|
+
counter: 10,
|
270
|
+
perPage: 10,
|
271
|
+
page: 1,
|
272
|
+
total: 35,
|
273
|
+
}
|
274
|
+
```
|
275
|
+
```js
|
276
|
+
pivot: {
|
277
|
+
show: true,
|
278
|
+
selected: 'all',
|
279
|
+
actions: [
|
280
|
+
{
|
281
|
+
label: "All",
|
282
|
+
value: "all", // string optional
|
283
|
+
},
|
284
|
+
{
|
285
|
+
label: "Pending",
|
286
|
+
value: "pending", // string optional
|
287
|
+
},
|
288
|
+
{
|
289
|
+
label: "Approved",
|
290
|
+
value: "approved", // string optional
|
291
|
+
},
|
292
|
+
{
|
293
|
+
label: "Rejected",
|
294
|
+
value: "rejected", // string optional
|
295
|
+
},
|
296
|
+
{
|
297
|
+
label: "Cancelled",
|
298
|
+
value: "cancelled", // string optional
|
299
|
+
},
|
300
|
+
]
|
301
|
+
}
|
302
|
+
```
|
303
|
+
```js
|
304
|
+
dropdown: {
|
305
|
+
show: true,
|
306
|
+
title: 'File Test',
|
307
|
+
type: 'date-picker-monthly',
|
308
|
+
selection: {
|
309
|
+
startDate: "Feb 2021",
|
310
|
+
endDate: "Feb 2021",
|
311
|
+
},
|
312
|
+
}
|
313
|
+
```
|
314
|
+
```js
|
315
|
+
search: {
|
316
|
+
show: true,
|
317
|
+
value: ''
|
318
|
+
}
|
319
|
+
```
|
320
|
+
```js
|
321
|
+
undoButton: {
|
322
|
+
show: false,
|
323
|
+
isFooter: true,
|
324
|
+
actions: [
|
325
|
+
{
|
326
|
+
class: 'button disabled',
|
327
|
+
show: true,
|
328
|
+
label: "Submit",
|
329
|
+
action: "submit", // string optional
|
330
|
+
icon: SVG_SUBMIT,
|
331
|
+
timer: 3,
|
332
|
+
disabled: true
|
333
|
+
},
|
334
|
+
{
|
335
|
+
show: true,
|
336
|
+
label: "Undo Request",
|
337
|
+
action: "undo-request", // string optional
|
338
|
+
icon: SVG_UNDO
|
339
|
+
},
|
340
|
+
]
|
341
|
+
}
|
342
|
+
```
|
343
|
+
```js
|
344
|
+
check: {
|
345
|
+
disabled: false,
|
346
|
+
selected: 0,
|
347
|
+
total: 1
|
348
|
+
}
|
349
|
+
```
|
350
|
+
```js
|
351
|
+
info: 'Sample Information'
|
352
|
+
```
|
353
|
+
### Usage
|
354
|
+
```html
|
355
|
+
<Modal
|
356
|
+
config={menubar.config}
|
357
|
+
mainButton={menubar.mainButton}
|
358
|
+
button={menubar.button}
|
359
|
+
pagination={menubar.pagination}
|
360
|
+
pivot={menubar.pivot}
|
361
|
+
dropdown={menubar.dropdown}
|
362
|
+
search={menubar.search}
|
363
|
+
undoButton={menubar.undoButton}
|
364
|
+
buttonFooter={menubar.buttonFooter}
|
365
|
+
check={menubar.check}
|
366
|
+
info={menubar.info}
|
367
|
+
|
368
|
+
getActions={(action, data) => getActions(action, data)}
|
369
|
+
>
|
370
|
+
<h2>CHILDREN DATA</h2>
|
371
|
+
</Modal>
|
372
|
+
```
|
373
|
+
|
374
|
+
## Changelog
|
375
|
+
* **0.1.24** - Fix close icon not appearing in info menubar
|
376
|
+
* **0.1.22** - Added close icon on info menubar
|
377
|
+
* **0.1.21** - Added mainbutton on modal
|
378
|
+
* **0.1.18** - Fixed dynamic root issues
|
378
379
|
* **0.1.17** - Fixed main button with single item issues
|