-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.txt
640 lines (499 loc) · 14.2 KB
/
changelog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
3.3.22:
- add validationPreGlobal to config
3.3.21:
- add spa.array.removeWhereOnce
3.3.19:
- enhancement for jquery ajax
3.3.18:
- add dist folder
3.3.17:
- revert fix file validator
3.3.16:
- fix file validator
3.3.15:
- spa.web.redirect: use location.href instead of replace to automatically push current url to browser history
3.3.14:
- spa.web.redirect: add option to add current url to browser history
3.3.13:
- fix delay in spa.init.autocomplete
3.3.11:
- add array validation pattern
3.3.10:
- fix bug in array.removeWhere
3.3.8:
- add extraSelect2Otions to spa.init.autoComplete
3.3.7: break!!!!!!!!!!!!!!!!!!!!!
- change existing bootstrap4-validation-driver to bootstrap4-3-hybrid-validation-driver
- add new native boostrap4 validation driver: bootstrap3-validation-driver
3.3.6:
- add spa-notify-boostrap4
3.3.5: break!!!!!!!!!!!!!!!!!!!!!
- change listOfErrorsSelector to #spa-listOfErrors
- change uk- to spa- in notify driver
3.3.4:
- fix spa.web.localize
3.3.3:
- remove dist spacer-3.3.1.js and spacer-3.3.2.js
3.3.2:
- revert to 3.2.1
- separate validation drive validationDrivers.listOfErrors into external file
- remove config.listOfErrorsSelector
- remove spa.validation.getErrorList
3.3.1: (reverted) break!!!!!!!!!!!!!!!!!!!!!
- separate validation drive validationDrivers.listOfErrors into external file
- remove config.listOfErrorsSelector
- remove spa.validation.getErrorList
- remove unnecessary validations to check if jquery object length is > 0
- remove base sis() function
- remove dom.click
- remove input.getValue
- remove input.setValue
- remove input.select.getSelectedValue
- remove input.select.setSelectedValue
3.2.1: break!!!!!!!!!!!!!!!!!!!!!
-----
- spa.init.select2: add language = ar if locale is ar
- spa.init.autocomplete: changed from jquery ui to select2
3.1.44: no break
------
- fix ukNotifyBootstrap3
3.1.43: no break
------
- fix flash service for metronic theme
3.1.42: no break
------
- add flash service for metronic theme
3.1.41: no break
------
- add default value for dialog.prompt
3.1.40: no break
------
- update version
3.1.39: no break
------
- remove spacer old version
3.1.38: no break
------
- fix bug in array.map function
3.1.37: no break
------
- add array.map function
3.1.36: no break
------
- fix bug in listDelete
3.1.35: no break
------
- update function-list file
3.1.34: no break
------
- add function-list file
3.1.33: no break
------
- add spa.util.formatDate
3.1.32: no break
------
- re implementing spa.form.getFormInputsAsObject using jquery .serializeArray();
3.1.31: no break
------
- fix bug in spa.form.getFormInputsAsObject
3.1.30: no break
------
- fix bug in spa.dialog: revert abstraction
3.1.29: no break
------
- move test files from dist to test
- compile (forgotten) services files
3.1.28: no break
------
- remove (forgotten) old version from dist
3.1.27: break!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
------
- remove spacerDialogDriver from spacer root, and move it to services files.
- remove ajax param from btnLoadingDrivers
- remove ajax param from spa.dom.setLoadingButton
- remove abstraction from
- spa.dialog.message
- spa.dialog.confirm
- spa.dialog.prompt
- fix button loading in ajax calls: using deferred interface jquery
3.1.26: no break
------
- bug fix in spa.init.listDelete
3.1.25: no break
------
- add spa.array.wrap
- enhancement in spa.init.listDelete
3.1.24: break!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
------
- spa.validation.isValidInput now accept isSilent parameter. Before this update: isValidInput() is always silent
3.1.23: no break
------
- exclude param in spa.validation.validate: using jquery not()
3.1.22: no break
------
- add exclude as 3rd param to spa.validation.validate
3.1.21: no break
------
- remove icon from init.showMsg
3.1.20: no break
------
- bug fix
3.1.19: no break
------
- To config, add
- btnLoadingCurrentDriver: 'spin'
- btnLoadingDrivers
- add setBtnLoadingCD(driver) to spacer root
- In form.submitAjax and form.submit: remove validation on submitter existence
3.1.18: no break
------
- fix error messages in resource bank
- improve bootstrap3-modal and bootstrap3-panel services (dialog parameter functions)
3.1.16: no break
------
- bug fix in dialog parameter functions fn, fn1, fn2
3.1.15: no break
------
- bug fix in web.localize()
3.1.12: break!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
------
- update services and css files (remove camel case to dashes)
3.1.11:
------
- performance enhancement
3.1.7:
------
- update vinus
3.1.6:
------
- strict mode
- performance improvements
3.1.5:
------
- spa.web.updateQueryString() accept obj
3.1.4:
------
- bug fixes in spa.web
3.1.3:
------
- spa.dialog.confirmDelete
3.1.2:
------
- fix bug: comment line 1224: driversUnit.setFlashCD(config.flashCurrentDriver); since config.flashCurrentDriver defaulted to ''
3.1.1:
------
- bug fix in spa.util.getTimelineDiff
3.1.0:
------
- config.dialogCurrentDriver
- defaults to 'alert'
- config.dialogDrivers
- remove: bootstrap3Panel: spacerDialog(bootstrap3Panel),
- remove: bootstrap3Modal: spacerDialog(bootstrap3Modal),
- config.flashCurrentDriver
- defaults to ''
- config.flashDrivers
- remove ukNotify driver
- config.validationCurrentDriver
- defaults to 'dialog'
- config.validationDrivers
- remove bootstrap3 driver
- move spacerDialog() from spa root to spa return body
- add consts aliases to spa return body
- spa.dialog:
- remove: bootstrap3Panel and bootstrap3Modal
- spa.storage: removed
3.0.19:
-------
- bug fix in spa.dom.setDisabled
3.0.18:
-------
- spa.init.autocomplete:
- convert jsonp -> jsonp
3.0.17:
-------
- spa.web
- add pathHas()
- bug fixes
3.0.16:
-------
- config: add parameters for localization methods:
- localeMethod: 2,
- localeQueryKey: 'lang',
- defaultLocale: 'en',
- spa.array
- add filter(array, fn)
- spa.web: add function:
- localize(url, locale, method)
- removeQueryString(key, url)
- urlSegments(index, url)
- getPath(url)
- getPathWithoutQueryString(url)
- spa.web: update functions name and implementation using URL class:
- getUrlWithQueryString() => getUrl(url)
- getUrlWithoutQueryString() => getUrlWithoutQueryString(url)
- getQueryString(name) => getQueryString(name, url)
- updateQueryString(key, value, url) => updateQueryString(key, value, url)
- queryStringToObject() => getQueryStringAsObject(url)
3.0.15:
-------
- add spa.isDebug
- change dom.click implementation
3.0.14:
-------
- bug fix in driversUnit
3.0.13:
-------
- performance enhancement
- [future]: enhance 'dialog' and 'flash' validation driver check => done
3.0.12:
------
- add spa.dom.click
3.0.11:
------
- add spa.dom.addHtmlAttr
3.0.10:
------
- spa.input.select.addOptions: now accept id, class, attr attribute in option object
3.0.9:
------
- spa.validation.validate: add isSilent boolean
- spa.init: add datepickerOnChange
3.0.8:
------
- spa.ajax
- fix bug [verb]Btn functions
3.0.7:
------
- spa.validation:
- custom error message support
- populateErrorMessages() now looks for custom error message as the following:
1- data-v-[pattern]-[ruleKey]-[locale]
2- data-v-[pattern]-[ruleKey]
3- spa.resource
- [future]: enhance looking for validation error message
3.0.6:
------
- validation drivers now include flash
- [future]: enhance 'dialog' and 'flash' validation driver check
3.0.5:
------
- spa.form.getFormInputsAsObject fix bug
3.0.4:
------
- config:
- tokenValue: undefined
- tokenName: undefined
- resourceBank: add timeline resources
- spa.validation.isTimeline: return moment object if valid. false otherwise.
- spa.resource.replace: added.
- spa.util.getTimelineDiff: added.
- spa.util.token: added. for general token management
3.0.3:
------
- spa.ajax add postBtn, getBtn, deleteBtn, putBtn
3.0.2:
------
- single file spacer
- remove moment
3.0.1:
------
- remove jquery
3.0.0
-----
- change the name vali -> spacer
- code: vali => spa
- config.listOfErrorsSelector default = #spacer-listOfErrors
- include jquery
2.0.1
-------
- fix bug in parsing unit when rule name has spaces
- fix bug in validators when valueToValidate is undefined
- fix bus in validation extended rules
- remove ukNotify styles
2.0.0
-------
- webpack
- moment is included
- dialog driver:
'bootstrap3Panel'
'bootstrap3Modal'
- validation driver:
'dialog.bootstrap3' => 'dialog.bootstrap3panel|modal'
- flash driver:
'ukNotify'
- setLoadingButton: function (button, ajax = undefined)
- ajax functions: move button param to the end
- momentLocales to config
- listOfErrorsSelector
- remove validation functions params
- vali-p => data-v-p
- vali-fn => data-v-fn
1.0.13
------
- remove button from vali.ajax
- add new function vali.ajax.button()
1.0.12
------
- fix bug in vali.web.queryStringToObject()
- vali.array.foreach() now loop through array or object
1.0.11
------
- fix bug related to changes in setLoadingButton() & unsetLoadingButton()
1.0.10
------
- dom:
- fix setLoadingButton() & unsetLoadingButton()
- setLoadingButton() & unsetLoadingButton() returns jquery button
- setLoadingButton() & unsetLoadingButton() original html is stored in jquery data
1.0.9
-----
- fix bug in dom.unsetLoadingButton()
1.0.8
-----
- vali.web:
- remove ? from getQueryString()
- add updateQueryString()
vali v1.0.7:
------------
- add validationIsLite = false to config
- update timeline min max error messages
- add getTimelineFormat() to vali root
- vali.validation:
- add isValidInput
vali v1.0.6:
------------
- remove the following from start: (for auto complete to work)
if (window.vali !== undefined)
return window.vali;
- dialog:
- add flashSuccess, flashError
vali v1.0.5:
------------
- revert v1.0.4:
- remove jquery-3.3.1 and moment-2.22.1 from vali
- fix bug when pattern is not required
vali v1.0.4:
------------
- add jquery-3.3.1 and moment-2.22.1 to vali
vali v1.0.3:
------------
- add boundaries to: min, max, range, s_min, s_max, s_range
- o => exclusion
- i => inclusion
- remove gt and lt rules from number validator.
vali v1.0.2:
------------
- performance enhancement
- bug fix in vali.form
- bug fix in vali.input.getValue
- apply toLowerCase() to pattern and rule names.
- add gt and lt rules to number validator.
vali v1.0.1:
------------
desc: vali.table bug fixes (when using datatable) & enhancement
vali.table:
- addRow:
- addRow => addRows
- function (row, table) => function (table, rows)
- removeRow:
- removeRow => removeRows
- function (row, table)=> function (table, rows)
- removeChecked
- inputSelectorString => inputName
- function (inputSelectorString, table) => function (table, inputName)
- moveRow:
- moveRow => moveRows
- function (row, from, to) => function (from, to, rows)
- moveChecked:
- - inputSelectorString => inputName
- function (inputSelectorString, from, to) => function (from, to, inputName)
vali v1.0.0:
----------
vali.init:
- remove default: datepicker '.form-control.date' => input, options
- remove default: select2 '.form-control.select' => input, options
- remove default: dataTable 'table.datatable' => table, options
- remove default: createCounter 'textarea' , '#counter' => input, counter, max
- remove default: showMsg '.vali-show-msg', 'data-vali-msg'
- remove default: delete => deleteAndRedirect '.vali-remove' => btnSelector, deleteUrl, redirectUrl, title, msg
- remove default: listDelete '.vali-remove-list', 'data-vali-id' => btnSelector, idAttribute, url, tableSelector, title, msg
vali.input:
- vali.input.select:
- getSelectedItem => getSelectedOption
- getSelectedItemValue => getSelectedValue
- getSelectedItemText => getSelectedText
- setSelectedFirstOption => setFirstOptionSelected
- populate => addOptions
- addItem => addOption
- later...
- remove _default from all functions:
- input.getValue
- input.select.getSelectedValue
- input.select.getSelectedText
- add getFiles
vali.form:
- change signature:
- submitAjax: function (form, submitter, validate, fn)
- submit: function (form, submitter, validate)
- registerNormalSubmitter: function (form, submitter, validate)
- registerAjaxSubmitter: function (form, submitter, validate, fn)
- remove default value from all functions:
valiForm: '#vali-form',
normalSubmitter: '#vali-submit',
ajaxSubmitter: '#vali-submit-ajax',
config:
- debug default value is false
- add trimValues with default to true
- remove
valiForm: '#vali-form',
normalSubmitter: '#vali-submit',
ajaxSubmitter: '#vali-submit-ajax',
icons
vali.validation:
- change all bootstrap drivers to bootstrap3
- update validation object
- update all validation function parameters
- validateForm => validate
- remove validateInput
- add silent driver
- later...
- change vali-p syntax
- pattern() => pattern[]
- rule: not_in => not
- rule add: not_of, len
- regex.pattern add ~x~
- timeline.format: add ~x~
- add check pattern
vali.dialog:
- change all bootstrap drivers to bootstrap3
- change bootstrap3 dialog object
- remove modal => add bootstrap3Dialog
- remove modalClose: use this.close
- remove modalShowLoading: use this.
- later...
- drivers:
- bootstrap3 => bootstrap3Panel
- add bootstrap3Modal
- vali.dialog.bootstrap3Dialog => bootstrap3Panel
- add vali.dialog.bootstrap3Modal
vali.resource:
- change resources structure
- remove vali.setResources()
- remove vali.getResources()
- later...
- all resources keys are changed
vali.util:
- change vali.utils => vali.util
- generatePassword => randomString
- clearTimer => cancelTimer
- timeout => executeLater
- clearTimeout => cancelExecuteLater
vali.web:
- url => getUrlWithQueryString
- urlWithoutQueryString => getUrlWithoutQueryString
- queryString => getQueryString
vali.table:
- change cols => columns in row object
- change attr in row object
- updateTotal => updatePaginationTotal