superdesk-ui-framework 4.0.37 → 4.0.38
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/app-typescript/components/card.tsx +36 -0
- package/dist/components/Card.tsx +24 -0
- package/dist/components/Index.tsx +5 -0
- package/dist/examples.bundle.js +226 -85
- package/dist/superdesk-ui.bundle.js +75 -73
- package/examples/pages/components/Card.tsx +24 -0
- package/examples/pages/components/Index.tsx +5 -0
- package/package.json +1 -1
@@ -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 =
|
73
|
+
/******/ return __webpack_require__(__webpack_require__.s = 980);
|
74
74
|
/******/ })
|
75
75
|
/************************************************************************/
|
76
76
|
/******/ ([
|
@@ -158987,7 +158987,9 @@ angular.module('superdesk-ui.positioner', []).component('sdPositioner', (0, _rea
|
|
158987
158987
|
/* 975 */,
|
158988
158988
|
/* 976 */,
|
158989
158989
|
/* 977 */,
|
158990
|
-
/* 978
|
158990
|
+
/* 978 */,
|
158991
|
+
/* 979 */,
|
158992
|
+
/* 980 */
|
158991
158993
|
/***/ (function(module, exports, __webpack_require__) {
|
158992
158994
|
|
158993
158995
|
"use strict";
|
@@ -159280,40 +159282,38 @@ Object.defineProperty(exports, 'CalendarWeekDayItem', {
|
|
159280
159282
|
}
|
159281
159283
|
});
|
159282
159284
|
|
159283
|
-
__webpack_require__(
|
159285
|
+
__webpack_require__(981);
|
159284
159286
|
|
159285
|
-
__webpack_require__(
|
159287
|
+
__webpack_require__(1016);
|
159286
159288
|
|
159287
159289
|
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']);
|
159288
159290
|
|
159289
159291
|
/***/ }),
|
159290
|
-
/*
|
159292
|
+
/* 981 */
|
159291
159293
|
/***/ (function(module, exports, __webpack_require__) {
|
159292
159294
|
|
159293
159295
|
"use strict";
|
159294
159296
|
|
159295
159297
|
|
159296
|
-
__webpack_require__(
|
159297
|
-
|
159298
|
-
__webpack_require__(994);
|
159298
|
+
__webpack_require__(982);
|
159299
159299
|
|
159300
159300
|
__webpack_require__(996);
|
159301
159301
|
|
159302
|
-
__webpack_require__(997);
|
159303
|
-
|
159304
|
-
__webpack_require__(802);
|
159305
|
-
|
159306
159302
|
__webpack_require__(998);
|
159307
159303
|
|
159308
159304
|
__webpack_require__(999);
|
159309
159305
|
|
159310
|
-
__webpack_require__(
|
159306
|
+
__webpack_require__(802);
|
159311
159307
|
|
159312
|
-
__webpack_require__(
|
159308
|
+
__webpack_require__(1000);
|
159313
159309
|
|
159314
159310
|
__webpack_require__(1001);
|
159315
159311
|
|
159316
|
-
__webpack_require__(
|
159312
|
+
__webpack_require__(1002);
|
159313
|
+
|
159314
|
+
__webpack_require__(801);
|
159315
|
+
|
159316
|
+
__webpack_require__(1003);
|
159317
159317
|
|
159318
159318
|
__webpack_require__(1006);
|
159319
159319
|
|
@@ -159323,10 +159323,12 @@ __webpack_require__(1010);
|
|
159323
159323
|
|
159324
159324
|
__webpack_require__(1012);
|
159325
159325
|
|
159326
|
-
__webpack_require__(
|
159326
|
+
__webpack_require__(1014);
|
159327
|
+
|
159328
|
+
__webpack_require__(1015);
|
159327
159329
|
|
159328
159330
|
/***/ }),
|
159329
|
-
/*
|
159331
|
+
/* 982 */
|
159330
159332
|
/***/ (function(module, exports, __webpack_require__) {
|
159331
159333
|
|
159332
159334
|
"use strict";
|
@@ -159336,22 +159338,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
159336
159338
|
value: true
|
159337
159339
|
});
|
159338
159340
|
|
159339
|
-
__webpack_require__(
|
159341
|
+
__webpack_require__(983);
|
159340
159342
|
|
159341
|
-
__webpack_require__(
|
159343
|
+
__webpack_require__(984);
|
159342
159344
|
|
159343
|
-
__webpack_require__(
|
159345
|
+
__webpack_require__(990);
|
159344
159346
|
|
159345
|
-
__webpack_require__(
|
159347
|
+
__webpack_require__(991);
|
159346
159348
|
|
159347
|
-
__webpack_require__(
|
159349
|
+
__webpack_require__(994);
|
159348
159350
|
|
159349
|
-
__webpack_require__(
|
159351
|
+
__webpack_require__(995);
|
159350
159352
|
|
159351
159353
|
exports.default = angular.module('superdesk-ui.helper', ['superdesk-ui.helper.dropdown', 'superdesk-ui.helper.modal', 'superdesk-ui.helper.datepicker', 'superdesk-ui.helper.ngTagsInput']);
|
159352
159354
|
|
159353
159355
|
/***/ }),
|
159354
|
-
/*
|
159356
|
+
/* 983 */
|
159355
159357
|
/***/ (function(module, exports, __webpack_require__) {
|
159356
159358
|
|
159357
159359
|
"use strict";
|
@@ -159568,7 +159570,7 @@ angular.module('superdesk-ui.helper.dateparser', []).service('dateParser', ['$lo
|
|
159568
159570
|
}]);
|
159569
159571
|
|
159570
159572
|
/***/ }),
|
159571
|
-
/*
|
159573
|
+
/* 984 */
|
159572
159574
|
/***/ (function(module, exports, __webpack_require__) {
|
159573
159575
|
|
159574
159576
|
"use strict";
|
@@ -159787,7 +159789,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
|
|
159787
159789
|
return {
|
159788
159790
|
restrict: 'EA',
|
159789
159791
|
replace: true,
|
159790
|
-
template: __webpack_require__(
|
159792
|
+
template: __webpack_require__(985),
|
159791
159793
|
scope: {
|
159792
159794
|
datepickerMode: '=?',
|
159793
159795
|
dateDisabled: '&',
|
@@ -159809,7 +159811,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
|
|
159809
159811
|
return {
|
159810
159812
|
restrict: 'EA',
|
159811
159813
|
replace: true,
|
159812
|
-
template: __webpack_require__(
|
159814
|
+
template: __webpack_require__(986),
|
159813
159815
|
require: '^datepicker',
|
159814
159816
|
link: function link(scope, element, attrs, ctrl) {
|
159815
159817
|
scope.showWeeks = ctrl.showWeeks;
|
@@ -159928,7 +159930,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
|
|
159928
159930
|
return {
|
159929
159931
|
restrict: 'EA',
|
159930
159932
|
replace: true,
|
159931
|
-
template: __webpack_require__(
|
159933
|
+
template: __webpack_require__(987),
|
159932
159934
|
require: '^datepicker',
|
159933
159935
|
link: function link(scope, element, attrs, ctrl) {
|
159934
159936
|
ctrl.step = { years: 1 };
|
@@ -159985,7 +159987,7 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
|
|
159985
159987
|
return {
|
159986
159988
|
restrict: 'EA',
|
159987
159989
|
replace: true,
|
159988
|
-
template: __webpack_require__(
|
159990
|
+
template: __webpack_require__(988),
|
159989
159991
|
require: '^datepicker',
|
159990
159992
|
link: function link(scope, element, attrs, ctrl) {
|
159991
159993
|
var range = ctrl.yearRange;
|
@@ -160352,42 +160354,42 @@ angular.module('superdesk-ui.helper.datepicker', ['superdesk-ui.helper.dateparse
|
|
160352
160354
|
restrict: 'EA',
|
160353
160355
|
replace: true,
|
160354
160356
|
transclude: true,
|
160355
|
-
template: __webpack_require__(
|
160357
|
+
template: __webpack_require__(989)
|
160356
160358
|
};
|
160357
160359
|
});
|
160358
160360
|
|
160359
160361
|
/***/ }),
|
160360
|
-
/*
|
160362
|
+
/* 985 */
|
160361
160363
|
/***/ (function(module, exports) {
|
160362
160364
|
|
160363
160365
|
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>";
|
160364
160366
|
|
160365
160367
|
/***/ }),
|
160366
|
-
/*
|
160368
|
+
/* 986 */
|
160367
160369
|
/***/ (function(module, exports) {
|
160368
160370
|
|
160369
160371
|
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";
|
160370
160372
|
|
160371
160373
|
/***/ }),
|
160372
|
-
/*
|
160374
|
+
/* 987 */
|
160373
160375
|
/***/ (function(module, exports) {
|
160374
160376
|
|
160375
160377
|
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";
|
160376
160378
|
|
160377
160379
|
/***/ }),
|
160378
|
-
/*
|
160380
|
+
/* 988 */
|
160379
160381
|
/***/ (function(module, exports) {
|
160380
160382
|
|
160381
160383
|
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";
|
160382
160384
|
|
160383
160385
|
/***/ }),
|
160384
|
-
/*
|
160386
|
+
/* 989 */
|
160385
160387
|
/***/ (function(module, exports) {
|
160386
160388
|
|
160387
160389
|
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";
|
160388
160390
|
|
160389
160391
|
/***/ }),
|
160390
|
-
/*
|
160392
|
+
/* 990 */
|
160391
160393
|
/***/ (function(module, exports, __webpack_require__) {
|
160392
160394
|
|
160393
160395
|
"use strict";
|
@@ -160730,7 +160732,7 @@ angular.module('superdesk-ui.helper.dropdown', ['superdesk-ui.helper.position'])
|
|
160730
160732
|
});
|
160731
160733
|
|
160732
160734
|
/***/ }),
|
160733
|
-
/*
|
160735
|
+
/* 991 */
|
160734
160736
|
/***/ (function(module, exports, __webpack_require__) {
|
160735
160737
|
|
160736
160738
|
"use strict";
|
@@ -160797,7 +160799,7 @@ angular.module('superdesk-ui.helper.modal', []).factory('$$stackedMap', function
|
|
160797
160799
|
return {
|
160798
160800
|
restrict: 'EA',
|
160799
160801
|
replace: true,
|
160800
|
-
template: __webpack_require__(
|
160802
|
+
template: __webpack_require__(992),
|
160801
160803
|
compile: function compile(tElement, tAttrs) {
|
160802
160804
|
tElement.addClass(tAttrs.backdropClass);
|
160803
160805
|
return linkFn;
|
@@ -160824,7 +160826,7 @@ angular.module('superdesk-ui.helper.modal', []).factory('$$stackedMap', function
|
|
160824
160826
|
// templateUrl: function templateUrl(tElement, tAttrs) {
|
160825
160827
|
// return tAttrs.templateUrl || '../app/template/window.html';
|
160826
160828
|
// },
|
160827
|
-
template: __webpack_require__(
|
160829
|
+
template: __webpack_require__(993),
|
160828
160830
|
link: function link(scope, element, attrs) {
|
160829
160831
|
element.addClass(attrs.windowClass || '');
|
160830
160832
|
scope.size = attrs.size;
|
@@ -161201,19 +161203,19 @@ angular.module('superdesk-ui.helper.modal', []).factory('$$stackedMap', function
|
|
161201
161203
|
});
|
161202
161204
|
|
161203
161205
|
/***/ }),
|
161204
|
-
/*
|
161206
|
+
/* 992 */
|
161205
161207
|
/***/ (function(module, exports) {
|
161206
161208
|
|
161207
161209
|
module.exports = "<div class=\"modal__backdrop fade in\"></div>";
|
161208
161210
|
|
161209
161211
|
/***/ }),
|
161210
|
-
/*
|
161212
|
+
/* 993 */
|
161211
161213
|
/***/ (function(module, exports) {
|
161212
161214
|
|
161213
161215
|
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";
|
161214
161216
|
|
161215
161217
|
/***/ }),
|
161216
|
-
/*
|
161218
|
+
/* 994 */
|
161217
161219
|
/***/ (function(module, exports, __webpack_require__) {
|
161218
161220
|
|
161219
161221
|
"use strict";
|
@@ -161376,7 +161378,7 @@ angular.module('superdesk-ui.helper.position', [])
|
|
161376
161378
|
}]);
|
161377
161379
|
|
161378
161380
|
/***/ }),
|
161379
|
-
/*
|
161381
|
+
/* 995 */
|
161380
161382
|
/***/ (function(module, exports, __webpack_require__) {
|
161381
161383
|
|
161382
161384
|
"use strict";
|
@@ -162602,7 +162604,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
162602
162604
|
})();
|
162603
162605
|
|
162604
162606
|
/***/ }),
|
162605
|
-
/*
|
162607
|
+
/* 996 */
|
162606
162608
|
/***/ (function(module, exports, __webpack_require__) {
|
162607
162609
|
|
162608
162610
|
"use strict";
|
@@ -162619,7 +162621,7 @@ function CarouselDirective() {
|
|
162619
162621
|
finish: '&',
|
162620
162622
|
model: '='
|
162621
162623
|
},
|
162622
|
-
template: __webpack_require__(
|
162624
|
+
template: __webpack_require__(997),
|
162623
162625
|
transclude: true,
|
162624
162626
|
controllerAs: 'ctrl',
|
162625
162627
|
controller: ['$scope', '$document', function ($scope, $document) {
|
@@ -162741,13 +162743,13 @@ function CarouselStepDirective() {
|
|
162741
162743
|
angular.module('superdesk-ui.carousel', []).directive('sdCarousel', CarouselDirective).directive('sdCarouselStep', CarouselStepDirective);
|
162742
162744
|
|
162743
162745
|
/***/ }),
|
162744
|
-
/*
|
162746
|
+
/* 997 */
|
162745
162747
|
/***/ (function(module, exports) {
|
162746
162748
|
|
162747
162749
|
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>";
|
162748
162750
|
|
162749
162751
|
/***/ }),
|
162750
|
-
/*
|
162752
|
+
/* 998 */
|
162751
162753
|
/***/ (function(module, exports, __webpack_require__) {
|
162752
162754
|
|
162753
162755
|
"use strict";
|
@@ -162850,7 +162852,7 @@ function sdCheck($parse) {
|
|
162850
162852
|
angular.module('superdesk-ui.check', []).directive('sdCheck', sdCheck);
|
162851
162853
|
|
162852
162854
|
/***/ }),
|
162853
|
-
/*
|
162855
|
+
/* 999 */
|
162854
162856
|
/***/ (function(module, exports, __webpack_require__) {
|
162855
162857
|
|
162856
162858
|
"use strict";
|
@@ -163030,7 +163032,7 @@ angular.module("superdesk-ui.dropdown", []).directive("dropdown", sdDropdown).di
|
|
163030
163032
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(75)))
|
163031
163033
|
|
163032
163034
|
/***/ }),
|
163033
|
-
/*
|
163035
|
+
/* 1000 */
|
163034
163036
|
/***/ (function(module, exports, __webpack_require__) {
|
163035
163037
|
|
163036
163038
|
"use strict";
|
@@ -163118,7 +163120,7 @@ function sdModal($document, $rootScope) {
|
|
163118
163120
|
angular.module('superdesk-ui.modals', []).directive('sdModal', sdModal);
|
163119
163121
|
|
163120
163122
|
/***/ }),
|
163121
|
-
/*
|
163123
|
+
/* 1001 */
|
163122
163124
|
/***/ (function(module, exports, __webpack_require__) {
|
163123
163125
|
|
163124
163126
|
"use strict";
|
@@ -163203,7 +163205,7 @@ function sdSwitch() {
|
|
163203
163205
|
angular.module('superdesk-ui.switch', []).directive('sdSwitch', sdSwitch);
|
163204
163206
|
|
163205
163207
|
/***/ }),
|
163206
|
-
/*
|
163208
|
+
/* 1002 */
|
163207
163209
|
/***/ (function(module, exports, __webpack_require__) {
|
163208
163210
|
|
163209
163211
|
"use strict";
|
@@ -163241,7 +163243,7 @@ function ToggleBoxDirective() {
|
|
163241
163243
|
angular.module('superdesk-ui.toggleBox', []).directive('sdToggleBox', ToggleBoxDirective);
|
163242
163244
|
|
163243
163245
|
/***/ }),
|
163244
|
-
/*
|
163246
|
+
/* 1003 */
|
163245
163247
|
/***/ (function(module, exports, __webpack_require__) {
|
163246
163248
|
|
163247
163249
|
"use strict";
|
@@ -163276,7 +163278,7 @@ function WizardHandlerFactory() {
|
|
163276
163278
|
WizardDirective.$inject = [];
|
163277
163279
|
function WizardDirective() {
|
163278
163280
|
return {
|
163279
|
-
template: __webpack_require__(
|
163281
|
+
template: __webpack_require__(1004),
|
163280
163282
|
scope: {
|
163281
163283
|
currentStep: '=',
|
163282
163284
|
finish: '&',
|
@@ -163380,7 +163382,7 @@ function WizardDirective() {
|
|
163380
163382
|
WizardStepDirective.$inject = [];
|
163381
163383
|
function WizardStepDirective() {
|
163382
163384
|
return {
|
163383
|
-
template: __webpack_require__(
|
163385
|
+
template: __webpack_require__(1005),
|
163384
163386
|
scope: {
|
163385
163387
|
title: '@',
|
163386
163388
|
code: '@',
|
@@ -163398,19 +163400,19 @@ function WizardStepDirective() {
|
|
163398
163400
|
angular.module('superdesk-ui.wizard', []).factory('WizardHandler', WizardHandlerFactory).directive('sdWizard', WizardDirective).directive('sdWizardStep', WizardStepDirective);
|
163399
163401
|
|
163400
163402
|
/***/ }),
|
163401
|
-
/*
|
163403
|
+
/* 1004 */
|
163402
163404
|
/***/ (function(module, exports) {
|
163403
163405
|
|
163404
163406
|
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>";
|
163405
163407
|
|
163406
163408
|
/***/ }),
|
163407
|
-
/*
|
163409
|
+
/* 1005 */
|
163408
163410
|
/***/ (function(module, exports) {
|
163409
163411
|
|
163410
163412
|
module.exports = "<div ng-show=\"selected\" class=\"modal-screen\" ng-transclude></div>\r\n";
|
163411
163413
|
|
163412
163414
|
/***/ }),
|
163413
|
-
/*
|
163415
|
+
/* 1006 */
|
163414
163416
|
/***/ (function(module, exports, __webpack_require__) {
|
163415
163417
|
|
163416
163418
|
"use strict";
|
@@ -163439,7 +163441,7 @@ function TagInputDirective($q) {
|
|
163439
163441
|
maxResultsToShow: '='
|
163440
163442
|
},
|
163441
163443
|
require: '?ngModel',
|
163442
|
-
template: __webpack_require__(
|
163444
|
+
template: __webpack_require__(1007),
|
163443
163445
|
link: function link(scope) {
|
163444
163446
|
scope.loadTags = function (query) {
|
163445
163447
|
return $q(function (resolve, reject) {
|
@@ -163457,13 +163459,13 @@ function TagInputDirective($q) {
|
|
163457
163459
|
angular.module('superdesk-ui.tags', []).directive('sdTagInput', TagInputDirective);
|
163458
163460
|
|
163459
163461
|
/***/ }),
|
163460
|
-
/*
|
163462
|
+
/* 1007 */
|
163461
163463
|
/***/ (function(module, exports) {
|
163462
163464
|
|
163463
163465
|
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";
|
163464
163466
|
|
163465
163467
|
/***/ }),
|
163466
|
-
/*
|
163468
|
+
/* 1008 */
|
163467
163469
|
/***/ (function(module, exports, __webpack_require__) {
|
163468
163470
|
|
163469
163471
|
"use strict";
|
@@ -163480,7 +163482,7 @@ module.exports = "<label class=\"tags-input__label\" ng-if=\"label\">{{label}}</
|
|
163480
163482
|
*/
|
163481
163483
|
function LineInputDirective() {
|
163482
163484
|
return {
|
163483
|
-
template: __webpack_require__(
|
163485
|
+
template: __webpack_require__(1009),
|
163484
163486
|
replace: true,
|
163485
163487
|
transclude: true,
|
163486
163488
|
require: '?ngModel',
|
@@ -163522,13 +163524,13 @@ function LineInputDirective() {
|
|
163522
163524
|
angular.module('superdesk-ui.lineInput', []).directive('sdLineInput', LineInputDirective);
|
163523
163525
|
|
163524
163526
|
/***/ }),
|
163525
|
-
/*
|
163527
|
+
/* 1009 */
|
163526
163528
|
/***/ (function(module, exports) {
|
163527
163529
|
|
163528
163530
|
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";
|
163529
163531
|
|
163530
163532
|
/***/ }),
|
163531
|
-
/*
|
163533
|
+
/* 1010 */
|
163532
163534
|
/***/ (function(module, exports, __webpack_require__) {
|
163533
163535
|
|
163534
163536
|
"use strict";
|
@@ -163548,7 +163550,7 @@ module.exports = " <div class=\"sd-line-input\" ng-class=\"{'sd-line-input--dark
|
|
163548
163550
|
*/
|
163549
163551
|
function SearchHandlerDirective() {
|
163550
163552
|
return {
|
163551
|
-
template: __webpack_require__(
|
163553
|
+
template: __webpack_require__(1011),
|
163552
163554
|
replace: true,
|
163553
163555
|
transclude: true,
|
163554
163556
|
require: '?ngModel',
|
@@ -163574,13 +163576,13 @@ function SearchHandlerDirective() {
|
|
163574
163576
|
angular.module('superdesk-ui.searchHandler', []).directive('sdSearchHandler', SearchHandlerDirective);
|
163575
163577
|
|
163576
163578
|
/***/ }),
|
163577
|
-
/*
|
163579
|
+
/* 1011 */
|
163578
163580
|
/***/ (function(module, exports) {
|
163579
163581
|
|
163580
163582
|
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";
|
163581
163583
|
|
163582
163584
|
/***/ }),
|
163583
|
-
/*
|
163585
|
+
/* 1012 */
|
163584
163586
|
/***/ (function(module, exports, __webpack_require__) {
|
163585
163587
|
|
163586
163588
|
"use strict";
|
@@ -163596,7 +163598,7 @@ function sdCircularProgress() {
|
|
163596
163598
|
error: '=',
|
163597
163599
|
counter: '='
|
163598
163600
|
},
|
163599
|
-
template: __webpack_require__(
|
163601
|
+
template: __webpack_require__(1013),
|
163600
163602
|
link: function link(scope, element) {
|
163601
163603
|
var elem = $(element).find('.progress-svg');
|
163602
163604
|
|
@@ -163642,13 +163644,13 @@ angular.module('superdesk-ui.circularProgress', []).directive('sdCircularProgres
|
|
163642
163644
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(75)))
|
163643
163645
|
|
163644
163646
|
/***/ }),
|
163645
|
-
/*
|
163647
|
+
/* 1013 */
|
163646
163648
|
/***/ (function(module, exports) {
|
163647
163649
|
|
163648
163650
|
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>";
|
163649
163651
|
|
163650
163652
|
/***/ }),
|
163651
|
-
/*
|
163653
|
+
/* 1014 */
|
163652
163654
|
/***/ (function(module, exports, __webpack_require__) {
|
163653
163655
|
|
163654
163656
|
"use strict";
|
@@ -163693,7 +163695,7 @@ function SplitterDirective($window) {
|
|
163693
163695
|
angular.module('superdesk-ui.splitter', []).directive('sdSplitter', SplitterDirective);
|
163694
163696
|
|
163695
163697
|
/***/ }),
|
163696
|
-
/*
|
163698
|
+
/* 1015 */
|
163697
163699
|
/***/ (function(module, exports, __webpack_require__) {
|
163698
163700
|
|
163699
163701
|
"use strict";
|
@@ -163734,16 +163736,16 @@ function MediaQuery($window) {
|
|
163734
163736
|
angular.module('superdesk-ui.mediaQuery', []).directive('sdMediaQuery', MediaQuery);
|
163735
163737
|
|
163736
163738
|
/***/ }),
|
163737
|
-
/*
|
163739
|
+
/* 1016 */
|
163738
163740
|
/***/ (function(module, exports, __webpack_require__) {
|
163739
163741
|
|
163740
163742
|
"use strict";
|
163741
163743
|
|
163742
163744
|
|
163743
|
-
__webpack_require__(
|
163745
|
+
__webpack_require__(1017);
|
163744
163746
|
|
163745
163747
|
/***/ }),
|
163746
|
-
/*
|
163748
|
+
/* 1017 */
|
163747
163749
|
/***/ (function(module, exports) {
|
163748
163750
|
|
163749
163751
|
// removed by extract-text-webpack-plugin
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as Markup from "../../js/react";
|
3
|
+
import {Card} from '../../../app-typescript/components/card';
|
4
|
+
|
5
|
+
export default class CardDoc extends React.Component {
|
6
|
+
render() {
|
7
|
+
return (
|
8
|
+
<section className="docs-page__container">
|
9
|
+
<h2 className="docs-page__h2">Card</h2>
|
10
|
+
|
11
|
+
<Markup.ReactMarkupCodePreview>{`
|
12
|
+
<Card paddingBase="1">
|
13
|
+
card content
|
14
|
+
</Card>
|
15
|
+
`}
|
16
|
+
</Markup.ReactMarkupCodePreview>
|
17
|
+
|
18
|
+
<Card paddingBase="1">
|
19
|
+
card content
|
20
|
+
</Card>
|
21
|
+
</section>
|
22
|
+
)
|
23
|
+
}
|
24
|
+
}
|
@@ -86,6 +86,7 @@ import { OpacityUtilitiesDoc } from './utilities/OpacityUtilities';
|
|
86
86
|
import { ObjectFitUtilitiesDoc } from './utilities/ObjectFitUtilities';
|
87
87
|
import { ObjectPositionUtilitiesDoc } from './utilities/ObjectPositionUtilities';
|
88
88
|
import LoaderDoc from './Loader';
|
89
|
+
import CardDoc from './Card';
|
89
90
|
|
90
91
|
|
91
92
|
interface IPages {
|
@@ -104,6 +105,10 @@ const pages: IPages = {
|
|
104
105
|
basicComponents: {
|
105
106
|
name: 'Basic Components',
|
106
107
|
items: {
|
108
|
+
'card': {
|
109
|
+
name: 'Card',
|
110
|
+
component: CardDoc,
|
111
|
+
},
|
107
112
|
'buttons': {
|
108
113
|
name: 'Buttons',
|
109
114
|
component: ButtonsDoc,
|