@aquera/nile-elements 0.0.6-5 → 0.0.6-7
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 +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +1 -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-badge/index.d.ts +1 -37
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/index.js +1 -120
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/nile-badge.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/nile-badge.css.js +63 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/nile-badge.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/nile-badge.d.ts +45 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/nile-badge.js +80 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-badge/nile-badge.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.css.js +77 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.d.ts +50 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js +180 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-content-editor/nile-content-editor.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/array.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/array.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/array.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/arrayofobject.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/arrayofobject.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/arrayofobject.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/index.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/index.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/numberinput.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/numberinput.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/numberinput.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/object.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/object.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/object.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/stringletters.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/stringletters.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/stringletters.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.css.js +5 -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 +15 -7
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-switcher/nile-switcher.js +110 -29
- 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-textarea/nile-textarea.js +3 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/demo/filenames.txt +1 -1
- package/demo/index.html +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +329 -214
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.cjs.js.map +1 -1
- package/dist/nile-badge/index.esm.js +1 -55
- package/dist/nile-badge/nile-badge.cjs.js +2 -0
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -0
- package/dist/nile-badge/nile-badge.css.cjs.js +2 -0
- package/dist/nile-badge/nile-badge.css.cjs.js.map +1 -0
- package/dist/nile-badge/nile-badge.css.esm.js +51 -0
- package/dist/nile-badge/nile-badge.esm.js +12 -0
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-content-editor/index.cjs.js +2 -0
- package/dist/nile-content-editor/index.cjs.js.map +1 -0
- package/dist/nile-content-editor/index.esm.js +1 -0
- package/dist/nile-content-editor/nile-content-editor.cjs.js +2 -0
- package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -0
- package/dist/nile-content-editor/nile-content-editor.css.cjs.js +2 -0
- package/dist/nile-content-editor/nile-content-editor.css.cjs.js.map +1 -0
- package/dist/nile-content-editor/nile-content-editor.css.esm.js +65 -0
- package/dist/nile-content-editor/nile-content-editor.esm.js +33 -0
- package/dist/nile-icon/icons/svg/array.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/array.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/array.esm.js +1 -0
- package/dist/nile-icon/icons/svg/arrayofobject.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/arrayofobject.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/arrayofobject.esm.js +1 -0
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/numberinput.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/numberinput.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/numberinput.esm.js +1 -0
- package/dist/nile-icon/icons/svg/object.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/object.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/object.esm.js +1 -0
- package/dist/nile-icon/icons/svg/stringletters.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/stringletters.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/stringletters.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +2 -2
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.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 +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.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 +5 -0
- package/dist/nile-switcher/nile-switcher.esm.js +28 -21
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- 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.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.esm.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-badge/index.d.ts +1 -37
- package/dist/src/nile-badge/index.js +1 -120
- package/dist/src/nile-badge/index.js.map +1 -1
- package/dist/src/nile-badge/nile-badge.css.d.ts +12 -0
- package/dist/src/nile-badge/nile-badge.css.js +63 -0
- package/dist/src/nile-badge/nile-badge.css.js.map +1 -0
- package/dist/src/nile-badge/nile-badge.d.ts +45 -0
- package/dist/src/nile-badge/nile-badge.js +80 -0
- package/dist/src/nile-badge/nile-badge.js.map +1 -0
- package/dist/src/nile-content-editor/index.d.ts +1 -0
- package/dist/src/nile-content-editor/index.js +2 -0
- package/dist/src/nile-content-editor/index.js.map +1 -0
- package/dist/src/nile-content-editor/nile-content-editor.css.d.ts +12 -0
- package/dist/src/nile-content-editor/nile-content-editor.css.js +77 -0
- package/dist/src/nile-content-editor/nile-content-editor.css.js.map +1 -0
- package/dist/src/nile-content-editor/nile-content-editor.d.ts +50 -0
- package/dist/src/nile-content-editor/nile-content-editor.js +180 -0
- package/dist/src/nile-content-editor/nile-content-editor.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/array.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/array.js +5 -0
- package/dist/src/nile-icon/icons/svg/array.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/arrayofobject.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/arrayofobject.js +5 -0
- package/dist/src/nile-icon/icons/svg/arrayofobject.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/index.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/index.js +5 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/numberinput.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/numberinput.js +5 -0
- package/dist/src/nile-icon/icons/svg/numberinput.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/object.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/object.js +5 -0
- package/dist/src/nile-icon/icons/svg/object.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/stringletters.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/stringletters.js +5 -0
- package/dist/src/nile-icon/icons/svg/stringletters.js.map +1 -0
- package/dist/src/nile-switcher/nile-switcher.css.js +5 -0
- package/dist/src/nile-switcher/nile-switcher.css.js.map +1 -1
- package/dist/src/nile-switcher/nile-switcher.d.ts +15 -7
- package/dist/src/nile-switcher/nile-switcher.js +110 -29
- package/dist/src/nile-switcher/nile-switcher.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.js +3 -1
- package/dist/src/nile-textarea/nile-textarea.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/nile-badge/index.ts +1 -119
- package/src/nile-badge/nile-badge.css.ts +64 -0
- package/src/nile-badge/nile-badge.ts +94 -0
- package/src/nile-content-editor/index.ts +1 -0
- package/src/nile-content-editor/nile-content-editor.css.ts +79 -0
- package/src/nile-content-editor/nile-content-editor.ts +186 -0
- package/src/nile-icon/icons/svg/array.ts +5 -0
- package/src/nile-icon/icons/svg/arrayofobject.ts +5 -0
- package/src/nile-icon/icons/svg/index.ts +5 -0
- package/src/nile-icon/icons/svg/numberinput.ts +5 -0
- package/src/nile-icon/icons/svg/object.ts +5 -0
- package/src/nile-icon/icons/svg/stringletters.ts +5 -0
- package/src/nile-switcher/nile-switcher.css.ts +5 -0
- package/src/nile-switcher/nile-switcher.ts +118 -32
- package/src/nile-textarea/nile-textarea.ts +3 -1
package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js
CHANGED
@@ -31,4 +31,5 @@ export { NileFormHelpText } from './nile-form-help-text';
|
|
31
31
|
export { NileCalendar } from './nile-calendar';
|
32
32
|
export { NileLink } from './nile-link';
|
33
33
|
export { NileSwitcher } from './nile-switcher';
|
34
|
+
export { NileContentEditor } from './nile-content-editor';
|
34
35
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAA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","sourcesContent":["export { NileButton } from './nile-button';\nexport { NileHeading } from './nile-heading';\nexport { NileIcon } from './nile-icon';\nexport { NileInput } from './nile-input';\nexport { NileSidebar } from './nile-sidebar';\nexport { NileMenu } from './nile-menu';\nexport { NileBadge } from './nile-badge';\nexport { NileDrawer } from './nile-drawer';\nexport { NileCheckbox } from './nile-checkbox';\nexport { NileRadio } from './nile-radio';\nexport { NileRadioGroup } from './nile-radio-group';\nexport { NilePopup } from './nile-popup';\nexport { NileTooltip } from './nile-tooltip';\nexport { NileSlideToggle } from './nile-slide-toggle';\nexport { NileLoader } from './nile-loader';\nexport { NileProgressBar } from './nile-progress-bar';\nexport { NileSpinner } from './nile-spinner';\nexport { NileSelect } from './nile-select';\nexport { NileOption } from './nile-option';\nexport { NileTag } from './nile-tag';\nexport { NileIconButton } from './nile-icon-button';\nexport { NileMenuItem } from './nile-menu-item';\nexport { NileDropdown } from './nile-dropdown';\nexport { NileAutoComplete } from './nile-auto-complete';\nexport { NileChip } from './nile-chip';\nexport { NileTextarea } from './nile-textarea';\nexport { NileDatePicker } from './nile-date-picker';\nexport { NileErrorMessage } from './nile-error-message';\nexport { NileFormErrorMessage } from './nile-form-error-message';\nexport { NileFormHelpText } from './nile-form-help-text';\nexport { NileCalendar } from './nile-calendar';\nexport { NileLink } from './nile-link';\nexport { NileSwitcher } from './nile-switcher';\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,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BAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { NileButton } from './nile-button';\nexport { NileHeading } from './nile-heading';\nexport { NileIcon } from './nile-icon';\nexport { NileInput } from './nile-input';\nexport { NileSidebar } from './nile-sidebar';\nexport { NileMenu } from './nile-menu';\nexport { NileBadge } from './nile-badge';\nexport { NileDrawer } from './nile-drawer';\nexport { NileCheckbox } from './nile-checkbox';\nexport { NileRadio } from './nile-radio';\nexport { NileRadioGroup } from './nile-radio-group';\nexport { NilePopup } from './nile-popup';\nexport { NileTooltip } from './nile-tooltip';\nexport { NileSlideToggle } from './nile-slide-toggle';\nexport { NileLoader } from './nile-loader';\nexport { NileProgressBar } from './nile-progress-bar';\nexport { NileSpinner } from './nile-spinner';\nexport { NileSelect } from './nile-select';\nexport { NileOption } from './nile-option';\nexport { NileTag } from './nile-tag';\nexport { NileIconButton } from './nile-icon-button';\nexport { NileMenuItem } from './nile-menu-item';\nexport { NileDropdown } from './nile-dropdown';\nexport { NileAutoComplete } from './nile-auto-complete';\nexport { NileChip } from './nile-chip';\nexport { NileTextarea } from './nile-textarea';\nexport { NileDatePicker } from './nile-date-picker';\nexport { NileErrorMessage } from './nile-error-message';\nexport { NileFormErrorMessage } from './nile-form-error-message';\nexport { NileFormHelpText } from './nile-form-help-text';\nexport { NileCalendar } from './nile-calendar';\nexport { NileLink } from './nile-link';\nexport { NileSwitcher } from './nile-switcher';\nexport { NileContentEditor } from './nile-content-editor';\n"]}
|
@@ -1,37 +1 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* An nile-badge element.
|
4
|
-
*
|
5
|
-
* @fires count-changed - Indicates when the count changes
|
6
|
-
* @slot - This element has a slot
|
7
|
-
* @csspart button - The button
|
8
|
-
*/
|
9
|
-
export declare class NileBadge extends LitElement {
|
10
|
-
static styles: import("lit").CSSResult;
|
11
|
-
/**
|
12
|
-
* Button Lab
|
13
|
-
*/
|
14
|
-
name: number;
|
15
|
-
/**
|
16
|
-
* Button Lab
|
17
|
-
*/
|
18
|
-
icon: string;
|
19
|
-
/**
|
20
|
-
* Button Lab
|
21
|
-
*/
|
22
|
-
active: boolean;
|
23
|
-
get buttonClassMap(): {
|
24
|
-
'nds-badge--active': boolean;
|
25
|
-
};
|
26
|
-
/**
|
27
|
-
* Button Lab
|
28
|
-
*/
|
29
|
-
href: string;
|
30
|
-
_hasSlotContent(slotName: string): void;
|
31
|
-
render(): import("lit-html").TemplateResult<1>;
|
32
|
-
}
|
33
|
-
declare global {
|
34
|
-
interface HTMLElementTagNameMap {
|
35
|
-
'nile-badge': NileBadge;
|
36
|
-
}
|
37
|
-
}
|
1
|
+
export { NileBadge } from './nile-badge';
|
@@ -1,121 +1,2 @@
|
|
1
|
-
|
2
|
-
import { LitElement, html, css } from 'lit';
|
3
|
-
import { customElement, property } from 'lit/decorators.js';
|
4
|
-
import { classMap } from 'lit/directives/class-map.js';
|
5
|
-
/**
|
6
|
-
* An nile-badge element.
|
7
|
-
*
|
8
|
-
* @fires count-changed - Indicates when the count changes
|
9
|
-
* @slot - This element has a slot
|
10
|
-
* @csspart button - The button
|
11
|
-
*/
|
12
|
-
let NileBadge = class NileBadge extends LitElement {
|
13
|
-
constructor() {
|
14
|
-
super(...arguments);
|
15
|
-
/**
|
16
|
-
* Button Lab
|
17
|
-
*/
|
18
|
-
this.name = 0;
|
19
|
-
/**
|
20
|
-
* Button Lab
|
21
|
-
*/
|
22
|
-
this.icon = '';
|
23
|
-
/**
|
24
|
-
* Button Lab
|
25
|
-
*/
|
26
|
-
this.active = false;
|
27
|
-
/**
|
28
|
-
* Button Lab
|
29
|
-
*/
|
30
|
-
this.href = '/';
|
31
|
-
}
|
32
|
-
get buttonClassMap() {
|
33
|
-
return {
|
34
|
-
'nds-badge--active': this.active,
|
35
|
-
};
|
36
|
-
}
|
37
|
-
_hasSlotContent(slotName) {
|
38
|
-
const slot = this.querySelector(`slot[name=${slotName}]`);
|
39
|
-
console.log(slot, 'slot');
|
40
|
-
}
|
41
|
-
render() {
|
42
|
-
const { name, icon, href } = this;
|
43
|
-
const hrefPath = `/${href}`;
|
44
|
-
return html `
|
45
|
-
<a class="nds-badge ${classMap(this.buttonClassMap)}">
|
46
|
-
<span class="nds-badge__link">${this.name}</span>
|
47
|
-
</a>
|
48
|
-
`;
|
49
|
-
}
|
50
|
-
};
|
51
|
-
NileBadge.styles = css `
|
52
|
-
:host {
|
53
|
-
display: block;
|
54
|
-
}
|
55
|
-
.nds-badge {
|
56
|
-
width: 24px;
|
57
|
-
height: 24px;
|
58
|
-
border-radius: 9rem;
|
59
|
-
font-size: 14px;
|
60
|
-
justify-content: space-around;
|
61
|
-
font-weight: bold;
|
62
|
-
display: flex;
|
63
|
-
background-color: rgb(221, 221, 221);
|
64
|
-
flex-wrap: nowrap;
|
65
|
-
align-items: center;
|
66
|
-
color: var(--nile-colors-dark-900);
|
67
|
-
}
|
68
|
-
|
69
|
-
.nds-badge:hover {
|
70
|
-
background: rgba(0, 94, 166, 0.1);
|
71
|
-
}
|
72
|
-
|
73
|
-
.nds-badge__link {
|
74
|
-
font-family: var(--nile-font-family-sans-serif);
|
75
|
-
font-style: normal;
|
76
|
-
font-weight: 400;
|
77
|
-
font-size: 14px;
|
78
|
-
line-height: 1;
|
79
|
-
letter-spacing: 0.2px;
|
80
|
-
text-decoration: none;
|
81
|
-
font-size: 12px;
|
82
|
-
}
|
83
|
-
|
84
|
-
.nds-badge__link:hover {
|
85
|
-
color: var(--nile-colors-dark-900);
|
86
|
-
}
|
87
|
-
|
88
|
-
.nds-badge--active {
|
89
|
-
background-color: var(--nile-colors-primary-700);
|
90
|
-
color: var(--nile-colors-neutral-100);
|
91
|
-
}
|
92
|
-
|
93
|
-
.nds-badge--active:hover {
|
94
|
-
background-color: var(---nile-colors-primary-700);
|
95
|
-
}
|
96
|
-
|
97
|
-
.nds-badge__icon {
|
98
|
-
margin-bottom: 0;
|
99
|
-
height: 14px;
|
100
|
-
}
|
101
|
-
`;
|
102
|
-
__decorate([
|
103
|
-
property()
|
104
|
-
], NileBadge.prototype, "name", void 0);
|
105
|
-
__decorate([
|
106
|
-
property()
|
107
|
-
], NileBadge.prototype, "icon", void 0);
|
108
|
-
__decorate([
|
109
|
-
property()
|
110
|
-
], NileBadge.prototype, "active", void 0);
|
111
|
-
__decorate([
|
112
|
-
property()
|
113
|
-
], NileBadge.prototype, "href", void 0);
|
114
|
-
NileBadge = __decorate([
|
115
|
-
customElement('nile-badge')
|
116
|
-
], NileBadge);
|
117
|
-
export { NileBadge };
|
118
|
-
// <span class="nds-badge__icon">
|
119
|
-
// <nile-icon name="${this.icon}" size="14" color="#000"></nile-icon>
|
120
|
-
// </span>
|
1
|
+
export { NileBadge } from './nile-badge';
|
121
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-badge/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { NileBadge } from './nile-badge';\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* Tag CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit-element").CSSResult;
|
11
|
+
declare const _default: import("lit-element").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { css } from 'lit-element';
|
8
|
+
/**
|
9
|
+
* Tag CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
}
|
14
|
+
|
15
|
+
.badge {
|
16
|
+
padding: 0 4px;
|
17
|
+
border-radius: 4px;
|
18
|
+
height: 16px;
|
19
|
+
font-size: 10.24px;
|
20
|
+
display: inline-flex;
|
21
|
+
align-items: center;/
|
22
|
+
justify-content: center;
|
23
|
+
}
|
24
|
+
|
25
|
+
.badge__content {
|
26
|
+
font-family: Colfax-regular;
|
27
|
+
font-size: 10.24px;
|
28
|
+
font-style: normal;
|
29
|
+
font-weight: 400;
|
30
|
+
letter-spacing: 0.2px;
|
31
|
+
}
|
32
|
+
|
33
|
+
.badge--primary {
|
34
|
+
background: #005EA6;
|
35
|
+
}
|
36
|
+
|
37
|
+
.badge--success {
|
38
|
+
background: #A5F3E1;
|
39
|
+
}
|
40
|
+
|
41
|
+
.badge--normal {
|
42
|
+
background: #E5E9EB;
|
43
|
+
}
|
44
|
+
|
45
|
+
.badge--warning {
|
46
|
+
background: #F3E0A5;
|
47
|
+
}
|
48
|
+
|
49
|
+
.badge--error {
|
50
|
+
background: #F3A5AA;
|
51
|
+
}
|
52
|
+
|
53
|
+
.badge--info {
|
54
|
+
background: #A5D3F3;
|
55
|
+
}
|
56
|
+
|
57
|
+
.badge--rounded {
|
58
|
+
border-radius: 100px;
|
59
|
+
padding: 0 6px;
|
60
|
+
}
|
61
|
+
`;
|
62
|
+
export default [styles];
|
63
|
+
//# sourceMappingURL=nile-badge.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-badge.css.js","sourceRoot":"","sources":["../../../src/nile-badge/nile-badge.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxB,CAAC;AACF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit-element';\n\n/**\n * Tag CSS\n */\nexport const styles = css`\n :host {\n }\n\n .badge {\n padding: 0 4px;\n border-radius: 4px;\n height: 16px;\n font-size: 10.24px;\n display: inline-flex;\n align-items: center;/\n justify-content: center;\n }\n\n .badge__content {\n font-family: Colfax-regular;\n font-size: 10.24px;\n font-style: normal;\n font-weight: 400;\n letter-spacing: 0.2px;\n }\n\n .badge--primary {\n background: #005EA6;\n }\n\n .badge--success {\n background: #A5F3E1;\n }\n\n .badge--normal {\n background: #E5E9EB;\n }\n\n .badge--warning {\n background: #F3E0A5;\n }\n\n .badge--error {\n background: #F3A5AA;\n }\n\n .badge--info {\n background: #A5D3F3;\n }\n\n .badge--rounded {\n border-radius: 100px;\n padding: 0 6px;\n }\n`;\nexport default [styles];\n"]}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { TemplateResult } from 'lit-element';
|
8
|
+
import '../nile-icon-button/nile-icon-button';
|
9
|
+
import NileElement from '../internal/nile-element';
|
10
|
+
import type { CSSResultGroup } from 'lit';
|
11
|
+
/**
|
12
|
+
* Nile icon component.
|
13
|
+
*
|
14
|
+
* @tag nile-badge
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* @summary badges are used as labels to organize things or to indicate a selection.
|
19
|
+
* @status stable
|
20
|
+
*
|
21
|
+
* @dependency nile-icon-button
|
22
|
+
*
|
23
|
+
* @slot - The badge's content.
|
24
|
+
*
|
25
|
+
* @event nile-remove - Emitted when the remove button is activated.
|
26
|
+
*
|
27
|
+
* @csspart base - The component's base wrapper.
|
28
|
+
* @csspart content - The badge's content.
|
29
|
+
* @csspart remove-button - The badge's remove button, an `<nile-icon-button>`.
|
30
|
+
* @csspart remove-button__base - The remove button's exported `base` part.
|
31
|
+
*/
|
32
|
+
export declare class NileBadge extends NileElement {
|
33
|
+
static styles: CSSResultGroup;
|
34
|
+
/** The badge's theme variant. */
|
35
|
+
variant: 'primary' | 'success' | 'normal' | 'warning' | 'error' | 'info';
|
36
|
+
/** Draws a pill-style badge with rounded edges. */
|
37
|
+
rounded: boolean;
|
38
|
+
render(): TemplateResult<1>;
|
39
|
+
}
|
40
|
+
export default NileBadge;
|
41
|
+
declare global {
|
42
|
+
interface HTMLElementTagNameMap {
|
43
|
+
'nile-badge': NileBadge;
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { __decorate } from "tslib";
|
8
|
+
import { html, property, } from 'lit-element';
|
9
|
+
import { styles } from './nile-badge.css';
|
10
|
+
import '../nile-icon-button/nile-icon-button';
|
11
|
+
import { classMap } from 'lit/directives/class-map.js';
|
12
|
+
import { customElement } from 'lit/decorators.js';
|
13
|
+
import NileElement from '../internal/nile-element';
|
14
|
+
/**
|
15
|
+
* Nile icon component.
|
16
|
+
*
|
17
|
+
* @tag nile-badge
|
18
|
+
*
|
19
|
+
*/
|
20
|
+
/**
|
21
|
+
* @summary badges are used as labels to organize things or to indicate a selection.
|
22
|
+
* @status stable
|
23
|
+
*
|
24
|
+
* @dependency nile-icon-button
|
25
|
+
*
|
26
|
+
* @slot - The badge's content.
|
27
|
+
*
|
28
|
+
* @event nile-remove - Emitted when the remove button is activated.
|
29
|
+
*
|
30
|
+
* @csspart base - The component's base wrapper.
|
31
|
+
* @csspart content - The badge's content.
|
32
|
+
* @csspart remove-button - The badge's remove button, an `<nile-icon-button>`.
|
33
|
+
* @csspart remove-button__base - The remove button's exported `base` part.
|
34
|
+
*/
|
35
|
+
let NileBadge = class NileBadge extends NileElement {
|
36
|
+
constructor() {
|
37
|
+
super(...arguments);
|
38
|
+
/** The badge's theme variant. */
|
39
|
+
this.variant = 'normal';
|
40
|
+
/** Draws a pill-style badge with rounded edges. */
|
41
|
+
this.rounded = false;
|
42
|
+
}
|
43
|
+
render() {
|
44
|
+
return html `
|
45
|
+
<span
|
46
|
+
part="base"
|
47
|
+
class=${classMap({
|
48
|
+
badge: true,
|
49
|
+
// Types
|
50
|
+
'badge--primary': this.variant === 'primary',
|
51
|
+
'badge--success': this.variant === 'success',
|
52
|
+
'badge--normal': this.variant === 'normal',
|
53
|
+
'badge--warning': this.variant === 'warning',
|
54
|
+
'badge--error': this.variant === 'error',
|
55
|
+
'badge--info': this.variant === 'info',
|
56
|
+
'badge--rounded': this.rounded,
|
57
|
+
})}
|
58
|
+
>
|
59
|
+
|
60
|
+
|
61
|
+
<slot part="content" class="badge__content"></slot>
|
62
|
+
|
63
|
+
|
64
|
+
</span>
|
65
|
+
`;
|
66
|
+
}
|
67
|
+
};
|
68
|
+
NileBadge.styles = styles;
|
69
|
+
__decorate([
|
70
|
+
property({ reflect: true })
|
71
|
+
], NileBadge.prototype, "variant", void 0);
|
72
|
+
__decorate([
|
73
|
+
property({ type: Boolean, reflect: true })
|
74
|
+
], NileBadge.prototype, "rounded", void 0);
|
75
|
+
NileBadge = __decorate([
|
76
|
+
customElement('nile-badge')
|
77
|
+
], NileBadge);
|
78
|
+
export { NileBadge };
|
79
|
+
export default NileBadge;
|
80
|
+
//# sourceMappingURL=nile-badge.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3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E,IAAI,EAAE,CAAC;0CAAiB;AAbjD,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAyCrB;SAzCY,SAAS;AA2CtB,eAAe,SAAS,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n property,\n CSSResultArray,\n TemplateResult,\n} from 'lit-element';\nimport { styles } from './nile-badge.css';\nimport '../nile-icon-button/nile-icon-button';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement } from 'lit/decorators.js';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup } from 'lit';\n/**\n * Nile icon component.\n *\n * @tag nile-badge\n *\n */\n\n/**\n * @summary badges are used as labels to organize things or to indicate a selection.\n * @status stable\n *\n * @dependency nile-icon-button\n *\n * @slot - The badge's content.\n *\n * @event nile-remove - Emitted when the remove button is activated.\n *\n * @csspart base - The component's base wrapper.\n * @csspart content - The badge's content.\n * @csspart remove-button - The badge's remove button, an `<nile-icon-button>`.\n * @csspart remove-button__base - The remove button's exported `base` part.\n */\n\n@customElement('nile-badge')\nexport class NileBadge extends NileElement {\n static styles: CSSResultGroup = styles;\n\n /** The badge's theme variant. */\n @property({ reflect: true }) variant:\n | 'primary'\n | 'success'\n | 'normal'\n | 'warning'\n | 'error'\n | 'info' = 'normal';\n\n /** Draws a pill-style badge with rounded edges. */\n @property({ type: Boolean, reflect: true }) rounded = false;\n\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n badge: true,\n\n // Types\n 'badge--primary': this.variant === 'primary',\n 'badge--success': this.variant === 'success',\n 'badge--normal': this.variant === 'normal',\n 'badge--warning': this.variant === 'warning',\n 'badge--error': this.variant === 'error',\n 'badge--info': this.variant === 'info',\n 'badge--rounded': this.rounded,\n })}\n >\n\n\n <slot part=\"content\" class=\"badge__content\"></slot>\n\n\n </span>\n `;\n }\n}\n\nexport default NileBadge;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-badge': NileBadge;\n }\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileContentEditor } from './nile-content-editor';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-content-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { NileContentEditor } from './nile-content-editor';\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* AttributeExpression CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit-element").CSSResult;
|
11
|
+
declare const _default: import("lit-element").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,77 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { css } from 'lit-element';
|
8
|
+
/**
|
9
|
+
* AttributeExpression CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
width: 100%;
|
14
|
+
box-sizing: border-box;
|
15
|
+
}
|
16
|
+
|
17
|
+
.content-editable-wrapper {
|
18
|
+
position: relative;
|
19
|
+
width: 100%;
|
20
|
+
box-sizing: border-box;
|
21
|
+
}
|
22
|
+
.content-editable-input {
|
23
|
+
box-sizing: border-box;
|
24
|
+
width: 100%;
|
25
|
+
padding: 9px;
|
26
|
+
border: 1px solid #c7ced4;
|
27
|
+
border-radius: 4px;
|
28
|
+
overflow-x: auto;
|
29
|
+
overflow-anchor: none;
|
30
|
+
scrollbar-width: none;
|
31
|
+
-ms-overflow-style: none;
|
32
|
+
cursor: text;
|
33
|
+
white-space: nowrap;
|
34
|
+
background-color: #ffffff;
|
35
|
+
height: 38px;
|
36
|
+
}
|
37
|
+
.content-editable-input:focus {
|
38
|
+
outline: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
.content-editable-input::-webkit-scrollbar {
|
42
|
+
display: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
.chips {
|
46
|
+
background: #e5e9eb;
|
47
|
+
color: #000;
|
48
|
+
border-radius: 4px;
|
49
|
+
padding: 6px;
|
50
|
+
margin-left: 3px;
|
51
|
+
display: inline;
|
52
|
+
letter-spacing: 0.2px;
|
53
|
+
}
|
54
|
+
|
55
|
+
.nile-options-container {
|
56
|
+
box-sizing: border-box;
|
57
|
+
background-color: #ffffff;
|
58
|
+
border: 1px solid #c7ced4;
|
59
|
+
overflow: auto;
|
60
|
+
}
|
61
|
+
|
62
|
+
nile-popup::part(popup) {
|
63
|
+
top: 91px;
|
64
|
+
}
|
65
|
+
|
66
|
+
label {
|
67
|
+
display: inline-block;
|
68
|
+
margin-bottom: 6px;
|
69
|
+
font-family: 'colfax-medium';
|
70
|
+
}
|
71
|
+
|
72
|
+
.asterik {
|
73
|
+
color: #e5434d;
|
74
|
+
}
|
75
|
+
`;
|
76
|
+
export default [styles];
|
77
|
+
//# sourceMappingURL=nile-content-editor.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-content-editor.css.js","sourceRoot":"","sources":["../../../src/nile-content-editor/nile-content-editor.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgExB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit-element';\n\n/**\n * AttributeExpression CSS\n */\nexport const styles = css`\n :host {\n width: 100%;\n box-sizing: border-box;\n }\n\n .content-editable-wrapper {\n position: relative;\n width: 100%;\n box-sizing: border-box;\n }\n .content-editable-input {\n box-sizing: border-box;\n width: 100%;\n padding: 9px;\n border: 1px solid #c7ced4;\n border-radius: 4px;\n overflow-x: auto;\n overflow-anchor: none;\n scrollbar-width: none;\n -ms-overflow-style: none;\n cursor: text;\n white-space: nowrap;\n background-color: #ffffff;\n height: 38px;\n }\n .content-editable-input:focus {\n outline: none;\n }\n\n .content-editable-input::-webkit-scrollbar {\n display: none;\n }\n\n .chips {\n background: #e5e9eb;\n color: #000;\n border-radius: 4px;\n padding: 6px;\n margin-left: 3px;\n display: inline;\n letter-spacing: 0.2px;\n }\n\n .nile-options-container {\n box-sizing: border-box;\n background-color: #ffffff;\n border: 1px solid #c7ced4;\n overflow: auto;\n }\n\n nile-popup::part(popup) {\n top: 91px;\n }\n\n label {\n display: inline-block;\n margin-bottom: 6px;\n font-family: 'colfax-medium';\n }\n\n .asterik {\n color: #e5434d;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { TemplateResult } from 'lit-element';
|
8
|
+
import { CSSResultGroup } from 'lit';
|
9
|
+
import NileElement from '../internal/nile-element';
|
10
|
+
/**
|
11
|
+
* Nile icon component.
|
12
|
+
*
|
13
|
+
* @tag nile-attribute-expression
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
export declare class NileContentEditor extends NileElement {
|
17
|
+
/**
|
18
|
+
* @summary Allows you to handle both input and dropdown selection
|
19
|
+
|
20
|
+
* @dependency nile-option
|
21
|
+
|
22
|
+
* @event nile-change - Emitted when the control's value changes.
|
23
|
+
*/
|
24
|
+
value: string;
|
25
|
+
dropdownOptions: Array<any>;
|
26
|
+
showLabel: boolean;
|
27
|
+
labelText: string;
|
28
|
+
required: boolean;
|
29
|
+
input: HTMLInputElement;
|
30
|
+
private openDropdown;
|
31
|
+
helpText: string;
|
32
|
+
errorMessage: string;
|
33
|
+
static styles: CSSResultGroup;
|
34
|
+
connectedCallback(): void;
|
35
|
+
disconnectedCallback(): void;
|
36
|
+
afterFirstRender(): Promise<boolean>;
|
37
|
+
private handleChange;
|
38
|
+
generateValuesFromHTMLTags(string: any): string;
|
39
|
+
generateHTMLTagsWithValues(string: any): string;
|
40
|
+
emitInputChange(): void;
|
41
|
+
handleOptions(option: any): void;
|
42
|
+
renderAutoOptions(): TemplateResult;
|
43
|
+
render(): TemplateResult;
|
44
|
+
}
|
45
|
+
export default NileContentEditor;
|
46
|
+
declare global {
|
47
|
+
interface HTMLElementTagNameMap {
|
48
|
+
'nile-content-editor': NileContentEditor;
|
49
|
+
}
|
50
|
+
}
|