@social-mail/social-mail-client 1.9.200 → 1.9.201
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/dist/site-editor/properties/controls/FontDropDown.d.ts.map +1 -1
- package/dist/site-editor/properties/controls/FontDropDown.js +3 -4
- package/dist/site-editor/properties/controls/FontDropDown.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +3 -4
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor/properties/controls/FontDropDown.tsx +2 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontDropDown.d.ts","sourceRoot":"","sources":["../../../../src/site-editor/properties/controls/FontDropDown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FontDropDown.d.ts","sourceRoot":"","sources":["../../../../src/site-editor/properties/controls/FontDropDown.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACjC,aAAa,EACb,KAAK,EACR;;;CAAA,OAwBA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/DropDownInput", "./PropertyEditor"], function (_export, _context) {
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var XNode, DropDownInput, BindEditor, PropertyEditor, getHtmlEditor, BindHasValue,
|
|
4
|
+
var XNode, DropDownInput, BindEditor, PropertyEditor, getHtmlEditor, BindHasValue, getInstalledFonts;
|
|
5
5
|
function FontDropDown({
|
|
6
6
|
attributeName,
|
|
7
7
|
label
|
|
@@ -18,7 +18,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dis
|
|
|
18
18
|
}, XNode.create(DropDownInput, {
|
|
19
19
|
"data-property-value-editor": "drop-down",
|
|
20
20
|
items: BindEditor.oneWay(editor => getInstalledFonts(editor.parent.selection.element)),
|
|
21
|
-
labelPath: x => x === null || x === void 0 ? void 0 : x.label,
|
|
21
|
+
labelPath: x => (x === null || x === void 0 ? void 0 : x.label) || "",
|
|
22
22
|
valuePath: x => x === null || x === void 0 ? void 0 : x.value,
|
|
23
23
|
itemRenderer: x => XNode.create("div", {
|
|
24
24
|
text: x.label,
|
|
@@ -44,13 +44,12 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dis
|
|
|
44
44
|
BindHasValue = _PropertyEditor.BindHasValue;
|
|
45
45
|
}],
|
|
46
46
|
execute: function () {
|
|
47
|
-
installedFonts = [];
|
|
48
47
|
getInstalledFonts = e => {
|
|
49
48
|
if (!e) {
|
|
50
49
|
return;
|
|
51
50
|
}
|
|
52
51
|
const fonts = Array.from(e.ownerDocument.fonts.values());
|
|
53
|
-
installedFonts
|
|
52
|
+
const installedFonts = [];
|
|
54
53
|
const set = new Set();
|
|
55
54
|
for (const f of fonts) {
|
|
56
55
|
if (set.has(f.family)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FontDropDown","attributeName","label","XNode","create","PropertyEditor","BindHasValue","actionButton","class","title","DropDownInput","items","BindEditor","oneWay","editor","getInstalledFonts","parent","selection","element","labelPath","x","valuePath","value","itemRenderer","text","font","getAttribute","ce","getHtmlEditor","target","setAttribute","detail","_export","setters","_webAtomsCoreDistCoreXNode","default","_webAtomsWebControlsDistBasicDropDownInput","_PropertyEditor","execute","
|
|
1
|
+
{"version":3,"names":["FontDropDown","attributeName","label","XNode","create","PropertyEditor","BindHasValue","actionButton","class","title","DropDownInput","items","BindEditor","oneWay","editor","getInstalledFonts","parent","selection","element","labelPath","x","valuePath","value","itemRenderer","text","font","getAttribute","ce","getHtmlEditor","target","setAttribute","detail","_export","setters","_webAtomsCoreDistCoreXNode","default","_webAtomsWebControlsDistBasicDropDownInput","_PropertyEditor","execute","e","fonts","Array","from","ownerDocument","values","installedFonts","set","Set","f","has","family","add","test","push"],"sources":["../../../../src/site-editor/properties/controls/FontDropDown.tsx"],"sourcesContent":[null],"mappings":";;;;EAkCc,SAAUA,YAAYA,CAAC;IACjCC,aAAa;IACbC;EAAK,CACR;IACG,OAAOC,KAAA,CAAAC,MAAA,CAACC,cAAc;MAClBJ,aAAa,EAAEA,aAAa;MAC5BC,KAAK,EAAEA,KAAK;MAAA,kBACII,YAAY,CAACL,aAAa,CAAC;MAC3CM,YAAY,EAAEJ,KAAA,CAAAC,MAAA;QACNI,KAAK,EAAC,aAAa;QACnBC,KAAK,EAAC,kBAAkB;QAAA,oBACP;MAAkB;IACjC,GAEVN,KAAA,CAAAC,MAAA,CAACM,aAAa;MAAA,8BACiB,WAAW;MACtCC,KAAK,EAAEC,UAAU,CAACC,MAAM,CAAEC,MAAM,IAAKC,iBAAiB,CAAED,MAAM,CAACE,MAAc,CAACC,SAAS,CAACC,OAAO,CAAC,CAAC;MACjGC,SAAS,EAAGC,CAAM,IAAK,CAAAA,CAAC,aAADA,CAAC,uBAADA,CAAC,CAAElB,KAAK,KAAI,EAAE;MACrCmB,SAAS,EAAGD,CAAM,IAAKA,CAAC,aAADA,CAAC,uBAADA,CAAC,CAAEE,KAAK;MAC/BC,YAAY,EAAGH,CAAM,IAAKjB,KAAA,CAAAC,MAAA;QAAKoB,IAAI,EAAEJ,CAAC,CAAClB,KAAK;QAAA,qBAAqBkB,CAAC,CAACK;MAAI,EAAI;MAC3EH,KAAK,EAAEV,UAAU,CAACC,MAAM,CAAEC,MAAM,IAAMA,MAAM,CAACE,MAAyB,CAACC,SAAS,CAACC,OAAO,CAACQ,YAAY,CAACzB,aAAa,CAAC,CAAC;MAAA,2BAC3F0B,EAAE,IAAI;QAC5B,MAAMT,OAAO,GAAGU,aAAa,CAACD,EAAE,CAACE,MAAqB,CAAC,CAACZ,SAAS,CAACC,OAAO;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ACX,CAAC;QACN;QAEA,OAAOL,cAAc;MACzB,CAAC;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -51788,7 +51788,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51788
51788
|
System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/DropDownInput", "./PropertyEditor"], function (_export, _context) {
|
|
51789
51789
|
"use strict";
|
|
51790
51790
|
|
|
51791
|
-
var XNode, DropDownInput, BindEditor, PropertyEditor, getHtmlEditor, BindHasValue,
|
|
51791
|
+
var XNode, DropDownInput, BindEditor, PropertyEditor, getHtmlEditor, BindHasValue, getInstalledFonts;
|
|
51792
51792
|
function FontDropDown({
|
|
51793
51793
|
attributeName,
|
|
51794
51794
|
label
|
|
@@ -51805,7 +51805,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dis
|
|
|
51805
51805
|
}, XNode.create(DropDownInput, {
|
|
51806
51806
|
"data-property-value-editor": "drop-down",
|
|
51807
51807
|
items: BindEditor.oneWay(editor => getInstalledFonts(editor.parent.selection.element)),
|
|
51808
|
-
labelPath: x => x === null || x === void 0 ? void 0 : x.label,
|
|
51808
|
+
labelPath: x => (x === null || x === void 0 ? void 0 : x.label) || "",
|
|
51809
51809
|
valuePath: x => x === null || x === void 0 ? void 0 : x.value,
|
|
51810
51810
|
itemRenderer: x => XNode.create("div", {
|
|
51811
51811
|
text: x.label,
|
|
@@ -51831,13 +51831,12 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dis
|
|
|
51831
51831
|
BindHasValue = _PropertyEditor.BindHasValue;
|
|
51832
51832
|
}],
|
|
51833
51833
|
execute: function () {
|
|
51834
|
-
installedFonts = [];
|
|
51835
51834
|
getInstalledFonts = e => {
|
|
51836
51835
|
if (!e) {
|
|
51837
51836
|
return;
|
|
51838
51837
|
}
|
|
51839
51838
|
const fonts = Array.from(e.ownerDocument.fonts.values());
|
|
51840
|
-
installedFonts
|
|
51839
|
+
const installedFonts = [];
|
|
51841
51840
|
const set = new Set();
|
|
51842
51841
|
for (const f of fonts) {
|
|
51843
51842
|
if (set.has(f.family)) {
|