@limetech/lime-elements 40.14.5 → 40.15.0
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/CHANGELOG.md +7 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +40 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-table.cjs.entry.js +175 -85
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/collapsible-section/collapsible-section.js +62 -2
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +40 -2
- package/dist/esm/limel-prosemirror-adapter.entry.js +2 -2
- package/dist/esm/limel-table.entry.js +175 -85
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-7829198d.entry.js → p-047c3234.entry.js} +1 -1
- package/dist/lime-elements/p-6e9c34f9.entry.js +1 -0
- package/dist/lime-elements/p-c583ab0d.entry.js +1 -0
- package/dist/types/components/collapsible-section/collapsible-section.d.ts +14 -0
- package/dist/types/components.d.ts +15 -0
- package/package.json +3 -3
- package/dist/lime-elements/p-01de145c.entry.js +0 -1
- package/dist/lime-elements/p-41fb6e88.entry.js +0 -1
|
@@ -21,6 +21,7 @@ import { Languages } from '../date-picker/date.types';
|
|
|
21
21
|
* @exampleComponent limel-example-collapsible-section-invalid
|
|
22
22
|
* @exampleComponent limel-example-collapsible-section-icon
|
|
23
23
|
* @exampleComponent limel-example-collapsible-section-css-props
|
|
24
|
+
* @exampleComponent limel-example-collapsible-section-heading-level
|
|
24
25
|
*/
|
|
25
26
|
export declare class CollapsibleSection {
|
|
26
27
|
/**
|
|
@@ -31,6 +32,15 @@ export declare class CollapsibleSection {
|
|
|
31
32
|
* Text to display in the header of the section
|
|
32
33
|
*/
|
|
33
34
|
header: string;
|
|
35
|
+
/**
|
|
36
|
+
* The level of the heading that the `header` is drawn with,
|
|
37
|
+
* from `1` for an `h1` to `6` for an `h6`.
|
|
38
|
+
*
|
|
39
|
+
* Set it so that the heading fits below the headings around the section.
|
|
40
|
+
* For example, when the section is below an `h2`, set it to `3`.
|
|
41
|
+
* It does not change how the heading looks.
|
|
42
|
+
*/
|
|
43
|
+
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
34
44
|
/**
|
|
35
45
|
* Icon to display in the header of the section
|
|
36
46
|
*/
|
|
@@ -64,6 +74,8 @@ export declare class CollapsibleSection {
|
|
|
64
74
|
private host;
|
|
65
75
|
private bodyId;
|
|
66
76
|
private headingId;
|
|
77
|
+
componentWillLoad(): void;
|
|
78
|
+
protected handleHeadingLevelChange(): void;
|
|
67
79
|
componentDidRender(): void;
|
|
68
80
|
disconnectedCallback(): void;
|
|
69
81
|
render(): any;
|
|
@@ -72,6 +84,8 @@ export declare class CollapsibleSection {
|
|
|
72
84
|
private renderExpandCollapseSign;
|
|
73
85
|
private renderIcon;
|
|
74
86
|
private renderHeading;
|
|
87
|
+
private getHeadingLevel;
|
|
88
|
+
private warnIfHeadingLevelIsInvalid;
|
|
75
89
|
private renderActions;
|
|
76
90
|
private renderHeaderSlot;
|
|
77
91
|
private renderActionButton;
|
|
@@ -1163,6 +1163,7 @@ export namespace Components {
|
|
|
1163
1163
|
* @exampleComponent limel-example-collapsible-section-invalid
|
|
1164
1164
|
* @exampleComponent limel-example-collapsible-section-icon
|
|
1165
1165
|
* @exampleComponent limel-example-collapsible-section-css-props
|
|
1166
|
+
* @exampleComponent limel-example-collapsible-section-heading-level
|
|
1166
1167
|
*/
|
|
1167
1168
|
interface LimelCollapsibleSection {
|
|
1168
1169
|
/**
|
|
@@ -1173,6 +1174,11 @@ export namespace Components {
|
|
|
1173
1174
|
* Text to display in the header of the section
|
|
1174
1175
|
*/
|
|
1175
1176
|
"header": string;
|
|
1177
|
+
/**
|
|
1178
|
+
* The level of the heading that the `header` is drawn with, from `1` for an `h1` to `6` for an `h6`. Set it so that the heading fits below the headings around the section. For example, when the section is below an `h2`, set it to `3`. It does not change how the heading looks.
|
|
1179
|
+
* @default 2
|
|
1180
|
+
*/
|
|
1181
|
+
"headingLevel": 1 | 2 | 3 | 4 | 5 | 6;
|
|
1176
1182
|
/**
|
|
1177
1183
|
* Icon to display in the header of the section
|
|
1178
1184
|
*/
|
|
@@ -5196,6 +5202,7 @@ declare global {
|
|
|
5196
5202
|
* @exampleComponent limel-example-collapsible-section-invalid
|
|
5197
5203
|
* @exampleComponent limel-example-collapsible-section-icon
|
|
5198
5204
|
* @exampleComponent limel-example-collapsible-section-css-props
|
|
5205
|
+
* @exampleComponent limel-example-collapsible-section-heading-level
|
|
5199
5206
|
*/
|
|
5200
5207
|
interface HTMLLimelCollapsibleSectionElement extends Components.LimelCollapsibleSection, HTMLStencilElement {
|
|
5201
5208
|
addEventListener<K extends keyof HTMLLimelCollapsibleSectionElementEventMap>(type: K, listener: (this: HTMLLimelCollapsibleSectionElement, ev: LimelCollapsibleSectionCustomEvent<HTMLLimelCollapsibleSectionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -8319,6 +8326,7 @@ declare namespace LocalJSX {
|
|
|
8319
8326
|
* @exampleComponent limel-example-collapsible-section-invalid
|
|
8320
8327
|
* @exampleComponent limel-example-collapsible-section-icon
|
|
8321
8328
|
* @exampleComponent limel-example-collapsible-section-css-props
|
|
8329
|
+
* @exampleComponent limel-example-collapsible-section-heading-level
|
|
8322
8330
|
*/
|
|
8323
8331
|
interface LimelCollapsibleSection {
|
|
8324
8332
|
/**
|
|
@@ -8329,6 +8337,11 @@ declare namespace LocalJSX {
|
|
|
8329
8337
|
* Text to display in the header of the section
|
|
8330
8338
|
*/
|
|
8331
8339
|
"header"?: string;
|
|
8340
|
+
/**
|
|
8341
|
+
* The level of the heading that the `header` is drawn with, from `1` for an `h1` to `6` for an `h6`. Set it so that the heading fits below the headings around the section. For example, when the section is below an `h2`, set it to `3`. It does not change how the heading looks.
|
|
8342
|
+
* @default 2
|
|
8343
|
+
*/
|
|
8344
|
+
"headingLevel"?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8332
8345
|
/**
|
|
8333
8346
|
* Icon to display in the header of the section
|
|
8334
8347
|
*/
|
|
@@ -12002,6 +12015,7 @@ declare namespace LocalJSX {
|
|
|
12002
12015
|
interface LimelCollapsibleSectionAttributes {
|
|
12003
12016
|
"isOpen": boolean;
|
|
12004
12017
|
"header": string;
|
|
12018
|
+
"headingLevel": 1 | 2 | 3 | 4 | 5 | 6;
|
|
12005
12019
|
"icon": IconName | Icon;
|
|
12006
12020
|
"invalid": boolean;
|
|
12007
12021
|
"language": Languages;
|
|
@@ -12967,6 +12981,7 @@ declare module "@stencil/core" {
|
|
|
12967
12981
|
* @exampleComponent limel-example-collapsible-section-invalid
|
|
12968
12982
|
* @exampleComponent limel-example-collapsible-section-icon
|
|
12969
12983
|
* @exampleComponent limel-example-collapsible-section-css-props
|
|
12984
|
+
* @exampleComponent limel-example-collapsible-section-heading-level
|
|
12970
12985
|
*/
|
|
12971
12986
|
"limel-collapsible-section": LocalJSX.IntrinsicElements["limel-collapsible-section"] & JSXBase.HTMLAttributes<HTMLLimelCollapsibleSectionElement>;
|
|
12972
12987
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.15.0",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"postal-mime": "^4.0.11",
|
|
97
97
|
"prettier": "^3.9.10",
|
|
98
98
|
"prosemirror-example-setup": "^1.2.3",
|
|
99
|
-
"prosemirror-markdown": "^1.13.
|
|
99
|
+
"prosemirror-markdown": "^1.13.9",
|
|
100
100
|
"prosemirror-model": ">=1.25.12",
|
|
101
101
|
"prosemirror-schema-basic": "^1.2.5",
|
|
102
102
|
"prosemirror-tables": "^1.8.5",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"sirv": "^3.0.2",
|
|
120
120
|
"sortablejs": "^1.15.7",
|
|
121
121
|
"style-to-object": "^2.0.2",
|
|
122
|
-
"tabulator-tables": "^6.
|
|
122
|
+
"tabulator-tables": "^6.7.1",
|
|
123
123
|
"typescript": "^4.9.5",
|
|
124
124
|
"unified": "^11.0.5",
|
|
125
125
|
"unist-util-visit": "^5.0.0",
|