@ember-eui/core 8.0.33 → 8.0.35
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/declarations/components/eui-flyout.d.ts +5 -0
- package/declarations/components/eui-flyout.d.ts.map +1 -1
- package/declarations/components/eui-header-section-item.d.ts +1 -1
- package/declarations/components/eui-header-section-item.d.ts.map +1 -1
- package/declarations/components/eui-header-section.d.ts +2 -2
- package/declarations/components/eui-header-section.d.ts.map +1 -1
- package/declarations/components/eui-page-header-content.d.ts +3 -3
- package/declarations/components/eui-page-header-content.d.ts.map +1 -1
- package/declarations/components/eui-popover.d.ts +0 -1
- package/declarations/components/eui-popover.d.ts.map +1 -1
- package/dist/components/eui-combo-box.js +1 -0
- package/dist/components/eui-combo-box.js.map +1 -1
- package/dist/components/eui-flyout.js.map +1 -1
- package/dist/components/eui-header-section-item.js.map +1 -1
- package/dist/components/eui-header-section.js.map +1 -1
- package/dist/components/eui-page-header-content.js +16 -3
- package/dist/components/eui-page-header-content.js.map +1 -1
- package/dist/components/eui-page-header.js +2 -2
- package/dist/components/eui-page-header.js.map +1 -1
- package/dist/components/eui-popover.js +1 -1
- package/dist/components/eui-popover.js.map +1 -1
- package/dist/helpers/class-names.js +1 -1
- package/dist/helpers/class-names.js.map +1 -1
- package/package.json +1 -2
- package/dist/_app_/modifiers/open-collapsible-nav.js +0 -1
- package/dist/modifiers/open-collapsible-nav.js +0 -22
- package/dist/modifiers/open-collapsible-nav.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-names.js","sources":["../../src/helpers/class-names.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\n// Mappings registry\nimport cssMappings from '../utils/css-mappings';\n\ninterface Options {\n [key: string]: unknown;\n size?: string | number | boolean | {};\n side?: string;\n paddingSize?: string;\n textAlign?: string;\n textStyle?: string;\n color?: string;\n verticalPosition?: string;\n horizontalPosition?: string;\n componentName?: keyof typeof cssMappings;\n textTransform?: string;\n display?: string;\n type?: string;\n gutterSize?: string;\n alignItems?: string;\n direction?: string;\n justifyContent?: string;\n columns?: number;\n grow?: number | string | boolean;\n iconSide?: string;\n flush?: string | boolean;\n borderSide?: string;\n position?: string;\n theme?: string;\n margin?: string;\n borderRadius?: string;\n backgroundColor?: string;\n resize?: string;\n addBase?: boolean;\n}\n\n/**\n * Joins a list of classes\n *\n * @param classes - List of classes that will be joined\n */\nexport function classNames(\n classNames: (string | undefined)[] = [],\n options: Options\n): string {\n let { componentName, ...rest } = options;\n let includeBase = options.addBase !== false;\n let str = `${classNames.join(' ')}`;\n\n if (options.componentName) {\n assert(\n `The component '${options.componentName}' doesn't have mappings defined`,\n cssMappings[options.componentName] !== undefined\n );\n\n const component = cssMappings[options.componentName]!;\n\n if (includeBase) {\n str = `${str} ${component.base}`;\n }\n\n for (let key in rest) {\n //@ts-expect-error\n if (component.properties[key] && component.properties[key]?.[rest[key]]) {\n //@ts-expect-error\n str = `${str} ${component.properties[key]?.[rest[key]]}`;\n }\n }\n }\n\n return str;\n}\n\nexport default helper<(string | undefined)[], Options, string>(classNames);\n"],"names":["classNames","options","componentName","rest","includeBase","addBase","str","join","assert","cssMappings","undefined","component","base","key","properties","helper"],"mappings":";;;;AAsCA;AACA;AACA;AACA;AACA;AACO,SAASA,UAAUA,CACxBA,UAAkC,GAAG,EAAE,EACvCC,OAAgB,EACR;EACR,IAAI;IAAEC,aAAa;IAAE,GAAGC,IAAAA;AAAK,GAAC,GAAGF,OAAO,CAAA;AACxC,EAAA,IAAIG,WAAW,GAAGH,OAAO,CAACI,OAAO,KAAK,KAAK,CAAA;EAC3C,IAAIC,GAAG,GAAI,CAAEN,EAAAA,UAAU,CAACO,IAAI,CAAC,GAAG,CAAE,CAAC,CAAA,CAAA;EAEnC,IAAIN,OAAO,CAACC,aAAa,EAAE;AACzBM,IAAAA,MAAM,CACH,CAAA,eAAA,EAAiBP,OAAO,CAACC,aAAc,CAAgC,+BAAA,CAAA,EACxEO,OAAW,CAACR,OAAO,CAACC,aAAa,CAAC,KAAKQ,SACzC,CAAC,CAAA;AAED,IAAA,MAAMC,SAAS,GAAGF,OAAW,CAACR,OAAO,CAACC,aAAa,CAAE,CAAA;AAErD,IAAA,IAAIE,WAAW,EAAE;AACfE,MAAAA,GAAG,GAAI,CAAEA,EAAAA,GAAI,IAAGK,SAAS,CAACC,IAAK,CAAC,CAAA,CAAA;AAClC,KAAA;AAEA,IAAA,KAAK,IAAIC,GAAG,IAAIV,IAAI,EAAE;AACpB;AACA,MAAA,IAAIQ,SAAS,CAACG,UAAU,CAACD,GAAG,CAAC,IAAIF,SAAS,CAACG,UAAU,CAACD,GAAG,CAAC,GAAGV,IAAI,CAACU,GAAG,CAAC,CAAC,EAAE;AACvE;AACAP,QAAAA,GAAG,GAAI,CAAEA,EAAAA,GAAI,CAAGK,CAAAA,EAAAA,SAAS,CAACG,UAAU,CAACD,GAAG,CAAC,GAAGV,IAAI,CAACU,GAAG,CAAC,CAAE,CAAC,CAAA,CAAA;AAC1D,OAAA;AACF,KAAA;AACF,GAAA;
|
|
1
|
+
{"version":3,"file":"class-names.js","sources":["../../src/helpers/class-names.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\n// Mappings registry\nimport cssMappings from '../utils/css-mappings';\n\ninterface Options {\n [key: string]: unknown;\n size?: string | number | boolean | {};\n side?: string;\n paddingSize?: string;\n textAlign?: string;\n textStyle?: string;\n color?: string;\n verticalPosition?: string;\n horizontalPosition?: string;\n componentName?: keyof typeof cssMappings;\n textTransform?: string;\n display?: string;\n type?: string;\n gutterSize?: string;\n alignItems?: string;\n direction?: string;\n justifyContent?: string;\n columns?: number;\n grow?: number | string | boolean;\n iconSide?: string;\n flush?: string | boolean;\n borderSide?: string;\n position?: string;\n theme?: string;\n margin?: string;\n borderRadius?: string;\n backgroundColor?: string;\n resize?: string;\n addBase?: boolean;\n}\n\n/**\n * Joins a list of classes\n *\n * @param classes - List of classes that will be joined\n */\nexport function classNames(\n classNames: (string | undefined)[] = [],\n options: Options\n): string {\n let { componentName, ...rest } = options;\n let includeBase = options.addBase !== false;\n let str = `${classNames.join(' ')}`;\n\n if (options.componentName) {\n assert(\n `The component '${options.componentName}' doesn't have mappings defined`,\n cssMappings[options.componentName] !== undefined\n );\n\n const component = cssMappings[options.componentName]!;\n\n if (includeBase) {\n str = `${str} ${component.base}`;\n }\n\n for (let key in rest) {\n //@ts-expect-error\n if (component.properties[key] && component.properties[key]?.[rest[key]]) {\n //@ts-expect-error\n str = `${str} ${component.properties[key]?.[rest[key]]}`;\n }\n }\n }\n\n return str.replace(/\\s+/g, ' ').trim();\n}\n\nexport default helper<(string | undefined)[], Options, string>(classNames);\n"],"names":["classNames","options","componentName","rest","includeBase","addBase","str","join","assert","cssMappings","undefined","component","base","key","properties","replace","trim","helper"],"mappings":";;;;AAsCA;AACA;AACA;AACA;AACA;AACO,SAASA,UAAUA,CACxBA,UAAkC,GAAG,EAAE,EACvCC,OAAgB,EACR;EACR,IAAI;IAAEC,aAAa;IAAE,GAAGC,IAAAA;AAAK,GAAC,GAAGF,OAAO,CAAA;AACxC,EAAA,IAAIG,WAAW,GAAGH,OAAO,CAACI,OAAO,KAAK,KAAK,CAAA;EAC3C,IAAIC,GAAG,GAAI,CAAEN,EAAAA,UAAU,CAACO,IAAI,CAAC,GAAG,CAAE,CAAC,CAAA,CAAA;EAEnC,IAAIN,OAAO,CAACC,aAAa,EAAE;AACzBM,IAAAA,MAAM,CACH,CAAA,eAAA,EAAiBP,OAAO,CAACC,aAAc,CAAgC,+BAAA,CAAA,EACxEO,OAAW,CAACR,OAAO,CAACC,aAAa,CAAC,KAAKQ,SACzC,CAAC,CAAA;AAED,IAAA,MAAMC,SAAS,GAAGF,OAAW,CAACR,OAAO,CAACC,aAAa,CAAE,CAAA;AAErD,IAAA,IAAIE,WAAW,EAAE;AACfE,MAAAA,GAAG,GAAI,CAAEA,EAAAA,GAAI,IAAGK,SAAS,CAACC,IAAK,CAAC,CAAA,CAAA;AAClC,KAAA;AAEA,IAAA,KAAK,IAAIC,GAAG,IAAIV,IAAI,EAAE;AACpB;AACA,MAAA,IAAIQ,SAAS,CAACG,UAAU,CAACD,GAAG,CAAC,IAAIF,SAAS,CAACG,UAAU,CAACD,GAAG,CAAC,GAAGV,IAAI,CAACU,GAAG,CAAC,CAAC,EAAE;AACvE;AACAP,QAAAA,GAAG,GAAI,CAAEA,EAAAA,GAAI,CAAGK,CAAAA,EAAAA,SAAS,CAACG,UAAU,CAACD,GAAG,CAAC,GAAGV,IAAI,CAACU,GAAG,CAAC,CAAE,CAAC,CAAA,CAAA;AAC1D,OAAA;AACF,KAAA;AACF,GAAA;EAEA,OAAOP,GAAG,CAACS,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAACC,IAAI,EAAE,CAAA;AACxC,CAAA;AAEA,mBAAeC,MAAM,CAA0CjB,UAAU,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.35",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -405,7 +405,6 @@
|
|
|
405
405
|
"./helpers/type-of.js": "./dist/_app_/helpers/type-of.js",
|
|
406
406
|
"./helpers/use-state.js": "./dist/_app_/helpers/use-state.js",
|
|
407
407
|
"./modifiers/mutation-observer.js": "./dist/_app_/modifiers/mutation-observer.js",
|
|
408
|
-
"./modifiers/open-collapsible-nav.js": "./dist/_app_/modifiers/open-collapsible-nav.js",
|
|
409
408
|
"./modifiers/outside-click-detector.js": "./dist/_app_/modifiers/outside-click-detector.js",
|
|
410
409
|
"./modifiers/resize-observer.js": "./dist/_app_/modifiers/resize-observer.js",
|
|
411
410
|
"./modifiers/screen-reader-only.js": "./dist/_app_/modifiers/screen-reader-only.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@ember-eui/core/modifiers/open-collapsible-nav";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { modifier } from 'ember-modifier';
|
|
2
|
-
|
|
3
|
-
let counter = 0;
|
|
4
|
-
var openCollapsibleNav = modifier(function openCollapsibleNav(_, [navIsDocked]) {
|
|
5
|
-
counter++;
|
|
6
|
-
if (navIsDocked) {
|
|
7
|
-
document.body.classList.add('euiBody--collapsibleNavIsDocked');
|
|
8
|
-
}
|
|
9
|
-
document.body.classList.add('euiBody--collapsibleNavIsOpen');
|
|
10
|
-
return () => {
|
|
11
|
-
counter--;
|
|
12
|
-
if (!counter) {
|
|
13
|
-
if (navIsDocked) {
|
|
14
|
-
document.body.classList.remove('euiBody--collapsibleNavIsDocked');
|
|
15
|
-
}
|
|
16
|
-
document.body.classList.remove('euiBody--collapsibleNavIsOpen');
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export { openCollapsibleNav as default };
|
|
22
|
-
//# sourceMappingURL=open-collapsible-nav.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"open-collapsible-nav.js","sources":["../../src/modifiers/open-collapsible-nav.ts"],"sourcesContent":["import { modifier } from 'ember-modifier';\n\nlet counter = 0;\n\nexport default modifier(function openCollapsibleNav(\n _,\n [navIsDocked]: [boolean]\n) {\n counter++;\n\n if (navIsDocked) {\n document.body.classList.add('euiBody--collapsibleNavIsDocked');\n }\n\n document.body.classList.add('euiBody--collapsibleNavIsOpen');\n\n return (): void => {\n counter--;\n\n if (!counter) {\n if (navIsDocked) {\n document.body.classList.remove('euiBody--collapsibleNavIsDocked');\n }\n\n document.body.classList.remove('euiBody--collapsibleNavIsOpen');\n }\n };\n});\n"],"names":["counter","modifier","openCollapsibleNav","_","navIsDocked","document","body","classList","add","remove"],"mappings":";;AAEA,IAAIA,OAAO,GAAG,CAAC,CAAA;AAEf,yBAAeC,QAAQ,CAAC,SAASC,kBAAkBA,CACjDC,CAAC,EACD,CAACC,WAAW,CAAY,EACxB;AACAJ,EAAAA,OAAO,EAAE,CAAA;AAET,EAAA,IAAII,WAAW,EAAE;IACfC,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACC,GAAG,CAAC,iCAAiC,CAAC,CAAA;AAChE,GAAA;EAEAH,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACC,GAAG,CAAC,+BAA+B,CAAC,CAAA;AAE5D,EAAA,OAAO,MAAY;AACjBR,IAAAA,OAAO,EAAE,CAAA;IAET,IAAI,CAACA,OAAO,EAAE;AACZ,MAAA,IAAII,WAAW,EAAE;QACfC,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACE,MAAM,CAAC,iCAAiC,CAAC,CAAA;AACnE,OAAA;MAEAJ,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACE,MAAM,CAAC,+BAA+B,CAAC,CAAA;AACjE,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"}
|