diff --git a/examples/Umbraco.Community.PropertyEditors.Heading.Site.16.x/uSync/v16/DataTypes/ComponentsBlockListEditor.config b/examples/Umbraco.Community.PropertyEditors.Heading.Site.16.x/uSync/v16/DataTypes/ComponentsBlockListEditor.config index de1ca66..b1b7e2c 100644 --- a/examples/Umbraco.Community.PropertyEditors.Heading.Site.16.x/uSync/v16/DataTypes/ComponentsBlockListEditor.config +++ b/examples/Umbraco.Community.PropertyEditors.Heading.Site.16.x/uSync/v16/DataTypes/ComponentsBlockListEditor.config @@ -10,7 +10,7 @@ "blocks": [ { "contentElementTypeKey": "5027e761-96a3-4ae2-860c-2b180edfc084", - "label": "Text {umbHeadingValue: title | prefix: - }" + "label": "Text: {umbHeadingValue: title}" } ] }]]> diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/prefix.filter-BEoLQwOO.js b/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/prefix.filter-BEoLQwOO.js deleted file mode 100644 index be42838..0000000 --- a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/prefix.filter-BEoLQwOO.js +++ /dev/null @@ -1,10 +0,0 @@ -import { UmbUfmFilterBase as i } from "@umbraco-cms/backoffice/ufm"; -class m extends i { - filter(e, r = "") { - return e ? `${r} ${e}` : ""; - } -} -export { - m as api -}; -//# sourceMappingURL=prefix.filter-BEoLQwOO.js.map diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/prefix.filter-BEoLQwOO.js.map b/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/prefix.filter-BEoLQwOO.js.map deleted file mode 100644 index be3e80e..0000000 --- a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/prefix.filter-BEoLQwOO.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefix.filter-BEoLQwOO.js","sources":["../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/prefix.filter.ts"],"sourcesContent":["import { UmbUfmFilterBase } from '@umbraco-cms/backoffice/ufm';\r\n\r\nclass UmbUfmPrefixFilterApi extends UmbUfmFilterBase {\r\n\r\n \tfilter(str?: string, prefix: string = '') {\r\n if (!str) return '';\r\n\t\treturn `${prefix} ${str}`;\r\n\t}\r\n}\r\nexport { UmbUfmPrefixFilterApi as api };"],"names":["UmbUfmPrefixFilterApi","UmbUfmFilterBase","str","prefix"],"mappings":";AAEA,MAAMA,UAA8BC,EAAiB;AAAA,EAElD,OAAOC,GAAcC,IAAiB,IAAI;AACrC,WAAKD,IACJ,GAAGC,CAAM,IAAID,CAAG,KADA;AAAA,EACA;AAEzB;"} \ No newline at end of file diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js b/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js index 0bd4774..64f24bc 100644 --- a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js +++ b/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js @@ -48,21 +48,12 @@ const e = { meta: { alias: "umbHeadingValue" } -}, o = { - type: "ufmFilter", - alias: "Umb.Filter.Prefix", - name: "Prefix UFM Filter", - api: () => import("./prefix.filter-BEoLQwOO.js"), - meta: { - alias: "prefix" - } -}, n = [ +}, o = [ ...i, t, - a, - o + a ]; export { - n as manifests + o as manifests }; //# sourceMappingURL=umbraco-community-property-editors-heading.js.map diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js.map b/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js.map index 0861eb0..cd1d2bb 100644 --- a/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js.map +++ b/src/Umbraco.Community.PropertyEditors.Heading.Assets/wwwroot/umbraco-community-property-editors-heading.js.map @@ -1 +1 @@ -{"version":3,"file":"umbraco-community-property-editors-heading.js","sources":["../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/property-editors/heading/Umbraco.Community.Heading.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/property-editors/heading/manifests.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/property-editors/heading-size/manifests.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/components/manifest.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/manifest.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/bundle.manifests.ts"],"sourcesContent":["import type { ManifestPropertyEditorSchema } from '@umbraco-cms/backoffice/property-editor';\r\n\r\nexport const manifest: ManifestPropertyEditorSchema = {\r\n\ttype: 'propertyEditorSchema',\r\n\tname: 'Heading',\r\n\talias: 'Umbraco.Community.Heading',\r\n\tmeta: {\r\n\t\tdefaultPropertyEditorUiAlias: 'Umb.Community.PropertyEditorUi.Heading',\r\n\t\tsettings: {\r\n\t\t\tproperties: [\r\n\t\t\t\t{\r\n\t\t\t\t\talias: 'allowedHeadings',\r\n\t\t\t\t\tlabel: 'Headings',\r\n\t\t\t\t\tdescription: 'Select the allowed headings',\r\n\t\t\t\t\tpropertyEditorUiAlias: 'Umb.Community.PropertyEditorUi.HeadingSize',\r\n\t\t\t\t},\r\n\t\t\t],\r\n\t\t},\r\n\t},\r\n};\r\n","import { manifest as headingSchemaManifest } from './Umbraco.Community.Heading.js';\r\n\r\nexport const manifests: Array = [\r\n\t{\r\n\t\ttype: 'propertyEditorUi',\r\n\t\talias: 'Umb.Community.PropertyEditorUi.Heading',\r\n\t\tname: 'Heading Property Editor UI',\r\n\t\telement: () => import(\"./property-editor-ui-heading.element.js\"),\r\n\t\tmeta: {\r\n\t\t\tlabel: 'Heading',\r\n\t\t\ticon: 'icon-heading-1',\r\n\t\t\tgroup: 'community',\r\n\t\t\tpropertyEditorSchemaAlias: 'Umbraco.Community.Heading',\r\n\t\t\tsupportsReadOnly: true,\r\n\t\t},\r\n\t},\r\n\theadingSchemaManifest,\r\n];\r\n","import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/property-editor';\r\n\r\nexport const manifest: ManifestPropertyEditorUi = {\r\n\ttype: 'propertyEditorUi',\r\n\talias: 'Umb.Community.PropertyEditorUi.HeadingSize',\r\n\tname: 'Heading Type Property Editor UI',\r\n\telement: () => import('./property-editor-ui-heading-size.element.js'),\r\n\tmeta: {\r\n\t\tlabel: 'Heading Size',\r\n\t\ticon: 'icon-heading-2',\r\n\t\tgroup: 'Community',\r\n\t},\r\n};\r\n","import type { ManifestUfmComponent } from '@umbraco-cms/backoffice/ufm';\r\n\r\nexport const manifest: ManifestUfmComponent = {\r\n type: 'ufmComponent',\r\n alias: 'Umb.Markdown.HeadingValue',\r\n name: 'Heading Value UFM Component',\r\n api: () => import('./heading-value.component.js'),\r\n meta: {\r\n alias: 'umbHeadingValue',\r\n },\r\n};","import type {ManifestUfmFilter} from '@umbraco-cms/backoffice/ufm';\r\n\r\nexport const manifest: ManifestUfmFilter = {\r\n type: 'ufmFilter',\r\n alias: 'Umb.Filter.Prefix',\r\n name: 'Prefix UFM Filter',\r\n api: () => import('./prefix.filter.js'),\r\n meta: {\r\n alias: 'prefix'\r\n }\r\n}","import { manifests as headingManifest } from './property-editors/heading/manifests.js';\r\nimport { manifest as headingTypeManifest } from './property-editors/heading-size/manifests.js';\r\nimport { manifest as headingValueManifest} from './ufm/components/manifest.js';\r\nimport { manifest as headingValueFilterManifest} from './ufm/filters/manifest.js';\r\n\r\nexport const manifests: Array = [\r\n ...headingManifest,\r\n headingTypeManifest,\r\n headingValueManifest,\r\n headingValueFilterManifest\r\n]; "],"names":["manifest","manifests","headingSchemaManifest","headingManifest","headingTypeManifest","headingValueManifest","headingValueFilterManifest"],"mappings":"AAEO,MAAMA,IAAyC;AAAA,EACrD,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,IACL,8BAA8B;AAAA,IAC9B,UAAU;AAAA,MACT,YAAY;AAAA,QACX;AAAA,UACC,OAAO;AAAA,UACP,OAAO;AAAA,UACP,aAAa;AAAA,UACb,uBAAuB;AAAA,QAAA;AAAA,MACxB;AAAA,IACD;AAAA,EACD;AAEF,GCjBaC,IAAyC;AAAA,EACrD;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM,OAAO,kDAAyC;AAAA,IAC/D,MAAM;AAAA,MACL,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,2BAA2B;AAAA,MAC3B,kBAAkB;AAAA,IAAA;AAAA,EACnB;AAAA,EAEDC;AACD,GCfaF,IAAqC;AAAA,EACjD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS,MAAM,OAAO,uDAA8C;AAAA,EACpE,MAAM;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAET,GCVaA,IAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK,MAAM,OAAO,uCAA8B;AAAA,EAChD,MAAM;AAAA,IACF,OAAO;AAAA,EAAA;AAEf,GCRaA,IAA8B;AAAA,EACvC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK,MAAM,OAAO,6BAAoB;AAAA,EACtC,MAAM;AAAA,IACF,OAAO;AAAA,EAAA;AAEf,GCLaC,IAAyC;AAAA,EACpD,GAAGE;AAAAA,EACHC;AAAAA,EACAC;AAAAA,EACAC;AACF;"} \ No newline at end of file +{"version":3,"file":"umbraco-community-property-editors-heading.js","sources":["../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/property-editors/heading/Umbraco.Community.Heading.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/property-editors/heading/manifests.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/property-editors/heading-size/manifests.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/components/manifest.ts","../../Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/bundle.manifests.ts"],"sourcesContent":["import type { ManifestPropertyEditorSchema } from '@umbraco-cms/backoffice/property-editor';\r\n\r\nexport const manifest: ManifestPropertyEditorSchema = {\r\n\ttype: 'propertyEditorSchema',\r\n\tname: 'Heading',\r\n\talias: 'Umbraco.Community.Heading',\r\n\tmeta: {\r\n\t\tdefaultPropertyEditorUiAlias: 'Umb.Community.PropertyEditorUi.Heading',\r\n\t\tsettings: {\r\n\t\t\tproperties: [\r\n\t\t\t\t{\r\n\t\t\t\t\talias: 'allowedHeadings',\r\n\t\t\t\t\tlabel: 'Headings',\r\n\t\t\t\t\tdescription: 'Select the allowed headings',\r\n\t\t\t\t\tpropertyEditorUiAlias: 'Umb.Community.PropertyEditorUi.HeadingSize',\r\n\t\t\t\t},\r\n\t\t\t],\r\n\t\t},\r\n\t},\r\n};\r\n","import { manifest as headingSchemaManifest } from './Umbraco.Community.Heading.js';\r\n\r\nexport const manifests: Array = [\r\n\t{\r\n\t\ttype: 'propertyEditorUi',\r\n\t\talias: 'Umb.Community.PropertyEditorUi.Heading',\r\n\t\tname: 'Heading Property Editor UI',\r\n\t\telement: () => import(\"./property-editor-ui-heading.element.js\"),\r\n\t\tmeta: {\r\n\t\t\tlabel: 'Heading',\r\n\t\t\ticon: 'icon-heading-1',\r\n\t\t\tgroup: 'community',\r\n\t\t\tpropertyEditorSchemaAlias: 'Umbraco.Community.Heading',\r\n\t\t\tsupportsReadOnly: true,\r\n\t\t},\r\n\t},\r\n\theadingSchemaManifest,\r\n];\r\n","import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/property-editor';\r\n\r\nexport const manifest: ManifestPropertyEditorUi = {\r\n\ttype: 'propertyEditorUi',\r\n\talias: 'Umb.Community.PropertyEditorUi.HeadingSize',\r\n\tname: 'Heading Type Property Editor UI',\r\n\telement: () => import('./property-editor-ui-heading-size.element.js'),\r\n\tmeta: {\r\n\t\tlabel: 'Heading Size',\r\n\t\ticon: 'icon-heading-2',\r\n\t\tgroup: 'Community',\r\n\t},\r\n};\r\n","import type { ManifestUfmComponent } from '@umbraco-cms/backoffice/ufm';\r\n\r\nexport const manifest: ManifestUfmComponent = {\r\n type: 'ufmComponent',\r\n alias: 'Umb.Markdown.HeadingValue',\r\n name: 'Heading Value UFM Component',\r\n api: () => import('./heading-value.component.js'),\r\n meta: {\r\n alias: 'umbHeadingValue',\r\n },\r\n};","import { manifests as headingManifest } from './property-editors/heading/manifests.js';\r\nimport { manifest as headingTypeManifest } from './property-editors/heading-size/manifests.js';\r\nimport { manifest as headingValueManifest} from './ufm/components/manifest.js';\r\n\r\nexport const manifests: Array = [\r\n ...headingManifest,\r\n headingTypeManifest,\r\n headingValueManifest\r\n]; "],"names":["manifest","manifests","headingSchemaManifest","headingManifest","headingTypeManifest","headingValueManifest"],"mappings":"AAEO,MAAMA,IAAyC;AAAA,EACrD,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,IACL,8BAA8B;AAAA,IAC9B,UAAU;AAAA,MACT,YAAY;AAAA,QACX;AAAA,UACC,OAAO;AAAA,UACP,OAAO;AAAA,UACP,aAAa;AAAA,UACb,uBAAuB;AAAA,QAAA;AAAA,MACxB;AAAA,IACD;AAAA,EACD;AAEF,GCjBaC,IAAyC;AAAA,EACrD;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM,OAAO,kDAAyC;AAAA,IAC/D,MAAM;AAAA,MACL,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,MACP,2BAA2B;AAAA,MAC3B,kBAAkB;AAAA,IAAA;AAAA,EACnB;AAAA,EAEDC;AACD,GCfaF,IAAqC;AAAA,EACjD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS,MAAM,OAAO,uDAA8C;AAAA,EACpE,MAAM;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAET,GCVaA,IAAiC;AAAA,EAC1C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK,MAAM,OAAO,uCAA8B;AAAA,EAChD,MAAM;AAAA,IACF,OAAO;AAAA,EAAA;AAEf,GCNaC,IAAyC;AAAA,EACpD,GAAGE;AAAAA,EACHC;AAAAA,EACAC;AACF;"} \ No newline at end of file diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/bundle.manifests.ts b/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/bundle.manifests.ts index 9657e6b..ef3ab6f 100644 --- a/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/bundle.manifests.ts +++ b/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/bundle.manifests.ts @@ -1,11 +1,9 @@ import { manifests as headingManifest } from './property-editors/heading/manifests.js'; import { manifest as headingTypeManifest } from './property-editors/heading-size/manifests.js'; import { manifest as headingValueManifest} from './ufm/components/manifest.js'; -import { manifest as headingValueFilterManifest} from './ufm/filters/manifest.js'; export const manifests: Array = [ ...headingManifest, headingTypeManifest, - headingValueManifest, - headingValueFilterManifest + headingValueManifest ]; \ No newline at end of file diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/manifest.ts b/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/manifest.ts deleted file mode 100644 index aa029eb..0000000 --- a/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/manifest.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type {ManifestUfmFilter} from '@umbraco-cms/backoffice/ufm'; - -export const manifest: ManifestUfmFilter = { - type: 'ufmFilter', - alias: 'Umb.Filter.Prefix', - name: 'Prefix UFM Filter', - api: () => import('./prefix.filter.js'), - meta: { - alias: 'prefix' - } -} \ No newline at end of file diff --git a/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/prefix.filter.ts b/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/prefix.filter.ts deleted file mode 100644 index 69bc51b..0000000 --- a/src/Umbraco.Community.PropertyEditors.Heading.Client/TextboxHeading/src/ufm/filters/prefix.filter.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { UmbUfmFilterBase } from '@umbraco-cms/backoffice/ufm'; - -class UmbUfmPrefixFilterApi extends UmbUfmFilterBase { - - filter(str?: string, prefix: string = '') { - if (!str) return ''; - return `${prefix} ${str}`; - } -} -export { UmbUfmPrefixFilterApi as api }; \ No newline at end of file