superdesk-ui-framework 3.1.15 → 3.1.16

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.
@@ -45613,6 +45613,18 @@ textarea.sd-media-carousel__media-title {
45613
45613
  background-color: var(--sd-colour-interactive);
45614
45614
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
45615
45615
 
45616
+ .sd-loader--inline, .sd-loader {
45617
+ display: inline-flex;
45618
+ width: 100%;
45619
+ min-width: 90px;
45620
+ height: 100%;
45621
+ min-height: 30px;
45622
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMTIwIDMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiM3YjdiN2IiPjxjaXJjbGUgY3g9IjE1IiBjeT0iMTUiIHI9IjE1Ij48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiBmcm9tPSIxNSIgdG89IjE1IiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxNTs5OzE1IiBjYWxjTW9kZT0ibGluZWFyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsLW9wYWNpdHkiIGZyb209IjEiIHRvPSIxIiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxOy41OzEiIGNhbGNNb2RlPSJsaW5lYXIiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPjwvY2lyY2xlPjxjaXJjbGUgY3g9IjYwIiBjeT0iMTUiIHI9IjkiIGZpbGwtb3BhY2l0eT0iMC4zIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiBmcm9tPSI5IiB0bz0iOSIgYmVnaW49IjBzIiBkdXI9IjAuOHMiIHZhbHVlcz0iOTsxNTs5IiBjYWxjTW9kZT0ibGluZWFyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsLW9wYWNpdHkiIGZyb209IjAuNSIgdG89IjAuNSIgYmVnaW49IjBzIiBkdXI9IjAuOHMiIHZhbHVlcz0iLjU7MTsuNSIgY2FsY01vZGU9ImxpbmVhciIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+PC9jaXJjbGU+PGNpcmNsZSBjeD0iMTA1IiBjeT0iMTUiIHI9IjE1Ij48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiBmcm9tPSIxNSIgdG89IjE1IiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxNTs5OzE1IiBjYWxjTW9kZT0ibGluZWFyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsLW9wYWNpdHkiIGZyb209IjEiIHRvPSIxIiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxOy41OzEiIGNhbGNNb2RlPSJsaW5lYXIiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPjwvY2lyY2xlPjwvc3ZnPg==");
45623
+ background-repeat: no-repeat;
45624
+ background-position: center center;
45625
+ background-size: 60px;
45626
+ background-color: var(--sd-colour-overlay-actioning); }
45627
+
45616
45628
  .sd-loader {
45617
45629
  content: '';
45618
45630
  display: block;
@@ -45621,12 +45633,7 @@ textarea.sd-media-carousel__media-title {
45621
45633
  inset-inline-end: 0;
45622
45634
  inset-block-end: 0;
45623
45635
  inset-inline-start: 0;
45624
- z-index: 99999;
45625
- background-image: url(three-dots.svg);
45626
- background-repeat: no-repeat;
45627
- background-position: center center;
45628
- background-size: 60px;
45629
- background-color: var(--sd-colour-overlay-actioning); }
45636
+ z-index: 99999; }
45630
45637
 
45631
45638
  .red--100 {
45632
45639
  background-color: #fde4e2; }
@@ -70,7 +70,7 @@ return /******/ (function(modules) { // webpackBootstrap
70
70
  /******/ __webpack_require__.p = "";
71
71
  /******/
72
72
  /******/ // Load entry module and return exports
73
- /******/ return __webpack_require__(__webpack_require__.s = 974);
73
+ /******/ return __webpack_require__(__webpack_require__.s = 975);
74
74
  /******/ })
75
75
  /************************************************************************/
76
76
  /******/ ([
@@ -42134,10 +42134,14 @@ var Loader = /** @class */ (function (_super) {
42134
42134
  }
42135
42135
  Loader.prototype.render = function () {
42136
42136
  if (this.props.overlay) {
42137
- return (React.createElement("div", { className: 'sd-loader' }));
42137
+ return (React.createElement("div", { className: "sd-loader", style: { backgroundColor: this.props.backgroundColor } }));
42138
42138
  }
42139
42139
  else {
42140
- return null;
42140
+ return (React.createElement("div", { className: "sd-loader--inline", style: {
42141
+ width: this.props.width,
42142
+ height: this.props.height,
42143
+ backgroundColor: this.props.backgroundColor,
42144
+ } }));
42141
42145
  }
42142
42146
  };
42143
42147
  return Loader;
@@ -157922,7 +157926,8 @@ angular.module('superdesk-ui.positioner', []).component('sdPositioner', (0, _rea
157922
157926
  /* 971 */,
157923
157927
  /* 972 */,
157924
157928
  /* 973 */,
157925
- /* 974 */
157929
+ /* 974 */,
157930
+ /* 975 */
157926
157931
  /***/ (function(module, exports, __webpack_require__) {
157927
157932
 
157928
157933
  "use strict";
@@ -158209,53 +158214,53 @@ Object.defineProperty(exports, 'ContentDivider', {
158209
158214
  }
158210
158215
  });
158211
158216
 
158212
- __webpack_require__(975);
158217
+ __webpack_require__(976);
158213
158218
 
158214
- __webpack_require__(1010);
158219
+ __webpack_require__(1011);
158215
158220
 
158216
158221
  exports.default = angular.module('superdesk-ui', ['superdesk-ui.helper', 'superdesk-ui.carousel', 'superdesk-ui.wizard', 'superdesk-ui.dropdown', 'superdesk-ui.positioner', 'superdesk-ui.modals', 'superdesk-ui.switch', 'superdesk-ui.check', 'superdesk-ui.circularProgress', 'superdesk-ui.toggleBox', 'superdesk-ui.toggleBoxNext', 'superdesk-ui.tags', 'superdesk-ui.lineInput', 'superdesk-ui.searchHandler', 'superdesk-ui.splitter', 'superdesk-ui.mediaQuery']);
158217
158222
 
158218
158223
  /***/ }),
158219
- /* 975 */
158224
+ /* 976 */
158220
158225
  /***/ (function(module, exports, __webpack_require__) {
158221
158226
 
158222
158227
  "use strict";
158223
158228
 
158224
158229
 
158225
- __webpack_require__(976);
158226
-
158227
- __webpack_require__(990);
158230
+ __webpack_require__(977);
158228
158231
 
158229
- __webpack_require__(992);
158232
+ __webpack_require__(991);
158230
158233
 
158231
158234
  __webpack_require__(993);
158232
158235
 
158233
- __webpack_require__(800);
158234
-
158235
158236
  __webpack_require__(994);
158236
158237
 
158238
+ __webpack_require__(800);
158239
+
158237
158240
  __webpack_require__(995);
158238
158241
 
158239
158242
  __webpack_require__(996);
158240
158243
 
158241
- __webpack_require__(799);
158242
-
158243
158244
  __webpack_require__(997);
158244
158245
 
158245
- __webpack_require__(1000);
158246
+ __webpack_require__(799);
158246
158247
 
158247
- __webpack_require__(1002);
158248
+ __webpack_require__(998);
158248
158249
 
158249
- __webpack_require__(1004);
158250
+ __webpack_require__(1001);
158250
158251
 
158251
- __webpack_require__(1006);
158252
+ __webpack_require__(1003);
158252
158253
 
158253
- __webpack_require__(1008);
158254
+ __webpack_require__(1005);
158255
+
158256
+ __webpack_require__(1007);
158254
158257
 
158255
158258
  __webpack_require__(1009);
158256
158259
 
158260
+ __webpack_require__(1010);
158261
+
158257
158262
  /***/ }),
158258
- /* 976 */
158263
+ /* 977 */
158259
158264
  /***/ (function(module, exports, __webpack_require__) {
158260
158265
 
158261
158266
  "use strict";
@@ -158265,22 +158270,22 @@ Object.defineProperty(exports, "__esModule", {
158265
158270
  value: true
158266
158271
  });
158267
158272
 
158268
- __webpack_require__(977);
158269
-
158270
158273
  __webpack_require__(978);
158271
158274
 
158272
- __webpack_require__(984);
158275
+ __webpack_require__(979);
158273
158276
 
158274
158277
  __webpack_require__(985);
158275
158278
 
158276
- __webpack_require__(988);
158279
+ __webpack_require__(986);
158277
158280
 
158278
158281
  __webpack_require__(989);
158279
158282
 
158283
+ __webpack_require__(990);
158284
+
158280
158285
  exports.default = angular.module('superdesk-ui.helper', ['superdesk-ui.helper.dropdown', 'superdesk-ui.helper.modal', 'superdesk-ui.helper.datepicker', 'superdesk-ui.helper.ngTagsInput']);
158281
158286
 
158282
158287
  /***/ }),
158283
- /* 977 */
158288
+ /* 978 */
158284
158289
  /***/ (function(module, exports, __webpack_require__) {
158285
158290
 
158286
158291
  "use strict";
@@ -158497,7 +158502,7 @@ angular.module('superdesk-ui.helper.dateparser', []).service('dateParser', ['$lo
158497
158502
  }]);
158498
158503
 
158499
158504
  /***/ }),
158500
- /* 978 */
158505
+ /* 979 */
158501
158506
  /***/ (function(module, exports, __webpack_require__) {
158502
158507
 
158503
158508
  "use strict";
@@ -158716,7 +158721,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
158716
158721
  return {
158717
158722
  restrict: 'EA',
158718
158723
  replace: true,
158719
- template: __webpack_require__(979),
158724
+ template: __webpack_require__(980),
158720
158725
  scope: {
158721
158726
  datepickerMode: '=?',
158722
158727
  dateDisabled: '&',
@@ -158738,7 +158743,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
158738
158743
  return {
158739
158744
  restrict: 'EA',
158740
158745
  replace: true,
158741
- template: __webpack_require__(980),
158746
+ template: __webpack_require__(981),
158742
158747
  require: '^datepicker',
158743
158748
  link: function link(scope, element, attrs, ctrl) {
158744
158749
  scope.showWeeks = ctrl.showWeeks;
@@ -158857,7 +158862,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
158857
158862
  return {
158858
158863
  restrict: 'EA',
158859
158864
  replace: true,
158860
- template: __webpack_require__(981),
158865
+ template: __webpack_require__(982),
158861
158866
  require: '^datepicker',
158862
158867
  link: function link(scope, element, attrs, ctrl) {
158863
158868
  ctrl.step = { years: 1 };
@@ -158914,7 +158919,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
158914
158919
  return {
158915
158920
  restrict: 'EA',
158916
158921
  replace: true,
158917
- template: __webpack_require__(982),
158922
+ template: __webpack_require__(983),
158918
158923
  require: '^datepicker',
158919
158924
  link: function link(scope, element, attrs, ctrl) {
158920
158925
  var range = ctrl.yearRange;
@@ -159281,42 +159286,42 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
159281
159286
  restrict: 'EA',
159282
159287
  replace: true,
159283
159288
  transclude: true,
159284
- template: __webpack_require__(983)
159289
+ template: __webpack_require__(984)
159285
159290
  };
159286
159291
  });
159287
159292
 
159288
159293
  /***/ }),
159289
- /* 979 */
159294
+ /* 980 */
159290
159295
  /***/ (function(module, exports) {
159291
159296
 
159292
159297
  module.exports = "<div ng-switch=\"datepickerMode\" role=\"application\" ng-keydown=\"keydown($event)\">\n <daypicker ng-switch-when=\"day\" tabindex=\"0\"></daypicker>\n <monthpicker ng-switch-when=\"month\" tabindex=\"0\"></monthpicker>\n <yearpicker ng-switch-when=\"year\" tabindex=\"0\"></yearpicker>\n</div>";
159293
159298
 
159294
159299
  /***/ }),
159295
- /* 980 */
159300
+ /* 981 */
159296
159301
  /***/ (function(module, exports) {
159297
159302
 
159298
159303
  module.exports = "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n <thead>\n <tr>\n <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left\" ng-click=\"move(-1)\" tabindex=\"-1\"><i class=\"icon-chevron-left-thin\"></i></button></th>\n <th colspan=\"{{::5 + showWeeks}}\"><button id=\"{{::uniqueId}}-title\" role=\"heading\" aria-live=\"assertive\" aria-atomic=\"true\" type=\"button\" class=\"btn btn-default btn-sm\" ng-click=\"toggleMode()\" ng-disabled=\"datepickerMode === maxMode\" tabindex=\"-1\" style=\"width:100%;\"><strong>{{title}}</strong></button></th>\n <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right\" ng-click=\"move(1)\" tabindex=\"-1\"><i class=\"icon-chevron-right-thin\"></i></button></th>\n </tr>\n <tr>\n <th ng-if=\"showWeeks\" class=\"text-center\"></th>\n <th ng-repeat=\"label in ::labels track by $index\" class=\"text-center\"><small aria-label=\"{{::label.full}}\">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"row in rows track by $index\">\n <td ng-if=\"showWeeks\" class=\"text-center h6\"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat=\"dt in row track by dt.date\" class=\"text-center\" role=\"gridcell\" id=\"{{::dt.uid}}\" ng-class=\"::dt.customClass\">\n <button type=\"button\" style=\"min-width:100%;\" class=\"btn btn-default btn-sm\" ng-class=\"{'btn-info': dt.selected, active: isActive(dt)}\" ng-click=\"select(dt.date)\" ng-disabled=\"dt.disabled\" tabindex=\"-1\"><span ng-class=\"::{'text-muted': dt.secondary, 'text-info': dt.current}\">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n";
159299
159304
 
159300
159305
  /***/ }),
159301
- /* 981 */
159306
+ /* 982 */
159302
159307
  /***/ (function(module, exports) {
159303
159308
 
159304
159309
  module.exports = "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n <thead>\n <tr>\n <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left\" ng-click=\"move(-1)\" tabindex=\"-1\"><i class=\"icon-chevron-left-thin\"></i></button></th>\n <th><button id=\"{{::uniqueId}}-title\" role=\"heading\" aria-live=\"assertive\" aria-atomic=\"true\" type=\"button\" class=\"btn btn-default btn-sm\" ng-click=\"toggleMode()\" ng-disabled=\"datepickerMode === maxMode\" tabindex=\"-1\" style=\"width:100%;\"><strong>{{title}}</strong></button></th>\n <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right\" ng-click=\"move(1)\" tabindex=\"-1\"><i class=\"icon-chevron-right-thin\"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"row in rows track by $index\">\n <td ng-repeat=\"dt in row track by dt.date\" class=\"text-center\" role=\"gridcell\" id=\"{{::dt.uid}}\" ng-class=\"::dt.customClass\">\n <button type=\"button\" style=\"min-width:100%;\" class=\"btn btn-default\" ng-class=\"{'btn-info': dt.selected, active: isActive(dt)}\" ng-click=\"select(dt.date)\" ng-disabled=\"dt.disabled\" tabindex=\"-1\"><span ng-class=\"::{'text-info': dt.current}\">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n";
159305
159310
 
159306
159311
  /***/ }),
159307
- /* 982 */
159312
+ /* 983 */
159308
159313
  /***/ (function(module, exports) {
159309
159314
 
159310
159315
  module.exports = "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n <thead>\n <tr>\n <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left\" ng-click=\"move(-1)\" tabindex=\"-1\"><i class=\"icon-chevron-left-thin\"></i></button></th>\n <th colspan=\"3\"><button id=\"{{::uniqueId}}-title\" role=\"heading\" aria-live=\"assertive\" aria-atomic=\"true\" type=\"button\" class=\"btn btn-default btn-sm\" ng-click=\"toggleMode()\" ng-disabled=\"datepickerMode === maxMode\" tabindex=\"-1\" style=\"width:100%;\"><strong>{{title}}</strong></button></th>\n <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right\" ng-click=\"move(1)\" tabindex=\"-1\"><i class=\"icon-chevron-right-thin\"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat=\"row in rows track by $index\">\n <td ng-repeat=\"dt in row track by dt.date\" class=\"text-center\" role=\"gridcell\" id=\"{{::dt.uid}}\">\n <button type=\"button\" style=\"min-width:100%;\" class=\"btn btn-default\" ng-class=\"{'btn-info': dt.selected, active: isActive(dt)}\" ng-click=\"select(dt.date)\" ng-disabled=\"dt.disabled\" tabindex=\"-1\"><span ng-class=\"::{'text-info': dt.current}\">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n";
159311
159316
 
159312
159317
  /***/ }),
159313
- /* 983 */
159318
+ /* 984 */
159314
159319
  /***/ (function(module, exports) {
159315
159320
 
159316
159321
  module.exports = "<ul class=\"dropdown-menu\" ng-if=\"isOpen\" style=\"display: block\" ng-style=\"{top: position.top+'px', left: position.left+'px'}\" ng-keydown=\"keydown($event)\" ng-click=\"$event.stopPropagation()\">\n\t<li ng-transclude></li>\n\t<li ng-if=\"showButtonBar\" style=\"padding:10px 9px 2px\">\n\t\t<span class=\"btn-group pull-left\">\n\t\t\t<button type=\"button\" class=\"btn btn-sm btn-info\" ng-click=\"select('today')\">{{ getText('current') }}</button>\n\t\t\t<button type=\"button\" class=\"btn btn-sm btn-danger\" ng-click=\"select(null)\">{{ getText('clear') }}</button>\n\t\t</span>\n\t\t<button type=\"button\" class=\"btn btn-sm btn-success pull-right\" ng-click=\"close()\">{{ getText('close') }}</button>\n\t</li>\n</ul>\n";
159317
159322
 
159318
159323
  /***/ }),
159319
- /* 984 */
159324
+ /* 985 */
159320
159325
  /***/ (function(module, exports, __webpack_require__) {
159321
159326
 
159322
159327
  "use strict";
@@ -159659,7 +159664,7 @@ angular.module('superdesk-ui.helper.dropdown', ['superdesk-ui.helper.position'])
159659
159664
  });
159660
159665
 
159661
159666
  /***/ }),
159662
- /* 985 */
159667
+ /* 986 */
159663
159668
  /***/ (function(module, exports, __webpack_require__) {
159664
159669
 
159665
159670
  "use strict";
@@ -159726,7 +159731,7 @@ angular.module('superdesk-ui.helper.modal', []).factory('$$stackedMap', function
159726
159731
  return {
159727
159732
  restrict: 'EA',
159728
159733
  replace: true,
159729
- template: __webpack_require__(986),
159734
+ template: __webpack_require__(987),
159730
159735
  compile: function compile(tElement, tAttrs) {
159731
159736
  tElement.addClass(tAttrs.backdropClass);
159732
159737
  return linkFn;
@@ -159753,7 +159758,7 @@ angular.module('superdesk-ui.helper.modal', []).factory('$$stackedMap', function
159753
159758
  // templateUrl: function templateUrl(tElement, tAttrs) {
159754
159759
  // return tAttrs.templateUrl || '../app/template/window.html';
159755
159760
  // },
159756
- template: __webpack_require__(987),
159761
+ template: __webpack_require__(988),
159757
159762
  link: function link(scope, element, attrs) {
159758
159763
  element.addClass(attrs.windowClass || '');
159759
159764
  scope.size = attrs.size;
@@ -160130,19 +160135,19 @@ angular.module('superdesk-ui.helper.modal', []).factory('$$stackedMap', function
160130
160135
  });
160131
160136
 
160132
160137
  /***/ }),
160133
- /* 986 */
160138
+ /* 987 */
160134
160139
  /***/ (function(module, exports) {
160135
160140
 
160136
160141
  module.exports = "<div class=\"modal__backdrop fade in\"></div>";
160137
160142
 
160138
160143
  /***/ }),
160139
- /* 987 */
160144
+ /* 988 */
160140
160145
  /***/ (function(module, exports) {
160141
160146
 
160142
160147
  module.exports = "<div modal-render=\"{{$isRendered}}\" tabindex=\"-1\" role=\"dialog\" class=\"modal\"\n modal-animation-class=\"fade\"\n modal-in-class=\"in\"\n ng-style=\"{'z-index': 1050 + index * 10, display: 'block'}\"\n ng-class=\"size ? 'modal--' + size : ''\">\n <div class=\"modal__dialog\">\n <div class=\"modal__content\" modal-transclude></div>\n </div>\n</div>\n";
160143
160148
 
160144
160149
  /***/ }),
160145
- /* 988 */
160150
+ /* 989 */
160146
160151
  /***/ (function(module, exports, __webpack_require__) {
160147
160152
 
160148
160153
  "use strict";
@@ -160305,7 +160310,7 @@ angular.module('superdesk-ui.helper.position', [])
160305
160310
  }]);
160306
160311
 
160307
160312
  /***/ }),
160308
- /* 989 */
160313
+ /* 990 */
160309
160314
  /***/ (function(module, exports, __webpack_require__) {
160310
160315
 
160311
160316
  "use strict";
@@ -161531,7 +161536,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
161531
161536
  })();
161532
161537
 
161533
161538
  /***/ }),
161534
- /* 990 */
161539
+ /* 991 */
161535
161540
  /***/ (function(module, exports, __webpack_require__) {
161536
161541
 
161537
161542
  "use strict";
@@ -161548,7 +161553,7 @@ function CarouselDirective() {
161548
161553
  finish: '&',
161549
161554
  model: '='
161550
161555
  },
161551
- template: __webpack_require__(991),
161556
+ template: __webpack_require__(992),
161552
161557
  transclude: true,
161553
161558
  controllerAs: 'ctrl',
161554
161559
  controller: ['$scope', '$document', function ($scope, $document) {
@@ -161670,13 +161675,13 @@ function CarouselStepDirective() {
161670
161675
  angular.module('superdesk-ui.carousel', []).directive('sdCarousel', CarouselDirective).directive('sdCarouselStep', CarouselStepDirective);
161671
161676
 
161672
161677
  /***/ }),
161673
- /* 991 */
161678
+ /* 992 */
161674
161679
  /***/ (function(module, exports) {
161675
161680
 
161676
161681
  module.exports = "<div class=\"sd-carousel__backdrop\"></div>\n<div class=\"sd-carousel\">\n <div class=\"sd-carousel__dialog\">\n <div class=\"sd-carousel__content\" ng-transclude></div>\n <a class=\"sd-carousel__nav-button sd-carousel__nav-button--prev\" ng-click=\"ctrl.previous()\" ng-hide=\"pageIndex === 0\"></a>\n <a class=\"sd-carousel__nav-button\" ng-click=\"pageIndex === steps.length-1 ? ctrl.finish() : ctrl.next()\" ng-class=\"pageIndex === steps.length-1 ? 'sd-carousel__nav-button--end' : 'sd-carousel__nav-button--next'\"></a>\n <div class=\"sd-carousel__page-indication-bar\">\n <span ng-repeat=\"step in steps\" \n class=\"sd-carousel__page-indicator\" \n ng-class=\"{'sd-carousel__page-indicator--selected': step.selected}\"\n ng-click=\"goTo(step)\">\n </span>\n </div>\n </div>\n</div>";
161677
161682
 
161678
161683
  /***/ }),
161679
- /* 992 */
161684
+ /* 993 */
161680
161685
  /***/ (function(module, exports, __webpack_require__) {
161681
161686
 
161682
161687
  "use strict";
@@ -161779,7 +161784,7 @@ function sdCheck($parse) {
161779
161784
  angular.module('superdesk-ui.check', []).directive('sdCheck', sdCheck);
161780
161785
 
161781
161786
  /***/ }),
161782
- /* 993 */
161787
+ /* 994 */
161783
161788
  /***/ (function(module, exports, __webpack_require__) {
161784
161789
 
161785
161790
  "use strict";
@@ -161959,7 +161964,7 @@ angular.module("superdesk-ui.dropdown", []).directive("dropdown", sdDropdown).di
161959
161964
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(57)))
161960
161965
 
161961
161966
  /***/ }),
161962
- /* 994 */
161967
+ /* 995 */
161963
161968
  /***/ (function(module, exports, __webpack_require__) {
161964
161969
 
161965
161970
  "use strict";
@@ -162047,7 +162052,7 @@ function sdModal($document, $rootScope) {
162047
162052
  angular.module('superdesk-ui.modals', []).directive('sdModal', sdModal);
162048
162053
 
162049
162054
  /***/ }),
162050
- /* 995 */
162055
+ /* 996 */
162051
162056
  /***/ (function(module, exports, __webpack_require__) {
162052
162057
 
162053
162058
  "use strict";
@@ -162132,7 +162137,7 @@ function sdSwitch() {
162132
162137
  angular.module('superdesk-ui.switch', []).directive('sdSwitch', sdSwitch);
162133
162138
 
162134
162139
  /***/ }),
162135
- /* 996 */
162140
+ /* 997 */
162136
162141
  /***/ (function(module, exports, __webpack_require__) {
162137
162142
 
162138
162143
  "use strict";
@@ -162170,7 +162175,7 @@ function ToggleBoxDirective() {
162170
162175
  angular.module('superdesk-ui.toggleBox', []).directive('sdToggleBox', ToggleBoxDirective);
162171
162176
 
162172
162177
  /***/ }),
162173
- /* 997 */
162178
+ /* 998 */
162174
162179
  /***/ (function(module, exports, __webpack_require__) {
162175
162180
 
162176
162181
  "use strict";
@@ -162205,7 +162210,7 @@ function WizardHandlerFactory() {
162205
162210
  WizardDirective.$inject = [];
162206
162211
  function WizardDirective() {
162207
162212
  return {
162208
- template: __webpack_require__(998),
162213
+ template: __webpack_require__(999),
162209
162214
  scope: {
162210
162215
  currentStep: '=',
162211
162216
  finish: '&',
@@ -162309,7 +162314,7 @@ function WizardDirective() {
162309
162314
  WizardStepDirective.$inject = [];
162310
162315
  function WizardStepDirective() {
162311
162316
  return {
162312
- template: __webpack_require__(999),
162317
+ template: __webpack_require__(1000),
162313
162318
  scope: {
162314
162319
  title: '@',
162315
162320
  code: '@',
@@ -162327,19 +162332,19 @@ function WizardStepDirective() {
162327
162332
  angular.module('superdesk-ui.wizard', []).factory('WizardHandler', WizardHandlerFactory).directive('sdWizard', WizardDirective).directive('sdWizardStep', WizardStepDirective);
162328
162333
 
162329
162334
  /***/ }),
162330
- /* 998 */
162335
+ /* 999 */
162331
162336
  /***/ (function(module, exports) {
162332
162337
 
162333
162338
  module.exports = "<div class=\"modal__body-header\">\n <ul class=\"nav-tabs\">\n <li ng-repeat=\"step in steps\" ng-class=\"{'nav-tabs__tab--active': step.selected}\" class=\"nav-tabs__tab\">\n <button\n ng-click=\"goTo(step)\"\n ng-disabled=\"step.disabled\"\n ng-hide=\"step.hide\"\n class=\"nav-tabs__link\"\n data-test-id=\"wizard--{{step.title}}\"\n >\n {{ step.title}}\n </button>\n </li>\n </ul>\n</div>\n<div class=\"modal__body-content\" ng-transclude></div>";
162334
162339
 
162335
162340
  /***/ }),
162336
- /* 999 */
162341
+ /* 1000 */
162337
162342
  /***/ (function(module, exports) {
162338
162343
 
162339
162344
  module.exports = "<div ng-show=\"selected\" class=\"modal-screen\" ng-transclude></div>\r\n";
162340
162345
 
162341
162346
  /***/ }),
162342
- /* 1000 */
162347
+ /* 1001 */
162343
162348
  /***/ (function(module, exports, __webpack_require__) {
162344
162349
 
162345
162350
  "use strict";
@@ -162368,7 +162373,7 @@ function TagInputDirective($q) {
162368
162373
  maxResultsToShow: '='
162369
162374
  },
162370
162375
  require: '?ngModel',
162371
- template: __webpack_require__(1001),
162376
+ template: __webpack_require__(1002),
162372
162377
  link: function link(scope) {
162373
162378
  scope.loadTags = function (query) {
162374
162379
  return $q(function (resolve, reject) {
@@ -162386,13 +162391,13 @@ function TagInputDirective($q) {
162386
162391
  angular.module('superdesk-ui.tags', []).directive('sdTagInput', TagInputDirective);
162387
162392
 
162388
162393
  /***/ }),
162389
- /* 1001 */
162394
+ /* 1002 */
162390
162395
  /***/ (function(module, exports) {
162391
162396
 
162392
162397
  module.exports = "<label class=\"tags-input__label\" ng-if=\"label\">{{label}}</label>\n<tags-input ng-model=\"model\"\n add-from-autocomplete-only=\"{{items ? !freetext : false}}\"\n show-button=\"{{!!items}}\"\n display-property=\"{{field}}\"\n key-property=\"{{keyProperty}}\"\n use-strings=\"{{!field}}\"\n ng-required=\"required\"\n on-tag-added=\"onChange($tag)\"\n on-tag-removed=\"onChange($tag)\"\n replace-spaces-with-dashes=\"{{replaceSpacesWithDashes}}\"\n min-length=\"{{minLength}}\"\n max-length=\"{{maxLength}}\"\n max-tags=\"{{maxTags}}\"\n max-items=\"{{maxItems}}\"\n boxed={{boxed}}\n placeholder=\"{{placeholder}}\">\n\n <auto-complete ng-if=\"items\"\n source=\"loadTags($query)\"\n load-on-empty=\"true\"\n min-length=\"{{minLength}}\"\n display-property=\"{{field}}\"\n key-property=\"{{keyProperty}}\"\n max-results-to-show=\"{{maxResultsToShow}}\">\n </auto-complete>\n</tags-input>\n";
162393
162398
 
162394
162399
  /***/ }),
162395
- /* 1002 */
162400
+ /* 1003 */
162396
162401
  /***/ (function(module, exports, __webpack_require__) {
162397
162402
 
162398
162403
  "use strict";
@@ -162409,7 +162414,7 @@ module.exports = "<label class=\"tags-input__label\" ng-if=\"label\">{{label}}</
162409
162414
  */
162410
162415
  function LineInputDirective() {
162411
162416
  return {
162412
- template: __webpack_require__(1003),
162417
+ template: __webpack_require__(1004),
162413
162418
  replace: true,
162414
162419
  transclude: true,
162415
162420
  require: '?ngModel',
@@ -162451,13 +162456,13 @@ function LineInputDirective() {
162451
162456
  angular.module('superdesk-ui.lineInput', []).directive('sdLineInput', LineInputDirective);
162452
162457
 
162453
162458
  /***/ }),
162454
- /* 1003 */
162459
+ /* 1004 */
162455
162460
  /***/ (function(module, exports) {
162456
162461
 
162457
162462
  module.exports = " <div class=\"sd-line-input\" ng-class=\"{'sd-line-input--dark-ui': dark, 'sd-line-input--boxed': boxed, 'sd-line-input--required': required}\">\n <label class=\"sd-line-input__label\" translate>{{label}}</label>\n\n <input class=\"sd-line-input__input\" type=\"text\" ng-model=\"modelFixed.value\" ng-change=\"update(modelFixed.value)\" ng-blur=\"onblur()\" ng-disabled=\"disabled\" placeholder=\"{{placeholder}}\" ng-if=\"!transclude && !textarea\">\n\n <textarea class=\"sd-line-input__input\"\n ng-model=\"modelFixed.value\"\n ng-change=\"update(modelFixed.value)\"\n ng-blur=\"onblur()\"\n ng-disabled=\"disabled\"\n placeholder=\"{{placeholder}}\"\n ng-if=\"textarea\"\n sd-auto-height>\n </textarea>\n\n <ng-transclude></ng-transclude>\n <div class=\"sd-line-input__char-count\" ng-if=\"maxlength\" sd-character-count data-item=\"modelFixed.value\" data-limit=\"maxlength\" data-html=\"true\"></div>\n</div>\n";
162458
162463
 
162459
162464
  /***/ }),
162460
- /* 1004 */
162465
+ /* 1005 */
162461
162466
  /***/ (function(module, exports, __webpack_require__) {
162462
162467
 
162463
162468
  "use strict";
@@ -162477,7 +162482,7 @@ module.exports = " <div class=\"sd-line-input\" ng-class=\"{'sd-line-input--dark
162477
162482
  */
162478
162483
  function SearchHandlerDirective() {
162479
162484
  return {
162480
- template: __webpack_require__(1005),
162485
+ template: __webpack_require__(1006),
162481
162486
  replace: true,
162482
162487
  transclude: true,
162483
162488
  require: '?ngModel',
@@ -162503,13 +162508,13 @@ function SearchHandlerDirective() {
162503
162508
  angular.module('superdesk-ui.searchHandler', []).directive('sdSearchHandler', SearchHandlerDirective);
162504
162509
 
162505
162510
  /***/ }),
162506
- /* 1005 */
162511
+ /* 1006 */
162507
162512
  /***/ (function(module, exports) {
162508
162513
 
162509
162514
  module.exports = "<div class=\"flat-searchbar extended\">\n <div class=\"search-handler\" ng-class=\"{'search-handler--left-border': borderleft}\">\n <label for=\"search-input\" class=\"trigger-icon\"><i class=\"icon-search\"></i></label>\n <input id=\"search-input\" type=\"text\" placeholder=\"{{ :: label || 'Search' }}\" ng-model=\"model\" ng-model-options=\"{debounce: debounce}\">\n <button class=\"search-close\" ng-if=\"model.length\" ng-click=\"clearInput()\" ng-class=\"{visible: model.length}\"><i class=\"icon-remove-sign\"></i></button>\n\n <button class=\"search-close\" ng-if=\"button && model.length\" ng-click=\"\" ng-class=\"{visible: button && model.length}\">\n <i class=\"big-icon--chevron-right\"></i>\n </button>\n </div>\n</div>\n";
162510
162515
 
162511
162516
  /***/ }),
162512
- /* 1006 */
162517
+ /* 1007 */
162513
162518
  /***/ (function(module, exports, __webpack_require__) {
162514
162519
 
162515
162520
  "use strict";
@@ -162525,7 +162530,7 @@ function sdCircularProgress() {
162525
162530
  error: '=',
162526
162531
  counter: '='
162527
162532
  },
162528
- template: __webpack_require__(1007),
162533
+ template: __webpack_require__(1008),
162529
162534
  link: function link(scope, element) {
162530
162535
  var elem = $(element).find('.progress-svg');
162531
162536
 
@@ -162571,13 +162576,13 @@ angular.module('superdesk-ui.circularProgress', []).directive('sdCircularProgres
162571
162576
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(57)))
162572
162577
 
162573
162578
  /***/ }),
162574
- /* 1007 */
162579
+ /* 1008 */
162575
162580
  /***/ (function(module, exports) {
162576
162581
 
162577
162582
  module.exports = "<div class=\"progress-bar-container\">\n <div class=\"progress-done\" ng-class=\"{'progress-done--completed': status === 'completed', 'progress-done--error': status === 'error'}\">\n <i class=\"icon-ok\" ng-hide=\"status === 'error'\"></i>\n <i class=\"icon-close-small\" ng-hide=\"status === 'completed'\"></i>\n </div>\n <span class=\"progress-text\" ng-if=\"counter\">{{value}}<em>%</em></span>\n <svg class=\"progress-svg\">\n <circle ng-attr-r=\"{{radius}}\" ng-attr-cx=\"50%\" ng-attr-cy=\"50%\"></circle>\n <circle class=\"progressbar\" ng-attr-r=\"{{radius}}\" ng-attr-cx=\"50%\" ng-attr-cy=\"50%\" ng-style=\"{'stroke-dashoffset': dashOffset, 'stroke-dasharray': circumference}\"></circle>\n </svg>\n</div>";
162578
162583
 
162579
162584
  /***/ }),
162580
- /* 1008 */
162585
+ /* 1009 */
162581
162586
  /***/ (function(module, exports, __webpack_require__) {
162582
162587
 
162583
162588
  "use strict";
@@ -162622,7 +162627,7 @@ function SplitterDirective($window) {
162622
162627
  angular.module('superdesk-ui.splitter', []).directive('sdSplitter', SplitterDirective);
162623
162628
 
162624
162629
  /***/ }),
162625
- /* 1009 */
162630
+ /* 1010 */
162626
162631
  /***/ (function(module, exports, __webpack_require__) {
162627
162632
 
162628
162633
  "use strict";
@@ -162663,16 +162668,16 @@ function MediaQuery($window) {
162663
162668
  angular.module('superdesk-ui.mediaQuery', []).directive('sdMediaQuery', MediaQuery);
162664
162669
 
162665
162670
  /***/ }),
162666
- /* 1010 */
162671
+ /* 1011 */
162667
162672
  /***/ (function(module, exports, __webpack_require__) {
162668
162673
 
162669
162674
  "use strict";
162670
162675
 
162671
162676
 
162672
- __webpack_require__(1011);
162677
+ __webpack_require__(1012);
162673
162678
 
162674
162679
  /***/ }),
162675
- /* 1011 */
162680
+ /* 1012 */
162676
162681
  /***/ (function(module, exports) {
162677
162682
 
162678
162683
  // removed by extract-text-webpack-plugin
@@ -84,6 +84,7 @@ import { BorderUtilitiesDoc } from './utilities/BorderUtilities';
84
84
  import { OpacityUtilitiesDoc } from './utilities/OpacityUtilities';
85
85
  import { ObjectFitUtilitiesDoc } from './utilities/ObjectFitUtilities';
86
86
  import { ObjectPositionUtilitiesDoc } from './utilities/ObjectPositionUtilities';
87
+ import LoaderDoc from './Loader';
87
88
 
88
89
 
89
90
  interface IPages {
@@ -181,7 +182,11 @@ const pages: IPages = {
181
182
  "illustration-button": {
182
183
  name: 'Illustration Button',
183
184
  component: IllustrationButtonDoc,
184
- }
185
+ },
186
+ "loader": {
187
+ name: 'Loader',
188
+ component: LoaderDoc,
189
+ },
185
190
  }
186
191
  },
187
192
  navigationComponents: {
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import * as Markup from '../../js/react';
3
+ import {Loader} from '../../../app-typescript';
4
+
5
+ export default class LoaderDoc extends React.Component {
6
+ render() {
7
+ return (
8
+ <section className='docs-page__container'>
9
+ <h2 className='docs-page__h2'>Loader</h2>
10
+
11
+ <Markup.ReactMarkup>
12
+ <Markup.ReactMarkupPreview>
13
+ <Loader />
14
+ </Markup.ReactMarkupPreview>
15
+
16
+ <Markup.ReactMarkupCode>{`
17
+ <Loader />
18
+ `}
19
+ </Markup.ReactMarkupCode>
20
+ </Markup.ReactMarkup>
21
+ </section>
22
+ )
23
+ }
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superdesk-ui-framework",
3
- "version": "3.1.15",
3
+ "version": "3.1.16",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,8 +1,16 @@
1
1
  import * as React from 'react';
2
- interface IProps {
3
- overlay?: boolean;
2
+ interface IPropsOverlay {
3
+ overlay: true;
4
+ backgroundColor?: React.CSSProperties['backgroundColor'];
4
5
  }
6
+ interface IPropsInline {
7
+ overlay?: false;
8
+ width?: React.CSSProperties['width'];
9
+ height?: React.CSSProperties['height'];
10
+ backgroundColor?: React.CSSProperties['backgroundColor'];
11
+ }
12
+ type IProps = IPropsOverlay | IPropsInline;
5
13
  export declare class Loader extends React.Component<IProps> {
6
- render(): JSX.Element | null;
14
+ render(): JSX.Element;
7
15
  }
8
16
  export {};