@aquera/nile-elements 0.0.31 → 0.0.33
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/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +4 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +4 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/nile-breadcrumb.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/nile-breadcrumb.css.js +18 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/nile-breadcrumb.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/nile-breadcrumb.d.ts +35 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/nile-breadcrumb.js +61 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb/nile-breadcrumb.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.js +47 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.d.ts +34 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.js +74 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/nile-card.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/nile-card.css.js +71 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/nile-card.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/nile-card.d.ts +26 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/nile-card.js +46 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-card/nile-card.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/extensionSetup.d.ts +33 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/extensionSetup.js +63 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/extensionSetup.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.css.js +42 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.d.ts +43 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.js +114 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-code-editor/nile-code-editor.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/arrowright.d.ts +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/arrowright.js +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/arrowright.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.d.ts +2 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js +9 -6
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js +11 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.d.ts +11 -5
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +55 -7
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.css.js +7 -15
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js +21 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.css.js +4 -4
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-toast/nile-toast.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tooltip/nile-tooltip.css.js +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tooltip/nile-tooltip.js +2 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +545 -374
- package/dist/nile-breadcrumb/index.cjs.js +2 -0
- package/dist/nile-breadcrumb/index.cjs.js.map +1 -0
- package/dist/nile-breadcrumb/index.esm.js +1 -0
- package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js +2 -0
- package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js.map +1 -0
- package/dist/nile-breadcrumb/nile-breadcrumb.css.cjs.js +2 -0
- package/dist/nile-breadcrumb/nile-breadcrumb.css.cjs.js.map +1 -0
- package/dist/nile-breadcrumb/nile-breadcrumb.css.esm.js +6 -0
- package/dist/nile-breadcrumb/nile-breadcrumb.esm.js +6 -0
- package/dist/nile-breadcrumb-item/index.cjs.js +2 -0
- package/dist/nile-breadcrumb-item/index.cjs.js.map +1 -0
- package/dist/nile-breadcrumb-item/index.esm.js +1 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js +2 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js.map +1 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.css.cjs.js +2 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.css.cjs.js.map +1 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.css.esm.js +35 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.esm.js +13 -0
- package/dist/nile-card/index.cjs.js +2 -0
- package/dist/nile-card/index.cjs.js.map +1 -0
- package/dist/nile-card/index.esm.js +1 -0
- package/dist/nile-card/nile-card.cjs.js +2 -0
- package/dist/nile-card/nile-card.cjs.js.map +1 -0
- package/dist/nile-card/nile-card.css.cjs.js +2 -0
- package/dist/nile-card/nile-card.css.cjs.js.map +1 -0
- package/dist/nile-card/nile-card.css.esm.js +59 -0
- package/dist/nile-card/nile-card.esm.js +9 -0
- package/dist/nile-code-editor/extensionSetup.cjs.js +7 -0
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -0
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -0
- package/dist/nile-code-editor/index.cjs.js +2 -0
- package/dist/nile-code-editor/index.cjs.js.map +1 -0
- package/dist/nile-code-editor/index.esm.js +1 -0
- package/dist/nile-code-editor/nile-code-editor.cjs.js +3 -0
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -0
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js +2 -0
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js.map +1 -0
- package/dist/nile-code-editor/nile-code-editor.css.esm.js +30 -0
- package/dist/nile-code-editor/nile-code-editor.esm.js +9 -0
- package/dist/nile-icon/icons/svg/arrowright.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/arrowright.cjs.js.map +1 -1
- package/dist/nile-icon/icons/svg/arrowright.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +4 -3
- package/dist/nile-switcher/index.cjs.js +1 -1
- package/dist/nile-switcher/index.esm.js +1 -1
- package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
- package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
- package/dist/nile-switcher/nile-switcher.css.cjs.js +1 -1
- package/dist/nile-switcher/nile-switcher.css.cjs.js.map +1 -1
- package/dist/nile-switcher/nile-switcher.css.esm.js +13 -2
- package/dist/nile-switcher/nile-switcher.esm.js +38 -30
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.esm.js +9 -17
- package/dist/nile-tag/nile-tag.esm.js +3 -3
- package/dist/nile-toast/nile-toast.css.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.esm.js +4 -4
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-breadcrumb/index.d.ts +1 -0
- package/dist/src/nile-breadcrumb/index.js +2 -0
- package/dist/src/nile-breadcrumb/index.js.map +1 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.css.d.ts +12 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.css.js +18 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.css.js.map +1 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.d.ts +35 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.js +61 -0
- package/dist/src/nile-breadcrumb/nile-breadcrumb.js.map +1 -0
- package/dist/src/nile-breadcrumb-item/index.d.ts +1 -0
- package/dist/src/nile-breadcrumb-item/index.js +2 -0
- package/dist/src/nile-breadcrumb-item/index.js.map +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.d.ts +12 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.js +47 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.js.map +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.d.ts +34 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.js +74 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.js.map +1 -0
- package/dist/src/nile-card/index.d.ts +1 -0
- package/dist/src/nile-card/index.js +2 -0
- package/dist/src/nile-card/index.js.map +1 -0
- package/dist/src/nile-card/nile-card.css.d.ts +12 -0
- package/dist/src/nile-card/nile-card.css.js +71 -0
- package/dist/src/nile-card/nile-card.css.js.map +1 -0
- package/dist/src/nile-card/nile-card.d.ts +26 -0
- package/dist/src/nile-card/nile-card.js +46 -0
- package/dist/src/nile-card/nile-card.js.map +1 -0
- package/dist/src/nile-code-editor/extensionSetup.d.ts +33 -0
- package/dist/src/nile-code-editor/extensionSetup.js +63 -0
- package/dist/src/nile-code-editor/extensionSetup.js.map +1 -0
- package/dist/src/nile-code-editor/index.d.ts +1 -0
- package/dist/src/nile-code-editor/index.js +2 -0
- package/dist/src/nile-code-editor/index.js.map +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.css.d.ts +12 -0
- package/dist/src/nile-code-editor/nile-code-editor.css.js +42 -0
- package/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +43 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +114 -0
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/arrowright.d.ts +1 -1
- package/dist/src/nile-icon/icons/svg/arrowright.js +1 -1
- package/dist/src/nile-icon/icons/svg/arrowright.js.map +1 -1
- package/dist/src/nile-icon-button/nile-icon-button.d.ts +2 -1
- package/dist/src/nile-icon-button/nile-icon-button.js +9 -6
- package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.css.js +11 -0
- package/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.d.ts +11 -5
- package/dist/src/nile-switcher/nile-switcher.js +55 -7
- package/dist/src/nile-switcher/nile-switcher.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.css.js +7 -15
- package/dist/src/nile-tag/nile-tag.css.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.d.ts +1 -0
- package/dist/src/nile-tag/nile-tag.js +21 -2
- package/dist/src/nile-tag/nile-tag.js.map +1 -1
- package/dist/src/nile-toast/nile-toast.css.js +4 -4
- package/dist/src/nile-toast/nile-toast.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.js +2 -2
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -1
- package/src/nile-breadcrumb/index.ts +1 -0
- package/src/nile-breadcrumb/nile-breadcrumb.css.ts +20 -0
- package/src/nile-breadcrumb/nile-breadcrumb.ts +78 -0
- package/src/nile-breadcrumb-item/index.ts +1 -0
- package/src/nile-breadcrumb-item/nile-breadcrumb-item.css.ts +49 -0
- package/src/nile-breadcrumb-item/nile-breadcrumb-item.ts +83 -0
- package/src/nile-card/index.ts +1 -0
- package/src/nile-card/nile-card.css.ts +73 -0
- package/src/nile-card/nile-card.ts +53 -0
- package/src/nile-code-editor/extensionSetup.ts +125 -0
- package/src/nile-code-editor/index.ts +1 -0
- package/src/nile-code-editor/nile-code-editor.css.ts +44 -0
- package/src/nile-code-editor/nile-code-editor.ts +127 -0
- package/src/nile-icon/icons/svg/arrowright.ts +1 -1
- package/src/nile-icon-button/nile-icon-button.ts +9 -6
- package/src/nile-switcher/nile-switcher.css.ts +11 -0
- package/src/nile-switcher/nile-switcher.ts +70 -10
- package/src/nile-tag/nile-tag.css.ts +7 -15
- package/src/nile-tag/nile-tag.ts +24 -2
- package/src/nile-toast/nile-toast.css.ts +4 -4
- package/src/nile-tooltip/nile-tooltip.css.ts +1 -1
- package/src/nile-tooltip/nile-tooltip.ts +2 -2
@@ -2,4 +2,4 @@
|
|
2
2
|
* Do not edit directly
|
3
3
|
*/
|
4
4
|
|
5
|
-
export default "
|
5
|
+
export default "PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQuOTk5OTggMTUuMjFMNC4yODk5OCAxNC41TDEwLjI5IDguNDk5OThMNC4yODk5OCAyLjQ5OTk4TDQuOTk5OTggMS43ODk5OEwxMS43MSA4LjQ5OTk4TDQuOTk5OTggMTUuMjFaIiBmaWxsPSIjN0Y3RjdGIi8+PC9zdmc+";
|
@@ -79,7 +79,9 @@ export class NileIconButton extends NileElement {
|
|
79
79
|
@property({ type: Boolean, reflect: true }) disabled = false;
|
80
80
|
|
81
81
|
/**Default color to icon */
|
82
|
-
@property({ type: String, reflect: true }) color
|
82
|
+
@property({ type: String, reflect: true }) color?: string;
|
83
|
+
|
84
|
+
@property({ type: Boolean, reflect: true }) ishovered: boolean = false;
|
83
85
|
|
84
86
|
private handleBlur() {
|
85
87
|
this.hasFocus = false;
|
@@ -114,16 +116,16 @@ export class NileIconButton extends NileElement {
|
|
114
116
|
}
|
115
117
|
|
116
118
|
private handleMouseOver(e: any) {
|
117
|
-
this.
|
119
|
+
this.ishovered = true;
|
118
120
|
}
|
119
|
-
private handleMouseLeave() {
|
120
|
-
this.
|
121
|
+
private handleMouseLeave(e: any) {
|
122
|
+
this.ishovered = false;
|
121
123
|
}
|
122
124
|
|
125
|
+
|
123
126
|
render(): TemplateResult {
|
124
127
|
const isLink = this.href ? true : false;
|
125
128
|
const tag = isLink ? literal`a` : literal`button`;
|
126
|
-
|
127
129
|
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
128
130
|
return html`
|
129
131
|
<${tag}
|
@@ -151,12 +153,13 @@ export class NileIconButton extends NileElement {
|
|
151
153
|
@mouseover=${this.handleMouseOver}
|
152
154
|
@mouseleave=${this.handleMouseLeave}
|
153
155
|
>
|
156
|
+
|
154
157
|
<nile-icon
|
155
158
|
class="icon-button__icon"
|
156
159
|
name=${ifDefined(this.name)}
|
157
160
|
library=${ifDefined(this.library)}
|
158
161
|
src=${ifDefined(this.src)}
|
159
|
-
color=${ifDefined(this.color)}
|
162
|
+
color=${this.ishovered? 'black': ifDefined(this.color) }
|
160
163
|
aria-hidden="true"
|
161
164
|
size="14"
|
162
165
|
></nile-icon>
|
@@ -63,6 +63,17 @@ export const styles = css`
|
|
63
63
|
padding-right: 10px;
|
64
64
|
}
|
65
65
|
|
66
|
+
nile-code-editor {
|
67
|
+
overflow: hidden;
|
68
|
+
padding-top: 2px;
|
69
|
+
border-radius: 5px;
|
70
|
+
border: 1px solid rgb(204, 204, 204);
|
71
|
+
}
|
72
|
+
|
73
|
+
.code-editor__no-border {
|
74
|
+
border: none;
|
75
|
+
}
|
76
|
+
|
66
77
|
.switcher-object-mapper::part(input) {
|
67
78
|
color: var(--nile-colors-primary-600);
|
68
79
|
cursor: pointer;
|
@@ -13,6 +13,7 @@ import { CSSResultGroup } from 'lit';
|
|
13
13
|
import { choose } from 'lit/directives/choose.js';
|
14
14
|
import { classMap } from 'lit/directives/class-map.js';
|
15
15
|
import { repeat } from 'lit/directives/repeat.js';
|
16
|
+
import { watch } from '../internal/watch';
|
16
17
|
|
17
18
|
/**
|
18
19
|
* @summary Allows you to switch between nile elements
|
@@ -32,7 +33,6 @@ export interface switchconfig {
|
|
32
33
|
toggleSwitch: boolean;
|
33
34
|
disable?: boolean;
|
34
35
|
confirmation?: boolean;
|
35
|
-
current: number;
|
36
36
|
align: 'block' | 'inline';
|
37
37
|
inputs: switchInputType[];
|
38
38
|
}
|
@@ -45,11 +45,11 @@ export interface switchInputType {
|
|
45
45
|
| INPUT_TYPE_NAMES.TEXTAREA
|
46
46
|
| INPUT_TYPE_NAMES.RADIO
|
47
47
|
| INPUT_TYPE_NAMES.CONTENTEDITOR
|
48
|
-
| INPUT_TYPE_NAMES.OBJECT_MAPPER
|
48
|
+
| INPUT_TYPE_NAMES.OBJECT_MAPPER
|
49
|
+
| INPUT_TYPE_NAMES.CODE_EDITOR;
|
49
50
|
value?: String | boolean;
|
50
51
|
label?: String;
|
51
52
|
readonly?: boolean;
|
52
|
-
order: number;
|
53
53
|
type?: string;
|
54
54
|
icon: string;
|
55
55
|
mode?: string;
|
@@ -62,6 +62,8 @@ export interface switchInputType {
|
|
62
62
|
helperText?: string;
|
63
63
|
multiple?: boolean;
|
64
64
|
noborder?: boolean;
|
65
|
+
multiLine?: boolean;
|
66
|
+
expand?: boolean;
|
65
67
|
}
|
66
68
|
|
67
69
|
export enum POSITIONS {
|
@@ -82,6 +84,7 @@ export enum INPUT_TYPE_NAMES {
|
|
82
84
|
RADIO = 'radio',
|
83
85
|
CONTENTEDITOR = 'content-editor',
|
84
86
|
OBJECT_MAPPER = 'object-mapper',
|
87
|
+
CODE_EDITOR = 'code-editor',
|
85
88
|
}
|
86
89
|
|
87
90
|
export enum MODE {
|
@@ -98,14 +101,31 @@ export class NileSwitcher extends NileElement {
|
|
98
101
|
static styles: CSSResultGroup = styles;
|
99
102
|
|
100
103
|
@property({ type: Object }) nileSwitchConfig: switchconfig;
|
101
|
-
|
104
|
+
|
105
|
+
@property({ type: Number }) current: Number = 0;
|
106
|
+
|
107
|
+
@property({ type: Object }) currentInput: switchInputType;
|
102
108
|
|
103
109
|
connectedCallback() {
|
104
|
-
this.currentInput = this.nileSwitchConfig.inputs[0];
|
105
110
|
super.connectedCallback();
|
111
|
+
this.setCurrentInput();
|
106
112
|
this.emit('nile-init');
|
107
113
|
}
|
108
114
|
|
115
|
+
@watch(['current'], { waitUntilFirstUpdate: true })
|
116
|
+
handleSwitcherChange() {
|
117
|
+
this.setCurrentInput();
|
118
|
+
}
|
119
|
+
|
120
|
+
setCurrentInput() {
|
121
|
+
if (this.nileSwitchConfig?.inputs) {
|
122
|
+
this.currentInput = this.nileSwitchConfig.inputs.filter(
|
123
|
+
(input: switchInputType, index: Number) => {
|
124
|
+
return index === this.current;
|
125
|
+
}
|
126
|
+
)[0];
|
127
|
+
}
|
128
|
+
}
|
109
129
|
disconnectedCallback() {
|
110
130
|
super.disconnectedCallback();
|
111
131
|
this.emit('nile-destroy');
|
@@ -276,6 +296,39 @@ export class NileSwitcher extends NileElement {
|
|
276
296
|
</nile-input>`;
|
277
297
|
}
|
278
298
|
|
299
|
+
renderCodeEditor(Input: switchInputType) {
|
300
|
+
const {
|
301
|
+
value,
|
302
|
+
multiLine,
|
303
|
+
options,
|
304
|
+
disabled,
|
305
|
+
readonly,
|
306
|
+
errorMessage,
|
307
|
+
error,
|
308
|
+
inputType,
|
309
|
+
noborder,
|
310
|
+
} = Input;
|
311
|
+
return html`<nile-code-editor
|
312
|
+
class=${classMap({
|
313
|
+
'code-editor': true,
|
314
|
+
'code-editor__no-border': !!noborder,
|
315
|
+
})}
|
316
|
+
@nile-expand="${(e: CustomEvent) =>
|
317
|
+
this.handleExpand(e, INPUT_TYPE_NAMES.CODE_EDITOR)}"
|
318
|
+
@nile-change="${(e: CustomEvent) =>
|
319
|
+
this.handleChange(e, INPUT_TYPE_NAMES.CODE_EDITOR)}"
|
320
|
+
.multiline="${multiLine}"
|
321
|
+
.value="${value}"
|
322
|
+
.customOptions="${options}"
|
323
|
+
.showLineNumbers="false"
|
324
|
+
></nile-code-editor> `;
|
325
|
+
}
|
326
|
+
|
327
|
+
handleExpand(event: CustomEvent, inputType: string) {
|
328
|
+
this.currentInput.expand = event.detail.expand;
|
329
|
+
this.emit('nile-change', { input: this.currentInput });
|
330
|
+
}
|
331
|
+
|
279
332
|
handleChange(event: CustomEvent, inputType: string) {
|
280
333
|
switch (inputType) {
|
281
334
|
case INPUT_TYPE_NAMES.OBJECT_MAPPER:
|
@@ -284,6 +337,9 @@ export class NileSwitcher extends NileElement {
|
|
284
337
|
case INPUT_TYPE_NAMES.CHECKBOX:
|
285
338
|
this.currentInput.value = event.detail.checked;
|
286
339
|
break;
|
340
|
+
case INPUT_TYPE_NAMES.CODE_EDITOR:
|
341
|
+
this.currentInput.value = event.detail.value;
|
342
|
+
break;
|
287
343
|
default:
|
288
344
|
this.currentInput.value = event.detail.value;
|
289
345
|
}
|
@@ -300,7 +356,7 @@ export class NileSwitcher extends NileElement {
|
|
300
356
|
<div class="switcher-icons-container">
|
301
357
|
${repeat(
|
302
358
|
inputs,
|
303
|
-
input => html` <nile-tooltip
|
359
|
+
(input: any, index: number) => html` <nile-tooltip
|
304
360
|
class=${classMap({
|
305
361
|
'switcher-tooltip-container': true,
|
306
362
|
})}
|
@@ -309,7 +365,7 @@ export class NileSwitcher extends NileElement {
|
|
309
365
|
>
|
310
366
|
<div class=${classMap({
|
311
367
|
'switcher-icon-container': true,
|
312
|
-
current:
|
368
|
+
current: index === this.current,
|
313
369
|
})}>
|
314
370
|
<nile-icon
|
315
371
|
size="16"
|
@@ -318,7 +374,7 @@ export class NileSwitcher extends NileElement {
|
|
318
374
|
})}
|
319
375
|
.name=${input.icon}
|
320
376
|
color="#000000"
|
321
|
-
@click=${() => this.toggleField(input)}
|
377
|
+
@click=${() => this.toggleField(input, index)}
|
322
378
|
></nile-icon>
|
323
379
|
<div>
|
324
380
|
|
@@ -328,8 +384,8 @@ export class NileSwitcher extends NileElement {
|
|
328
384
|
`;
|
329
385
|
}
|
330
386
|
|
331
|
-
toggleField(currentInput: switchInputType) {
|
332
|
-
this.
|
387
|
+
toggleField(currentInput: switchInputType, index: Number) {
|
388
|
+
this.current = index;
|
333
389
|
this.emit('nile-switch', { input: this.currentInput });
|
334
390
|
}
|
335
391
|
|
@@ -360,6 +416,10 @@ export class NileSwitcher extends NileElement {
|
|
360
416
|
() => this.renderContentEditor(this.currentInput),
|
361
417
|
],
|
362
418
|
[INPUT_TYPE_NAMES.OBJECT_MAPPER, () => this.renderObjectMapper()],
|
419
|
+
[
|
420
|
+
INPUT_TYPE_NAMES.CODE_EDITOR,
|
421
|
+
() => this.renderCodeEditor(this.currentInput),
|
422
|
+
],
|
363
423
|
],
|
364
424
|
() => this.renderNileText(this.currentInput)
|
365
425
|
)}
|
@@ -18,7 +18,6 @@ export const styles = css`
|
|
18
18
|
.tag {
|
19
19
|
display: flex;
|
20
20
|
align-items: center;
|
21
|
-
border: solid 2px;
|
22
21
|
line-height: 1;
|
23
22
|
white-space: nowrap;
|
24
23
|
user-select: none;
|
@@ -37,13 +36,11 @@ export const styles = css`
|
|
37
36
|
|
38
37
|
.tag--primary {
|
39
38
|
background: #005EA6;
|
40
|
-
border-color: #005EA6;
|
41
|
-
border: 2px solid #005EA6;
|
42
39
|
color: #FFF;
|
43
40
|
}
|
44
41
|
|
45
42
|
.tag--primary:hover {
|
46
|
-
|
43
|
+
outline: 2px solid rgba(0, 94, 166, 0.50);
|
47
44
|
}
|
48
45
|
|
49
46
|
.tag--primary:active > nile-icon-button {
|
@@ -52,12 +49,11 @@ export const styles = css`
|
|
52
49
|
|
53
50
|
.tag--success {
|
54
51
|
background: #A5F3E1;
|
55
|
-
border: 2px solid #A5F3E1;
|
56
52
|
color: #000;
|
57
53
|
}
|
58
54
|
|
59
55
|
.tag--success:hover {
|
60
|
-
|
56
|
+
outline: 2px solid #43E5C0;
|
61
57
|
}
|
62
58
|
|
63
59
|
.tag--success:active > nile-icon-button {
|
@@ -66,12 +62,11 @@ export const styles = css`
|
|
66
62
|
|
67
63
|
.tag--normal {
|
68
64
|
background: #E5E9EB;
|
69
|
-
border: 2px solid #E5E9EB;
|
70
65
|
color: #000;
|
71
66
|
}
|
72
67
|
|
73
68
|
.tag--normal:hover {
|
74
|
-
|
69
|
+
outline: 2px solid #C7CED4;
|
75
70
|
}
|
76
71
|
|
77
72
|
|
@@ -81,12 +76,11 @@ export const styles = css`
|
|
81
76
|
|
82
77
|
.tag--warning {
|
83
78
|
background: #F3E0A5;
|
84
|
-
border: 2px solid #F3E0A5;
|
85
79
|
color: #000;
|
86
80
|
}
|
87
81
|
|
88
82
|
.tag--warning:hover {
|
89
|
-
|
83
|
+
outline: 2px solid #E5BF43;
|
90
84
|
}
|
91
85
|
|
92
86
|
.tag--warning:active > nile-icon-button {
|
@@ -96,12 +90,11 @@ export const styles = css`
|
|
96
90
|
|
97
91
|
.tag--error {
|
98
92
|
background: #F3A5AA;
|
99
|
-
border: 2px solid #F3A5AA;
|
100
93
|
color: #000;
|
101
94
|
}
|
102
95
|
|
103
96
|
.tag--error:hover {
|
104
|
-
|
97
|
+
outline: 2px solid #E5434D;
|
105
98
|
}
|
106
99
|
|
107
100
|
.tag--error:active > nile-icon-button {
|
@@ -110,12 +103,11 @@ export const styles = css`
|
|
110
103
|
|
111
104
|
.tag--info {
|
112
105
|
background: #A5D3F3;
|
113
|
-
border: 2px solid #A5D3F3;
|
114
106
|
color: #000000;
|
115
107
|
}
|
116
108
|
|
117
109
|
.tag--info:hover {
|
118
|
-
|
110
|
+
outline: 2px solid #42A3E5;
|
119
111
|
}
|
120
112
|
|
121
113
|
.tag--info:active > nile-icon-button {
|
@@ -126,7 +118,7 @@ export const styles = css`
|
|
126
118
|
.tag--medium {
|
127
119
|
font-size: 14px;
|
128
120
|
height: 26px;
|
129
|
-
padding: 0
|
121
|
+
padding: 0 6px;
|
130
122
|
}
|
131
123
|
|
132
124
|
.tag__remove {
|
package/src/nile-tag/nile-tag.ts
CHANGED
@@ -67,7 +67,28 @@ export class NileTag extends NileElement {
|
|
67
67
|
this.emit('nile-remove');
|
68
68
|
}
|
69
69
|
|
70
|
+
getCloseButtonColor() {
|
71
|
+
switch (this.variant) {
|
72
|
+
case 'primary':
|
73
|
+
return '--nile-colors-blue-500';
|
74
|
+
case 'success':
|
75
|
+
return '--nile-colors-green-500';
|
76
|
+
case 'normal':
|
77
|
+
return '--nile-colors-dark-500';
|
78
|
+
case 'warning':
|
79
|
+
return '--nile-colors-yellow-500';
|
80
|
+
case 'error':
|
81
|
+
return '--nile-colors-red-500';
|
82
|
+
case 'info':
|
83
|
+
return '--nile-colors-blue-500';
|
84
|
+
default:
|
85
|
+
return '--nile-colors-dark-500';
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
|
70
90
|
render() {
|
91
|
+
const colorVariable = this.getCloseButtonColor();
|
71
92
|
return html`
|
72
93
|
<span
|
73
94
|
part="base"
|
@@ -90,12 +111,12 @@ export class NileTag extends NileElement {
|
|
90
111
|
// Modifiers
|
91
112
|
'tag--pill': this.pill,
|
92
113
|
'tag--removable': this.removable,
|
114
|
+
|
93
115
|
})}
|
94
116
|
>
|
95
|
-
|
96
117
|
<slot name="prefix" part="prefix" class="tag__prefix"></slot>
|
97
118
|
|
98
|
-
<slot
|
119
|
+
<slot part="content" class="tag__content"></slot>
|
99
120
|
|
100
121
|
${this.removable
|
101
122
|
? html`
|
@@ -108,6 +129,7 @@ export class NileTag extends NileElement {
|
|
108
129
|
class="tag__remove"
|
109
130
|
@click=${this.handleRemoveClick}
|
110
131
|
tabindex="-1"
|
132
|
+
color="var(${colorVariable})"
|
111
133
|
></nile-icon-button>
|
112
134
|
`
|
113
135
|
: ''}
|
@@ -18,10 +18,6 @@ export const styles = css`
|
|
18
18
|
margin: 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
[hidden] {
|
22
|
-
display: none;
|
23
|
-
}
|
24
|
-
|
25
21
|
.alert {
|
26
22
|
position: relative;
|
27
23
|
display: flex;
|
@@ -171,6 +167,10 @@ export const styles = css`
|
|
171
167
|
height: 24px;
|
172
168
|
border-radius: 4px;
|
173
169
|
}
|
170
|
+
|
171
|
+
[hidden] {
|
172
|
+
display: none;
|
173
|
+
}
|
174
174
|
`;
|
175
175
|
|
176
176
|
export default [styles];
|
@@ -45,7 +45,7 @@ export class NileTooltip extends NileElement {
|
|
45
45
|
@query('nile-popup') popup: NilePopup;
|
46
46
|
|
47
47
|
/** The tooltip's content. If you need to display HTML, use the `content` slot instead. */
|
48
|
-
@property() content = '';
|
48
|
+
@property({ type: String, reflect: true }) content = '';
|
49
49
|
|
50
50
|
/**
|
51
51
|
* The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip
|
@@ -229,7 +229,7 @@ export class NileTooltip extends NileElement {
|
|
229
229
|
|
230
230
|
/** Shows the tooltip. */
|
231
231
|
async show() {
|
232
|
-
if (this.open) {
|
232
|
+
if (this.open || !(this.content?.trim().length)) {
|
233
233
|
return undefined;
|
234
234
|
}
|
235
235
|
|