@limetech/lime-elements 39.44.2 → 39.44.4

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.
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as i,a as t}from"./p-BGxJfR2f.js";import{c as l}from"./p-JbKhhoXs.js";import{C as a}from"./p-CYivp4-w.js";const r=class{constructor(i){e(this,i),this.change=o(this,"change"),this.disabled=!1,this.readonly=!1,this.checked=!1,this.indeterminate=!1,this.required=!1,this.readonlyLabels=[],this.modified=!1,this.shouldReinitialize=!1,this.inputId=l(),this.helperTextId=l(),this.destroyMDCInstances=()=>{const e=this.getCheckboxElement();e&&(delete e.dataset.indeterminate,e.indeterminate=!1)},this.isInvalid=()=>!!this.invalid||!(!this.required||!this.modified||this.checked)||void 0,this.initialize=()=>{const e=this.getCheckboxElement();e&&(e.indeterminate=this.indeterminate,e.checked=this.checked||this.indeterminate)},this.getCheckboxElement=()=>{var e,o;return(null===(o=null===(e=this.limelCheckbox)||void 0===e?void 0:e.shadowRoot)||void 0===o?void 0:o.querySelector('input[type="checkbox"]'))||null},this.onChange=e=>{var o;e.stopPropagation();const i=e.currentTarget,t=null!==(o=null==i?void 0:i.checked)&&void 0!==o?o:this.checked;this.change.emit(t),this.modified=!0}}handleCheckedChange(e){const o=this.getCheckboxElement();o&&(o.checked=e||this.indeterminate)}handleIndeterminateChange(e){const o=this.getCheckboxElement();o&&(o.checked=this.checked||e,o.indeterminate=e)}handleReadonlyChange(){this.destroyMDCInstances(),this.shouldReinitialize=!0}componentDidRender(){this.shouldReinitialize&&(this.initialize(),this.shouldReinitialize=!1)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}disconnectedCallback(){this.destroyMDCInstances()}render(){return i(a,{key:"2193fb569354ec8ef9effbeaa5d600c9fde9686f",disabled:this.disabled||this.readonly,label:this.label,readonlyLabels:this.readonlyLabels,helperText:this.helperText,helperTextId:this.helperTextId,checked:this.checked||this.indeterminate,indeterminate:this.indeterminate,required:this.required,readonly:this.readonly,invalid:this.isInvalid(),onChange:this.onChange,id:this.inputId})}get limelCheckbox(){return t(this)}static get watchers(){return{checked:[{handleCheckedChange:0}],indeterminate:[{handleIndeterminateChange:0}],readonly:[{handleReadonlyChange:0}]}}};r.style='@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}.boolean-input{--limel-boolean-input-box-size:1.25rem;--limel-boolean-input-gap-size:0.5rem;position:relative;isolation:isolate;display:flex;align-items:center;min-height:var(--limel-checkbox-min-height, 2.5rem);width:100%}.boolean-input input[type=checkbox],.boolean-input input[type=radio]{position:absolute;width:0;height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;-webkit-appearance:none;-moz-appearance:none;appearance:none}label.boolean-input-label{min-width:var(--limel-boolean-input-box-size);min-height:var(--limel-boolean-input-box-size);padding-top:0.125rem;cursor:pointer;position:relative;width:100%;overflow-wrap:var(--limel-boolean-input-label-overflow-wrap, normal);font-size:var(--limel-theme-default-small-font-size);color:var(--limel-theme-text-primary-on-background-color);padding-left:calc(var(--limel-boolean-input-box-size) + var(--limel-boolean-input-gap-size))}.disabled:not([readonly]):not([readonly=true]) label.boolean-input-label{cursor:not-allowed;color:var(--limel-theme-text-disabled-color)}.required label.boolean-input-label:after{margin-left:0.0625rem;content:"*"}.invalid:not(.readonly) label.boolean-input-label{color:var(--limel-theme-error-text-color)}:host(limel-checkbox.hide-label) label.boolean-input-label,.hide-label label.boolean-input-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;width:var(--limel-boolean-input-box-size)}.box{position:absolute;pointer-events:none;transition:border-color 0.4s ease 0.2s, background-color 0.2s ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease;display:inline-block;vertical-align:middle;width:var(--limel-boolean-input-box-size);height:var(--limel-boolean-input-box-size);margin-right:var(--limel-boolean-input-gap-size);border-radius:var(--limel-boolean-input-box-border-radius);border:0.125rem solid;border-color:var(--checkbox-unchecked-border-color, rgb(var(--contrast-900)));background-color:var(--limel-checkbox-background-color, rgb(var(--contrast-300)));}.checked .box,.boolean-input>input[type=checkbox]:checked+.box,.boolean-input>input[type=radio]:checked+.box{background-color:var(--lime-primary-color, var(--limel-theme-primary-color));border-color:var(--lime-primary-color, var(--limel-theme-primary-color))}.disabled .box{opacity:0.4}.box{}.boolean-input:not(.disabled):hover .box{will-change:box-shadow;box-shadow:var(--button-shadow-hovered)}.boolean-input:not(.disabled):active .box{will-change:box-shadow;box-shadow:var(--button-shadow-pressed)}.box:before{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);content:"";position:absolute;inset:-0.1875rem;border-radius:inherit;}.boolean-input>input[type=checkbox]:focus-visible+.box:before,.boolean-input>input[type=radio]:focus-visible+.box:before{will-change:box-shadow;box-shadow:var(--shadow-depth-8-focused)}.box:after{transition:opacity 0.2s ease, width 0.4s ease, box-shadow 0.6s cubic-bezier(0.68, -0.55, 0, 1.87), transform 0.6s cubic-bezier(0.68, -0.55, 0, 1.87);content:"";position:absolute;inset:0;margin:auto;border-radius:1rem;opacity:0;background-color:rgb(var(--color-white));}.boolean-input:not(.disabled):hover .box:after{will-change:opacity, box-shadow, transform, width}:host(limel-checkbox){--limel-boolean-input-label-overflow-wrap:var( --checkbox-label-overflow-wrap, normal );min-height:var(--limel-checkbox-min-height, 2.5rem)}.box:after{height:0.125rem;width:0.25rem}.indeterminate .box:after{opacity:1;width:calc(var(--limel-boolean-input-box-size) - 0.5rem)}.checkbox{--limel-boolean-input-box-border-radius:0.25rem}.checkbox svg.check-mark{position:absolute;z-index:1;inset:0;transform:translate3d(-0.125rem, -0.125rem, 0);width:var(--limel-boolean-input-box-size);height:var(--limel-boolean-input-box-size);padding:0.25rem;color:rgb(var(--color-white));opacity:0;stroke-width:0.1875rem;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.checkbox svg.check-mark path{stroke-dashoffset:29.7833;stroke-dasharray:29.7833;transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1)}.checkbox{}.checkbox:not(.indeterminate)>input[type=checkbox]:checked+.box svg.check-mark{opacity:1}.checkbox:not(.indeterminate)>input[type=checkbox]:checked+.box svg.check-mark path{stroke-dashoffset:0}limel-dynamic-label{margin-top:0.375rem;margin-left:-0.25rem}:host(limel-checkbox:focus),:host(limel-checkbox:focus-visible),:host(limel-checkbox:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-checkbox){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limel-checkbox:focus) limel-helper-line,:host(limel-checkbox:focus-visible) limel-helper-line,:host(limel-checkbox:focus-within) limel-helper-line,:host(limel-checkbox:hover) limel-helper-line{will-change:grid-template-rows}';export{r as limel_checkbox}
@@ -72,7 +72,7 @@ export declare class Checkbox {
72
72
  */
73
73
  private change;
74
74
  private limelCheckbox;
75
- private id;
75
+ private inputId;
76
76
  private helperTextId;
77
77
  handleCheckedChange(newValue: boolean): void;
78
78
  handleIndeterminateChange(newValue: boolean): void;
@@ -32,6 +32,7 @@ export declare const rowLayoutSchema: FormSchema;
32
32
  export declare const rowLayoutWithCustomComponentSchema: FormSchema;
33
33
  export declare const nestedArrayObjectSchema: FormSchema;
34
34
  export declare const topLevelStringCustomComponentSchema: FormSchema;
35
+ export declare const stringWithDefaultCustomComponentSchema: FormSchema;
35
36
  export declare const arrayItemWithDependenciesSchema: FormSchema;
36
37
  export declare const arrayItemWithDependenciesAndCustomConfigSchema: FormSchema;
37
38
  export declare const nestedStringCustomComponentSchema: FormSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "39.44.2",
3
+ "version": "39.44.4",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -52,26 +52,26 @@
52
52
  "generate": "stencil generate"
53
53
  },
54
54
  "devDependencies": {
55
- "@commitlint/config-conventional": "^19.8.1",
55
+ "@commitlint/config-conventional": "^21.2.0",
56
56
  "@limetech/eslint-config": "^4.0.0",
57
- "@microsoft/api-extractor": "^7.58.7",
58
- "@playwright/test": "1.60.0",
57
+ "@microsoft/api-extractor": "^7.58.12",
58
+ "@playwright/test": "1.62.1",
59
59
  "@popperjs/core": "^2.11.8",
60
- "@rjsf/core": "^6.6.1",
61
- "@rjsf/utils": "^6.6.1",
62
- "@rjsf/validator-ajv8": "^6.6.1",
60
+ "@rjsf/core": "^6.7.1",
61
+ "@rjsf/utils": "^6.7.1",
62
+ "@rjsf/validator-ajv8": "^6.7.1",
63
63
  "@rollup/plugin-node-resolve": "^13.3.0",
64
64
  "@stencil/core": "^4.43.5",
65
- "@stencil/sass": "^3.2.3",
65
+ "@stencil/sass": "^3.3.3",
66
66
  "@stencil/vitest": "^1.12.1",
67
67
  "@types/codemirror": "^5.60.17",
68
68
  "@types/html-escaper": "^3.0.4",
69
69
  "@types/lodash-es": "^4.17.12",
70
- "@types/react": "^19.2.16",
71
- "@types/react-dom": "^19.2.3",
72
- "@types/tabulator-tables": "^6.3.3",
70
+ "@types/react": "^19.2.18",
71
+ "@types/react-dom": "^19.2.4",
72
+ "@types/tabulator-tables": "^6.3.6",
73
73
  "@vitest/browser-playwright": "^4.1.10",
74
- "axe-core": "4.12.0",
74
+ "axe-core": "4.13.0",
75
75
  "codemirror": "^5.65.9",
76
76
  "cross-env": "^10.1.0",
77
77
  "dayjs": "^1.11.21",
@@ -79,7 +79,7 @@
79
79
  "eslint": "^9.39.4",
80
80
  "flatpickr": "^4.6.13",
81
81
  "glob": "^13.0.6",
82
- "globals": "^16.5.0",
82
+ "globals": "^17.9.0",
83
83
  "html-escaper": "^3.0.3",
84
84
  "jsonlint-mod": "^1.7.6",
85
85
  "jsx-dom": "^8.1.6",
@@ -93,13 +93,13 @@
93
93
  "postal-mime": "^2.7.4",
94
94
  "prettier": "^3.8.3",
95
95
  "prosemirror-example-setup": "^1.2.3",
96
- "prosemirror-markdown": "^1.13.4",
97
- "prosemirror-model": ">=1.22.1",
96
+ "prosemirror-markdown": "^1.13.5",
97
+ "prosemirror-model": ">=1.25.11",
98
98
  "prosemirror-schema-basic": "^1.2.4",
99
99
  "prosemirror-tables": "^1.8.5",
100
100
  "prosemirror-test-builder": "^1.1.1",
101
- "react": "^19.2.7",
102
- "react-dom": "^19.2.7",
101
+ "react": "^19.2.8",
102
+ "react-dom": "^19.2.8",
103
103
  "rehype-parse": "^9.0.1",
104
104
  "rehype-raw": "^7.0.0",
105
105
  "rehype-sanitize": "^6.0.0",
@@ -113,14 +113,14 @@
113
113
  "sirv": "^3.0.2",
114
114
  "sortablejs": "^1.15.7",
115
115
  "style-to-object": "^1.0.14",
116
- "tabulator-tables": "^6.4.0",
116
+ "tabulator-tables": "^6.5.2",
117
117
  "typescript": "^4.9.5",
118
118
  "unified": "^11.0.5",
119
119
  "unist-util-visit": "^5.0.0",
120
120
  "yargs": "^17.7.2"
121
121
  },
122
122
  "overrides": {
123
- "prosemirror-model": ">=1.22.1"
123
+ "prosemirror-model": "$prosemirror-model"
124
124
  },
125
125
  "keywords": [
126
126
  "lime elements",
@@ -139,6 +139,5 @@
139
139
  "bugs": {
140
140
  "url": "https://github.com/Lundalogik/lime-elements/issues"
141
141
  },
142
- "homepage": "https://github.com/Lundalogik/lime-elements#readme",
143
- "packageManager": "npm@>=10.9"
142
+ "homepage": "https://github.com/Lundalogik/lime-elements#readme"
144
143
  }