@capgo/capacitor-sheets 8.0.3 → 8.0.5
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/README.md +20 -0
- package/dist/angular/index.js +4 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/index.mjs +4 -2
- package/dist/angular/index.mjs.map +1 -1
- package/dist/{chunk-3DAF3OD7.mjs → chunk-EYNTXD52.mjs} +5 -3
- package/dist/chunk-EYNTXD52.mjs.map +1 -0
- package/dist/{components-5BW6JNKT.mjs → components-BH36ITEV.mjs} +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/react/index.js +4 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +4 -2
- package/dist/react/index.mjs.map +1 -1
- package/dist/solid/index.d.mts +60 -0
- package/dist/solid/index.d.ts +60 -0
- package/dist/solid/index.js +4 -2
- package/dist/solid/index.js.map +1 -1
- package/dist/solid/index.mjs +4 -2
- package/dist/solid/index.mjs.map +1 -1
- package/dist/svelte/index.js +4 -2
- package/dist/svelte/index.js.map +1 -1
- package/dist/svelte/index.mjs +4 -2
- package/dist/svelte/index.mjs.map +1 -1
- package/dist/vue/index.js +4 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/index.mjs +4 -2
- package/dist/vue/index.mjs.map +1 -1
- package/package.json +21 -1
- package/dist/chunk-3DAF3OD7.mjs.map +0 -1
- /package/dist/{components-5BW6JNKT.mjs.map → components-BH36ITEV.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
applySheetOptions,
|
|
25
25
|
getSheetFromElement,
|
|
26
26
|
updateThemeColor
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EYNTXD52.mjs";
|
|
28
28
|
import {
|
|
29
29
|
CSS,
|
|
30
30
|
injectCapSheetStyles
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
|
|
33
33
|
// src/index.ts
|
|
34
34
|
function initCapSheets() {
|
|
35
|
-
import("./components-
|
|
35
|
+
import("./components-BH36ITEV.mjs");
|
|
36
36
|
if (typeof document !== "undefined") {
|
|
37
37
|
import("./styles-ZKNWSPZR.mjs").then(({ injectCapSheetStyles: injectCapSheetStyles2 }) => injectCapSheetStyles2(document));
|
|
38
38
|
}
|
package/dist/react/index.js
CHANGED
|
@@ -770,13 +770,15 @@ var SheetController = class {
|
|
|
770
770
|
this.root = root;
|
|
771
771
|
this.options = readOptionsFromElement(root);
|
|
772
772
|
this.id = this.options.componentId || root.id || createId("cap-sheet");
|
|
773
|
-
if (!root.id) root.id = this.id;
|
|
774
773
|
}
|
|
775
774
|
/** Connect the controller to the DOM and initialize current state. */
|
|
776
775
|
connect() {
|
|
777
776
|
if (this.connected) return;
|
|
778
777
|
this.connected = true;
|
|
779
|
-
|
|
778
|
+
const elementOptions = readOptionsFromElement(this.root);
|
|
779
|
+
this.id = elementOptions.componentId || this.root.id || this.id;
|
|
780
|
+
if (!this.root.id) this.root.id = this.id;
|
|
781
|
+
this.configure(elementOptions);
|
|
780
782
|
const nextPresented = this.options.presented ?? this.options.defaultPresented ?? false;
|
|
781
783
|
this.activeDetent = this.resolveInitialDetent();
|
|
782
784
|
this.presented = nextPresented;
|