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.
@@ -339,7 +339,7 @@ app.directive('iDate2', function () {
339
339
  label: '@',
340
340
  ngModel: '=',
341
341
  },
342
- template: `/*##client-side/sub/i-date2.content.html*/`,
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/sub/i-list2.content.html*/`,
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*')) {