@omnia/fx-models 8.0.296-dev → 8.0.297-dev
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/BusinessProfile.d.ts +8 -5
- package/BusinessProfile.js +10 -3
- package/Contexts.d.ts +3 -4
- package/Enums.tooling.d.ts +1 -1
- package/Exposes.d.ts +1 -3
- package/Exposes.js +1 -3
- package/Layout.d.ts +9 -9
- package/Tenant.d.ts +3 -2
- package/Tenant.js +3 -3
- package/{Theming.d.ts → Theme.d.ts} +1 -1
- package/apps/App.d.ts +1 -1
- package/apps/App.js +3 -3
- package/internal-do-not-import-from-here/shared/models/index.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/index.js +1 -1
- package/internal-do-not-import-from-here/shared/models/{theming → theme}/Blueprints.d.ts +5 -5
- package/internal-do-not-import-from-here/shared/models/theme/LegacyThemeDefinition.d.ts +28 -0
- package/internal-do-not-import-from-here/shared/models/theme/LegacyThemeDefinition.js +2 -0
- package/internal-do-not-import-from-here/shared/models/{theming/ThemingBase.d.ts → theme/ThemeBase.d.ts} +3 -3
- package/internal-do-not-import-from-here/shared/models/theme/ThemeBase.js +12 -0
- package/internal-do-not-import-from-here/shared/models/theme/ThemeBoot.d.ts +7 -0
- package/internal-do-not-import-from-here/shared/models/theme/ThemeBoot.js +2 -0
- package/internal-do-not-import-from-here/shared/models/{theming/ThemeDefinitionV2.d.ts → theme/ThemeDefinition.d.ts} +117 -14
- package/internal-do-not-import-from-here/shared/models/{theming/ThemeDefinitionV2.js → theme/ThemeDefinition.js} +4 -0
- package/internal-do-not-import-from-here/shared/models/{theming → theme}/Typography.d.ts +3 -10
- package/internal-do-not-import-from-here/shared/models/{theming → theme}/UseThemeMethods.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/{theming → theme}/UseThemeMethods.js +28 -28
- package/internal-do-not-import-from-here/shared/models/{theming → theme}/index.d.ts +5 -3
- package/internal-do-not-import-from-here/shared/models/{theming → theme}/index.js +5 -3
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +6 -1
- package/oxide/OxideTypeDefinitions.d.ts +13 -0
- package/package.json +1 -1
- package/ThemeDefinition.d.ts +0 -109
- package/ThemeDefinition.js +0 -11
- package/internal-do-not-import-from-here/shared/models/theming/ThemingBase.js +0 -12
- package/internal-do-not-import-from-here/shared/models/theming/ThemingDefinitionV3.d.ts +0 -44
- package/internal-do-not-import-from-here/shared/models/theming/ThemingDefinitionV3.js +0 -6
- /package/{Color.js → Theme.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/Blueprints.js +0 -0
- /package/{Color.d.ts → internal-do-not-import-from-here/shared/models/theme/Color.d.ts} +0 -0
- /package/{Theming.js → internal-do-not-import-from-here/shared/models/theme/Color.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedBlueprintMethods.d.ts +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedBlueprintMethods.js +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedColorMethods.d.ts +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedColorMethods.js +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/Spacing.d.ts +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/Spacing.js +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/Typography.js +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/useSpacingScaling.d.ts +0 -0
- /package/internal-do-not-import-from-here/shared/models/{theming → theme}/useSpacingScaling.js +0 -0
package/BusinessProfile.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import { guid,
|
1
|
+
import { guid, ThemeTargetMapping } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { types } from "typestyle";
|
3
|
-
import { LanguageSettings, VersionedLayoutId } from ".";
|
3
|
+
import { LanguageSettings, Theme, ThemeSelection, VersionedLayoutId } from ".";
|
4
4
|
import { ThemeType } from "./Enums";
|
5
5
|
import { MultilingualString } from "./MultilingualString";
|
6
6
|
import { IOmniaPropertyBag, OmniaNamedModel } from "./NamedProperty";
|
7
|
-
import { Theming } from "./Theming";
|
8
7
|
export interface BusinessProfileIdentity {
|
9
8
|
id: guid;
|
10
9
|
name: MultilingualString;
|
@@ -34,7 +33,7 @@ export declare abstract class BusinessProfileProperty extends OmniaNamedModel {
|
|
34
33
|
}
|
35
34
|
export declare abstract class BusinessProfilePathProperty extends OmniaNamedModel {
|
36
35
|
}
|
37
|
-
export declare class BusinessProfileTheme extends BusinessProfileProperty implements
|
36
|
+
export declare class BusinessProfileTheme extends BusinessProfileProperty implements Theme {
|
38
37
|
constructor();
|
39
38
|
primary: string;
|
40
39
|
secondary: string;
|
@@ -46,7 +45,7 @@ export declare class BusinessProfileTheme extends BusinessProfileProperty implem
|
|
46
45
|
warning: string;
|
47
46
|
type: ThemeType;
|
48
47
|
}
|
49
|
-
export declare class
|
48
|
+
export declare class BusinessProfileThemeManager extends BusinessProfileProperty {
|
50
49
|
constructor();
|
51
50
|
selected: ThemeSelection;
|
52
51
|
}
|
@@ -98,6 +97,10 @@ export declare const TenantRegionalStyles: {
|
|
98
97
|
checkboxColumn: types.NestedCSSProperties;
|
99
98
|
disabledOverlay?: types.NestedCSSProperties;
|
100
99
|
};
|
100
|
+
export declare class BusinessProfileThemeMappingSettings extends BusinessProfileProperty {
|
101
|
+
constructor();
|
102
|
+
items: Array<ThemeTargetMapping>;
|
103
|
+
}
|
101
104
|
export interface IInternalBusinessProfileRegistration extends IBusinessProfileRegistrationApi {
|
102
105
|
getRegistrations: () => IBusinessProfileCreation[];
|
103
106
|
}
|
package/BusinessProfile.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantRegionalStyles = exports.OmniaBusinessProfileRelativePathValue = exports.BusinessProfileRelativePathValue = exports.BusinessProfileChromeLayout = exports.BusinessProfileFaviconSettings = exports.BusinessProfileHomeUrlSettings = exports.BusinessProfileLanguageSettings = exports.BusinessProfileMediaPicker = exports.
|
3
|
+
exports.BusinessProfileThemeMappingSettings = exports.TenantRegionalStyles = exports.OmniaBusinessProfileRelativePathValue = exports.BusinessProfileRelativePathValue = exports.BusinessProfileChromeLayout = exports.BusinessProfileFaviconSettings = exports.BusinessProfileHomeUrlSettings = exports.BusinessProfileLanguageSettings = exports.BusinessProfileMediaPicker = exports.BusinessProfileThemeManager = exports.BusinessProfileTheme = exports.BusinessProfilePathProperty = exports.BusinessProfileProperty = void 0;
|
4
|
+
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
4
5
|
const ManifestIds_1 = require("./ManifestIds");
|
5
6
|
const NamedProperty_1 = require("./NamedProperty");
|
6
7
|
class BusinessProfileProperty extends NamedProperty_1.OmniaNamedModel {
|
@@ -15,12 +16,12 @@ class BusinessProfileTheme extends BusinessProfileProperty {
|
|
15
16
|
}
|
16
17
|
}
|
17
18
|
exports.BusinessProfileTheme = BusinessProfileTheme;
|
18
|
-
class
|
19
|
+
class BusinessProfileThemeManager extends BusinessProfileProperty {
|
19
20
|
constructor() {
|
20
21
|
super(ManifestIds_1.OmniaService.Id, "themingManager");
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.
|
24
|
+
exports.BusinessProfileThemeManager = BusinessProfileThemeManager;
|
24
25
|
class BusinessProfileMediaPicker extends BusinessProfileProperty {
|
25
26
|
constructor() {
|
26
27
|
super(ManifestIds_1.OmniaService.Id, "mediapicker");
|
@@ -78,3 +79,9 @@ class OmniaBusinessProfileRelativePathValue extends BusinessProfileRelativePathV
|
|
78
79
|
}
|
79
80
|
exports.OmniaBusinessProfileRelativePathValue = OmniaBusinessProfileRelativePathValue;
|
80
81
|
exports.TenantRegionalStyles = {};
|
82
|
+
class BusinessProfileThemeMappingSettings extends BusinessProfileProperty {
|
83
|
+
constructor() {
|
84
|
+
super((0, models_1.guid)("6dd14453-7b42-43d0-9176-884a556c9b2f"), "Omnia.BusinessProfileThemeMappingSettings");
|
85
|
+
}
|
86
|
+
}
|
87
|
+
exports.BusinessProfileThemeMappingSettings = BusinessProfileThemeMappingSettings;
|
package/Contexts.d.ts
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
import { guid, OmniaSharedBootstrapData, OmniaToken, IUrlHash, IUrlQuerystring, IUrlPath, AppRoute,
|
1
|
+
import { guid, OmniaSharedBootstrapData, OmniaToken, IUrlHash, IUrlQuerystring, IUrlPath, AppRoute, Theme, IBusinessProfile, IMessageBusTopicSubscription, HttpHeaders, IOmniaPropertyBag, ITenant, OmniaServiceManifests, TenantWithProperties, UserWithProperties, RollupFilterComponentState, LoadableBundleManifest, UserWithPropertyBag, FilterEngineRouterState, ThemeBoot } from ".";
|
2
2
|
import { AxiosResponse } from "axios";
|
3
3
|
import { BusinessProfileWithProperties } from "./BusinessProfile";
|
4
4
|
import { AppRoutePropertyBagModel, AppRouteWithProperties, ITokenBasedUrlPath, IAppRoute } from "./Routing";
|
5
5
|
import { BundleTargetTypes, OmniaBackendRuntimes, OmniaClientRuntimes } from "./Enums";
|
6
|
-
import { ThemingBoot } from "../ux";
|
7
6
|
export interface OmniaBootstrapData extends OmniaSharedBootstrapData {
|
8
7
|
manifests: OmniaServiceManifests;
|
9
8
|
enviroment: OmniaEnvironmentContext;
|
10
9
|
user: UserWithProperties;
|
11
|
-
theming:
|
10
|
+
theming: ThemeBoot;
|
12
11
|
businessProfile: BusinessProfileWithProperties;
|
13
12
|
tenant: TenantWithProperties;
|
14
13
|
appRoute: AppRouteWithProperties;
|
@@ -112,7 +111,7 @@ export interface IOmniaContext extends IMutableContext<IOmniaContext> {
|
|
112
111
|
businessProfile: IBusinessProfile;
|
113
112
|
appRoute: IAppRoute;
|
114
113
|
tenant: ITenant;
|
115
|
-
theming:
|
114
|
+
theming: Theme;
|
116
115
|
user: Promise<UserWithPropertyBag>;
|
117
116
|
tokens: OmniaTokenContext;
|
118
117
|
activatedFeatures: guid[];
|
package/Enums.tooling.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { LanguageTags, OmniaMimeType, guid } from "@omnia/fx-models";
|
2
|
-
declare const mimeTypes: Record<"c" | "x" | "map" | "s" | "rgb" | "js" | "css" | "aa" | "html" | "class" | "i" | "ins" | "tr" | "jpeg" | "jpg" | "png" | "bmp" | "gif" | "svg" | "ico" | "pdf" | "dotx" | "docx" | "doc" | "dot" | "pptx" | "potx" | "ppt" | "pot" | "xlsx" | "xltx" | "xls" | "xlt" | "ms" | "dir" | "cd" | "cc" | "cab" | "cdf" | "def" | "user" | "filters" | "settings" | "src" | "one" | "
|
2
|
+
declare const mimeTypes: Record<"c" | "x" | "map" | "s" | "z" | "rgb" | "js" | "css" | "aa" | "html" | "class" | "i" | "ins" | "tr" | "jpeg" | "jpg" | "png" | "bmp" | "gif" | "svg" | "ico" | "pdf" | "dotx" | "docx" | "doc" | "dot" | "pptx" | "potx" | "ppt" | "pot" | "xlsx" | "xltx" | "xls" | "xlt" | "ms" | "dir" | "cd" | "cc" | "cab" | "cdf" | "def" | "user" | "filters" | "settings" | "src" | "one" | "ac3" | "323" | "caf" | "fdf" | "group" | "atom" | "rtf" | "3g2" | "3gp" | "3gp2" | "3gpp" | "7z" | "AAC" | "aaf" | "aax" | "aca" | "accda" | "accdb" | "accdc" | "accde" | "accdr" | "accdt" | "accdw" | "accft" | "acx" | "AddIn" | "ade" | "adobebridge" | "adp" | "ADT" | "ADTS" | "afm" | "ai" | "aif" | "aifc" | "aiff" | "air" | "amc" | "application" | "art" | "asa" | "asax" | "ascx" | "asd" | "asf" | "ashx" | "asi" | "asm" | "asmx" | "aspx" | "asr" | "asx" | "au" | "avi" | "axs" | "bas" | "bcpio" | "bin" | "calx" | "cat" | "cdda" | "cer" | "chm" | "clp" | "cmx" | "cnf" | "cod" | "config" | "contact" | "coverage" | "cpio" | "cpp" | "crd" | "crl" | "crt" | "cs" | "csdproj" | "csh" | "csproj" | "csv" | "cur" | "cxx" | "dat" | "datasource" | "dbproj" | "dcr" | "deploy" | "der" | "dgml" | "dib" | "dif" | "disco" | "dll" | "dll.config" | "dlm" | "docm" | "dotm" | "dsp" | "dsw" | "dtd" | "dtsConfig" | "dv" | "dvi" | "dwf" | "dwp" | "dxr" | "eml" | "emz" | "eot" | "eps" | "etl" | "etx" | "evy" | "exe" | "exe.config" | "fif" | "fla" | "flr" | "flv" | "fsscript" | "fsx" | "generictest" | "gsm" | "gtar" | "gz" | "h" | "hdf" | "hdml" | "hhc" | "hhk" | "hhp" | "hlp" | "hpp" | "hqx" | "hta" | "htc" | "htm" | "htt" | "hxa" | "hxc" | "hxd" | "hxe" | "hxf" | "hxh" | "hxi" | "hxk" | "hxq" | "hxr" | "hxs" | "hxt" | "hxv" | "hxw" | "hxx" | "ics" | "idl" | "ief" | "iii" | "inc" | "inf" | "inl" | "ipa" | "ipg" | "ipproj" | "ipsw" | "iqy" | "isp" | "ite" | "itlp" | "itms" | "itpc" | "IVF" | "jar" | "java" | "jck" | "jcz" | "jfif" | "jnlp" | "jpb" | "jpe" | "jsx" | "jsxbin" | "latex" | "library-ms" | "lit" | "loadtest" | "lpk" | "lsf" | "lst" | "lsx" | "lzh" | "m13" | "m14" | "m1v" | "m2t" | "m2ts" | "m2v" | "m3u" | "m3u8" | "m4a" | "m4b" | "m4p" | "m4r" | "m4v" | "mac" | "mak" | "man" | "manifest" | "master" | "mda" | "mdb" | "mde" | "mdp" | "me" | "mfp" | "mht" | "mhtml" | "mid" | "midi" | "mix" | "mk" | "mmf" | "mno" | "mny" | "mod" | "mov" | "movie" | "mp2" | "mp2v" | "mp3" | "mp4" | "mp4v" | "mpa" | "mpe" | "mpeg" | "mpf" | "mpg" | "mpp" | "mpv2" | "mqv" | "msi" | "mso" | "mts" | "mtx" | "mvb" | "mvc" | "mxp" | "nc" | "nsc" | "nws" | "ocx" | "oda" | "odc" | "odh" | "odl" | "odp" | "ods" | "odt" | "onea" | "onepkg" | "onetmp" | "onetoc" | "onetoc2" | "orderedtest" | "osdx" | "p10" | "p12" | "p7b" | "p7c" | "p7m" | "p7r" | "p7s" | "pbm" | "pcast" | "pct" | "pcx" | "pcz" | "pfb" | "pfm" | "pfx" | "pgm" | "pic" | "pict" | "pkgdef" | "pkgundef" | "pko" | "pls" | "pma" | "pmc" | "pml" | "pmr" | "pmw" | "pnm" | "pnt" | "pntg" | "pnz" | "potm" | "ppa" | "ppam" | "ppm" | "pps" | "ppsm" | "ppsx" | "pptm" | "prf" | "prm" | "prx" | "ps" | "psc1" | "psd" | "psess" | "psm" | "psp" | "pub" | "pwz" | "qht" | "qhtm" | "qt" | "qti" | "qtif" | "qtl" | "qxd" | "ra" | "ram" | "rar" | "ras" | "rat" | "rc" | "rc2" | "rct" | "rdlc" | "resx" | "rf" | "rgs" | "rm" | "rmi" | "rmp" | "roff" | "rpm" | "rqy" | "rtx" | "ruleset" | "safariextz" | "scd" | "sct" | "sd2" | "sdp" | "sea" | "searchConnector-ms" | "setpay" | "setreg" | "sgimb" | "sgml" | "sh" | "shar" | "shtml" | "sit" | "sitemap" | "skin" | "sldm" | "sldx" | "slk" | "sln" | "slupkg-ms" | "smd" | "smi" | "smx" | "smz" | "snd" | "snippet" | "snp" | "sol" | "sor" | "spc" | "spl" | "srf" | "SSISDeploymentManifest" | "ssm" | "sst" | "stl" | "sv4cpio" | "sv4crc" | "svc" | "swf" | "t" | "tar" | "tcl" | "testrunconfig" | "testsettings" | "tex" | "texi" | "texinfo" | "tgz" | "thmx" | "thn" | "tif" | "tiff" | "tlh" | "tli" | "toc" | "trm" | "trx" | "ts" | "tsv" | "ttf" | "tts" | "txt" | "u32" | "uls" | "ustar" | "vb" | "vbdproj" | "vbk" | "vbproj" | "vbs" | "vcf" | "vcproj" | "vcs" | "vcxproj" | "vddproj" | "vdp" | "vdproj" | "vdx" | "vml" | "vscontent" | "vsct" | "vsd" | "vsi" | "vsix" | "vsixlangpack" | "vsixmanifest" | "vsmdi" | "vspscc" | "vss" | "vsscc" | "vssettings" | "vssscc" | "vst" | "vstemplate" | "vsto" | "vsw" | "vsx" | "vtx" | "wav" | "wave" | "wax" | "wbk" | "wbmp" | "wcm" | "wdb" | "wdp" | "webarchive" | "webtest" | "wiq" | "wiz" | "wks" | "WLMP" | "wlpginstall" | "wlpginstall3" | "wm" | "wma" | "wmd" | "wmf" | "wml" | "wmlc" | "wmls" | "wmlsc" | "wmp" | "wmv" | "wmx" | "wmz" | "wpl" | "wps" | "wri" | "wrl" | "wrz" | "wsc" | "wsdl" | "wvx" | "xaf" | "xaml" | "xap" | "xbap" | "xbm" | "xdr" | "xht" | "xhtml" | "xla" | "xlam" | "xlc" | "xld" | "xlk" | "xll" | "xlm" | "xlsb" | "xlsm" | "xltm" | "xlw" | "xml" | "xmta" | "xof" | "XOML" | "xpm" | "xps" | "xrm-ms" | "xsc" | "xsd" | "xsf" | "xsl" | "xslt" | "xsn" | "xss" | "xtp" | "xwd" | "zip" | "woff" | "woff2", OmniaMimeType>;
|
3
3
|
declare const languageTags: Record<"ArSa" | "BgBg" | "CaEs" | "ZhTw" | "CsCz" | "DaDk" | "DeDe" | "ElGr" | "EnUs" | "FiFi" | "FrFr" | "HeIl" | "HuHu" | "IsIs" | "ItIt" | "JaJp" | "KoKr" | "NlNl" | "NbNo" | "PlPl" | "PtBr" | "RoRo" | "RuRu" | "HrHr" | "SkSk" | "SqAl" | "SvSe" | "ThTh" | "TrTr" | "UrPk" | "IdId" | "UkUa" | "BeBy" | "SlSi" | "EtEe" | "LvLv" | "LtLt" | "FaIr" | "ViVn" | "HyAm" | "EuEs" | "MkMk" | "AfZa" | "KaGe" | "FoFo" | "HiIn" | "MsMy" | "KkKz" | "KyKg" | "SwKe" | "TtRu" | "PaIn" | "GuIn" | "TaIn" | "TeIn" | "KnIn" | "MrIn" | "SaIn" | "MnMn" | "GlEs" | "DvMv" | "ArIq" | "ZhCn" | "DeCh" | "EnGb" | "EsMx" | "FrBe" | "ItCh" | "NlBe" | "NnNo" | "PtPt" | "SvFi" | "MsBn" | "ArEg" | "ZhHk" | "DeAt" | "EnAu" | "EnEs" | "FrCa" | "ArLy" | "ZhSg" | "DeLu" | "EnCa" | "EsGt" | "FrCh" | "ArDz" | "ZhMo" | "DeLi" | "EnNz" | "EsCr" | "FrLu" | "ArMa" | "EnIe" | "EsPa" | "FrMc" | "ArTn" | "EnZa" | "EsDo" | "ArOm" | "EnJm" | "EsVe" | "ArYe" | "EsCo" | "ArSy" | "EnBz" | "EsPe" | "ArJo" | "EnTt" | "EsAr" | "ArLb" | "EnZw" | "EsEc" | "EsEs" | "ArKw" | "EnPh" | "EsCl" | "ArAe" | "EsUy" | "ArBh" | "EsPy" | "ArQa" | "EsBo" | "EsSv" | "EsHn" | "EsPr" | "ZuZa" | "XhZa" | "FyNl" | "TnZa" | "SeSe" | "SeFi" | "CyGb" | "HrBa" | "MiNz" | "GaIe" | "RmCh" | "LbLu" | "NsZa" | "SeNo" | "MtMt", LanguageTags>;
|
4
4
|
declare const omniaGroupManifests: Record<"Fx" | "FxConsole" | "FxUxCommonComponents" | "FxUxCommonOxides" | "FxUxRichTextEditor" | "Header" | "ChromeGroup" | "LayoutCanvasGroup", guid>;
|
5
5
|
declare const omniaResourceManifests: Record<"VelcronCore" | "VelcronSetup" | "FxServiceWorker" | "SplitPaneLib" | "ProsemirrorPackage" | "AuthSetupCore" | "LayoutCanvasShared" | "AwesomeProFont" | "FxUxVuetifyShared" | "DynamicPlaceholderApis" | "AppPlaceHolderApis" | "FxUxVuetifyCommon" | "FxUxMonacoEditor" | "FxUxAutocomplete" | "ClientBoot" | "FxUxVuetifyBottomnav" | "ConsoleCommands" | "FxUxVRating" | "FxUxVuetifyHover" | "FxUxVuetifyStepper" | "FxUxVuetifyColorPicker" | "FxUxVuetifyCombobox" | "FxUxVuetifySlider" | "FxUxVuetifyChip" | "FxUxVuetifyDatatable" | "FxUxVuetifyDatePicker" | "FxUxVuetifyTimePicker" | "FxUxVuetifySnackbar" | "FxUxVuetifyPagination" | "FxUxVuetifyTimeline" | "FxUxVuetifyFooter" | "FxUxVuetifyCalendar" | "FxUxVuetifyVirtualScroll" | "FxUxVuetifyAlert" | "FxContexts" | "FxCoreBoot" | "FxCore" | "FxShared" | "FxWorkersBootstrapper" | "OmniaHubWorker" | "FxWorkers" | "Fx" | "FxSpContexts" | "FxUxVuetifyTextinput" | "FxUxVuetifyNumberinput" | "FxUxVuetifySelect" | "FxUxVuetifyTextarea" | "LocalhostingCommands" | "FxUxVuetifyBreadcrumbs" | "FxUxVuetifySelection" | "FxSp" | "FxSpfx" | "SpfxCustomizer" | "SpfxWebpart" | "FxUxVuetifySwitch" | "FxUx" | "FxUxEditor" | "FxUxAdmin" | "FxUxAdminTokenRouter" | "FxUxLibs" | "FxUxVDialog" | "FxUxVuetifyAvatar" | "FxUxVTreeView" | "FxUxVSpeedial" | "FxUxVMenu" | "Vendor" | "PhoneNumberLib" | "FxTenantLanguage" | "FxUxAppProvisioningShared" | "FxUxRichTextEditorExtension" | "MicrosoftTeamsSDK" | "MicrosoftTeamsSDKLoader" | "TeamsSSOScript" | "MediaPickerProviderRegistration" | "FxUxRichTextEditorCore" | "ActionApi" | "ActionHandlerEvents" | "LikeTopicIdProviderRegistration" | "LinkHandlerRegistration" | "EnterpriseGlossaryRegistrationApi" | "AppProvisioningValidatorApi" | "SidePanelRegistrationApi" | "GraphClientRegistrationApi" | "SharepointClientRegistrationApi" | "FilterEngineRegistrationApi" | "TaxonomyFilterEngineRegistrationApi" | "EnterpriseKeywordsFilterEngineRegistrationApi" | "ExtendedTaxonomyFilterEngineRegistrationApi" | "PersonFilterEngineRegistrationApi" | "TagsFilterEngineRegistrationApi" | "BooleanFilterEngineRegistrationApi" | "TextFilterEngineRegistrationApi" | "NumberFilterEngineRegistrationApi" | "DateTimeFilterEngineRegistrationApi" | "ExtendedIdentityFilterEngineRegistrationApi" | "ExtendedBooleanFilterEngineRegistrationApi" | "ExtendedTextFilterEngineRegistrationApi" | "ExtendedIntegerFilterEngineRegistrationApi" | "ExtendedDateTimeFilterEngineRegistrationApi" | "ExtendedDateFilterEngineRegistrationApi" | "ExtendedEmailFilterEngineRegistrationApi" | "ExtendedHtmlFilterEngineRegistrationApi" | "ExtendedLinkFilterEngineRegistrationApi" | "ExtendedMultilineTextFilterEngineRegistrationApi" | "ExtendedMultilingualTextFilterEngineRegistrationApi" | "ExtendedPhoneNumberFilterEngineRegistrationApi" | "ExtendedBirthdayFilterEngineRegistrationApi" | "AppInstanceRollupViewRegistrationApi" | "AppInstanceRollupViewBase" | "UserProfileActionHandlerApi" | "AppInstanceTokenProvider" | "AppPropertiesProvider" | "FxUxEnterprisePropertiesDataSourceApi" | "FxUxPropertiesProviderApi" | "UserPropertiesProvider" | "UserPropertiesByMicrosoftGraphProvider" | "UserPropertiesBySharePointProvider" | "FxUxPropertyDataSourceApi" | "IdentityPropertyApi" | "BuiltinExtendedPropertiesRegistration" | "FxUxCommentDialog" | "FeaturesActivation" | "FxUxFilterEngineCore" | "FxUxBooleanFilterEngineCore" | "FxUxDateFilterEngineCore" | "FxUxNumberFilterEngineCore" | "FxUxPersonFilterEngineCore" | "FxUxTextFilterEngineCore" | "FxUxTaxonomyFilterEngineCore" | "IdentitySyncProviderApi" | "BuiltinSyncProvidersRegistration" | "SharePointIntegrationExternalMapping" | "TextCompletionTenantFeature" | "DallESecretComponent" | "DallESecretRegistrations" | "DallELocalization" | "DallETenantFeature" | "DallEMediaProviderFeature" | "DefaultNotFoundLayout" | "DefaultUnauthorizedLayout" | "StatusCodeLayoutRegistration" | "BuiltinPropertyBindingProviders" | "ExtendedEnterprisePropertyBindingProvider" | "BusinessProfilePropertyBindingProvider" | "UserPropertyBindingProvider" | "MagicLinkCore" | "AdminSystemCore" | "ScopedPermissionApi" | "SecretsCore" | "BusinessProfilesCore" | "BusinessProfileAdminLanguage" | "TenantAdminMediaPickerRegistrations" | "TenantGeneralSettingsRegistration" | "TenantRegionalRegistrations" | "TenantAdminSettingsCore" | "SystemLayoutRegistration" | "SystemLayoutResource" | "BusinessProfileApi" | "AppSettingsCore" | "UserManagementApi", guid>;
|
package/Exposes.d.ts
CHANGED
@@ -13,7 +13,6 @@ export * from "./Button";
|
|
13
13
|
export * from "./ChromeLayoutDefinition";
|
14
14
|
export * from "./ClientManifests";
|
15
15
|
export * from "./Clipboard";
|
16
|
-
export * from "./Color";
|
17
16
|
export * from "./CommentLike";
|
18
17
|
export type { WebComponentDefinition } from "./ComponentComposer";
|
19
18
|
export * from "./Configuration";
|
@@ -89,8 +88,7 @@ export * from "./TargetingProperty";
|
|
89
88
|
export * from "./TargetingPropertyArchive";
|
90
89
|
export * from "./Tenant";
|
91
90
|
export * from "./TenantContact";
|
92
|
-
export * from "./
|
93
|
-
export * from "./Theming";
|
91
|
+
export * from "./Theme";
|
94
92
|
export * from "./ThemingMenuNode";
|
95
93
|
export * from "./TimePeriodSettings";
|
96
94
|
export * from "./TimeZone";
|
package/Exposes.js
CHANGED
@@ -20,7 +20,6 @@ tslib_1.__exportStar(require("./Button"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./ChromeLayoutDefinition"), exports);
|
21
21
|
tslib_1.__exportStar(require("./ClientManifests"), exports);
|
22
22
|
tslib_1.__exportStar(require("./Clipboard"), exports);
|
23
|
-
tslib_1.__exportStar(require("./Color"), exports);
|
24
23
|
tslib_1.__exportStar(require("./CommentLike"), exports);
|
25
24
|
tslib_1.__exportStar(require("./Configuration"), exports);
|
26
25
|
tslib_1.__exportStar(require("./ConfigurationComposer"), exports);
|
@@ -95,8 +94,7 @@ tslib_1.__exportStar(require("./TargetingProperty"), exports);
|
|
95
94
|
tslib_1.__exportStar(require("./TargetingPropertyArchive"), exports);
|
96
95
|
tslib_1.__exportStar(require("./Tenant"), exports);
|
97
96
|
tslib_1.__exportStar(require("./TenantContact"), exports);
|
98
|
-
tslib_1.__exportStar(require("./
|
99
|
-
tslib_1.__exportStar(require("./Theming"), exports);
|
97
|
+
tslib_1.__exportStar(require("./Theme"), exports);
|
100
98
|
tslib_1.__exportStar(require("./ThemingMenuNode"), exports);
|
101
99
|
tslib_1.__exportStar(require("./TimePeriodSettings"), exports);
|
102
100
|
tslib_1.__exportStar(require("./TimeZone"), exports);
|
package/Layout.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TitleRendererValue, MultilingualString,
|
1
|
+
import { TitleRendererValue, MultilingualString, LegacyThemeDefinition, IIcon, Spacing, IconPickerModel, WebComponentDefinition, OmniaBlock, guid, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, HorizontalAlignments, SpacingValue, ColorValue, VerticalAlignments, ContainerVariant, ContainerBlueprint, ColorSchemaTypes, ColorSchema, ChromeBlueprint, BlueprintVariant, TabsBlueprint } from ".";
|
2
2
|
import { MessageBusTopicMediator } from "../";
|
3
3
|
import { TargetingFilterProperty } from "../sp";
|
4
4
|
import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
|
@@ -47,8 +47,8 @@ export interface LayoutSettings extends LayoutItemSettings {
|
|
47
47
|
minWidthBlock?: string;
|
48
48
|
useCustomBlockTheme: boolean;
|
49
49
|
useCustomLayoutTheme: boolean;
|
50
|
-
themeDefinitionBlock?:
|
51
|
-
themeDefinitionLayout?:
|
50
|
+
themeDefinitionBlock?: LegacyThemeDefinition;
|
51
|
+
themeDefinitionLayout?: LegacyThemeDefinition;
|
52
52
|
blockTitleSettings: BlockTitleSettings;
|
53
53
|
useCustomBlockTitle: boolean;
|
54
54
|
middleAlignVertical: boolean;
|
@@ -157,7 +157,7 @@ export interface SectionSettings extends LayoutItemSettings {
|
|
157
157
|
useFullSpace: boolean;
|
158
158
|
icon: IIcon;
|
159
159
|
useCustomTheme: boolean;
|
160
|
-
themeDefinition:
|
160
|
+
themeDefinition: LegacyThemeDefinition;
|
161
161
|
hidden?: boolean;
|
162
162
|
disableLazyLoad?: boolean;
|
163
163
|
}
|
@@ -279,9 +279,9 @@ export interface StyleItemSettings {
|
|
279
279
|
export interface TargetingItemSettings {
|
280
280
|
targetingFilterProperties: TargetingFilterProperty;
|
281
281
|
}
|
282
|
-
export interface
|
282
|
+
export interface ThemeItemSettings {
|
283
283
|
useCustomTheme: boolean;
|
284
|
-
themeDefinition:
|
284
|
+
themeDefinition: LegacyThemeDefinition;
|
285
285
|
}
|
286
286
|
export interface CssItemSettings {
|
287
287
|
css: string;
|
@@ -294,7 +294,7 @@ export interface BlockLockSettings {
|
|
294
294
|
lockedByDefault: boolean;
|
295
295
|
lockCanBeEdited: boolean;
|
296
296
|
}
|
297
|
-
export interface BlockLayoutSettings extends LayoutItemSettings, HeaderItemSettings, SpacingItemSettings, StyleItemSettings, TargetingItemSettings,
|
297
|
+
export interface BlockLayoutSettings extends LayoutItemSettings, HeaderItemSettings, SpacingItemSettings, StyleItemSettings, TargetingItemSettings, ThemeItemSettings, CssItemSettings {
|
298
298
|
hidden: boolean;
|
299
299
|
search?: SearchValue;
|
300
300
|
lockSettings?: BlockLockSettings;
|
@@ -472,7 +472,7 @@ export interface LayoutEditorCanvasStore extends ILayoutCanvasStore {
|
|
472
472
|
setCanvasMode: (mode: LayoutCanvasModes) => void;
|
473
473
|
setLayout: (layout: Layout) => void;
|
474
474
|
createNewLayout: () => void;
|
475
|
-
setTheme: (layoutThemeDefinition:
|
475
|
+
setTheme: (layoutThemeDefinition: LegacyThemeDefinition, blockThemeDefinition: LegacyThemeDefinition) => void;
|
476
476
|
setLayoutBackgroundImageElementId: (elementId: string) => void;
|
477
477
|
setPreviewUrl: (url: string) => void;
|
478
478
|
setEditorMode: (mode: LayoutEditorModes) => void;
|
@@ -504,7 +504,7 @@ export interface ILayoutCanvasStore {
|
|
504
504
|
zoomIn: () => void;
|
505
505
|
setWidth: (width: string) => void;
|
506
506
|
setLayout: (layout: Layout) => void;
|
507
|
-
setTheme: (layoutThemeDefinition:
|
507
|
+
setTheme: (layoutThemeDefinition: LegacyThemeDefinition, blockThemeDefinition: LegacyThemeDefinition) => void;
|
508
508
|
setLayoutBackgroundImageElementId: (elementId: string) => void;
|
509
509
|
setCanvasMode: (mode: LayoutCanvasModes) => void;
|
510
510
|
setEditorMode: (mode: LayoutEditorModes) => void;
|
package/Tenant.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { OmniaNamedModel, IOmniaPropertyBag } from "./NamedProperty";
|
2
|
-
import { TenantIdentifier,
|
2
|
+
import { TenantIdentifier, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { TimeFormats } from "./Enums";
|
4
4
|
import { LanguageSettings } from "./Language";
|
5
5
|
import { MultilingualString } from "./MultilingualString";
|
6
|
+
import { ThemeSelection } from "../shared";
|
6
7
|
export interface ITenant extends TenantIdentifier {
|
7
8
|
readonly propertyBag: IOmniaPropertyBag<TenantProperty>;
|
8
9
|
readonly properties: Array<TenantProperty>;
|
@@ -22,7 +23,7 @@ export declare class TenantLanguageSettings extends TenantProperty {
|
|
22
23
|
excludeCountry?: boolean;
|
23
24
|
constructor();
|
24
25
|
}
|
25
|
-
export declare class
|
26
|
+
export declare class TenantThemeManager extends TenantProperty {
|
26
27
|
constructor();
|
27
28
|
selected: ThemeSelection;
|
28
29
|
}
|
package/Tenant.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.
|
3
|
+
exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantThemeManager = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
|
4
4
|
const ManifestIds_1 = require("./ManifestIds");
|
5
5
|
const NamedProperty_1 = require("./NamedProperty");
|
6
6
|
class TenantProperty extends NamedProperty_1.OmniaNamedModel {
|
@@ -18,12 +18,12 @@ class TenantLanguageSettings extends TenantProperty {
|
|
18
18
|
}
|
19
19
|
}
|
20
20
|
exports.TenantLanguageSettings = TenantLanguageSettings;
|
21
|
-
class
|
21
|
+
class TenantThemeManager extends TenantProperty {
|
22
22
|
constructor() {
|
23
23
|
super(ManifestIds_1.OmniaService.Id, "themingManager");
|
24
24
|
}
|
25
25
|
}
|
26
|
-
exports.
|
26
|
+
exports.TenantThemeManager = TenantThemeManager;
|
27
27
|
class TenantCSOMClientContextFallbackUrl extends TenantProperty {
|
28
28
|
constructor() {
|
29
29
|
super(ManifestIds_1.OmniaService.Id, "csomclientcontextfallbackurl");
|
package/apps/App.d.ts
CHANGED
@@ -268,7 +268,7 @@ export interface AppInstanceActionProgressResult {
|
|
268
268
|
message: string;
|
269
269
|
percentage: number;
|
270
270
|
}
|
271
|
-
export declare class
|
271
|
+
export declare class AppThemeManager extends AppRoutePropertyBagModel {
|
272
272
|
constructor();
|
273
273
|
selected: ThemeSelection;
|
274
274
|
}
|
package/apps/App.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.AppThemeManager = exports.ShowInPublicListingsMode = exports.UserAppTemplateAvailabilityOptions = void 0;
|
4
4
|
const ManifestIds_1 = require("../ManifestIds");
|
5
5
|
const Routing_1 = require("../Routing");
|
6
6
|
var UserAppTemplateAvailabilityOptions;
|
@@ -15,9 +15,9 @@ var ShowInPublicListingsMode;
|
|
15
15
|
ShowInPublicListingsMode[ShowInPublicListingsMode["PublicToProfileViewer"] = 1] = "PublicToProfileViewer";
|
16
16
|
ShowInPublicListingsMode[ShowInPublicListingsMode["PublicToAppViewer"] = 2] = "PublicToAppViewer";
|
17
17
|
})(ShowInPublicListingsMode || (exports.ShowInPublicListingsMode = ShowInPublicListingsMode = {}));
|
18
|
-
class
|
18
|
+
class AppThemeManager extends Routing_1.AppRoutePropertyBagModel {
|
19
19
|
constructor() {
|
20
20
|
super(ManifestIds_1.OmniaService.Id, "themingManager");
|
21
21
|
}
|
22
22
|
}
|
23
|
-
exports.
|
23
|
+
exports.AppThemeManager = AppThemeManager;
|
@@ -14,7 +14,7 @@ export * from "./OmniaSharedBootstrapData";
|
|
14
14
|
export * from "./StringExtensions";
|
15
15
|
export * from "./DynamicState";
|
16
16
|
export * from "./Id";
|
17
|
-
export * from "./
|
17
|
+
export * from "./theme";
|
18
18
|
export * from "./hub";
|
19
19
|
export * from "./velcron";
|
20
20
|
export * from "./DependencyInjection";
|
@@ -18,7 +18,7 @@ tslib_1.__exportStar(require("./OmniaSharedBootstrapData"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./StringExtensions"), exports);
|
19
19
|
tslib_1.__exportStar(require("./DynamicState"), exports);
|
20
20
|
tslib_1.__exportStar(require("./Id"), exports);
|
21
|
-
tslib_1.__exportStar(require("./
|
21
|
+
tslib_1.__exportStar(require("./theme"), exports);
|
22
22
|
tslib_1.__exportStar(require("./hub"), exports);
|
23
23
|
tslib_1.__exportStar(require("./velcron"), exports);
|
24
24
|
tslib_1.__exportStar(require("./DependencyInjection"), exports);
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, FillDefinitionValue } from "./
|
1
|
+
import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, FillDefinitionValue } from "./ThemeDefinition";
|
2
2
|
import { SpacingDefinition, Spacing } from "./Spacing";
|
3
3
|
import { TypographyFontDefinition, TypographyValue } from "./Typography";
|
4
4
|
import { TypographyBlueprint } from "./Typography";
|
5
|
-
import {
|
5
|
+
import { ThemeBase } from "./ThemeBase";
|
6
6
|
import { VelcronAppDefinition, VelcronRendererResolverReference } from "../velcron";
|
7
7
|
import { guid } from "../Guid";
|
8
8
|
export interface BoxDimensions extends Spacing {
|
@@ -28,13 +28,13 @@ export interface ContainerBlueprint extends Blueprints, BlueprintsReference {
|
|
28
28
|
name?: string;
|
29
29
|
background?: BackgroundDefinition;
|
30
30
|
}
|
31
|
-
export interface TypographyBlueprints extends
|
31
|
+
export interface TypographyBlueprints extends ThemeBase {
|
32
32
|
primary: TypographyBlueprint;
|
33
33
|
}
|
34
34
|
export interface IFontBlueprints extends Blueprints, BlueprintsReference {
|
35
35
|
fonts: Array<TypographyFontDefinition>;
|
36
36
|
}
|
37
|
-
export interface SpacingBlueprints extends
|
37
|
+
export interface SpacingBlueprints extends ThemeBase {
|
38
38
|
primary: SpacingBlueprint;
|
39
39
|
}
|
40
40
|
export interface ChromeBlueprint {
|
@@ -49,7 +49,7 @@ export interface ChromeBlueprint {
|
|
49
49
|
spacing?: Spacing;
|
50
50
|
};
|
51
51
|
}
|
52
|
-
export interface ComponentBlueprints extends
|
52
|
+
export interface ComponentBlueprints extends ThemeBase {
|
53
53
|
buttons?: ButtonBlueprints;
|
54
54
|
tabs?: TabsBlueprints;
|
55
55
|
blocks?: ChromeBlueprints;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { guid } from "../Guid";
|
2
|
+
export interface LegacyThemeDefinition {
|
3
|
+
id: guid;
|
4
|
+
name: string;
|
5
|
+
readOnly: boolean;
|
6
|
+
colors: LegacyThemeDefinitionColors;
|
7
|
+
chrome: LegacyThemeColorDefinition;
|
8
|
+
body: LegacyThemeColorDefinition;
|
9
|
+
}
|
10
|
+
export interface LegacyThemeDefinitionColors {
|
11
|
+
primary: string;
|
12
|
+
secondary: string;
|
13
|
+
}
|
14
|
+
export interface LegacyThemeColorDefinition {
|
15
|
+
bg: string;
|
16
|
+
fg: string;
|
17
|
+
text: string;
|
18
|
+
darkBg: boolean;
|
19
|
+
darkFg: boolean;
|
20
|
+
border?: LegacyBorderDefinition;
|
21
|
+
}
|
22
|
+
export interface LegacyBorderDefinition {
|
23
|
+
color: string;
|
24
|
+
width: number;
|
25
|
+
elevation: number;
|
26
|
+
radiustop: number;
|
27
|
+
radiusbottom: number;
|
28
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { guid } from "../Guid";
|
2
|
-
export interface
|
2
|
+
export interface ThemeBase {
|
3
3
|
id: guid;
|
4
|
-
type?:
|
4
|
+
type?: ThemeTypes;
|
5
5
|
name?: string;
|
6
6
|
}
|
7
|
-
export declare enum
|
7
|
+
export declare enum ThemeTypes {
|
8
8
|
Theme = 0,
|
9
9
|
ColorSchema = 1,
|
10
10
|
Typography = 2,
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ThemeTypes = void 0;
|
4
|
+
var ThemeTypes;
|
5
|
+
(function (ThemeTypes) {
|
6
|
+
ThemeTypes[ThemeTypes["Theme"] = 0] = "Theme";
|
7
|
+
ThemeTypes[ThemeTypes["ColorSchema"] = 1] = "ColorSchema";
|
8
|
+
ThemeTypes[ThemeTypes["Typography"] = 2] = "Typography";
|
9
|
+
ThemeTypes[ThemeTypes["Spacing"] = 3] = "Spacing";
|
10
|
+
ThemeTypes[ThemeTypes["Blueprints"] = 4] = "Blueprints";
|
11
|
+
ThemeTypes[ThemeTypes["Fonts"] = 5] = "Fonts";
|
12
|
+
})(ThemeTypes || (exports.ThemeTypes = ThemeTypes = {}));
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import { guid } from "../Guid";
|
2
|
+
import { Id } from "../Id";
|
2
3
|
import { BoxDimensions, ButtonBlueprint, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
|
4
|
+
import { Color } from "./Color";
|
5
|
+
import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
|
6
|
+
import { ThemeBase } from "./ThemeBase";
|
3
7
|
export type ThemeContextType = "default" | "admin" | "preview" | "color-context" | "designer";
|
4
8
|
export interface ColorTypeResult<resultType> {
|
5
9
|
base: resultType;
|
@@ -22,13 +26,6 @@ export interface ColorStyles {
|
|
22
26
|
color: object | string;
|
23
27
|
all: object | string;
|
24
28
|
}
|
25
|
-
export interface ColorSchema extends BlueprintsReference {
|
26
|
-
name: string;
|
27
|
-
base: ColorDefinition;
|
28
|
-
onBase: ColorDefinition;
|
29
|
-
container: ColorDefinition;
|
30
|
-
onContainer: ColorDefinition;
|
31
|
-
}
|
32
29
|
export interface ColorSchemas extends ColorSchemasReference {
|
33
30
|
primary: ColorSchema;
|
34
31
|
secondary: ColorSchema;
|
@@ -69,13 +66,11 @@ export interface ThemeDefinitionReference {
|
|
69
66
|
spacing: BlueprintsReference;
|
70
67
|
components: BlueprintsReference;
|
71
68
|
}
|
72
|
-
export interface
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
spacing: SpacingBlueprints;
|
78
|
-
components: ComponentBlueprints;
|
69
|
+
export interface ResolvedThemeDefinition extends ThemeBase {
|
70
|
+
colors?: ColorSchemas;
|
71
|
+
typography?: TypographyBlueprints;
|
72
|
+
spacing?: SpacingBlueprints;
|
73
|
+
components?: ComponentBlueprints;
|
79
74
|
}
|
80
75
|
export interface ThemeSelection {
|
81
76
|
adminThemeId?: guid;
|
@@ -148,6 +143,7 @@ export type BackgroundMedia = "image" | "video";
|
|
148
143
|
export interface BackgroundMediaDefinition {
|
149
144
|
type: BackgroundMedia;
|
150
145
|
src: string;
|
146
|
+
position?: string;
|
151
147
|
}
|
152
148
|
export interface FillDefinition {
|
153
149
|
colors: Array<ColorValue | ColorGradientValue>;
|
@@ -168,3 +164,110 @@ export interface BorderStylingDefinition {
|
|
168
164
|
fill?: FillDefinition;
|
169
165
|
pattern?: "solid" | "dotted" | "dashed";
|
170
166
|
}
|
167
|
+
export interface ThemeDefinitionSettings {
|
168
|
+
items: Array<LegacyThemeDefinition>;
|
169
|
+
}
|
170
|
+
export interface ThemeColors {
|
171
|
+
primary: Color;
|
172
|
+
secondary: Color;
|
173
|
+
}
|
174
|
+
export interface ThemeStyling {
|
175
|
+
bg: {
|
176
|
+
color: Color;
|
177
|
+
css: string;
|
178
|
+
dark: boolean;
|
179
|
+
};
|
180
|
+
fg: {
|
181
|
+
color: Color;
|
182
|
+
css: string;
|
183
|
+
dark: boolean;
|
184
|
+
text: {
|
185
|
+
color: Color;
|
186
|
+
css: string;
|
187
|
+
csslighter1: string;
|
188
|
+
csslighter2: string;
|
189
|
+
csslighter3: string;
|
190
|
+
csslighter4: string;
|
191
|
+
csslighter5: string;
|
192
|
+
csslighter6: string;
|
193
|
+
};
|
194
|
+
};
|
195
|
+
text: {
|
196
|
+
color: Color;
|
197
|
+
css: string;
|
198
|
+
csslighter1: string;
|
199
|
+
csslighter2: string;
|
200
|
+
csslighter3: string;
|
201
|
+
csslighter4: string;
|
202
|
+
csslighter5: string;
|
203
|
+
csslighter6: string;
|
204
|
+
};
|
205
|
+
components: {
|
206
|
+
color: Color;
|
207
|
+
text: {
|
208
|
+
color: Color;
|
209
|
+
};
|
210
|
+
expansionPanel: {
|
211
|
+
css: string;
|
212
|
+
};
|
213
|
+
skeletonLoader: {
|
214
|
+
css: string;
|
215
|
+
};
|
216
|
+
slider: {
|
217
|
+
color: string;
|
218
|
+
trackColor: string;
|
219
|
+
};
|
220
|
+
tabs: {
|
221
|
+
css: string;
|
222
|
+
};
|
223
|
+
};
|
224
|
+
border: LegacyBorderDefinition;
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
*Theme Definition
|
228
|
+
*
|
229
|
+
*/
|
230
|
+
export interface ThemeTargetRegistration {
|
231
|
+
id: guid;
|
232
|
+
title: string;
|
233
|
+
defaultThemeDefinitionId: guid;
|
234
|
+
defaultAccessibilityDefinitionId: guid;
|
235
|
+
}
|
236
|
+
export interface ThemeTargetMapping {
|
237
|
+
id: guid;
|
238
|
+
targetRegistrationId: guid;
|
239
|
+
default: LegacyThemeDefinition;
|
240
|
+
accessibility?: LegacyThemeDefinition;
|
241
|
+
}
|
242
|
+
export type ColorSchemaId = Id<guid, "ColorSchemaId">;
|
243
|
+
export declare function ColorSchemaId(id: guid): ColorSchemaId;
|
244
|
+
export type ThemeDefinitionId = Id<guid, "ThemeDefinitionId">;
|
245
|
+
export declare function ThemeDefinitionId(id: guid): ThemeDefinitionId;
|
246
|
+
export interface ColorSchemasReferenceId {
|
247
|
+
primaryId: ColorSchemaId;
|
248
|
+
secondaryId: ColorSchemaId;
|
249
|
+
accent1Id: ColorSchemaId;
|
250
|
+
accent2Id: ColorSchemaId;
|
251
|
+
accent3Id: ColorSchemaId;
|
252
|
+
accent4Id: ColorSchemaId;
|
253
|
+
accent5Id: ColorSchemaId;
|
254
|
+
neutralId: ColorSchemaId;
|
255
|
+
backgroundId: ColorSchemaId;
|
256
|
+
errorId: ColorSchemaId;
|
257
|
+
infoId: ColorSchemaId;
|
258
|
+
warningId: ColorSchemaId;
|
259
|
+
successId: ColorSchemaId;
|
260
|
+
notificationId: ColorSchemaId;
|
261
|
+
}
|
262
|
+
export interface ThemeDefinition extends ThemeBase {
|
263
|
+
colors?: ColorSchemasReferenceId;
|
264
|
+
typographyId?: ThemeDefinitionId;
|
265
|
+
spacingId?: ThemeDefinitionId;
|
266
|
+
componentsId?: ThemeDefinitionId;
|
267
|
+
}
|
268
|
+
export interface ColorSchema extends ThemeBase {
|
269
|
+
base: ColorDefinition;
|
270
|
+
onBase: ColorDefinition;
|
271
|
+
container: ColorDefinition;
|
272
|
+
onContainer: ColorDefinition;
|
273
|
+
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RadialGradientShapes = exports.ColorTypes = exports.ColorSchemaTypes = void 0;
|
4
|
+
exports.ColorSchemaId = ColorSchemaId;
|
5
|
+
exports.ThemeDefinitionId = ThemeDefinitionId;
|
4
6
|
var ColorSchemaTypes;
|
5
7
|
(function (ColorSchemaTypes) {
|
6
8
|
ColorSchemaTypes["primary"] = "primary";
|
@@ -31,3 +33,5 @@ var RadialGradientShapes;
|
|
31
33
|
RadialGradientShapes[RadialGradientShapes["circle"] = 0] = "circle";
|
32
34
|
RadialGradientShapes[RadialGradientShapes["ellipse"] = 1] = "ellipse";
|
33
35
|
})(RadialGradientShapes || (exports.RadialGradientShapes = RadialGradientShapes = {}));
|
36
|
+
function ColorSchemaId(id) { return id; }
|
37
|
+
function ThemeDefinitionId(id) { return id; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { guid } from "../Guid";
|
2
|
-
import { FillDefinition } from "./
|
3
|
-
import {
|
4
|
-
export interface
|
2
|
+
import { FillDefinition } from "./ThemeDefinition";
|
3
|
+
import { ThemeBase } from "./ThemeBase";
|
4
|
+
export interface TypographyFontDefinition extends ThemeBase {
|
5
5
|
family: string;
|
6
6
|
cdn?: string;
|
7
7
|
manifestId?: guid;
|
@@ -68,13 +68,6 @@ export interface TypographyTypeBreakPoint {
|
|
68
68
|
lineHeight: number;
|
69
69
|
letterSpacing?: number;
|
70
70
|
}
|
71
|
-
export interface TypographyFontDefinition {
|
72
|
-
id?: guid;
|
73
|
-
name?: string;
|
74
|
-
family: string;
|
75
|
-
cdn?: string;
|
76
|
-
manifestId?: guid;
|
77
|
-
}
|
78
71
|
export interface TypographyFontRef {
|
79
72
|
family: string;
|
80
73
|
}
|
package/internal-do-not-import-from-here/shared/models/{theming → theme}/UseThemeMethods.d.ts
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ContainerBlueprint, ContainerVariant } from "./Blueprints";
|
2
|
-
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./
|
2
|
+
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinition";
|
3
3
|
export declare function useThemeMethods(getThemeDefinition: () => any): {
|
4
4
|
containerBlueprint: (type: ContainerVariant | ContainerBlueprint | string) => any;
|
5
5
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => ColorSchema;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.useThemeMethods = useThemeMethods;
|
4
|
-
const
|
4
|
+
const ThemeDefinition_1 = require("./ThemeDefinition");
|
5
5
|
// temp change ThemeDefinitionInstance to any because fx/shared can't reference higher level fx/ux
|
6
6
|
function useThemeMethods(getThemeDefinition) {
|
7
7
|
function containerBlueprint(type) {
|
@@ -23,85 +23,85 @@ function useThemeMethods(getThemeDefinition) {
|
|
23
23
|
return null;
|
24
24
|
}
|
25
25
|
function colorSchema(colorSchemaType) {
|
26
|
-
if (colorSchemaType ===
|
26
|
+
if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.primary) {
|
27
27
|
return getThemeDefinition().colors.primary;
|
28
28
|
}
|
29
|
-
else if (colorSchemaType ===
|
29
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.secondary) {
|
30
30
|
return getThemeDefinition().colors.secondary;
|
31
31
|
}
|
32
|
-
else if (colorSchemaType ===
|
32
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent1) {
|
33
33
|
return getThemeDefinition().colors.accent1;
|
34
34
|
}
|
35
|
-
else if (colorSchemaType ===
|
35
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent2) {
|
36
36
|
return getThemeDefinition().colors.accent2;
|
37
37
|
}
|
38
|
-
else if (colorSchemaType ===
|
38
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent3) {
|
39
39
|
return getThemeDefinition().colors.accent3;
|
40
40
|
}
|
41
|
-
else if (colorSchemaType ===
|
41
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent4) {
|
42
42
|
return getThemeDefinition().colors.accent4;
|
43
43
|
}
|
44
|
-
else if (colorSchemaType ===
|
44
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.accent5) {
|
45
45
|
return getThemeDefinition().colors.accent5;
|
46
46
|
}
|
47
|
-
else if (colorSchemaType ===
|
47
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.background) {
|
48
48
|
return getThemeDefinition().colors.background;
|
49
49
|
}
|
50
|
-
else if (colorSchemaType ===
|
50
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.neutral) {
|
51
51
|
return getThemeDefinition().colors.neutral;
|
52
52
|
}
|
53
|
-
else if (colorSchemaType ===
|
53
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.error) {
|
54
54
|
return getThemeDefinition().colors.error;
|
55
55
|
}
|
56
|
-
else if (colorSchemaType ===
|
56
|
+
else if (colorSchemaType === ThemeDefinition_1.ColorSchemaTypes.success) {
|
57
57
|
return getThemeDefinition().colors.success;
|
58
58
|
}
|
59
59
|
return getThemeDefinition().colors.background;
|
60
60
|
}
|
61
61
|
function color(colorSchemaType, colorType) {
|
62
62
|
const mappedColorSchema = colorSchema(colorSchemaType);
|
63
|
-
if (colorType ===
|
63
|
+
if (colorType === ThemeDefinition_1.ColorTypes.base) {
|
64
64
|
return mappedColorSchema.base.color;
|
65
65
|
}
|
66
|
-
else if (colorType ===
|
66
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.onBase) {
|
67
67
|
return mappedColorSchema.onBase.color;
|
68
68
|
}
|
69
|
-
else if (colorType ===
|
69
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.container) {
|
70
70
|
return mappedColorSchema.container.color;
|
71
71
|
}
|
72
|
-
else if (colorType ===
|
72
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.onContainer) {
|
73
73
|
return mappedColorSchema.onContainer.color;
|
74
74
|
}
|
75
75
|
return colorType;
|
76
76
|
}
|
77
77
|
function colorDefinition(colorSchemaType, colorType) {
|
78
78
|
const mappedColorSchema = colorSchema(colorSchemaType);
|
79
|
-
if (colorType ===
|
79
|
+
if (colorType === ThemeDefinition_1.ColorTypes.base) {
|
80
80
|
return mappedColorSchema.base;
|
81
81
|
}
|
82
|
-
else if (colorType ===
|
82
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.onBase) {
|
83
83
|
return mappedColorSchema.onBase;
|
84
84
|
}
|
85
|
-
else if (colorType ===
|
85
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.container) {
|
86
86
|
return mappedColorSchema.container;
|
87
87
|
}
|
88
|
-
else if (colorType ===
|
88
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.onContainer) {
|
89
89
|
return mappedColorSchema.onContainer;
|
90
90
|
}
|
91
91
|
return mappedColorSchema.base;
|
92
92
|
}
|
93
93
|
function complementaryColorType(colorType) {
|
94
|
-
if (colorType ===
|
95
|
-
return
|
94
|
+
if (colorType === ThemeDefinition_1.ColorTypes.base) {
|
95
|
+
return ThemeDefinition_1.ColorTypes.onBase;
|
96
96
|
}
|
97
|
-
else if (colorType ===
|
98
|
-
return
|
97
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.onBase) {
|
98
|
+
return ThemeDefinition_1.ColorTypes.base;
|
99
99
|
}
|
100
|
-
else if (colorType ===
|
101
|
-
return
|
100
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.container) {
|
101
|
+
return ThemeDefinition_1.ColorTypes.onContainer;
|
102
102
|
}
|
103
|
-
else if (colorType ===
|
104
|
-
return
|
103
|
+
else if (colorType === ThemeDefinition_1.ColorTypes.onContainer) {
|
104
|
+
return ThemeDefinition_1.ColorTypes.container;
|
105
105
|
}
|
106
106
|
return colorType;
|
107
107
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
export * from "./
|
2
|
-
export * from "./
|
3
|
-
export * from "./ThemingDefinitionV3";
|
1
|
+
export * from "./ThemeBase";
|
2
|
+
export * from "./ThemeDefinition";
|
4
3
|
export * from "./Typography";
|
5
4
|
export * from "./UseThemeMethods";
|
6
5
|
export * from "./Spacing";
|
@@ -8,3 +7,6 @@ export * from "./SharedBlueprintMethods";
|
|
8
7
|
export * from "./SharedColorMethods";
|
9
8
|
export * from "./Blueprints";
|
10
9
|
export * from "./useSpacingScaling";
|
10
|
+
export * from "./Color";
|
11
|
+
export * from "./ThemeBoot";
|
12
|
+
export * from "./LegacyThemeDefinition";
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./
|
5
|
-
tslib_1.__exportStar(require("./
|
6
|
-
tslib_1.__exportStar(require("./ThemingDefinitionV3"), exports);
|
4
|
+
tslib_1.__exportStar(require("./ThemeBase"), exports);
|
5
|
+
tslib_1.__exportStar(require("./ThemeDefinition"), exports);
|
7
6
|
tslib_1.__exportStar(require("./Typography"), exports);
|
8
7
|
//export * from "./OmniaThemes";
|
9
8
|
tslib_1.__exportStar(require("./UseThemeMethods"), exports);
|
@@ -12,3 +11,6 @@ tslib_1.__exportStar(require("./SharedBlueprintMethods"), exports);
|
|
12
11
|
tslib_1.__exportStar(require("./SharedColorMethods"), exports);
|
13
12
|
tslib_1.__exportStar(require("./Blueprints"), exports);
|
14
13
|
tslib_1.__exportStar(require("./useSpacingScaling"), exports);
|
14
|
+
tslib_1.__exportStar(require("./Color"), exports);
|
15
|
+
tslib_1.__exportStar(require("./ThemeBoot"), exports);
|
16
|
+
tslib_1.__exportStar(require("./LegacyThemeDefinition"), exports);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ContainerBlueprint, ContainerVariant, IFontAwesomeIcon, VelcronColorStyling, VelcronOverflowValues } from "@omnia/fx-models";
|
2
2
|
import { DynamicState } from "../DynamicState";
|
3
3
|
import { VelcronEvent, VelcronOnActiveEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPersistingStateEvent, VelcronOnSavingEvent } from "./VelcronEvents";
|
4
|
+
import { AnimationOptionsWithOverrides, VariantDefinition, Variants } from "motion";
|
4
5
|
/**
|
5
6
|
* Velcron definition base
|
6
7
|
*/
|
@@ -76,7 +77,11 @@ export interface VelcronEditor<TSettings = any> {
|
|
76
77
|
}
|
77
78
|
export interface VelcronLazyApp {
|
78
79
|
minHeight?: VelcronBindableProp<number | string>;
|
79
|
-
|
80
|
+
initial?: false | VariantDefinition;
|
81
|
+
animate?: VariantDefinition;
|
82
|
+
inView?: VariantDefinition;
|
83
|
+
variants?: Variants;
|
84
|
+
transition?: AnimationOptionsWithOverrides;
|
80
85
|
}
|
81
86
|
export interface VelcronAppDefinition<TState extends DynamicState = DynamicState> extends VelcronDefinitionBase, VelcronColorStyling {
|
82
87
|
type: "velcron";
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ChartData, ChartOptions, ChartTypeRegistry } from "chart.js";
|
2
|
+
import { AnimationOptionsWithOverrides, InViewOptions, VariantDefinition, Variants } from "motion";
|
2
3
|
/**Shared */
|
3
4
|
declare const block: readonly ["top", "bottom"];
|
4
5
|
declare const inline: readonly ["start", "end", "left", "right"];
|
@@ -236,4 +237,16 @@ export declare const OMultiTextInputModesName = "OMultiTextInputModes";
|
|
236
237
|
export declare const OStepperVariantDefinitions: readonly ["default", "editable", "understep"];
|
237
238
|
export type OStepperVariants = typeof OStepperVariantDefinitions[number];
|
238
239
|
export declare const OStepperVariantName = "OStepperVariants";
|
240
|
+
/** Motion */
|
241
|
+
export interface OMotionProps {
|
242
|
+
initial?: VariantDefinition | boolean;
|
243
|
+
animate?: VariantDefinition;
|
244
|
+
inView?: VariantDefinition;
|
245
|
+
hover?: VariantDefinition;
|
246
|
+
press?: VariantDefinition;
|
247
|
+
exit?: VariantDefinition;
|
248
|
+
variants?: Variants;
|
249
|
+
inViewOptions?: InViewOptions;
|
250
|
+
transition?: AnimationOptionsWithOverrides;
|
251
|
+
}
|
239
252
|
export {};
|
package/package.json
CHANGED
package/ThemeDefinition.d.ts
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
import { BusinessProfileProperty } from "./BusinessProfile";
|
2
|
-
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
|
-
import { Color } from "./Color";
|
4
|
-
export interface ThemeDefinitionSettings {
|
5
|
-
items: Array<ThemeDefinition>;
|
6
|
-
}
|
7
|
-
export declare class BusinessProfileThemeMappingSettings extends BusinessProfileProperty {
|
8
|
-
constructor();
|
9
|
-
items: Array<ThemeTargetMapping>;
|
10
|
-
}
|
11
|
-
export interface ThemeColors {
|
12
|
-
primary: Color;
|
13
|
-
secondary: Color;
|
14
|
-
}
|
15
|
-
export interface ThemeStyling {
|
16
|
-
bg: {
|
17
|
-
color: Color;
|
18
|
-
css: string;
|
19
|
-
dark: boolean;
|
20
|
-
};
|
21
|
-
fg: {
|
22
|
-
color: Color;
|
23
|
-
css: string;
|
24
|
-
dark: boolean;
|
25
|
-
text: {
|
26
|
-
color: Color;
|
27
|
-
css: string;
|
28
|
-
csslighter1: string;
|
29
|
-
csslighter2: string;
|
30
|
-
csslighter3: string;
|
31
|
-
csslighter4: string;
|
32
|
-
csslighter5: string;
|
33
|
-
csslighter6: string;
|
34
|
-
};
|
35
|
-
};
|
36
|
-
text: {
|
37
|
-
color: Color;
|
38
|
-
css: string;
|
39
|
-
csslighter1: string;
|
40
|
-
csslighter2: string;
|
41
|
-
csslighter3: string;
|
42
|
-
csslighter4: string;
|
43
|
-
csslighter5: string;
|
44
|
-
csslighter6: string;
|
45
|
-
};
|
46
|
-
components: {
|
47
|
-
color: Color;
|
48
|
-
text: {
|
49
|
-
color: Color;
|
50
|
-
};
|
51
|
-
expansionPanel: {
|
52
|
-
css: string;
|
53
|
-
};
|
54
|
-
skeletonLoader: {
|
55
|
-
css: string;
|
56
|
-
};
|
57
|
-
slider: {
|
58
|
-
color: string;
|
59
|
-
trackColor: string;
|
60
|
-
};
|
61
|
-
tabs: {
|
62
|
-
css: string;
|
63
|
-
};
|
64
|
-
};
|
65
|
-
border: BorderDefinition;
|
66
|
-
}
|
67
|
-
/**
|
68
|
-
*Theme Definition
|
69
|
-
*
|
70
|
-
*/
|
71
|
-
export interface ThemeTargetRegistration {
|
72
|
-
id: guid;
|
73
|
-
title: string;
|
74
|
-
defaultThemeDefinitionId: guid;
|
75
|
-
defaultAccessibilityDefinitionId: guid;
|
76
|
-
}
|
77
|
-
export interface ThemeTargetMapping {
|
78
|
-
id: guid;
|
79
|
-
targetRegistrationId: guid;
|
80
|
-
default: ThemeDefinition;
|
81
|
-
accessibility?: ThemeDefinition;
|
82
|
-
}
|
83
|
-
export interface ThemeDefinition {
|
84
|
-
id: guid;
|
85
|
-
name: string;
|
86
|
-
readOnly: boolean;
|
87
|
-
colors: ThemeDefinitionColors;
|
88
|
-
chrome: ThemeColorDefinition;
|
89
|
-
body: ThemeColorDefinition;
|
90
|
-
}
|
91
|
-
export interface ThemeDefinitionColors {
|
92
|
-
primary: string;
|
93
|
-
secondary: string;
|
94
|
-
}
|
95
|
-
export interface BorderDefinition {
|
96
|
-
color: string;
|
97
|
-
width: number;
|
98
|
-
elevation: number;
|
99
|
-
radiustop: number;
|
100
|
-
radiusbottom: number;
|
101
|
-
}
|
102
|
-
export interface ThemeColorDefinition {
|
103
|
-
bg: string;
|
104
|
-
fg: string;
|
105
|
-
text: string;
|
106
|
-
darkBg: boolean;
|
107
|
-
darkFg: boolean;
|
108
|
-
border?: BorderDefinition;
|
109
|
-
}
|
package/ThemeDefinition.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BusinessProfileThemeMappingSettings = void 0;
|
4
|
-
const BusinessProfile_1 = require("./BusinessProfile");
|
5
|
-
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
6
|
-
class BusinessProfileThemeMappingSettings extends BusinessProfile_1.BusinessProfileProperty {
|
7
|
-
constructor() {
|
8
|
-
super((0, models_1.guid)("6dd14453-7b42-43d0-9176-884a556c9b2f"), "Omnia.BusinessProfileThemeMappingSettings");
|
9
|
-
}
|
10
|
-
}
|
11
|
-
exports.BusinessProfileThemeMappingSettings = BusinessProfileThemeMappingSettings;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ThemingTypes = void 0;
|
4
|
-
var ThemingTypes;
|
5
|
-
(function (ThemingTypes) {
|
6
|
-
ThemingTypes[ThemingTypes["Theme"] = 0] = "Theme";
|
7
|
-
ThemingTypes[ThemingTypes["ColorSchema"] = 1] = "ColorSchema";
|
8
|
-
ThemingTypes[ThemingTypes["Typography"] = 2] = "Typography";
|
9
|
-
ThemingTypes[ThemingTypes["Spacing"] = 3] = "Spacing";
|
10
|
-
ThemingTypes[ThemingTypes["Blueprints"] = 4] = "Blueprints";
|
11
|
-
ThemingTypes[ThemingTypes["Fonts"] = 5] = "Fonts";
|
12
|
-
})(ThemingTypes || (exports.ThemingTypes = ThemingTypes = {}));
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { guid } from "../Guid";
|
2
|
-
import { Id } from "../Id";
|
3
|
-
import { ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
|
4
|
-
import { ColorDefinition, ColorSchemas } from "./ThemeDefinitionV2";
|
5
|
-
import { ThemingBase } from "./ThemingBase";
|
6
|
-
export type ColorSchemaId = Id<guid, "ColorSchemaId">;
|
7
|
-
export declare function ColorSchemaId(id: guid): ColorSchemaId;
|
8
|
-
export type ThemeDefinitionId = Id<guid, "ThemeDefinitionId">;
|
9
|
-
export declare function ThemeDefinitionId(id: guid): ThemeDefinitionId;
|
10
|
-
export interface ColorSchemasReferenceV2 {
|
11
|
-
primaryId: ColorSchemaId;
|
12
|
-
secondaryId: ColorSchemaId;
|
13
|
-
accent1Id: ColorSchemaId;
|
14
|
-
accent2Id: ColorSchemaId;
|
15
|
-
accent3Id: ColorSchemaId;
|
16
|
-
accent4Id: ColorSchemaId;
|
17
|
-
accent5Id: ColorSchemaId;
|
18
|
-
neutralId: ColorSchemaId;
|
19
|
-
backgroundId: ColorSchemaId;
|
20
|
-
errorId: ColorSchemaId;
|
21
|
-
infoId: ColorSchemaId;
|
22
|
-
warningId: ColorSchemaId;
|
23
|
-
successId: ColorSchemaId;
|
24
|
-
notificationId: ColorSchemaId;
|
25
|
-
}
|
26
|
-
export interface ThemeDefinitionV3 extends ThemingBase {
|
27
|
-
name?: string;
|
28
|
-
colors?: ColorSchemasReferenceV2;
|
29
|
-
typographyId?: ThemeDefinitionId;
|
30
|
-
spacingId?: ThemeDefinitionId;
|
31
|
-
componentsId?: ThemeDefinitionId;
|
32
|
-
}
|
33
|
-
export interface ColorSchemaV3 extends ThemingBase {
|
34
|
-
base: ColorDefinition;
|
35
|
-
onBase: ColorDefinition;
|
36
|
-
container: ColorDefinition;
|
37
|
-
onContainer: ColorDefinition;
|
38
|
-
}
|
39
|
-
export interface ResolvedThemeDefinition extends ThemingBase {
|
40
|
-
colors?: ColorSchemas;
|
41
|
-
typography?: TypographyBlueprints;
|
42
|
-
spacing?: SpacingBlueprints;
|
43
|
-
components?: ComponentBlueprints;
|
44
|
-
}
|
/package/{Color.js → Theme.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedBlueprintMethods.js
RENAMED
File without changes
|
/package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedColorMethods.d.ts
RENAMED
File without changes
|
/package/internal-do-not-import-from-here/shared/models/{theming → theme}/SharedColorMethods.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/internal-do-not-import-from-here/shared/models/{theming → theme}/useSpacingScaling.d.ts
RENAMED
File without changes
|
/package/internal-do-not-import-from-here/shared/models/{theming → theme}/useSpacingScaling.js
RENAMED
File without changes
|