@limetech/lime-elements 34.0.0 → 34.0.2-next.10
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/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +4 -0
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +25 -27
- package/dist/cjs/limel-flatpickr-adapter_2.cjs.entry.js +14 -6
- package/dist/cjs/limel-form.cjs.entry.js +5 -6
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/code-editor/code-editor.js +4 -0
- package/dist/collection/components/collapsible-section/collapsible-section.css +10 -5
- package/dist/collection/components/collapsible-section/collapsible-section.js +26 -28
- package/dist/collection/components/date-picker/pickers/MonthPicker.js +14 -6
- package/dist/collection/components/form/form.css +74 -3
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +1 -1
- package/dist/collection/components/form/templates/array-field.js +3 -4
- package/dist/collection/components/select/select.css +2 -3
- package/dist/collection/components/table/table.css +9 -9
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +4 -0
- package/dist/esm/limel-collapsible-section.entry.js +26 -28
- package/dist/esm/limel-flatpickr-adapter_2.entry.js +14 -6
- package/dist/esm/limel-form.entry.js +5 -6
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-3525d50c.entry.js → p-279b7599.entry.js} +1 -1
- package/dist/lime-elements/p-597cbe05.entry.js +1 -0
- package/dist/lime-elements/{p-6be31658.entry.js → p-5c6bdaa7.entry.js} +1 -1
- package/dist/lime-elements/{p-1d7c7d5e.entry.js → p-c6b97214.entry.js} +1 -1
- package/dist/lime-elements/{p-587bd6ca.entry.js → p-e28a4246.entry.js} +1 -1
- package/dist/lime-elements/{p-a3dadae7.entry.js → p-fbe32287.entry.js} +1 -1
- package/dist/types/components/collapsible-section/collapsible-section.d.ts +1 -2
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +1 -1
- package/dist/types/components/list/list-item.types.d.ts +1 -1
- package/package.json +5 -5
- package/dist/lime-elements/p-9d362dd5.entry.js +0 -1
|
@@ -32,11 +32,10 @@ export declare class CollapsibleSection {
|
|
|
32
32
|
* Emitted when an action is clicked inside the header
|
|
33
33
|
*/
|
|
34
34
|
private action;
|
|
35
|
-
private host;
|
|
36
|
-
constructor();
|
|
37
35
|
render(): any;
|
|
38
36
|
private onClick;
|
|
39
37
|
private handleKeyDown;
|
|
38
|
+
private handleInteraction;
|
|
40
39
|
private renderActions;
|
|
41
40
|
private renderActionButton;
|
|
42
41
|
private handleActionClick;
|
|
@@ -34,7 +34,7 @@ export declare class CollapsibleItemTemplate extends React.Component {
|
|
|
34
34
|
componentWillUnmount(): void;
|
|
35
35
|
render(): React.ReactElement<{
|
|
36
36
|
header: any;
|
|
37
|
-
|
|
37
|
+
class: string;
|
|
38
38
|
ref: string;
|
|
39
39
|
'is-open': boolean;
|
|
40
40
|
}, string | React.JSXElementConstructor<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.2-next.10",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@commitlint/config-conventional": "^13.1.0",
|
|
45
45
|
"@lundalogik/cz-conventional-changelog": "^3.1.0",
|
|
46
|
-
"@lundalogik/lime-icons8": "^2.
|
|
46
|
+
"@lundalogik/lime-icons8": "^2.7.0",
|
|
47
47
|
"@popperjs/core": "^2.9.3",
|
|
48
48
|
"@rjsf/core": "^2.5.1",
|
|
49
49
|
"@stencil/core": "^2.10.0",
|
|
50
|
-
"@stencil/eslint-plugin": "^0.
|
|
50
|
+
"@stencil/eslint-plugin": "^0.4.0",
|
|
51
51
|
"@stencil/sass": "^1.4.1",
|
|
52
52
|
"@types/codemirror": "^5.60.2",
|
|
53
53
|
"@types/html-escaper": "^3.0.0",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"dayjs": "^1.10.6",
|
|
67
67
|
"eslint": "^7.32.0",
|
|
68
68
|
"eslint-config-prettier": "^8.3.0",
|
|
69
|
-
"eslint-plugin-jsdoc": "^
|
|
69
|
+
"eslint-plugin-jsdoc": "^37.0.3",
|
|
70
70
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
71
71
|
"eslint-plugin-prettier": "^4.0.0",
|
|
72
|
-
"eslint-plugin-react": "^7.
|
|
72
|
+
"eslint-plugin-react": "^7.27.1",
|
|
73
73
|
"eslint-plugin-sonarjs": "^0.10.0",
|
|
74
74
|
"flatpickr": "^4.6.9",
|
|
75
75
|
"html-escaper": "^3.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as o,h as r,g as t}from"./p-92146da6.js";import{d as n}from"./p-c70b1ea3.js";import{E as a,a as i}from"./p-216ffe20.js";let s=class{constructor(r){e(this,r),this.open=o(this,"open",7),this.close=o(this,"close",7),this.action=o(this,"action",7),this.isOpen=!1,this.handleKeyDown=e=>{e.key!==a&&e.keyCode!==i||(e.stopPropagation(),e.preventDefault(),(this.host.shadowRoot.activeElement||document.activeElement).click())},this.handleActionClick=e=>o=>{o.stopPropagation(),this.action.emit(e)},this.onClick=this.onClick.bind(this),this.renderActionButton=this.renderActionButton.bind(this)}render(){return r("section",{class:this.isOpen?"open":""},r("header",{class:"section__header",onClick:this.onClick,onKeyDown:this.handleKeyDown,tabindex:"0"},r("div",{class:"section__header__expand-icon"},r("div",{class:"expand-icon__line"}),r("div",{class:"expand-icon__line"}),r("div",{class:"expand-icon__line"}),r("div",{class:"expand-icon__line"})),r("h2",{class:"section__header__title mdc-typography mdc-typography--headline2"},this.header),r("div",{class:"section__header__divider-line"}),this.renderActions()),r("div",{class:"section__body"},r("slot",null)))}onClick(){this.isOpen=!this.isOpen,this.isOpen?(this.open.emit(),setTimeout(n,100)):this.close.emit()}renderActions(){if(this.actions)return r("div",{class:"section__header__actions"},this.actions.map(this.renderActionButton))}renderActionButton(e){return r("limel-icon-button",{icon:e.icon,label:e.label,disabled:e.disabled,onClick:this.handleActionClick(e)})}get host(){return t(this)}};s.style=':host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}:host{--border-radius-of-header:0.75rem;display:block}:host([hidden]){display:none}:host([disabled]){pointer-events:none}.section__header{transition:background-color 0.4s ease, border-radius 0.1s ease;cursor:pointer;align-items:center;display:flex;justify-content:space-between;padding-left:0.625rem;padding-right:0.625rem;height:3.75rem;background-color:var(--closed-header-background-color, rgb(var(--contrast-200)));border-radius:var(--border-radius-of-header)}section.open .section__header{background-color:var(--open-header-background-color, rgb(var(--contrast-100)));border-radius:var(--border-radius-of-header) var(--border-radius-of-header) 0 0}section.open .section__header:hover{background-color:var(--open-header-background-color, rgb(var(--contrast-300)))}.section__header:hover{background-color:var(--open-header-background-color, rgb(var(--contrast-300)))}.section__header:focus{outline:none}.section__header:focus-visible{box-shadow:var(--shadow-depth-8-focused)}.section__header__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline2-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline2-line-height, 0.875rem);font-weight:300;font-weight:var(--mdc-typography-headline2-font-weight, 300);letter-spacing:-0.0083333333em;letter-spacing:var(--mdc-typography-headline2-letter-spacing, -0.0083333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline2-text-transform, inherit);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:normal;justify-self:flex-start;padding-right:0.75rem;user-select:none}.section__header__divider-line{transition:opacity 0.3s ease 0.3s;flex-grow:1;height:0.125rem;border-radius:0.0625rem;background-color:var(--header-stroke-color, rgb(var(--contrast-900)));margin-right:1rem;opacity:0}section.open .section__header__divider-line{opacity:0.16}.section__header__actions{justify-self:flex-end;flex-shrink:0}@keyframes fade-in-section__body{0%{opacity:0}100%{opacity:1}}.section__body{animation:fade-in-section__body 0.3s ease-in forwards;background-color:var(--body-background-color, var(--contrast-100));padding-left:var(--body-padding, 1.25rem);padding-right:var(--body-padding, 1.25rem);margin-bottom:1.5rem;border-radius:0 0 var(--border-radius-of-header) var(--border-radius-of-header);display:none;opacity:0}section.open .section__body{display:block}.section__body:before,.section__body:after{content:" ";display:table}.section__body:after{clear:both}.section__header__expand-icon{position:relative;height:1.875rem;margin:0 1rem 0 0.5rem;width:0.75rem;flex-shrink:0}.expand-icon__line{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:100%;border-radius:1rem;height:0.125rem;background-color:var(--header-stroke-color, rgb(var(--contrast-900)))}.expand-icon__line:first-of-type,.expand-icon__line:last-of-type{transition:opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s}.expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 90deg)}.expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, -90deg)}.expand-icon__line:nth-of-type(2),.expand-icon__line:nth-of-type(3){transition:opacity 0.2s ease, transform 0.18s ease}.section__header:hover .expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 0deg)}.section__header:hover .expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, 0deg)}.section__header:hover .expand-icon__line:nth-of-type(2),.section__header:hover .expand-icon__line:nth-of-type(3){transition:opacity 0.5s ease 0.4s, transform 0.7s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s}.section__header:hover .expand-icon__line:nth-of-type(2){transform:translate3d(0, -0.5rem, 0);opacity:0.4}.section__header:hover .expand-icon__line:nth-of-type(3){transform:translate3d(0, 0.5rem, 0);opacity:0.4}section.open .section__header .expand-icon__line:first-of-type,section.open .section__header .expand-icon__line:last-of-type{transition:opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s}section.open .section__header .expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 0deg)}section.open .section__header .expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, 0deg)}section.open .section__header .expand-icon__line:nth-of-type(2),section.open .section__header .expand-icon__line:nth-of-type(3){transition:opacity 1s ease, transform 0.4s ease}section.open .section__header .expand-icon__line:nth-of-type(2){transform:translate3d(0, -1rem, 0);opacity:0}section.open .section__header .expand-icon__line:nth-of-type(3){transform:translate3d(0, 1rem, 0);opacity:0}section.open .section__header:hover .expand-icon__line:first-of-type,section.open .section__header:hover .expand-icon__line:last-of-type{transition:opacity 0.2s ease 0.4s, transform 0.4s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s}section.open .section__header:hover .expand-icon__line:first-of-type{transform:rotate3d(0, 0, 1, 45deg)}section.open .section__header:hover .expand-icon__line:last-of-type{transform:rotate3d(0, 0, 1, -45deg)}';export{s as limel_collapsible_section}
|