isite 2023.12.16 → 2023.12.17
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<button class="btn {{class}} {{class2}}" type="button" ng-click="
|
|
1
|
+
<button class="btn {{class}} {{class2}}" type="button" ng-click="onclick()" ng-disabled="busy">
|
|
2
2
|
<span ng-show="busy || clickBusy" class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
|
3
3
|
{{label}}
|
|
4
4
|
<i class="{{fa}}"></i>
|
|
@@ -215,7 +215,7 @@ app.directive('iButton', [
|
|
|
215
215
|
type: '@',
|
|
216
216
|
class2: '@',
|
|
217
217
|
loading: '@',
|
|
218
|
-
|
|
218
|
+
click: '&',
|
|
219
219
|
fa: '@',
|
|
220
220
|
},
|
|
221
221
|
link: function ($scope, element, attrs, ctrl) {
|
|
@@ -255,10 +255,10 @@ app.directive('iButton', [
|
|
|
255
255
|
$scope.class = 'btn-secondary';
|
|
256
256
|
} else if ($scope.type.like('*export*|*excel*')) {
|
|
257
257
|
$scope.fa = 'fas fa-file-export';
|
|
258
|
-
$scope.class = 'btn-
|
|
258
|
+
$scope.class = 'btn-light';
|
|
259
259
|
} else if ($scope.type.like('*import*')) {
|
|
260
260
|
$scope.fa = 'fas fa-file-upload';
|
|
261
|
-
$scope.class = 'btn-
|
|
261
|
+
$scope.class = 'btn-light';
|
|
262
262
|
} else if ($scope.type.like('*search*|*find*')) {
|
|
263
263
|
$scope.fa = 'fas fa-search';
|
|
264
264
|
$scope.class = 'btn-light';
|
|
@@ -276,7 +276,7 @@ app.directive('iButton', [
|
|
|
276
276
|
$scope.class = 'btn-danger';
|
|
277
277
|
} else if ($scope.type.like('*upload*')) {
|
|
278
278
|
$scope.fa = 'fas fa-upload';
|
|
279
|
-
$scope.class = 'btn-
|
|
279
|
+
$scope.class = 'btn-light';
|
|
280
280
|
} else if ($scope.type.like('*up*')) {
|
|
281
281
|
$scope.fa = 'fas fa-long-arrow-alt-up';
|
|
282
282
|
$scope.class = 'btn-light';
|
|
@@ -302,11 +302,8 @@ app.directive('iButton', [
|
|
|
302
302
|
if ($scope.class2) {
|
|
303
303
|
$scope.class = $scope.class2;
|
|
304
304
|
}
|
|
305
|
-
$scope.
|
|
305
|
+
$scope.onclick = function () {
|
|
306
306
|
$scope.clickBusy = true;
|
|
307
|
-
if ($scope.ngClick) {
|
|
308
|
-
$scope.ngClick();
|
|
309
|
-
}
|
|
310
307
|
$timeout(() => {
|
|
311
308
|
$scope.clickBusy = false;
|
|
312
309
|
}, 250);
|