@clickview/library-editor 1.1.31-rc.0 → 1.1.31
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/package.json +1 -1
- package/dist/bundles.json +0 -5
- package/dist/css/0-library-editor-c3083c7c46.chunk.css +0 -6
- package/dist/css/0-library-editor.chunk.css +0 -26
- package/dist/css/1-library-editor-9a899a1d1d.chunk.css +0 -2
- package/dist/css/10-library-editor-53c28be130.chunk.css +0 -2
- package/dist/css/10-library-editor.chunk.css +0 -25
- package/dist/css/11-library-editor.chunk.css +0 -135
- package/dist/css/11.chunk.css +0 -135
- package/dist/css/12-library-editor-7f17ad1c90.chunk.css +0 -24
- package/dist/css/12-library-editor.chunk.css +0 -18
- package/dist/css/13-library-editor-911b8069ae.chunk.css +0 -14
- package/dist/css/13-library-editor.chunk.css +0 -21
- package/dist/css/14-library-editor-f507c0ef52.chunk.css +0 -14
- package/dist/css/14-library-editor.chunk.css +0 -76
- package/dist/css/15-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/16-library-editor-89ad109c63.chunk.css +0 -2
- package/dist/css/16-library-editor.chunk.css +0 -52
- package/dist/css/17-library-editor.chunk.css +0 -14
- package/dist/css/17.chunk.css +0 -14
- package/dist/css/18-library-editor.chunk.css +0 -18
- package/dist/css/18.chunk.css +0 -18
- package/dist/css/2-library-editor.chunk.css +0 -143
- package/dist/css/2.chunk.css +0 -143
- package/dist/css/20-library-editor-2bd52b5a32.chunk.css +0 -34
- package/dist/css/21-library-editor-a7633bece5.chunk.css +0 -26
- package/dist/css/21-library-editor.chunk.css +0 -52
- package/dist/css/22-library-editor-459b106aec.chunk.css +0 -24
- package/dist/css/22-library-editor.chunk.css +0 -12
- package/dist/css/23-library-editor-33acb75c24.chunk.css +0 -18
- package/dist/css/23-library-editor.chunk.css +0 -25
- package/dist/css/24-library-editor-b180014922.chunk.css +0 -18
- package/dist/css/25-library-editor-4c64aed388.chunk.css +0 -16
- package/dist/css/25-library-editor.chunk.css +0 -35
- package/dist/css/26-library-editor-f0118cbca0.chunk.css +0 -14
- package/dist/css/26-library-editor.chunk.css +0 -20
- package/dist/css/27-library-editor-b72d0e2d36.chunk.css +0 -10
- package/dist/css/28-library-editor-de55d150ef.chunk.css +0 -10
- package/dist/css/28-library-editor.chunk.css +0 -63
- package/dist/css/29-library-editor-b0e16f882d.chunk.css +0 -8
- package/dist/css/29-library-editor.chunk.css +0 -80
- package/dist/css/3-library-editor-904319558a.chunk.css +0 -4
- package/dist/css/3-library-editor.chunk.css +0 -15
- package/dist/css/30-library-editor-10f54d8a75.chunk.css +0 -8
- package/dist/css/30-library-editor.chunk.css +0 -33
- package/dist/css/31-library-editor-4d763bac2b.chunk.css +0 -8
- package/dist/css/31-library-editor.chunk.css +0 -30
- package/dist/css/32-library-editor-d962911bc5.chunk.css +0 -6
- package/dist/css/32-library-editor.chunk.css +0 -45
- package/dist/css/33-library-editor-630c133693.chunk.css +0 -4
- package/dist/css/33-library-editor.chunk.css +0 -13
- package/dist/css/34-library-editor.chunk.css +0 -19
- package/dist/css/34.chunk.css +0 -19
- package/dist/css/35-library-editor.chunk.css +0 -18
- package/dist/css/35.chunk.css +0 -18
- package/dist/css/36-library-editor.chunk.css +0 -12
- package/dist/css/36.chunk.css +0 -12
- package/dist/css/37-library-editor-d18b8a3619.chunk.css +0 -4
- package/dist/css/37-library-editor.chunk.css +0 -5
- package/dist/css/38-library-editor-8b225d15f4.chunk.css +0 -4
- package/dist/css/38-library-editor.chunk.css +0 -5
- package/dist/css/39-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor.chunk.css +0 -24
- package/dist/css/41-library-editor-9a2d011500.chunk.css +0 -4
- package/dist/css/41-library-editor.chunk.css +0 -76
- package/dist/css/42-library-editor-593c0084b4.chunk.css +0 -4
- package/dist/css/42-library-editor.chunk.css +0 -44
- package/dist/css/43-library-editor-aa3e9bea9a.chunk.css +0 -2
- package/dist/css/43-library-editor.chunk.css +0 -30
- package/dist/css/44-library-editor-7b1cd4a5cc.chunk.css +0 -2
- package/dist/css/44-library-editor.chunk.css +0 -12
- package/dist/css/45-library-editor-f1820aeeff.chunk.css +0 -2
- package/dist/css/45-library-editor.chunk.css +0 -25
- package/dist/css/46-library-editor-547abc7492.chunk.css +0 -2
- package/dist/css/46-library-editor.chunk.css +0 -24
- package/dist/css/47-library-editor-3f6fb7f3ab.chunk.css +0 -2
- package/dist/css/47-library-editor.chunk.css +0 -84
- package/dist/css/48-library-editor-467e156ba3.chunk.css +0 -2
- package/dist/css/48-library-editor.chunk.css +0 -4
- package/dist/css/49-library-editor.chunk.css +0 -33
- package/dist/css/49.chunk.css +0 -33
- package/dist/css/5-library-editor-24603066ed.chunk.css +0 -6
- package/dist/css/50-library-editor-7aca18778d.chunk.css +0 -2
- package/dist/css/50-library-editor.chunk.css +0 -20
- package/dist/css/51-library-editor-81c5aced1f.chunk.css +0 -2
- package/dist/css/51-library-editor.chunk.css +0 -37
- package/dist/css/52-library-editor.chunk.css +0 -64
- package/dist/css/52.chunk.css +0 -64
- package/dist/css/54-library-editor-d3b8bb68f9.chunk.css +0 -2
- package/dist/css/55-library-editor-94a8c4e7fa.chunk.css +0 -2
- package/dist/css/55-library-editor.chunk.css +0 -3
- package/dist/css/56-library-editor-61808b02a0.chunk.css +0 -2
- package/dist/css/56-library-editor.chunk.css +0 -3
- package/dist/css/57-library-editor-c49b3847df.chunk.css +0 -2
- package/dist/css/58-library-editor-8f5e04b64a.chunk.css +0 -2
- package/dist/css/58-library-editor.chunk.css +0 -3
- package/dist/css/59-library-editor-b64f6f3e74.chunk.css +0 -2
- package/dist/css/59-library-editor.chunk.css +0 -3
- package/dist/css/6-library-editor-d96af27be1.chunk.css +0 -14
- package/dist/css/6-library-editor.chunk.css +0 -42
- package/dist/css/60-library-editor.chunk.css +0 -16
- package/dist/css/60.chunk.css +0 -16
- package/dist/css/61-library-editor-7f123672b2.chunk.css +0 -2
- package/dist/css/62-library-editor-61e4c24a7b.chunk.css +0 -2
- package/dist/css/62-library-editor.chunk.css +0 -4
- package/dist/css/63-library-editor.chunk.css +0 -168
- package/dist/css/63.chunk.css +0 -168
- package/dist/css/67-library-editor.chunk.css +0 -76
- package/dist/css/67.chunk.css +0 -76
- package/dist/css/68-library-editor.chunk.css +0 -15
- package/dist/css/68.chunk.css +0 -15
- package/dist/css/69-library-editor.chunk.css +0 -15
- package/dist/css/69.chunk.css +0 -15
- package/dist/css/7-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/7-library-editor.chunk.css +0 -10
- package/dist/css/70-library-editor.chunk.css +0 -21
- package/dist/css/70.chunk.css +0 -21
- package/dist/css/71-library-editor.chunk.css +0 -38
- package/dist/css/71.chunk.css +0 -38
- package/dist/css/72-library-editor.chunk.css +0 -14
- package/dist/css/72.chunk.css +0 -14
- package/dist/css/73-library-editor.chunk.css +0 -35
- package/dist/css/73.chunk.css +0 -35
- package/dist/css/74-library-editor.chunk.css +0 -27
- package/dist/css/74.chunk.css +0 -27
- package/dist/css/75-library-editor.chunk.css +0 -4
- package/dist/css/75.chunk.css +0 -4
- package/dist/css/76-library-editor.chunk.css +0 -4
- package/dist/css/76.chunk.css +0 -4
- package/dist/css/8-library-editor-eb68c1df75.chunk.css +0 -2
- package/dist/css/8-library-editor.chunk.css +0 -7
- package/dist/css/9-library-editor-fec6984a64.chunk.css +0 -4
- package/dist/css/library-editor-app-8d31f0bd76.css +0 -133
- package/dist/scripts/0-1896ad7fec.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -64
- package/dist/scripts/1-0252096024.chunk.js +0 -1
- package/dist/scripts/1-a937e78e21.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -75
- package/dist/scripts/10-9ccbcc7396.chunk.js +0 -1
- package/dist/scripts/10-a9679320a1.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -62
- package/dist/scripts/11-a70b0fc08f.chunk.js +0 -11
- package/dist/scripts/11.chunk.js +0 -317
- package/dist/scripts/12-71eaeafb58.chunk.js +0 -1
- package/dist/scripts/12-f7d3c3eb14.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -56
- package/dist/scripts/13-05e571645c.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -25
- package/dist/scripts/14-10db24a21b.chunk.js +0 -1
- package/dist/scripts/14-fb181db148.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -272
- package/dist/scripts/15-c27b6e07d7.chunk.js +0 -1
- package/dist/scripts/15-fceeab7012.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -35
- package/dist/scripts/16-5f822e4179.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -79
- package/dist/scripts/17-0eb846d9b9.chunk.js +0 -1
- package/dist/scripts/17-8cb6e51052.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -40
- package/dist/scripts/18.chunk.js +0 -40
- package/dist/scripts/19.chunk.js +0 -43
- package/dist/scripts/2-a6cad67b85.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -33
- package/dist/scripts/20-415d21bc0f.chunk.js +0 -1
- package/dist/scripts/20-4694e953f3.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -18
- package/dist/scripts/21-31fe65f6fe.chunk.js +0 -1
- package/dist/scripts/21-63eb746ac4.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -55
- package/dist/scripts/22-00be2f39f7.chunk.js +0 -1
- package/dist/scripts/22-53683e1113.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -47
- package/dist/scripts/23-26ce93dca1.chunk.js +0 -1
- package/dist/scripts/23-b3e46bcf50.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -47
- package/dist/scripts/24-bbcd07a4ad.chunk.js +0 -1
- package/dist/scripts/24-e6d86a507c.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -33
- package/dist/scripts/25-89fdb8ae9e.chunk.js +0 -1
- package/dist/scripts/25-ca0f4cdb11.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -25
- package/dist/scripts/26-e0c0653451.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -25
- package/dist/scripts/27-3d2348bbb9.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -10
- package/dist/scripts/28-4c412503ce.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -334
- package/dist/scripts/29-98ee96c8e2.chunk.js +0 -1
- package/dist/scripts/29-e6af31fc4a.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -202
- package/dist/scripts/3-4bec0e8f4a.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -49
- package/dist/scripts/30-2b6b14974a.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -137
- package/dist/scripts/31-b7a766b5c6.chunk.js +0 -1
- package/dist/scripts/31-ddc6005e61.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -113
- package/dist/scripts/32-1520e14c6f.chunk.js +0 -1
- package/dist/scripts/32-faaa878653.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -115
- package/dist/scripts/33-a00e22b5c6.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -93
- package/dist/scripts/34-326bc04c16.chunk.js +0 -1
- package/dist/scripts/34-e04439a134.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -63
- package/dist/scripts/35-1b99032982.chunk.js +0 -1
- package/dist/scripts/35-b4f5e76a1c.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -48
- package/dist/scripts/36-237f8641dc.chunk.js +0 -1
- package/dist/scripts/36-b0af9bb208.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -33
- package/dist/scripts/37-e9abba0fda.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -25
- package/dist/scripts/38-5a834b8cfc.chunk.js +0 -1
- package/dist/scripts/38-d31c013847.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -25
- package/dist/scripts/39-1084d66957.chunk.js +0 -1
- package/dist/scripts/39-c6cddc090b.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -19
- package/dist/scripts/4-1c1dfe2433.chunk.js +0 -1
- package/dist/scripts/4-bf358041e9.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -26
- package/dist/scripts/40-107eee3179.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -182
- package/dist/scripts/41-a0e807e2f4.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -175
- package/dist/scripts/42-4ace7dc078.chunk.js +0 -1
- package/dist/scripts/42-ed988e3f2d.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -176
- package/dist/scripts/43-4a90405f39.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -113
- package/dist/scripts/44-1d7deb29f3.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -122
- package/dist/scripts/45-7c7b54fa86.chunk.js +0 -1
- package/dist/scripts/45-ecdc8f35ff.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -85
- package/dist/scripts/46-2514802e6b.chunk.js +0 -1
- package/dist/scripts/46-d7378b7299.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -78
- package/dist/scripts/47-941bca4d28.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -70
- package/dist/scripts/48-b816dd6f29.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -88
- package/dist/scripts/49-7100a40b00.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -62
- package/dist/scripts/5-56dc0cf4d3.chunk.js +0 -1
- package/dist/scripts/5-abeccd6d25.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -10
- package/dist/scripts/50-0fae63024c.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -64
- package/dist/scripts/51-19eebceba1.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -55
- package/dist/scripts/52-b3b59cb367.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -47
- package/dist/scripts/53-4138309573.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -56
- package/dist/scripts/54-5ff1f1ae99.chunk.js +0 -1
- package/dist/scripts/54-7ed93c3099.chunk.js +0 -1
- package/dist/scripts/54.chunk.js +0 -56
- package/dist/scripts/55-3497f6f8f6.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -41
- package/dist/scripts/56-11e9b487a7.chunk.js +0 -1
- package/dist/scripts/56-2920fec1d6.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -41
- package/dist/scripts/57-0ebd6896c1.chunk.js +0 -1
- package/dist/scripts/57-1dbfc6cc21.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -50
- package/dist/scripts/58-bd86d244ca.chunk.js +0 -1
- package/dist/scripts/58-d459172602.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -33
- package/dist/scripts/59-1a216fcead.chunk.js +0 -1
- package/dist/scripts/59.chunk.js +0 -33
- package/dist/scripts/6-6f95f8dca9.chunk.js +0 -1
- package/dist/scripts/6-761fc04f5a.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -40
- package/dist/scripts/60-d7ae18c894.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -33
- package/dist/scripts/61-ab0b757ac4.chunk.js +0 -1
- package/dist/scripts/61-e21c38e6ad.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -33
- package/dist/scripts/62-e51c3109a1.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -25
- package/dist/scripts/63-367c2bc7b9.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -25
- package/dist/scripts/64-412c40e41f.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -33
- package/dist/scripts/65-ed951170ce.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -34
- package/dist/scripts/66-5af63166cd.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -33
- package/dist/scripts/67-1d9dd19e42.chunk.js +0 -1
- package/dist/scripts/67-71fccc45c2.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -25
- package/dist/scripts/68-ff1015da34.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -25
- package/dist/scripts/69-bb09eb0f05.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -25
- package/dist/scripts/7-7f5ce7e0da.chunk.js +0 -1
- package/dist/scripts/7-899302c16f.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -33
- package/dist/scripts/70-4920915604.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -25
- package/dist/scripts/71-ca0b28a01d.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -25
- package/dist/scripts/72-8e8580bdbe.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -25
- package/dist/scripts/73.chunk.js +0 -25
- package/dist/scripts/74.chunk.js +0 -25
- package/dist/scripts/75.chunk.js +0 -25
- package/dist/scripts/76.chunk.js +0 -25
- package/dist/scripts/77.chunk.js +0 -26
- package/dist/scripts/78.chunk.js +0 -26
- package/dist/scripts/79.chunk.js +0 -26
- package/dist/scripts/8-94b673b9c2.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -33
- package/dist/scripts/80.chunk.js +0 -26
- package/dist/scripts/81.chunk.js +0 -26
- package/dist/scripts/82.chunk.js +0 -26
- package/dist/scripts/83.chunk.js +0 -26
- package/dist/scripts/84.chunk.js +0 -26
- package/dist/scripts/85.chunk.js +0 -26
- package/dist/scripts/86.chunk.js +0 -18
- package/dist/scripts/87.chunk.js +0 -18
- package/dist/scripts/88.chunk.js +0 -18
- package/dist/scripts/89.chunk.js +0 -18
- package/dist/scripts/9-02b8b8184b.chunk.js +0 -1
- package/dist/scripts/9-ec75826552.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -18
- package/dist/scripts/90.chunk.js +0 -18
- package/dist/scripts/91.chunk.js +0 -18
- package/dist/scripts/92.chunk.js +0 -18
- package/dist/scripts/bundle-210627add9.min.js +0 -10
- package/dist/scripts/bundle-8853c11e8b.min.js +0 -8
- package/dist/scripts/bundle.js +0 -7667
- package/dist/scripts/polyfills-1ff4d28da8.min.js +0 -1
- package/dist/scripts/polyfills-f4207eea5b.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -2694
package/dist/scripts/4.chunk.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[4],{
|
|
2
|
-
|
|
3
|
-
/***/ "./src/shared/components/checkbox/BulkCheckboxComponent.ts":
|
|
4
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ALL_CHECKBOX_ITEM_ID\", function() { return ALL_CHECKBOX_ITEM_ID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BulkCheckboxComponent\", function() { return BulkCheckboxComponent; });\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"underscore\");\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/shared/components/checkbox/Checkbox.hbs\");\n/* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/shared/utils/index.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\nvar ALL_CHECKBOX_ITEM_ID = 'checkbox-all';\nvar BulkCheckboxComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(BulkCheckboxComponent, _Core$Component);\n\n var _super = _createSuper(BulkCheckboxComponent);\n\n function BulkCheckboxComponent(options) {\n _classCallCheck(this, BulkCheckboxComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(BulkCheckboxComponent, [{\n key: \"initialize\",\n value: function initialize() {\n this.getViewModel();\n this.bindListeners();\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'BulkCheckboxComponent';\n }\n }, {\n key: \"className\",\n get: function get() {\n return this.options.className;\n }\n }, {\n key: \"template\",\n get: function get() {\n return _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2___default.a;\n }\n }, {\n key: \"getViewModel\",\n value: function getViewModel() {\n this.model = shared_utils__WEBPACK_IMPORTED_MODULE_3__[\"BulkCheckboxHelper\"].GetViewModel(this.options.key, this.options.type);\n }\n }, {\n key: \"bindListeners\",\n value: function bindListeners() {\n if (this.options.disabled) return;\n this.listenTo(this.model, 'change', this.onChange);\n }\n }, {\n key: \"events\",\n value: function events() {\n return {\n 'change .custom-control-input': 'onClick'\n };\n }\n }, {\n key: \"onChange\",\n value: function onChange() {\n this.checkAllChecked();\n this.render();\n }\n }, {\n key: \"checkAllChecked\",\n value: function checkAllChecked() {\n var values = underscore__WEBPACK_IMPORTED_MODULE_0__[\"values\"](this.model.omit('all', ALL_CHECKBOX_ITEM_ID));\n\n if (!underscore__WEBPACK_IMPORTED_MODULE_0__[\"every\"](values, function (v) {\n return !!v;\n }) || !(this.model.get('all') || values.length === this.options.numberOfItems)) return;\n this.model.set(_defineProperty({\n all: true\n }, this.getItemId(), true));\n }\n }, {\n key: \"getItemId\",\n value: function getItemId() {\n return ALL_CHECKBOX_ITEM_ID;\n }\n }, {\n key: \"onClick\",\n value: function onClick() {\n if (this.model.get(this.getItemId())) {\n this.model.clear();\n } else {\n this.model.clear();\n this.model.set(_defineProperty({\n all: true\n }, this.getItemId(), true));\n }\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n var id = this.getItemId();\n return {\n id: id,\n checked: this.model.get(ALL_CHECKBOX_ITEM_ID),\n disabled: this.options.disabled,\n checkboxClassName: this.options.checkboxClassName\n };\n }\n }]);\n\n return BulkCheckboxComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_1__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvY2hlY2tib3gvQnVsa0NoZWNrYm94Q29tcG9uZW50LnRzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL2NsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvY2hlY2tib3gvQnVsa0NoZWNrYm94Q29tcG9uZW50LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIF8gZnJvbSAndW5kZXJzY29yZSc7XHJcbmltcG9ydCB7IE9iamVjdEhhc2ggfSBmcm9tICdiYWNrYm9uZSc7XHJcblxyXG5pbXBvcnQgeyBDb3JlIH0gZnJvb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tcclxuICB9XHJcbn0iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBR0E7QUFFQTtBQUNBO0FBRUE7QUFVQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBREE7QUFFQTtBQUNBO0FBTkE7QUFBQTtBQUFBO0FBUUE7QUFDQTtBQUNBO0FBVkE7QUFBQTtBQUFBO0FBYUE7QUFDQTtBQWRBO0FBQUE7QUFBQTtBQWlCQTtBQUNBO0FBbEJBO0FBQUE7QUFBQTtBQXFCQTtBQUNBO0FBdEJBO0FBQUE7QUFBQTtBQXlCQTtBQUNBO0FBMUJBO0FBQUE7QUFBQTtBQTZCQTtBQUNBO0FBQ0E7QUEvQkE7QUFBQTtBQUFBO0FBa0NBO0FBQ0E7QUFEQTtBQUdBO0FBckNBO0FBQUE7QUFBQTtBQXdDQTtBQUVBO0FBQ0E7QUEzQ0E7QUFBQTtBQUFBO0FBOENBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFHQTtBQUNBO0FBREE7QUFJQTtBQXZEQTtBQUFBO0FBQUE7QUEwREE7QUFDQTtBQTNEQTtBQUFBO0FBQUE7QUE4REE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFJQTtBQUNBO0FBdkVBO0FBQUE7QUFBQTtBQTBFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU1BO0FBbEZBO0FBQ0E7QUFEQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/checkbox/BulkCheckboxComponent.ts\n");
|
|
8
|
-
|
|
9
|
-
/***/ }),
|
|
10
|
-
|
|
11
|
-
/***/ "./src/shared/components/checkbox/Checkbox.hbs":
|
|
12
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
13
|
-
|
|
14
|
-
eval("var Handlebars = __webpack_require__(\"handlebars\");\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n return \" cursor-pointer\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \"checked\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n return \"disabled\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"custom-control custom-checkbox \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.checkboxClassName : stack1), depth0))\n + \"\\\">\\r\\n <input name=\\\"checkbox-\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))\n + \"\\\" id=\\\"checkbox-\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))\n + \"\\\" type=\\\"checkbox\\\" class=\\\"custom-control-input\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.checked : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" />\\r\\n <label class=\\\"custom-control-label\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" for=\\\"checkbox-\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))\n + \"\\\"> </label>\\r\\n</div>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvY2hlY2tib3gvQ2hlY2tib3guaGJzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL2NsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvY2hlY2tib3gvQ2hlY2tib3guaGJzIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBIYW5kbGViYXJzID0gcmVxdWlyZSgnaGFuZGxlYmFycycpO1xubW9kdWxlLmV4cG9ydHMgPSAoSGFuZGxlYmFyc1snZGVmYXVsdCddIHx8IEhhbmRsZWJhcnMpLnRlbXBsYXRlKHtcIjFcIjpmdW5jdGlvbihjb250YWluZXIsZGVwdGgwLGhlbHBlcnMscGFydGlhbHMsZGF0YSkge1xuICAgIHJldHVybiBcIiBjdXJzb3ItcG9pbnRlclwiO1xufSxcIjNcIjpmdW5jdGlvbihjb250YWluZXIsZGVwdGgwLGhlbHBlcnMscGFydGlhbHMsZGF0YSkge1xuICAgIHJldHVybiBcImNoZWNrZWRcIjtcbn0sXCI1XCI6ZnVuY3Rpb24oY29udGFpbmVyLGRlcHRoMCxoZWxwZXJzLHBhcnRpYWxzLGRhdGEpIHtcbiAgICByZXR1cm4gXCJkaXNhYmxlZFwiO1xufSxcImNvbXBp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sXCJkYXRhXCI6ZGF0YX0pKSAhPSBudWxsID8gc3RhY2sxIDogXCJcIilcbiAgICArIFwiIC8+XFxyXFxuICA8bGFiZWwgY2xhc3M9XFxcImN1c3RvbS1jb250cm9sLWxhYmVsXCJcbiAgICArICgoc3RhY2sxID0gaGVscGVycy51bmxlc3MuY2FsbChhbGlhczQsKChzdGFjazEgPSAoZGVwdGgwICE9IG51bGwgPyBkZXB0aDAub3B0aW9ucyA6IGRlcHRoMCkpICE9IG51bGwgPyBzdGFjazEuZGlzYWJsZWQgOiBzdGFjazEpLHtcIm5hbWVcIjpcInVubGVzc1wiLFwiaGFzaFwiOnt9LFwiZm5cIjpjb250YWluZXIucHJvZ3JhbSgxLCBkYXRhLCAwKSxcImludmVyc2VcIjpjb250YWluZXIubm9vcCxcImRhdGFcIjpkYXRhfSkpICE9IG51bGwgPyBzdGFjazEgOiBcIlwiKVxuICAgICsgXCJcXFwiIGZvcj1cXFwiY2hlY2tib3gtXCJcbiAgICArIGFsaWFzMyhhbGlhczIoKChzdGFjazEgPSAoZGVwdGgwICE9IG51bGwgPyBkZXB0aDAub3B0aW9ucyA6IGRlcHRoMCkpICE9IG51bGwgPyBzdGFjazEuaWQgOiBzdGFjazEpLCBkZXB0aDApKVxuICAgICsgXCJcXFwiPiZuYnNwOzwvbGFiZWw+XFxyXFxuPC9kaXY+XCI7XG59LFwidXNlRGF0YVwiOnRydWV9KTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/checkbox/Checkbox.hbs\n");
|
|
15
|
-
|
|
16
|
-
/***/ }),
|
|
17
|
-
|
|
18
|
-
/***/ "./src/shared/components/checkbox/CheckboxComponent.ts":
|
|
19
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20
|
-
|
|
21
|
-
"use strict";
|
|
22
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CheckboxComponent\", function() { return CheckboxComponent; });\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/shared/components/checkbox/Checkbox.hbs\");\n/* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/shared/utils/index.ts\");\n/* harmony import */ var _BulkCheckboxComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/shared/components/checkbox/BulkCheckboxComponent.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\nvar CheckboxComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(CheckboxComponent, _Core$Component);\n\n var _super = _createSuper(CheckboxComponent);\n\n function CheckboxComponent(options) {\n _classCallCheck(this, CheckboxComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(CheckboxComponent, [{\n key: \"initialize\",\n value: function initialize() {\n this.getViewModel();\n this.bindListeners(); // If checked is passed as true, set the checkbox as checked initially\n\n if (this.options.checked) {\n var id = this.getItemId();\n this.model.set(id, true, {\n silent: true\n });\n }\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'CheckboxComponent';\n }\n }, {\n key: \"className\",\n get: function get() {\n return this.options.className;\n }\n }, {\n key: \"template\",\n get: function get() {\n return _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1___default.a;\n }\n }, {\n key: \"getViewModel\",\n value: function getViewModel() {\n this.model = shared_utils__WEBPACK_IMPORTED_MODULE_2__[\"BulkCheckboxHelper\"].GetViewModel(this.options.key, this.options.type);\n }\n }, {\n key: \"bindListeners\",\n value: function bindListeners() {\n if (!this.options.disabled) this.listenTo(this.model, \"change:all change:\".concat(this.getItemId()), this.render);\n }\n }, {\n key: \"events\",\n value: function events() {\n return {\n 'click .custom-checkbox': 'onClickCheckbox',\n 'change .custom-control-input': 'onChangeCheckbox'\n };\n }\n }, {\n key: \"getItemId\",\n value: function getItemId() {\n return this.options.itemId.toString();\n }\n }, {\n key: \"onClickCheckbox\",\n value: function onClickCheckbox(e) {\n e.stopPropagation();\n }\n }, {\n key: \"onChangeCheckbox\",\n value: function onChangeCheckbox() {\n if (this.options.disabled) return;\n var id = this.getItemId();\n\n if (!this.model.has(id) && !this.model.get('all')) {\n this.model.set(id, true);\n } else if (this.model.get(id) === false) {\n this.model.set(id, true);\n } else {\n this.model.set(id, false);\n this.model.set(_BulkCheckboxComponent__WEBPACK_IMPORTED_MODULE_3__[\"ALL_CHECKBOX_ITEM_ID\"], false);\n }\n\n return;\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n var id = this.getItemId();\n var checked = this.model.has(id) ? this.model.get(id) : this.model.get('all');\n return {\n id: id,\n checked: checked,\n disabled: this.options.disabled,\n checkboxClassName: this.options.checkboxClassName\n };\n }\n }]);\n\n return CheckboxComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_0__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvY2hlY2tib3gvQ2hlY2tib3hDb21wb25lbnQudHMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9zaGFyZWQvY29tcG9uZW50cy9jaGVja2JveC9DaGVja2JveENvbXBvbmVudC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYmplY3RIYXNoIH0gZnJvbSAnYmFja2JvbmUnO1xyXG5pbXBvcnQgeyBDb3JlIH0gZnJvbSAnbGlicy9jb21tb24vY29yZSc7XHJcblxyXG5pbXBvcnQgQ2hlY2tib3hUZW1wbGF0ZSBmcm9tICcuL0NoZWNrYm94Lmhicyc7XHJcbmltcG9ydCB7IEJ1bGtDaGVja2JveEhlbHBlciB9IGZyb20gJ3NoYXJlZC91dGlscyc7XHJcbmltcG9ydCB7IEFMTF9DSEVDS0JPWF9JVEVNX0lEIH0gZnJvbSAnLi9CdWxrQ2hlY2tib3hDb21wb25lbnQnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBDaGVja2JveENvbXBvbmVudE9wdGlvbnMgZXh0ZW5kcyBDb3JlLkNvbXBvbmVudE9wdGlvbnMge1xyXG4gIGNoZWNrYm94Q2xhc3NOYW1lPzogc3RyaW5nO1xyXG4gIGl0ZW1JZDogbnVtYmVyO1xyXG4gIGtleTogc3RyaW5nO1xyXG4gIHR5cGU6IHN0cmluZztcclxuICBjaGVja2VkPzogYm9vbGVhbjtcclxuICBkaXNhYmxlZD86IGJvb2xlYW47XHJcbn1cclxuXHJcbmV4cG9ydCBjbGFzcyBDaGVja2JveENvbXBvbmVudCBleHRlbmRzIENvcmUuQ29tcG9u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BO0FBMkJBO0FBQ0E7QUE1QkE7QUFBQTtBQUFBO0FBK0JBO0FBQ0E7QUFoQ0E7QUFBQTtBQUFBO0FBbUNBO0FBRUE7QUFyQ0E7QUFBQTtBQUFBO0FBd0NBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUE1Q0E7QUFBQTtBQUFBO0FBK0NBO0FBQ0E7QUFoREE7QUFBQTtBQUFBO0FBbURBO0FBQ0E7QUFwREE7QUFBQTtBQUFBO0FBdURBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFyRUE7QUFBQTtBQUFBO0FBd0VBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFNQTtBQWpGQTtBQUNBO0FBREE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/checkbox/CheckboxComponent.ts\n");
|
|
23
|
-
|
|
24
|
-
/***/ })
|
|
25
|
-
|
|
26
|
-
}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[40],{1e3:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1001:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1057:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(291),i=n(12),l=n(999),a=n(990),u=n(1058),s=n.n(u);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,u=d(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1058:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1179:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1369:function(e,t,n){"use strict";n.r(t),n.d(t,"RenameFolderView",(function(){return S}));var r=n(1),o=n(6),i=n(30),l=n(5),a=n(2),u=n(42),s=n(0),c=n(291),f=n(982),p=n(82),d=n(251),h=n(12),y=n(3),b=n(1057),m=n(1179),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(g,e);var t,n,a,m=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.a.getInstance(s.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(s.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(s.e.LIBRARY,"libraries:sync",this.render)}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};u.a.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=h.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=i.a.get(e,this.model.toJSON(),{ctor:p.a})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}}])&&w(t.prototype,n),a&&w(t,a),g}(a.a.View)},982:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(251);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(c,e);var t,n,r,i=s(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),c}(r.a.Model)},990:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(160),l=n(3),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},s=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,s(o,i)):t?u:n?s(o,i):void 0}},999:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1013),a=n(12),u=n(1e3),s=n.n(u),c=n(1001),f=n.n(c);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,u=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&d(t.prototype,n),o&&d(t,o),c}(o.a.Component)}}]);
|