@ardimedia/angular-portal-azure 0.2.343 → 0.2.345

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/apn.d.ts CHANGED
@@ -83,9 +83,11 @@ declare namespace angularportalazure {
83
83
  private _path;
84
84
  path: string;
85
85
  isCommandBrowse: boolean;
86
+ isCommandBrowseEnabled: boolean;
86
87
  commandBrowse: () => void;
87
88
  commandBrowseText: string;
88
89
  isCommandCancel: boolean;
90
+ isCommandCancelEnabled: boolean;
89
91
  commandCancel: () => void;
90
92
  commandCancelText: string;
91
93
  isCommandCopy: boolean;
@@ -97,27 +99,35 @@ declare namespace angularportalazure {
97
99
  commandDelete: () => void;
98
100
  commandDeleteText: string;
99
101
  isCommandDocument: boolean;
102
+ isCommandDocumentEnabled: boolean;
100
103
  commandDocument: () => void;
101
104
  commandDocumentText: string;
102
105
  isCommandDocument2: boolean;
106
+ isCommandDocument2Enabled: boolean;
103
107
  commandDocument2: () => void;
104
108
  commandDocument2Text: string;
105
109
  isCommandDocument3: boolean;
110
+ isCommandDocument3Enabled: boolean;
106
111
  commandDocument3: () => void;
107
112
  commandDocument3Text: string;
108
113
  isCommandDocument4: boolean;
114
+ isCommandDocument4Enabled: boolean;
109
115
  commandDocument4: () => void;
110
116
  commandDocument4Text: string;
111
117
  isCommandDocument5: boolean;
118
+ isCommandDocument5Enabled: boolean;
112
119
  commandDocument5: () => void;
113
120
  commandDocument5Text: string;
114
121
  isCommandNew: boolean;
122
+ isCommandNewEnabled: boolean;
115
123
  commandNew: () => void;
116
124
  commandNewText: string;
117
125
  isCommandOrder: boolean;
126
+ isCommandOrderEnabled: boolean;
118
127
  commandOrder: () => void;
119
128
  commandOrderText: string;
120
129
  isCommandRestart: boolean;
130
+ isCommandRestartEnabled: boolean;
121
131
  commandRestart: () => void;
122
132
  commandRestartText: string;
123
133
  isCommandSave: boolean;
@@ -125,6 +135,7 @@ declare namespace angularportalazure {
125
135
  commandSave: () => void;
126
136
  commandSaveText: string;
127
137
  isCommandSearch: boolean;
138
+ isCommandSearchEnabled: boolean;
128
139
  commandSearch: () => void;
129
140
  commandSearchText: string;
130
141
  isCommandStart: boolean;
@@ -132,12 +143,15 @@ declare namespace angularportalazure {
132
143
  commandStart: () => void;
133
144
  commandStartText: string;
134
145
  isCommandStop: boolean;
146
+ isCommandStopEnabled: boolean;
135
147
  commandStop: () => void;
136
148
  commandStopText: string;
137
149
  isCommandSwap: boolean;
150
+ isCommandSwapEnabled: boolean;
138
151
  commandSwap: () => void;
139
152
  commandSwapText: string;
140
153
  isCommandExcel: boolean;
154
+ isCommandExcelEnabled: boolean;
141
155
  commandExcel: () => void;
142
156
  commandExcelText: string;
143
157
  activate(): void;
@@ -235,7 +249,6 @@ declare namespace angularportalazure {
235
249
  * THEN
236
250
  * - call this.clearStatusBar()
237
251
  * - set this.isCommandSaveEnabled = true
238
- * - set this.isCommandDeleteEnabled = true
239
252
  * - set this.item to the saved data
240
253
  * - call this.onSavedItem()
241
254
  * - returns the saved data
@@ -261,7 +274,6 @@ declare namespace angularportalazure {
261
274
  * THEN
262
275
  * - call this.clearStatusBar()
263
276
  * - set this.isCommandSaveEnabled = true
264
- * - set this.isCommandDeleteEnabled = true
265
277
  * - call this.onSavedObject()
266
278
  * - returns the saved data
267
279
  * CATCH
package/apn.js CHANGED
@@ -257,9 +257,11 @@ var angularportalazure;
257
257
  // #endregion
258
258
  // #region Commands
259
259
  _this.isCommandBrowse = false;
260
+ _this.isCommandBrowseEnabled = true;
260
261
  _this.commandBrowse = function () { _this.onCommandBrowse(); };
261
262
  _this.commandBrowseText = '';
262
263
  _this.isCommandCancel = false;
264
+ _this.isCommandCancelEnabled = true;
263
265
  _this.commandCancel = function () { _this.onCommandCancel(); };
264
266
  _this.commandCancelText = '';
265
267
  _this.isCommandCopy = false;
@@ -271,27 +273,35 @@ var angularportalazure;
271
273
  _this.commandDelete = function () { _this.onCommandDelete(); };
272
274
  _this.commandDeleteText = '';
273
275
  _this.isCommandDocument = false;
276
+ _this.isCommandDocumentEnabled = true;
274
277
  _this.commandDocument = function () { _this.onCommandDocument(); };
275
278
  _this.commandDocumentText = '';
276
279
  _this.isCommandDocument2 = false;
280
+ _this.isCommandDocument2Enabled = true;
277
281
  _this.commandDocument2 = function () { _this.onCommandDocument2(); };
278
282
  _this.commandDocument2Text = '';
279
283
  _this.isCommandDocument3 = false;
284
+ _this.isCommandDocument3Enabled = true;
280
285
  _this.commandDocument3 = function () { _this.onCommandDocument3(); };
281
286
  _this.commandDocument3Text = '';
282
287
  _this.isCommandDocument4 = false;
288
+ _this.isCommandDocument4Enabled = true;
283
289
  _this.commandDocument4 = function () { _this.onCommandDocument4(); };
284
290
  _this.commandDocument4Text = '';
285
291
  _this.isCommandDocument5 = false;
292
+ _this.isCommandDocument5Enabled = true;
286
293
  _this.commandDocument5 = function () { _this.onCommandDocument5(); };
287
294
  _this.commandDocument5Text = '';
288
295
  _this.isCommandNew = false;
296
+ _this.isCommandNewEnabled = true;
289
297
  _this.commandNew = function () { _this.onCommandNew(); };
290
298
  _this.commandNewText = '';
291
299
  _this.isCommandOrder = false;
300
+ _this.isCommandOrderEnabled = true;
292
301
  _this.commandOrder = function () { _this.onCommandOrder(); };
293
302
  _this.commandOrderText = '';
294
303
  _this.isCommandRestart = false;
304
+ _this.isCommandRestartEnabled = true;
295
305
  _this.commandRestart = function () { _this.onCommandRestart(); };
296
306
  _this.commandRestartText = '';
297
307
  _this.isCommandSave = false;
@@ -299,6 +309,7 @@ var angularportalazure;
299
309
  _this.commandSave = function () { _this.onCommandSave(); };
300
310
  _this.commandSaveText = '';
301
311
  _this.isCommandSearch = false;
312
+ _this.isCommandSearchEnabled = true;
302
313
  _this.commandSearch = function () { _this.onCommandSearch(); };
303
314
  _this.commandSearchText = '';
304
315
  _this.isCommandStart = false;
@@ -306,12 +317,15 @@ var angularportalazure;
306
317
  _this.commandStart = function () { _this.onCommandStart(); };
307
318
  _this.commandStartText = '';
308
319
  _this.isCommandStop = false;
320
+ _this.isCommandStopEnabled = true;
309
321
  _this.commandStop = function () { _this.onCommandStop(); };
310
322
  _this.commandStopText = '';
311
323
  _this.isCommandSwap = false;
324
+ _this.isCommandSwapEnabled = true;
312
325
  _this.commandSwap = function () { _this.onCommandSwap(); };
313
326
  _this.commandSwapText = '';
314
327
  _this.isCommandExcel = false;
328
+ _this.isCommandExcelEnabled = true;
315
329
  _this.commandExcel = function () { _this.onCommandExcel(); };
316
330
  _this.commandExcelText = '';
317
331
  _this.vm = _this;
@@ -809,7 +823,6 @@ var angularportalazure;
809
823
  * THEN
810
824
  * - call this.clearStatusBar()
811
825
  * - set this.isCommandSaveEnabled = true
812
- * - set this.isCommandDeleteEnabled = true
813
826
  * - set this.item to the saved data
814
827
  * - call this.onSavedItem()
815
828
  * - returns the saved data
@@ -830,7 +843,6 @@ var angularportalazure;
830
843
  return func().then(function (data) {
831
844
  _this.clearStatusBar();
832
845
  _this.isCommandSaveEnabled = true;
833
- _this.isCommandDeleteEnabled = true;
834
846
  _this.item = data;
835
847
  _this.onSavedItem();
836
848
  return data;
@@ -861,7 +873,6 @@ var angularportalazure;
861
873
  * THEN
862
874
  * - call this.clearStatusBar()
863
875
  * - set this.isCommandSaveEnabled = true
864
- * - set this.isCommandDeleteEnabled = true
865
876
  * - call this.onSavedObject()
866
877
  * - returns the saved data
867
878
  * CATCH
@@ -881,7 +892,6 @@ var angularportalazure;
881
892
  return func().then(function (data) {
882
893
  _this.clearStatusBar();
883
894
  _this.isCommandSaveEnabled = true;
884
- _this.isCommandDeleteEnabled = true;
885
895
  _this.onSavedObject();
886
896
  return data;
887
897
  }).catch(function (ex) {
@@ -964,7 +974,6 @@ var angularportalazure;
964
974
  }
965
975
  this.setStatusBarInfo(message);
966
976
  this.isCommandStartEnabled = false;
967
- this.isCommandSaveEnabled;
968
977
  this.onExecute();
969
978
  return func().then(function (data) {
970
979
  _this.clearStatusBar();
@@ -31,7 +31,7 @@
31
31
  <a title="Fewer" class="fxs-commandBar-item fxs-commandBar-item-expandList" href="" data-bind="click: func._ellipsisCommandHandler, attr: { title: data.ellipsisCommandText }"></a>
32
32
  </li>
33
33
  <!-- SERACH -->
34
- <li ng-show="$ctrl.vm.isCommandSearch">
34
+ <li ng-show="$ctrl.vm.isCommandSearch" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandSearchEnabled}">
35
35
  <a data-ng-click="$ctrl.vm.commandSearch()" class="fxs-commandBar-item" href="#"
36
36
  data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
37
37
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandSearchText || 'suchen'}}</div>
@@ -46,7 +46,7 @@
46
46
  </a>
47
47
  </li>
48
48
  <!-- ORDER -->
49
- <li ng-show="$ctrl.vm.isCommandOrder">
49
+ <li ng-show="$ctrl.vm.isCommandOrder" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandOrderEnabled}">
50
50
  <a data-ng-click="$ctrl.vm.commandOrder()" class="fxs-commandBar-item" href="#"
51
51
  data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
52
52
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandOrderText || 'bestellen'}}</div>
@@ -58,7 +58,7 @@
58
58
  </a>
59
59
  </li>
60
60
  <!-- NEW -->
61
- <li ng-show="$ctrl.vm.isCommandNew">
61
+ <li ng-show="$ctrl.vm.isCommandNew" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandNewEnabled}">
62
62
  <a data-ng-click="$ctrl.vm.commandNew()" class="fxs-commandBar-item" href="#"
63
63
  data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
64
64
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandNewText || 'neu'}}</div>
@@ -110,7 +110,7 @@
110
110
  </a>
111
111
  </li>
112
112
  <!-- BROWSE -->
113
- <li ng-show="$ctrl.vm.isCommandBrowse">
113
+ <li ng-show="$ctrl.vm.isCommandBrowse" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandBrowseEnabled}">
114
114
  <a data-ng-click="$ctrl.vm.commandBrowse()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
115
115
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandBrowseText || 'Browse'}}</div>
116
116
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -128,7 +128,7 @@
128
128
  </a>
129
129
  </li>
130
130
  <!-- STOP -->
131
- <li ng-show="$ctrl.vm.isCommandStop">
131
+ <li ng-show="$ctrl.vm.isCommandStop" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandStopEnabled}">
132
132
  <a data-ng-click="$ctrl.vm.commandStop()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
133
133
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandStopText || 'Stop'}}</div>
134
134
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -137,7 +137,7 @@
137
137
  </a>
138
138
  </li>
139
139
  <!-- RESTART -->
140
- <li ng-show="$ctrl.vm.isCommandRestart">
140
+ <li ng-show="$ctrl.vm.isCommandRestart" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandRestartEnabled}">
141
141
  <a data-ng-click="$ctrl.vm.commandRestart()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
142
142
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandRestartText || 'Restart'}}</div>
143
143
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -146,7 +146,7 @@
146
146
  </a>
147
147
  </li>
148
148
  <!-- SWAP -->
149
- <li ng-show="$ctrl.vm.isCommandSwap">
149
+ <li ng-show="$ctrl.vm.isCommandSwap" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandSwapEnabled}">
150
150
  <a data-ng-click="$ctrl.vm.commandSwap()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
151
151
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandSwapText || 'Swap'}}</div>
152
152
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -155,7 +155,7 @@
155
155
  </a>
156
156
  </li>
157
157
  <!-- CANCEL -->
158
- <li ng-show="$ctrl.vm.isCommandCancel">
158
+ <li ng-show="$ctrl.vm.isCommandCancel" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandCancelEnabled}">
159
159
  <a data-ng-click="$ctrl.vm.commandCancel()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
160
160
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandCancelText || 'abbrechen'}}</div>
161
161
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -164,7 +164,7 @@
164
164
  </a>
165
165
  </li>
166
166
  <!-- EXCEL -->
167
- <li ng-show="$ctrl.vm.isCommandExcel">
167
+ <li ng-show="$ctrl.vm.isCommandExcel" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandExcelEnabled}">
168
168
  <a data-ng-click="$ctrl.vm.commandExcel()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
169
169
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandExcelText || 'Export Excel'}}</div>
170
170
  <div class="apa-commandbar-icon">
@@ -173,7 +173,7 @@
173
173
  </a>
174
174
  </li>
175
175
  <!-- DOCUMENT -->
176
- <li ng-show="$ctrl.vm.isCommandDocument">
176
+ <li ng-show="$ctrl.vm.isCommandDocument" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandDocumentEnabled}">
177
177
  <a data-ng-click="$ctrl.vm.commandDocument()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
178
178
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandDocumentText || 'Dokument'}}</div>
179
179
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -184,7 +184,7 @@
184
184
  </a>
185
185
  </li>
186
186
  <!-- DOCUMENT2 -->
187
- <li ng-show="$ctrl.vm.isCommandDocument2">
187
+ <li ng-show="$ctrl.vm.isCommandDocument2" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandDocument2Enabled}">
188
188
  <a data-ng-click="$ctrl.vm.commandDocument2()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
189
189
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandDocument2Text || 'Dokument'}}</div>
190
190
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -195,7 +195,7 @@
195
195
  </a>
196
196
  </li>
197
197
  <!-- DOCUMENT3 -->
198
- <li ng-show="$ctrl.vm.isCommandDocument3">
198
+ <li ng-show="$ctrl.vm.isCommandDocument3" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandDocument3Enabled}">
199
199
  <a data-ng-click="$ctrl.vm.commandDocument3()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
200
200
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandDocument3Text || 'Dokument'}}</div>
201
201
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -206,7 +206,7 @@
206
206
  </a>
207
207
  </li>
208
208
  <!-- DOCUMENT4 -->
209
- <li ng-show="$ctrl.vm.isCommandDocument4">
209
+ <li ng-show="$ctrl.vm.isCommandDocument4" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandDocument4Enabled}">
210
210
  <a data-ng-click="$ctrl.vm.commandDocument4()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
211
211
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandDocument4Text || 'Dokument'}}</div>
212
212
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
@@ -217,7 +217,7 @@
217
217
  </a>
218
218
  </li>
219
219
  <!-- Document5 -->
220
- <li ng-show="$ctrl.vm.isCommandDocument5">
220
+ <li ng-show="$ctrl.vm.isCommandDocument5" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandDocument5Enabled}">
221
221
  <a data-ng-click="$ctrl.vm.commandDocument5()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
222
222
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandDocument5Text || 'Dokument'}}</div>
223
223
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.343",
5
+ "version": "0.2.345",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {