isite 2022.8.4 → 2022.8.5
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/apps/client-side/site_files/css/bootstrap5-addon.css +18 -1
- package/apps/client-side/site_files/css/images.css +0 -3
- package/apps/client-side/site_files/css/table.css +3 -3
- package/apps/client-side/site_files/html/{sub/i-file.content.html → directive/i-file.html} +1 -1
- package/apps/client-side/site_files/html/directive/i-image.html +7 -0
- package/apps/client-side/site_files/html/{sub/i-list2.content.html → directive/i-list.html} +0 -0
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +17 -703
- package/apps/client-side/site_files/js/directive.js +2 -2
- package/apps/client-side/site_files/js/site.js +18 -2
- package/index.js +280 -278
- package/lib/email.js +108 -0
- package/lib/integrated.js +10 -26
- package/lib/security.js +1109 -1081
- package/object-options/index.js +18 -0
- package/object-options/lib/fn.js +6 -3
- package/package.json +3 -2
- package/apps/client-side/site_files/html/sub/i-list.content.html +0 -31
|
@@ -339,7 +339,7 @@ app.directive('iDate2', function () {
|
|
|
339
339
|
label: '@',
|
|
340
340
|
ngModel: '=',
|
|
341
341
|
},
|
|
342
|
-
template: `/*##client-side/
|
|
342
|
+
template: `/*##client-side/directive/i-date.html*/`,
|
|
343
343
|
};
|
|
344
344
|
});
|
|
345
345
|
|
|
@@ -1225,7 +1225,7 @@ app.directive('iList', [
|
|
|
1225
1225
|
$scope.hide();
|
|
1226
1226
|
};
|
|
1227
1227
|
},
|
|
1228
|
-
template: `/*##client-side/
|
|
1228
|
+
template: `/*##client-side/directive/i-list.html*/`,
|
|
1229
1229
|
};
|
|
1230
1230
|
},
|
|
1231
1231
|
]);
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
return site.printerList;
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
site.render = function (selector, data) {
|
|
115
115
|
let template = document.querySelector(selector);
|
|
116
116
|
if (template) {
|
|
@@ -543,6 +543,13 @@
|
|
|
543
543
|
return newData;
|
|
544
544
|
};
|
|
545
545
|
|
|
546
|
+
site.hide = function (obj) {
|
|
547
|
+
return site.to123(obj);
|
|
548
|
+
};
|
|
549
|
+
site.show = function (obj) {
|
|
550
|
+
return JSON.parse(site.from123(obj));
|
|
551
|
+
};
|
|
552
|
+
|
|
546
553
|
site.typeOf = site.typeof = function type(elem) {
|
|
547
554
|
return Object.prototype.toString.call(elem).slice(8, -1);
|
|
548
555
|
};
|
|
@@ -609,6 +616,15 @@
|
|
|
609
616
|
return '';
|
|
610
617
|
};
|
|
611
618
|
|
|
619
|
+
site.resetValidated = function (s) {
|
|
620
|
+
s = s || 'body';
|
|
621
|
+
const arr = document.querySelectorAll(s + ' [v]');
|
|
622
|
+
arr.forEach((el) => {
|
|
623
|
+
el.classList.remove('is-invalid');
|
|
624
|
+
el.classList.remove('is-valid');
|
|
625
|
+
});
|
|
626
|
+
};
|
|
627
|
+
|
|
612
628
|
site.validated = function (s) {
|
|
613
629
|
const res = {
|
|
614
630
|
ok: !0,
|
|
@@ -639,7 +655,7 @@
|
|
|
639
655
|
en: 'Data Is Required',
|
|
640
656
|
ar: 'هذا البيان مطلوب',
|
|
641
657
|
});
|
|
642
|
-
}else{
|
|
658
|
+
} else {
|
|
643
659
|
el.classList.add('is-valid');
|
|
644
660
|
}
|
|
645
661
|
} else if (vl.like('ml*')) {
|