@mediafly/js-ui 47.2.0 → 47.3.1-0
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/CHANGELOG.md +2 -14
- package/lib/auto-complete/auto-complete.component.html +2 -1
- package/lib/font-selector/font-selector.d.ts +37 -8
- package/lib/font-selector/font-selector.html +58 -13
- package/lib/font-selector/font-selector.js +174 -17
- package/lib/font-selector/font-selector.js.map +1 -1
- package/lib/font-selector/google-webfonts-api.service.d.ts +1 -1
- package/lib/font-selector/google-webfonts-api.service.js +10 -2
- package/lib/font-selector/google-webfonts-api.service.js.map +1 -1
- package/lib/font-selector/webfont-loader.service.d.ts +1 -2
- package/lib/font-selector/webfont-loader.service.js +2 -2
- package/lib/font-selector/webfont-loader.service.js.map +1 -1
- package/lib/jsui.module.css +13 -2
- package/lib/rich-text/index.d.ts +0 -1
- package/lib/rich-text/index.js +0 -1
- package/lib/rich-text/index.js.map +1 -1
- package/lib/rich-text/rich-text.component.d.ts +2 -2
- package/lib/rich-text/rich-text.component.html +6 -14
- package/lib/rich-text/rich-text.component.js +6 -5
- package/lib/rich-text/rich-text.component.js.map +1 -1
- package/lib/styles.css +25 -16
- package/lib/tsconfig.deploy.tsbuildinfo +17 -29
- package/package.json +2 -2
- package/src/components/auto-complete/auto-complete.component.html +2 -1
- package/src/components/auto-complete/auto-complete.component.less +2 -1
- package/src/components/font-selector/font-selector.html +58 -13
- package/src/components/font-selector/font-selector.less +100 -0
- package/src/components/font-selector/font-selector.ts +191 -17
- package/src/components/font-selector/google-webfonts-api.backend.ts +1 -1
- package/src/components/font-selector/google-webfonts-api.service.ts +10 -2
- package/src/components/font-selector/webfont-loader.service.ts +2 -2
- package/src/components/index.less +1 -1
- package/src/components/less/objects/buttons.less +8 -0
- package/src/components/less/objects/buttons.module.css +11 -0
- package/src/components/less/variables/colors.less +2 -2
- package/src/components/less/variables.module.css +2 -2
- package/src/components/rich-text/index.ts +0 -1
- package/src/components/rich-text/rich-text.component.html +6 -14
- package/src/components/rich-text/rich-text.component.less +5 -1
- package/src/components/rich-text/rich-text.component.ts +7 -5
- package/tsconfig.tsbuildinfo +46 -63
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/jsLinters/jshint.xml +0 -16
- package/.idea/mediafly-js-ui.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/lib/rich-text/rich-text-toolbar-container.component.d.ts +0 -16
- package/lib/rich-text/rich-text-toolbar-container.component.html +0 -12
- package/lib/rich-text/rich-text-toolbar-container.component.js +0 -75
- package/lib/rich-text/rich-text-toolbar-container.component.js.map +0 -1
- package/src/components/rich-text/rich-text-toolbar-container.component.html +0 -12
- package/src/components/rich-text/rich-text-toolbar-container.component.ts +0 -66
- package/src/components/rich-text/rich-text-toolbar-container.less +0 -21
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1421,39 +1421,9 @@
|
|
|
1421
1421
|
"signature": "282402af95249811ef0eda5b18862f6ebe7436a76dd5e438b4e3e77a299ad1c7",
|
|
1422
1422
|
"affectsGlobalScope": false
|
|
1423
1423
|
},
|
|
1424
|
-
"./src/components/response-handlers/api-success-handlers.ts": {
|
|
1425
|
-
"version": "606dd9fc8f3b11be2d711352b919ebe90148139bbc8c865adb80d26758a1da89",
|
|
1426
|
-
"signature": "0d52000363d47869b9492802b086b8e709a7ec74da2e9df13c55672853255f97",
|
|
1427
|
-
"affectsGlobalScope": false
|
|
1428
|
-
},
|
|
1429
|
-
"./src/components/font-selector/google-webfonts-api.service.ts": {
|
|
1430
|
-
"version": "3c321d3cfc5537777cfec40a610e24b871ea1067bc5fe0ebeba5726a98d47e75",
|
|
1431
|
-
"signature": "8502d2773445c1ec41c8f27f688719897047a357c6c525d02fbba436d36101dc",
|
|
1432
|
-
"affectsGlobalScope": false
|
|
1433
|
-
},
|
|
1434
|
-
"./src/components/font-selector/webfont-loader.service.ts": {
|
|
1435
|
-
"version": "a2a6f6807a84a0386007b7ea7afeef80dedb299190b0cad7403259c6c59a6b03",
|
|
1436
|
-
"signature": "06089e5ea53329ab3880b1a04a3640d4b6796b83e5f771812f958b32a7d15393",
|
|
1437
|
-
"affectsGlobalScope": false
|
|
1438
|
-
},
|
|
1439
|
-
"./src/components/localization/index.strings.json": {
|
|
1440
|
-
"version": "a7960a242e5736dbd50767e5edb90cca650c2b9630cc3ab429ea5dfb773cfbe4",
|
|
1441
|
-
"signature": "ca97648a5acf9d8b1c019e1dd16839f46ac776aea1df985805b6497b022c2a60",
|
|
1442
|
-
"affectsGlobalScope": true
|
|
1443
|
-
},
|
|
1444
|
-
"./src/components/translate/translate-factory.ts": {
|
|
1445
|
-
"version": "5ab6b227bce711d08393b0cd1c2f1e01478d1d5dec9030d4c85abcb53b84b561",
|
|
1446
|
-
"signature": "9fca8856bb1069d424bd7b0d097df939bda4dfd4f831ed339e72eaeb44f809cb",
|
|
1447
|
-
"affectsGlobalScope": false
|
|
1448
|
-
},
|
|
1449
|
-
"./src/components/font-selector/font-selector.ts": {
|
|
1450
|
-
"version": "aefc1d824ef03a5b2c9bd92001f4833cf261d4ecfa6420bc4d7a13f352416a42",
|
|
1451
|
-
"signature": "ede59f0392f52ef706e0559e163dee80a28819107671a124e40f1e6c089c3bf1",
|
|
1452
|
-
"affectsGlobalScope": false
|
|
1453
|
-
},
|
|
1454
1424
|
"./src/app/forms/font-selector/font-selector.page.ts": {
|
|
1455
|
-
"version": "
|
|
1456
|
-
"signature": "
|
|
1425
|
+
"version": "a522a7ee7345211b26f736e253177a720d95987fab4b3df79a9680b364a1af97",
|
|
1426
|
+
"signature": "878ddca7c58003b9e5cb8fc30f9468ca6f9ba391c396d78b9db85e3f48a23de3",
|
|
1457
1427
|
"affectsGlobalScope": false
|
|
1458
1428
|
},
|
|
1459
1429
|
"./src/app/forms/font-selector/font-selector.route.ts": {
|
|
@@ -1491,6 +1461,11 @@
|
|
|
1491
1461
|
"signature": "99ee8992b30d42cac3eafb6d92a55e1c7851f7029eb4e91931b1f4a31181d1e9",
|
|
1492
1462
|
"affectsGlobalScope": false
|
|
1493
1463
|
},
|
|
1464
|
+
"./src/components/response-handlers/api-success-handlers.ts": {
|
|
1465
|
+
"version": "606dd9fc8f3b11be2d711352b919ebe90148139bbc8c865adb80d26758a1da89",
|
|
1466
|
+
"signature": "0d52000363d47869b9492802b086b8e709a7ec74da2e9df13c55672853255f97",
|
|
1467
|
+
"affectsGlobalScope": false
|
|
1468
|
+
},
|
|
1494
1469
|
"./src/app/forms/metadata/metadata.page.ts": {
|
|
1495
1470
|
"version": "954988ca77b6b126e974cc73b3c0e129fd44da9fda7bd7f522dcb9f020382d13",
|
|
1496
1471
|
"signature": "6ced12f5d9fe1149bdc9fac45a81361f0ce97fc1f91b60f3976434254e10ab21",
|
|
@@ -1507,7 +1482,7 @@
|
|
|
1507
1482
|
"affectsGlobalScope": false
|
|
1508
1483
|
},
|
|
1509
1484
|
"./src/components/font-selector/google-webfonts-api.backend.ts": {
|
|
1510
|
-
"version": "
|
|
1485
|
+
"version": "3d6b47a7e7a8a158b656f5bf3a8c331a3daca02ad6258afb8753fba846c983f6",
|
|
1511
1486
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
1512
1487
|
"affectsGlobalScope": false
|
|
1513
1488
|
},
|
|
@@ -1756,6 +1731,16 @@
|
|
|
1756
1731
|
"signature": "f7a9b401efcd4158a3e872d8992e38be5d064aefb06dae0e45c6e5650101ff09",
|
|
1757
1732
|
"affectsGlobalScope": false
|
|
1758
1733
|
},
|
|
1734
|
+
"./src/components/localization/index.strings.json": {
|
|
1735
|
+
"version": "a7960a242e5736dbd50767e5edb90cca650c2b9630cc3ab429ea5dfb773cfbe4",
|
|
1736
|
+
"signature": "ca97648a5acf9d8b1c019e1dd16839f46ac776aea1df985805b6497b022c2a60",
|
|
1737
|
+
"affectsGlobalScope": true
|
|
1738
|
+
},
|
|
1739
|
+
"./src/components/translate/translate-factory.ts": {
|
|
1740
|
+
"version": "5ab6b227bce711d08393b0cd1c2f1e01478d1d5dec9030d4c85abcb53b84b561",
|
|
1741
|
+
"signature": "9fca8856bb1069d424bd7b0d097df939bda4dfd4f831ed339e72eaeb44f809cb",
|
|
1742
|
+
"affectsGlobalScope": false
|
|
1743
|
+
},
|
|
1759
1744
|
"./src/components/date-time-zone-picker/datepicker.ts": {
|
|
1760
1745
|
"version": "12fbeab4faa71c22326c904e2479676d12580e05dc0160937cd82106495992a6",
|
|
1761
1746
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -1836,6 +1821,21 @@
|
|
|
1836
1821
|
"signature": "da828340451d325efb781c0cefe28be4b6a43c178f4634a81a81a80d28777f97",
|
|
1837
1822
|
"affectsGlobalScope": false
|
|
1838
1823
|
},
|
|
1824
|
+
"./src/components/font-selector/google-webfonts-api.service.ts": {
|
|
1825
|
+
"version": "14d62473571fff27b3ba1540ddcf043f9bfa331c7fc47204004edef890ba4eda",
|
|
1826
|
+
"signature": "3dc4e08773f66a87996f8ac8fd6225905cb5fb739e6eb15aae2c289ab0f69d63",
|
|
1827
|
+
"affectsGlobalScope": false
|
|
1828
|
+
},
|
|
1829
|
+
"./src/components/font-selector/webfont-loader.service.ts": {
|
|
1830
|
+
"version": "105268f7d3e429008190295158d932a4b46f68c006aff0e6f7efc24bb2e01b82",
|
|
1831
|
+
"signature": "38ee30c747171f5bf17cbd5d96eaf9b7095e2b1b68882951ad5ef33cebf4525f",
|
|
1832
|
+
"affectsGlobalScope": false
|
|
1833
|
+
},
|
|
1834
|
+
"./src/components/font-selector/font-selector.ts": {
|
|
1835
|
+
"version": "6e7ca13ee10c5ff77aafbe5fda8aa34c1ccd1d79db3e3c543ae1713fc5af1a22",
|
|
1836
|
+
"signature": "377d9b0a6490e527e690c881aeb32aa89c09143848a0ef7ecec157dcdcf02df0",
|
|
1837
|
+
"affectsGlobalScope": false
|
|
1838
|
+
},
|
|
1839
1839
|
"./src/components/font-selector/index.ts": {
|
|
1840
1840
|
"version": "6541a67eb1f44b79d5da6222d0c43d7dc3f11493780c45fd72985515d8c761e3",
|
|
1841
1841
|
"signature": "3a7e7a8ac238ec302b7839af10ebb82e40e32bd5c95c4236df3371960668b479",
|
|
@@ -2002,18 +2002,13 @@
|
|
|
2002
2002
|
"affectsGlobalScope": false
|
|
2003
2003
|
},
|
|
2004
2004
|
"./src/components/rich-text/rich-text.component.ts": {
|
|
2005
|
-
"version": "
|
|
2006
|
-
"signature": "
|
|
2007
|
-
"affectsGlobalScope": false
|
|
2008
|
-
},
|
|
2009
|
-
"./src/components/rich-text/rich-text-toolbar-container.component.ts": {
|
|
2010
|
-
"version": "04c12ab3e6ac121baf8354d8a89258ed262bce4aa941c327452d351a47f01785",
|
|
2011
|
-
"signature": "7d6455c16fbfb867677c53d35e17cf21139677dd383fdbafd7647d32924489c2",
|
|
2005
|
+
"version": "53bf9363d7a10c77ddc456155ed42ae9153f888fbae46b2da4f003a15a603326",
|
|
2006
|
+
"signature": "1226ecd4f74dcfd1bf29571b5c8e34c441abbd196737f06442d07b9278524d84",
|
|
2012
2007
|
"affectsGlobalScope": false
|
|
2013
2008
|
},
|
|
2014
2009
|
"./src/components/rich-text/index.ts": {
|
|
2015
|
-
"version": "
|
|
2016
|
-
"signature": "
|
|
2010
|
+
"version": "50157f3fd625cad4e4e958e0a38a95b883477c8032dd72b688f923d0e3806910",
|
|
2011
|
+
"signature": "6a4e2d386c323050fa51016d8b2479f89cd5d55d431927b6a77b27271cccd82f",
|
|
2017
2012
|
"affectsGlobalScope": false
|
|
2018
2013
|
},
|
|
2019
2014
|
"./src/components/show-image-loader/index.ts": {
|
|
@@ -2451,13 +2446,13 @@
|
|
|
2451
2446
|
"affectsGlobalScope": false
|
|
2452
2447
|
},
|
|
2453
2448
|
"./node_modules/@types/keyv/index.d.ts": {
|
|
2454
|
-
"version": "
|
|
2455
|
-
"signature": "
|
|
2449
|
+
"version": "9e7f7ac4d964992cf1b77612ca07e5695821881aa1a9acb0ef0509f192a5ea23",
|
|
2450
|
+
"signature": "9e7f7ac4d964992cf1b77612ca07e5695821881aa1a9acb0ef0509f192a5ea23",
|
|
2456
2451
|
"affectsGlobalScope": false
|
|
2457
2452
|
},
|
|
2458
2453
|
"./node_modules/@types/http-cache-semantics/index.d.ts": {
|
|
2459
|
-
"version": "
|
|
2460
|
-
"signature": "
|
|
2454
|
+
"version": "0bf440ab914e79e890cb15e5ffacb5e18bec678338b3eab069a5829d3d5c96e3",
|
|
2455
|
+
"signature": "0bf440ab914e79e890cb15e5ffacb5e18bec678338b3eab069a5829d3d5c96e3",
|
|
2461
2456
|
"affectsGlobalScope": false
|
|
2462
2457
|
},
|
|
2463
2458
|
"./node_modules/@types/responselike/index.d.ts": {
|
|
@@ -2466,8 +2461,8 @@
|
|
|
2466
2461
|
"affectsGlobalScope": false
|
|
2467
2462
|
},
|
|
2468
2463
|
"./node_modules/@types/cacheable-request/index.d.ts": {
|
|
2469
|
-
"version": "
|
|
2470
|
-
"signature": "
|
|
2464
|
+
"version": "73c05cca1bb5aa8e93efd089af51643b7ff005e47064a0e624a74ee20480a2eb",
|
|
2465
|
+
"signature": "73c05cca1bb5aa8e93efd089af51643b7ff005e47064a0e624a74ee20480a2eb",
|
|
2471
2466
|
"affectsGlobalScope": false
|
|
2472
2467
|
},
|
|
2473
2468
|
"./node_modules/@types/minimatch/index.d.ts": {
|
|
@@ -2831,7 +2826,7 @@
|
|
|
2831
2826
|
"target": 2,
|
|
2832
2827
|
"inlineSourceMap": false,
|
|
2833
2828
|
"declarationMap": false,
|
|
2834
|
-
"pathsBasePath": "/Users/
|
|
2829
|
+
"pathsBasePath": "/Users/gregorymcclendon/Sites/Mediafly/mediafly-js-ui",
|
|
2835
2830
|
"configFilePath": "./tsconfig.json"
|
|
2836
2831
|
},
|
|
2837
2832
|
"referencedMap": {
|
|
@@ -4457,8 +4452,7 @@
|
|
|
4457
4452
|
"./src/app/forms/dropdown-input/dropdown-input.route.ts"
|
|
4458
4453
|
],
|
|
4459
4454
|
"./src/app/forms/font-selector/font-selector.page.ts": [
|
|
4460
|
-
"./src/components/decorators/index.ts"
|
|
4461
|
-
"./src/components/font-selector/font-selector.ts"
|
|
4455
|
+
"./src/components/decorators/index.ts"
|
|
4462
4456
|
],
|
|
4463
4457
|
"./src/app/forms/font-selector/font-selector.route.ts": [
|
|
4464
4458
|
"./node_modules/@types/angular/index.d.ts"
|
|
@@ -4766,7 +4760,7 @@
|
|
|
4766
4760
|
"./src/components/first-time-motivator/ftm-target-element.ts"
|
|
4767
4761
|
],
|
|
4768
4762
|
"./src/components/font-selector/font-selector.ts": [
|
|
4769
|
-
"./
|
|
4763
|
+
"./node_modules/@types/lodash/index.d.ts",
|
|
4770
4764
|
"./src/components/decorators/index.ts",
|
|
4771
4765
|
"./src/components/font-selector/google-webfonts-api.service.ts",
|
|
4772
4766
|
"./src/components/font-selector/webfont-loader.service.ts",
|
|
@@ -4953,12 +4947,8 @@
|
|
|
4953
4947
|
"./src/components/response-handlers/error-response.service.ts"
|
|
4954
4948
|
],
|
|
4955
4949
|
"./src/components/rich-text/index.ts": [
|
|
4956
|
-
"./src/components/rich-text/rich-text-toolbar-container.component.ts",
|
|
4957
4950
|
"./src/components/rich-text/rich-text.component.ts"
|
|
4958
4951
|
],
|
|
4959
|
-
"./src/components/rich-text/rich-text-toolbar-container.component.ts": [
|
|
4960
|
-
"./src/components/decorators/index.ts"
|
|
4961
|
-
],
|
|
4962
4952
|
"./src/components/rich-text/rich-text.component.ts": [
|
|
4963
4953
|
"./node_modules/@types/angular/index.d.ts",
|
|
4964
4954
|
"./node_modules/@types/jquery/index.d.ts",
|
|
@@ -6420,11 +6410,7 @@
|
|
|
6420
6410
|
"./src/app/forms/dropdown-input/dropdown-input.page.ts",
|
|
6421
6411
|
"./src/app/forms/dropdown-input/dropdown-input.route.ts"
|
|
6422
6412
|
],
|
|
6423
|
-
"./src/app/forms/font-selector/font-selector.page.ts": [
|
|
6424
|
-
"./src/components/font-selector/font-selector.ts"
|
|
6425
|
-
],
|
|
6426
6413
|
"./src/app/forms/font-selector/index.ts": [
|
|
6427
|
-
"./src/app/forms/font-selector/font-selector.page.ts",
|
|
6428
6414
|
"./src/app/forms/font-selector/font-selector.route.ts"
|
|
6429
6415
|
],
|
|
6430
6416
|
"./src/app/forms/index.ts": [
|
|
@@ -6581,7 +6567,6 @@
|
|
|
6581
6567
|
"./src/components/first-time-motivator/ftm-target-element.ts"
|
|
6582
6568
|
],
|
|
6583
6569
|
"./src/components/font-selector/font-selector.ts": [
|
|
6584
|
-
"./src/components/auto-complete/auto-complete-match-renderer.component.ts",
|
|
6585
6570
|
"./src/components/font-selector/google-webfonts-api.service.ts",
|
|
6586
6571
|
"./src/components/font-selector/webfont-loader.service.ts",
|
|
6587
6572
|
"./src/components/translate/translate-factory.ts"
|
|
@@ -6708,7 +6693,6 @@
|
|
|
6708
6693
|
"./src/components/response-handlers/log-error-handler.ts"
|
|
6709
6694
|
],
|
|
6710
6695
|
"./src/components/rich-text/index.ts": [
|
|
6711
|
-
"./src/components/rich-text/rich-text-toolbar-container.component.ts",
|
|
6712
6696
|
"./src/components/rich-text/rich-text.component.ts"
|
|
6713
6697
|
],
|
|
6714
6698
|
"./src/components/rich-text/rich-text.component.ts": [
|
|
@@ -7295,7 +7279,6 @@
|
|
|
7295
7279
|
"./src/components/response-handlers/log-error-handler.ts",
|
|
7296
7280
|
"./src/components/response-handlers/tests/error-response.service.spec.ts",
|
|
7297
7281
|
"./src/components/rich-text/index.ts",
|
|
7298
|
-
"./src/components/rich-text/rich-text-toolbar-container.component.ts",
|
|
7299
7282
|
"./src/components/rich-text/rich-text.component.ts",
|
|
7300
7283
|
"./src/components/show-image-loader/index.ts",
|
|
7301
7284
|
"./src/components/site-header/index.ts",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
5
|
-
<inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
6
|
-
</profile>
|
|
7
|
-
</component>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="JSHintConfiguration" version="2.13.0" use-config-file="true" use-custom-config-file="true" custom-config-file-path="$PROJECT_DIR$/.jshintrc">
|
|
4
|
-
<option bitwise="true" />
|
|
5
|
-
<option browser="true" />
|
|
6
|
-
<option curly="true" />
|
|
7
|
-
<option eqeqeq="true" />
|
|
8
|
-
<option forin="true" />
|
|
9
|
-
<option maxerr="50" />
|
|
10
|
-
<option noarg="true" />
|
|
11
|
-
<option noempty="true" />
|
|
12
|
-
<option nonew="true" />
|
|
13
|
-
<option strict="true" />
|
|
14
|
-
<option undef="true" />
|
|
15
|
-
</component>
|
|
16
|
-
</project>
|
package/.idea/mediafly-js-ui.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/mediafly-js-ui.iml" filepath="$PROJECT_DIR$/.idea/mediafly-js-ui.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="angular" />
|
|
2
|
-
export default class RichTextToolbarContainerController implements ng.IComponentController {
|
|
3
|
-
private $document;
|
|
4
|
-
private $rootScope;
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
onOpen?: () => void;
|
|
7
|
-
constructor($document: ng.IDocumentService, $rootScope: JSUIRootScope);
|
|
8
|
-
protected isDisplayed: boolean;
|
|
9
|
-
private deregisterCloseContainer;
|
|
10
|
-
$onInit(): void;
|
|
11
|
-
$onDestroy(): void;
|
|
12
|
-
protected containerClick($event: MouseEvent): void;
|
|
13
|
-
protected iconClick($event: MouseEvent): void;
|
|
14
|
-
private clickDocument;
|
|
15
|
-
private closeContainer;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div class="c-rich-text-toolbar-container">
|
|
2
|
-
<div ng-transclude="icon"
|
|
3
|
-
ng-click="$ctrl.iconClick($event)"
|
|
4
|
-
class="c-rich-text-toolbar-container__icon">
|
|
5
|
-
|
|
6
|
-
</div>
|
|
7
|
-
<div ng-transclude="container"
|
|
8
|
-
ng-show="$ctrl.isDisplayed"
|
|
9
|
-
ng-click="$ctrl.containerClick($event)"
|
|
10
|
-
class="c-right-text-toolbar-container__popup">
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Component, Inject, Output } from '../decorators';
|
|
14
|
-
let RichTextToolbarContainerController = class RichTextToolbarContainerController {
|
|
15
|
-
constructor($document, $rootScope) {
|
|
16
|
-
this.$document = $document;
|
|
17
|
-
this.$rootScope = $rootScope;
|
|
18
|
-
}
|
|
19
|
-
$onInit() {
|
|
20
|
-
const body = this.$document[0].body;
|
|
21
|
-
body.addEventListener('click', this.clickDocument.bind(this));
|
|
22
|
-
this.deregisterCloseContainer = this.$rootScope.$on('richTextToolbarContainer:closeContainer', (event) => this.closeContainer());
|
|
23
|
-
}
|
|
24
|
-
$onDestroy() {
|
|
25
|
-
const body = this.$document[0].body;
|
|
26
|
-
body.removeEventListener('click', this.clickDocument.bind(this));
|
|
27
|
-
this.deregisterCloseContainer();
|
|
28
|
-
}
|
|
29
|
-
containerClick($event) {
|
|
30
|
-
$event.stopPropagation();
|
|
31
|
-
}
|
|
32
|
-
iconClick($event) {
|
|
33
|
-
this.isDisplayed = !this.isDisplayed;
|
|
34
|
-
if (!this.isDisplayed && this.onClose) {
|
|
35
|
-
this.onClose();
|
|
36
|
-
}
|
|
37
|
-
if (this.isDisplayed && this.onOpen) {
|
|
38
|
-
this.onOpen();
|
|
39
|
-
}
|
|
40
|
-
$event.stopPropagation();
|
|
41
|
-
}
|
|
42
|
-
clickDocument() {
|
|
43
|
-
this.closeContainer();
|
|
44
|
-
}
|
|
45
|
-
closeContainer() {
|
|
46
|
-
// if we are actually closing from an open state, fire callback
|
|
47
|
-
if (this.isDisplayed && this.onClose) {
|
|
48
|
-
this.onClose();
|
|
49
|
-
}
|
|
50
|
-
this.isDisplayed = false;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
__decorate([
|
|
54
|
-
Output(),
|
|
55
|
-
__metadata("design:type", Function)
|
|
56
|
-
], RichTextToolbarContainerController.prototype, "onClose", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Output(),
|
|
59
|
-
__metadata("design:type", Function)
|
|
60
|
-
], RichTextToolbarContainerController.prototype, "onOpen", void 0);
|
|
61
|
-
RichTextToolbarContainerController = __decorate([
|
|
62
|
-
Component({
|
|
63
|
-
selector: 'mflyRichTextToolbarContainer',
|
|
64
|
-
template: require('./rich-text-toolbar-container.component.html'),
|
|
65
|
-
transclude: {
|
|
66
|
-
'icon': 'mflyToolbarIcon',
|
|
67
|
-
'container': 'mflyToolbarContainer'
|
|
68
|
-
}
|
|
69
|
-
}),
|
|
70
|
-
__param(0, Inject('$document')),
|
|
71
|
-
__param(1, Inject('$rootScope')),
|
|
72
|
-
__metadata("design:paramtypes", [Object, Object])
|
|
73
|
-
], RichTextToolbarContainerController);
|
|
74
|
-
export default RichTextToolbarContainerController;
|
|
75
|
-
//# sourceMappingURL=rich-text-toolbar-container.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text-toolbar-container.component.js","sourceRoot":"","sources":["../../src/components/rich-text/rich-text-toolbar-container.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAWzD,IAAqB,kCAAkC,GAAvD,MAAqB,kCAAkC;IAKtD,YAC8B,SAA8B,EAC7B,UAAyB;QAD1B,cAAS,GAAT,SAAS,CAAqB;QAC7B,eAAU,GAAV,UAAU,CAAe;IACpD,CAAC;IAML,OAAO;QACN,MAAM,IAAI,GAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAc,CAAC,IAAI,CAAA;QACjD,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAE7D,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,yCAAyC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAA;IACjI,CAAC;IAED,UAAU;QACT,MAAM,IAAI,GAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAc,CAAC,IAAI,CAAA;QACjD,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAChE,IAAI,CAAC,wBAAwB,EAAE,CAAA;IAChC,CAAC;IAES,cAAc,CAAC,MAAkB;QAC1C,MAAM,CAAC,eAAe,EAAE,CAAA;IACzB,CAAC;IAES,SAAS,CAAC,MAAkB;QACrC,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,EAAE;YACtC,IAAI,CAAC,OAAO,EAAE,CAAA;SACd;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,EAAE;YACpC,IAAI,CAAC,MAAM,EAAE,CAAA;SACb;QACD,MAAM,CAAC,eAAe,EAAE,CAAA;IACzB,CAAC;IAEO,aAAa;QACpB,IAAI,CAAC,cAAc,EAAE,CAAA;IACtB,CAAC;IAEO,cAAc;QACrB,+DAA+D;QAC/D,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,EAAE;YACrC,IAAI,CAAC,OAAO,EAAE,CAAA;SACd;QACD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;IAEzB,CAAC;CACD,CAAA;AApDU;IAAT,MAAM,EAAE;;mEAAqB;AACpB;IAAT,MAAM,EAAE;;kEAAoB;AAHT,kCAAkC;IATtD,SAAS,CAAC;QACV,QAAQ,EAAE,8BAA8B;QACxC,QAAQ,EAAE,OAAO,CAAC,8CAA8C,CAAC;QACjE,UAAU,EAAE;YACX,MAAM,EAAE,iBAAiB;YACzB,WAAW,EAAE,sBAAsB;SACnC;KACD,CAAC;IAQC,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;IACnB,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;;GAPF,kCAAkC,CAsDtD;eAtDoB,kCAAkC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div class="c-rich-text-toolbar-container">
|
|
2
|
-
<div ng-transclude="icon"
|
|
3
|
-
ng-click="$ctrl.iconClick($event)"
|
|
4
|
-
class="c-rich-text-toolbar-container__icon">
|
|
5
|
-
|
|
6
|
-
</div>
|
|
7
|
-
<div ng-transclude="container"
|
|
8
|
-
ng-show="$ctrl.isDisplayed"
|
|
9
|
-
ng-click="$ctrl.containerClick($event)"
|
|
10
|
-
class="c-right-text-toolbar-container__popup">
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Component, Inject, Output } from '../decorators'
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'mflyRichTextToolbarContainer',
|
|
5
|
-
template: require('./rich-text-toolbar-container.component.html'),
|
|
6
|
-
transclude: {
|
|
7
|
-
'icon': 'mflyToolbarIcon',
|
|
8
|
-
'container': 'mflyToolbarContainer'
|
|
9
|
-
}
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export default class RichTextToolbarContainerController implements ng.IComponentController {
|
|
13
|
-
|
|
14
|
-
@Output() onClose?: () => void
|
|
15
|
-
@Output() onOpen?: () => void
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
-
@Inject('$document') private $document: ng.IDocumentService,
|
|
19
|
-
@Inject('$rootScope') private $rootScope: JSUIRootScope,
|
|
20
|
-
) { }
|
|
21
|
-
|
|
22
|
-
protected isDisplayed: boolean
|
|
23
|
-
|
|
24
|
-
private deregisterCloseContainer: () => void
|
|
25
|
-
|
|
26
|
-
$onInit() {
|
|
27
|
-
const body = (this.$document[0] as Document).body
|
|
28
|
-
body.addEventListener('click', this.clickDocument.bind(this))
|
|
29
|
-
|
|
30
|
-
this.deregisterCloseContainer = this.$rootScope.$on('richTextToolbarContainer:closeContainer', (event) => this.closeContainer())
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
$onDestroy() {
|
|
34
|
-
const body = (this.$document[0] as Document).body
|
|
35
|
-
body.removeEventListener('click', this.clickDocument.bind(this))
|
|
36
|
-
this.deregisterCloseContainer()
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
protected containerClick($event: MouseEvent): void {
|
|
40
|
-
$event.stopPropagation()
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
protected iconClick($event: MouseEvent): void {
|
|
44
|
-
this.isDisplayed = !this.isDisplayed
|
|
45
|
-
if (!this.isDisplayed && this.onClose) {
|
|
46
|
-
this.onClose()
|
|
47
|
-
}
|
|
48
|
-
if (this.isDisplayed && this.onOpen) {
|
|
49
|
-
this.onOpen()
|
|
50
|
-
}
|
|
51
|
-
$event.stopPropagation()
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
private clickDocument(): void {
|
|
55
|
-
this.closeContainer()
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
private closeContainer(): void {
|
|
59
|
-
// if we are actually closing from an open state, fire callback
|
|
60
|
-
if (this.isDisplayed && this.onClose) {
|
|
61
|
-
this.onClose()
|
|
62
|
-
}
|
|
63
|
-
this.isDisplayed = false
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.c-rich-text-toolbar-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.c-rich-text-toolbar-container__icon {
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
|
|
8
|
-
&:hover {
|
|
9
|
-
color: #06c; // hard code match of quill editor
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.c-right-text-toolbar-container__popup {
|
|
14
|
-
background-color: #fff;
|
|
15
|
-
border: 1px solid @color-gray-light;
|
|
16
|
-
box-shadow: @dropdown-box-shadow;
|
|
17
|
-
min-width: 350px;
|
|
18
|
-
padding: 15px;
|
|
19
|
-
position: absolute;
|
|
20
|
-
z-index: 100;
|
|
21
|
-
}
|