@gurpinderjitsingh/recipe-ui 0.1.4 → 0.2.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/dist/cjs/app-modal_7.cjs.entry.js +12 -14
- package/dist/cjs/app-toast.cjs.entry.js +2 -2
- package/dist/cjs/{index-0Jp0srDV.js → index-CRcwY0Fb.js} +6 -416
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/recipe-ui.cjs.js +2 -2
- package/dist/collection/components/app-modal/app-modal.css +8 -41
- package/dist/collection/components/app-modal/app-modal.js +2 -5
- package/dist/collection/components/app-toast/app-toast.js +1 -1
- package/dist/collection/components/meal-plan-day/meal-plan-day.css +149 -13
- package/dist/collection/components/meal-plan-day/meal-plan-day.js +23 -8
- package/dist/collection/components/recipe-card/recipe-card.js +1 -1
- package/dist/collection/components/recipe-filter-bar/recipe-filter-bar.js +1 -1
- package/dist/collection/components/recipe-form/recipe-form.js +1 -1
- package/dist/collection/components/recipe-rating/recipe-rating.js +1 -1
- package/dist/collection/components/recipe-search-bar/recipe-search-bar.js +1 -1
- package/dist/components/app-modal.js +1 -1
- package/dist/components/app-toast.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/meal-plan-day.js +1 -1
- package/dist/components/p-BJU3HdRm.js +1 -0
- package/dist/components/{p-iruuKwXb.js → p-BUu-OE2n.js} +1 -1
- package/dist/components/{p-DzNqfLiF.js → p-Bi4G3e9f.js} +1 -1
- package/dist/components/{p-CwBR8qrC.js → p-Bj2iIXUo.js} +1 -1
- package/dist/components/p-BqnbT3UL.js +1 -0
- package/dist/components/{p-Cn-9hkL0.js → p-DXdnWxeM.js} +1 -1
- package/dist/components/p-Dp1sKtrN.js +1 -0
- package/dist/components/p-S4266va_.js +1 -0
- package/dist/components/{p-C300pX48.js → p-Xf30T5IO.js} +1 -1
- package/dist/components/recipe-card.js +1 -1
- package/dist/components/recipe-filter-bar.js +1 -1
- package/dist/components/recipe-form.js +1 -1
- package/dist/components/recipe-rating.js +1 -1
- package/dist/components/recipe-search-bar.js +1 -1
- package/dist/esm/app-modal_7.entry.js +12 -14
- package/dist/esm/app-toast.entry.js +2 -2
- package/dist/esm/{index-Cq6PCsWh.js → index-CrZUP9M-.js} +6 -416
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/recipe-ui.js +3 -3
- package/dist/recipe-ui/index.esm.js +1 -1
- package/dist/recipe-ui/{p-47428346.entry.js → p-531fb6c4.entry.js} +1 -1
- package/dist/recipe-ui/p-CrZUP9M-.js +3 -0
- package/dist/recipe-ui/p-a8cd146e.entry.js +1 -0
- package/dist/recipe-ui/recipe-ui.esm.js +1 -1
- package/dist/types/components/meal-plan-day/meal-plan-day.d.ts +2 -7
- package/dist/types/components.d.ts +11 -28
- package/package.json +1 -1
- package/dist/components/p-BioNY75Q.js +0 -1
- package/dist/components/p-BjeRE-Yp.js +0 -1
- package/dist/components/p-D4_zWccP.js +0 -1
- package/dist/components/p-q8BcbM65.js +0 -1
- package/dist/recipe-ui/p-6add6efb.entry.js +0 -1
- package/dist/recipe-ui/p-Cq6PCsWh.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'recipe-ui';
|
|
2
|
-
const BUILD = /* recipe-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true,
|
|
2
|
+
const BUILD = /* recipe-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -215,125 +215,6 @@ function createShadowRoot(cmpMeta) {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
219
|
-
const childNodes = internalCall(elm, "childNodes");
|
|
220
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
221
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
222
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
223
|
-
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
224
|
-
slotNode.hidden = true;
|
|
225
|
-
} else {
|
|
226
|
-
slotNode.hidden = false;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
let i2 = 0;
|
|
232
|
-
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
233
|
-
const childNode = childNodes[i2];
|
|
234
|
-
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
235
|
-
updateFallbackSlotVisibility(childNode);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
var getSlottedChildNodes = (childNodes) => {
|
|
240
|
-
const result = [];
|
|
241
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
242
|
-
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
243
|
-
if (slottedNode && slottedNode.isConnected) {
|
|
244
|
-
result.push(slottedNode);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return result;
|
|
248
|
-
};
|
|
249
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
250
|
-
let i2 = 0;
|
|
251
|
-
let slottedNodes = [];
|
|
252
|
-
let childNode;
|
|
253
|
-
for (; i2 < childNodes.length; i2++) {
|
|
254
|
-
childNode = childNodes[i2];
|
|
255
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
256
|
-
slottedNodes.push(childNode);
|
|
257
|
-
if (typeof slotName !== "undefined") return slottedNodes;
|
|
258
|
-
}
|
|
259
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
260
|
-
}
|
|
261
|
-
return slottedNodes;
|
|
262
|
-
}
|
|
263
|
-
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
264
|
-
const childNodes = [];
|
|
265
|
-
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
266
|
-
let node = slot;
|
|
267
|
-
while (node = node.nextSibling) {
|
|
268
|
-
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
269
|
-
}
|
|
270
|
-
return childNodes;
|
|
271
|
-
};
|
|
272
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
273
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
274
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
275
|
-
return true;
|
|
276
|
-
}
|
|
277
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
278
|
-
return true;
|
|
279
|
-
}
|
|
280
|
-
return false;
|
|
281
|
-
}
|
|
282
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
283
|
-
return true;
|
|
284
|
-
}
|
|
285
|
-
return slotName === "";
|
|
286
|
-
};
|
|
287
|
-
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
288
|
-
function patchSlotNode(node) {
|
|
289
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
290
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
291
|
-
const toReturn = [];
|
|
292
|
-
const slotName = this["s-sn"];
|
|
293
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
294
|
-
console.error(`
|
|
295
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
296
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
297
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
298
|
-
`);
|
|
299
|
-
}
|
|
300
|
-
const parent = this["s-cr"].parentElement;
|
|
301
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
302
|
-
slottedNodes.forEach((n) => {
|
|
303
|
-
if (slotName === getSlotName(n)) {
|
|
304
|
-
toReturn.push(n);
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
if (elementsOnly) {
|
|
308
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
309
|
-
}
|
|
310
|
-
return toReturn;
|
|
311
|
-
}).bind(node);
|
|
312
|
-
node.assignedElements = assignedFactory(true);
|
|
313
|
-
node.assignedNodes = assignedFactory(false);
|
|
314
|
-
}
|
|
315
|
-
function dispatchSlotChangeEvent(elm) {
|
|
316
|
-
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
317
|
-
}
|
|
318
|
-
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
319
|
-
var _a;
|
|
320
|
-
parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
|
|
321
|
-
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
322
|
-
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
323
|
-
const childNodes = internalCall(parentHost, "childNodes");
|
|
324
|
-
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
325
|
-
return { slotNode, slotName };
|
|
326
|
-
}
|
|
327
|
-
function internalCall(node, method) {
|
|
328
|
-
if ("__" + method in node) {
|
|
329
|
-
const toReturn = node["__" + method];
|
|
330
|
-
if (typeof toReturn !== "function") return toReturn;
|
|
331
|
-
return toReturn.bind(node);
|
|
332
|
-
} else {
|
|
333
|
-
if (typeof node[method] !== "function") return node[method];
|
|
334
|
-
return node[method].bind(node);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
218
|
var createTime = (fnName, tagName = "") => {
|
|
338
219
|
{
|
|
339
220
|
return () => {
|
|
@@ -488,7 +369,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
488
369
|
}
|
|
489
370
|
let child = null;
|
|
490
371
|
let key = null;
|
|
491
|
-
let slotName = null;
|
|
492
372
|
let simple = false;
|
|
493
373
|
let lastSimple = false;
|
|
494
374
|
const vNodeChildren = [];
|
|
@@ -520,9 +400,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
520
400
|
if (vnodeData.key) {
|
|
521
401
|
key = vnodeData.key;
|
|
522
402
|
}
|
|
523
|
-
if (vnodeData.name) {
|
|
524
|
-
slotName = vnodeData.name;
|
|
525
|
-
}
|
|
526
403
|
{
|
|
527
404
|
const classData = vnodeData.className || vnodeData.class;
|
|
528
405
|
if (classData) {
|
|
@@ -538,9 +415,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
538
415
|
{
|
|
539
416
|
vnode.$key$ = key;
|
|
540
417
|
}
|
|
541
|
-
{
|
|
542
|
-
vnode.$name$ = slotName;
|
|
543
|
-
}
|
|
544
418
|
return vnode;
|
|
545
419
|
};
|
|
546
420
|
var newVNode = (tag, text) => {
|
|
@@ -558,9 +432,6 @@ var newVNode = (tag, text) => {
|
|
|
558
432
|
{
|
|
559
433
|
vnode.$key$ = null;
|
|
560
434
|
}
|
|
561
|
-
{
|
|
562
|
-
vnode.$name$ = null;
|
|
563
|
-
}
|
|
564
435
|
return vnode;
|
|
565
436
|
};
|
|
566
437
|
var Host = {};
|
|
@@ -780,47 +651,22 @@ function sortedAttrNames(attrNames) {
|
|
|
780
651
|
attrNames
|
|
781
652
|
);
|
|
782
653
|
}
|
|
783
|
-
var contentRef;
|
|
784
654
|
var hostTagName;
|
|
785
655
|
var useNativeShadowDom = false;
|
|
786
|
-
var checkSlotFallbackVisibility = false;
|
|
787
|
-
var checkSlotRelocate = false;
|
|
788
656
|
var isSvgMode = false;
|
|
789
657
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
790
|
-
var _a;
|
|
791
658
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
792
659
|
let i2 = 0;
|
|
793
660
|
let elm;
|
|
794
661
|
let childNode;
|
|
795
|
-
let oldVNode;
|
|
796
|
-
if (!useNativeShadowDom) {
|
|
797
|
-
checkSlotRelocate = true;
|
|
798
|
-
if (newVNode2.$tag$ === "slot") {
|
|
799
|
-
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
800
|
-
// slot element has fallback content
|
|
801
|
-
// still create an element that "mocks" the slot element
|
|
802
|
-
2 /* isSlotFallback */
|
|
803
|
-
) : (
|
|
804
|
-
// slot element does not have fallback content
|
|
805
|
-
// create an html comment we'll use to always reference
|
|
806
|
-
// where actual slot content should sit next to
|
|
807
|
-
1 /* isSlotReference */
|
|
808
|
-
);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
662
|
if (newVNode2.$text$ != null) {
|
|
812
663
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
813
|
-
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
814
|
-
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
815
|
-
{
|
|
816
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
817
|
-
}
|
|
818
664
|
} else {
|
|
819
665
|
if (!win.document) {
|
|
820
666
|
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
821
667
|
}
|
|
822
668
|
elm = newVNode2.$elm$ = win.document.createElement(
|
|
823
|
-
|
|
669
|
+
newVNode2.$tag$
|
|
824
670
|
);
|
|
825
671
|
{
|
|
826
672
|
updateElement(null, newVNode2, isSvgMode);
|
|
@@ -836,19 +682,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
836
682
|
}
|
|
837
683
|
}
|
|
838
684
|
elm["s-hn"] = hostTagName;
|
|
839
|
-
{
|
|
840
|
-
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
841
|
-
elm["s-sr"] = true;
|
|
842
|
-
elm["s-cr"] = contentRef;
|
|
843
|
-
elm["s-sn"] = newVNode2.$name$ || "";
|
|
844
|
-
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
845
|
-
patchSlotNode(elm);
|
|
846
|
-
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
847
|
-
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
848
|
-
relocateToHostRoot(oldParentVNode.$elm$);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
685
|
return elm;
|
|
853
686
|
};
|
|
854
687
|
var relocateToHostRoot = (parentElm) => {
|
|
@@ -865,40 +698,13 @@ var relocateToHostRoot = (parentElm) => {
|
|
|
865
698
|
if (childNode["s-sh"] != null) {
|
|
866
699
|
insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
|
|
867
700
|
childNode["s-sh"] = void 0;
|
|
868
|
-
checkSlotRelocate = true;
|
|
869
701
|
}
|
|
870
702
|
}
|
|
871
703
|
}
|
|
872
704
|
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
873
705
|
};
|
|
874
|
-
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
875
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
876
|
-
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
877
|
-
if (parentElm["s-sr"]) {
|
|
878
|
-
let node = parentElm;
|
|
879
|
-
while (node = node.nextSibling) {
|
|
880
|
-
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
881
|
-
oldSlotChildNodes.push(node);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
886
|
-
const childNode = oldSlotChildNodes[i2];
|
|
887
|
-
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
888
|
-
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
889
|
-
childNode["s-ol"].remove();
|
|
890
|
-
childNode["s-ol"] = void 0;
|
|
891
|
-
childNode["s-sh"] = void 0;
|
|
892
|
-
checkSlotRelocate = true;
|
|
893
|
-
}
|
|
894
|
-
if (recursive) {
|
|
895
|
-
putBackInOriginalLocation(childNode, recursive);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
899
|
-
};
|
|
900
706
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
901
|
-
let containerElm = parentElm
|
|
707
|
+
let containerElm = parentElm;
|
|
902
708
|
let childNode;
|
|
903
709
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
904
710
|
containerElm = containerElm.shadowRoot;
|
|
@@ -911,7 +717,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
911
717
|
childNode = createElm(null, parentVNode, startIdx);
|
|
912
718
|
if (childNode) {
|
|
913
719
|
vnodes[startIdx].$elm$ = childNode;
|
|
914
|
-
insertBefore(containerElm, childNode,
|
|
720
|
+
insertBefore(containerElm, childNode, before);
|
|
915
721
|
}
|
|
916
722
|
}
|
|
917
723
|
}
|
|
@@ -922,14 +728,6 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
922
728
|
if (vnode) {
|
|
923
729
|
const elm = vnode.$elm$;
|
|
924
730
|
if (elm) {
|
|
925
|
-
{
|
|
926
|
-
checkSlotFallbackVisibility = true;
|
|
927
|
-
if (elm["s-ol"]) {
|
|
928
|
-
elm["s-ol"].remove();
|
|
929
|
-
} else {
|
|
930
|
-
putBackInOriginalLocation(elm, true);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
731
|
elm.remove();
|
|
934
732
|
}
|
|
935
733
|
}
|
|
@@ -967,17 +765,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
967
765
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
968
766
|
newEndVnode = newCh[--newEndIdx];
|
|
969
767
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
970
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
971
|
-
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
972
|
-
}
|
|
973
768
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
974
769
|
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
975
770
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
976
771
|
newEndVnode = newCh[--newEndIdx];
|
|
977
772
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
978
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
979
|
-
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
980
|
-
}
|
|
981
773
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
982
774
|
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
983
775
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
@@ -1008,11 +800,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1008
800
|
}
|
|
1009
801
|
if (node) {
|
|
1010
802
|
{
|
|
1011
|
-
insertBefore(
|
|
1012
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1013
|
-
node,
|
|
1014
|
-
referenceNode(oldStartVnode.$elm$)
|
|
1015
|
-
);
|
|
803
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
1016
804
|
}
|
|
1017
805
|
}
|
|
1018
806
|
}
|
|
@@ -1032,9 +820,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
1032
820
|
};
|
|
1033
821
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1034
822
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1035
|
-
if (leftVNode.$tag$ === "slot") {
|
|
1036
|
-
return leftVNode.$name$ === rightVNode.$name$;
|
|
1037
|
-
}
|
|
1038
823
|
if (!isInitialRender) {
|
|
1039
824
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
1040
825
|
}
|
|
@@ -1045,14 +830,12 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
1045
830
|
}
|
|
1046
831
|
return false;
|
|
1047
832
|
};
|
|
1048
|
-
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
1049
833
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1050
834
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1051
835
|
const oldChildren = oldVNode.$children$;
|
|
1052
836
|
const newChildren = newVNode2.$children$;
|
|
1053
837
|
const tag = newVNode2.$tag$;
|
|
1054
838
|
const text = newVNode2.$text$;
|
|
1055
|
-
let defaultHolder;
|
|
1056
839
|
if (text == null) {
|
|
1057
840
|
{
|
|
1058
841
|
if (tag === "slot" && !useNativeShadowDom) {
|
|
@@ -1076,74 +859,11 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1076
859
|
) {
|
|
1077
860
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1078
861
|
} else ;
|
|
1079
|
-
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1080
|
-
defaultHolder.parentNode.textContent = text;
|
|
1081
862
|
} else if (oldVNode.$text$ !== text) {
|
|
1082
863
|
elm.data = text;
|
|
1083
864
|
}
|
|
1084
865
|
};
|
|
1085
|
-
var relocateNodes = [];
|
|
1086
|
-
var markSlotContentForRelocation = (elm) => {
|
|
1087
|
-
let node;
|
|
1088
|
-
let hostContentNodes;
|
|
1089
|
-
let j;
|
|
1090
|
-
const children = elm.__childNodes || elm.childNodes;
|
|
1091
|
-
for (const childNode of children) {
|
|
1092
|
-
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1093
|
-
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1094
|
-
const slotName = childNode["s-sn"];
|
|
1095
|
-
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1096
|
-
node = hostContentNodes[j];
|
|
1097
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
|
|
1098
|
-
// `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
|
|
1099
|
-
// would trivially "match" on every re-render and force pointless re-insertion.
|
|
1100
|
-
(!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
|
|
1101
|
-
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1102
|
-
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1103
|
-
checkSlotFallbackVisibility = true;
|
|
1104
|
-
node["s-sn"] = node["s-sn"] || slotName;
|
|
1105
|
-
if (relocateNodeData) {
|
|
1106
|
-
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1107
|
-
relocateNodeData.$slotRefNode$ = childNode;
|
|
1108
|
-
} else {
|
|
1109
|
-
node["s-sh"] = childNode["s-hn"];
|
|
1110
|
-
relocateNodes.push({
|
|
1111
|
-
$slotRefNode$: childNode,
|
|
1112
|
-
$nodeToRelocate$: node
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
if (node["s-sr"]) {
|
|
1116
|
-
relocateNodes.map((relocateNode) => {
|
|
1117
|
-
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1118
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1119
|
-
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1120
|
-
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1126
|
-
relocateNodes.push({
|
|
1127
|
-
$nodeToRelocate$: node
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1134
|
-
markSlotContentForRelocation(childNode);
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
866
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1139
|
-
{
|
|
1140
|
-
if (typeof newNode["s-sn"] === "string") {
|
|
1141
|
-
parent.insertBefore(newNode, reference);
|
|
1142
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
1143
|
-
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
1144
|
-
return newNode;
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
867
|
if (parent.__insertBefore) {
|
|
1148
868
|
return parent.__insertBefore(newNode, reference);
|
|
1149
869
|
} else {
|
|
@@ -1151,7 +871,6 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
1151
871
|
}
|
|
1152
872
|
};
|
|
1153
873
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1154
|
-
var _a, _b, _c, _d, _e;
|
|
1155
874
|
const hostElm = hostRef.$hostElement$;
|
|
1156
875
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1157
876
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -1170,106 +889,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1170
889
|
hostRef.$vnode$ = rootVnode;
|
|
1171
890
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
1172
891
|
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1173
|
-
{
|
|
1174
|
-
contentRef = hostElm["s-cr"];
|
|
1175
|
-
checkSlotFallbackVisibility = false;
|
|
1176
|
-
}
|
|
1177
892
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1178
|
-
{
|
|
1179
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1180
|
-
if (checkSlotRelocate) {
|
|
1181
|
-
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1182
|
-
for (const relocateData of relocateNodes) {
|
|
1183
|
-
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1184
|
-
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1185
|
-
const orgLocationNode = win.document.createTextNode("");
|
|
1186
|
-
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1187
|
-
insertBefore(
|
|
1188
|
-
nodeToRelocate.parentNode,
|
|
1189
|
-
nodeToRelocate["s-ol"] = orgLocationNode,
|
|
1190
|
-
nodeToRelocate,
|
|
1191
|
-
isInitialLoad
|
|
1192
|
-
);
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
for (const relocateData of relocateNodes) {
|
|
1196
|
-
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1197
|
-
const slotRefNode = relocateData.$slotRefNode$;
|
|
1198
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
1199
|
-
nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
|
|
1200
|
-
}
|
|
1201
|
-
if (slotRefNode) {
|
|
1202
|
-
const parentNodeRef = slotRefNode.parentNode;
|
|
1203
|
-
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1204
|
-
if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
|
|
1205
|
-
let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
|
|
1206
|
-
while (orgLocationNode) {
|
|
1207
|
-
let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
|
|
1208
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1209
|
-
refNode = refNode.nextSibling;
|
|
1210
|
-
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1211
|
-
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1212
|
-
}
|
|
1213
|
-
if (!refNode || !refNode["s-nr"]) {
|
|
1214
|
-
insertBeforeNode = refNode;
|
|
1215
|
-
break;
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
orgLocationNode = orgLocationNode.previousSibling;
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1222
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1223
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1224
|
-
if (nodeToRelocate !== insertBeforeNode) {
|
|
1225
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
|
|
1226
|
-
if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
|
|
1227
|
-
const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
|
|
1228
|
-
textNode["s-hn"] = nodeToRelocate["s-hn"];
|
|
1229
|
-
textNode["s-sn"] = nodeToRelocate["s-sn"];
|
|
1230
|
-
textNode["s-sh"] = nodeToRelocate["s-sh"];
|
|
1231
|
-
textNode["s-sr"] = nodeToRelocate["s-sr"];
|
|
1232
|
-
textNode["s-ol"] = nodeToRelocate["s-ol"];
|
|
1233
|
-
textNode["s-ol"]["s-nr"] = textNode;
|
|
1234
|
-
insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
|
|
1235
|
-
nodeToRelocate.parentNode.removeChild(nodeToRelocate);
|
|
1236
|
-
}
|
|
1237
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1238
|
-
nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1243
|
-
} else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1244
|
-
nodeToRelocate.hidden = true;
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
if (checkSlotFallbackVisibility) {
|
|
1249
|
-
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1250
|
-
}
|
|
1251
|
-
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1252
|
-
relocateNodes.length = 0;
|
|
1253
|
-
}
|
|
1254
|
-
if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
|
|
1255
|
-
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1256
|
-
for (const childNode of children) {
|
|
1257
|
-
if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
|
|
1258
|
-
if (isInitialLoad && childNode["s-ih"] == null) {
|
|
1259
|
-
childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
|
|
1260
|
-
}
|
|
1261
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1262
|
-
childNode.hidden = true;
|
|
1263
|
-
} else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
|
|
1264
|
-
const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
|
|
1265
|
-
textCommentNode["s-sn"] = childNode["s-sn"];
|
|
1266
|
-
insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
|
|
1267
|
-
childNode.parentNode.removeChild(childNode);
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
contentRef = void 0;
|
|
1273
893
|
};
|
|
1274
894
|
|
|
1275
895
|
// src/runtime/update-component.ts
|
|
@@ -1315,10 +935,6 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1315
935
|
let maybePromise;
|
|
1316
936
|
if (isInitialLoad) {
|
|
1317
937
|
{
|
|
1318
|
-
if (hostRef.$deferredConnectedCallback$) {
|
|
1319
|
-
hostRef.$deferredConnectedCallback$ = false;
|
|
1320
|
-
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1321
|
-
}
|
|
1322
938
|
if (hostRef.$fetchedCbList$.length) {
|
|
1323
939
|
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
1324
940
|
}
|
|
@@ -1697,11 +1313,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1697
1313
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1698
1314
|
}
|
|
1699
1315
|
endNewInstance();
|
|
1700
|
-
|
|
1701
|
-
if (!needsDeferredCallback) {
|
|
1316
|
+
{
|
|
1702
1317
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1703
|
-
} else {
|
|
1704
|
-
hostRef.$deferredConnectedCallback$ = true;
|
|
1705
1318
|
}
|
|
1706
1319
|
} else {
|
|
1707
1320
|
Cstr = elm.constructor;
|
|
@@ -1756,12 +1369,6 @@ var connectedCallback = (elm) => {
|
|
|
1756
1369
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1757
1370
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1758
1371
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1759
|
-
{
|
|
1760
|
-
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1761
|
-
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1762
|
-
setContentReference(elm);
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
1372
|
{
|
|
1766
1373
|
let ancestorComponent = elm;
|
|
1767
1374
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
@@ -1795,16 +1402,6 @@ var connectedCallback = (elm) => {
|
|
|
1795
1402
|
endConnected();
|
|
1796
1403
|
}
|
|
1797
1404
|
};
|
|
1798
|
-
var setContentReference = (elm) => {
|
|
1799
|
-
if (!win.document) {
|
|
1800
|
-
return;
|
|
1801
|
-
}
|
|
1802
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1803
|
-
""
|
|
1804
|
-
);
|
|
1805
|
-
contentRefElm["s-cn"] = true;
|
|
1806
|
-
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1807
|
-
};
|
|
1808
1405
|
var disconnectInstance = (instance, elm) => {
|
|
1809
1406
|
{
|
|
1810
1407
|
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
@@ -1846,7 +1443,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1846
1443
|
let isBootstrapping = true;
|
|
1847
1444
|
Object.assign(plt, options);
|
|
1848
1445
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1849
|
-
let hasSlotRelocation = false;
|
|
1850
1446
|
lazyBundles.map((lazyBundle) => {
|
|
1851
1447
|
lazyBundle[1].map((compactMeta) => {
|
|
1852
1448
|
var _a2, _b;
|
|
@@ -1856,9 +1452,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1856
1452
|
$members$: compactMeta[2],
|
|
1857
1453
|
$listeners$: compactMeta[3]
|
|
1858
1454
|
};
|
|
1859
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1860
|
-
hasSlotRelocation = true;
|
|
1861
|
-
}
|
|
1862
1455
|
{
|
|
1863
1456
|
cmpMeta.$members$ = compactMeta[2];
|
|
1864
1457
|
}
|
|
@@ -1942,9 +1535,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1942
1535
|
});
|
|
1943
1536
|
});
|
|
1944
1537
|
if (cmpTags.length > 0) {
|
|
1945
|
-
if (hasSlotRelocation) {
|
|
1946
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
1947
|
-
}
|
|
1948
1538
|
{
|
|
1949
1539
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1950
1540
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { app_modal as AppModal, meal_plan_day as MealPlanDay, recipe_card as RecipeCard, recipe_filter_bar as RecipeFilterBar, recipe_form as RecipeForm, recipe_rating as RecipeRating, recipe_search_bar as RecipeSearchBar } from './app-modal.meal-plan-day.recipe-card.recipe-filter-bar.recipe-form.recipe-rating.recipe-search-bar.entry.js';
|
|
2
2
|
export { app_toast as AppToast } from './app-toast.entry.js';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-CrZUP9M-.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-CrZUP9M-.js';
|
|
2
|
+
export { s as setNonce } from './index-CrZUP9M-.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["app-modal_7",[[
|
|
8
|
+
return bootstrapLazy([["app-modal_7",[[257,"app-modal",{"open":[4],"modalTitle":[1,"modal-title"]}],[1,"meal-plan-day",{"day":[1],"meals":[16],"icon":[1]}],[257,"recipe-card",{"recipeTitle":[1,"recipe-title"],"image":[1],"category":[1],"favorite":[4]}],[1,"recipe-filter-bar",{"categories":[16],"active":[1]}],[257,"recipe-form",{"initialData":[1,"initial-data"],"title":[32],"image":[32],"category":[32],"ingredients":[32],"instructions":[32],"errors":[32]},null,{"initialData":[{"onInitialDataChange":0}]}],[1,"recipe-rating",{"value":[2],"readonly":[4],"max":[2]}],[1,"recipe-search-bar",{"placeholder":[1],"value":[1],"debounceMs":[2,"debounce-ms"],"internalValue":[32]},null,{"value":[{"onValuePropChange":0}]}]]],["app-toast",[[1,"app-toast",{"message":[1],"type":[1],"duration":[2]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
package/dist/esm/recipe-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-CrZUP9M-.js';
|
|
2
|
+
export { s as setNonce } from './index-CrZUP9M-.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["app-modal_7",[[
|
|
20
|
+
return bootstrapLazy([["app-modal_7",[[257,"app-modal",{"open":[4],"modalTitle":[1,"modal-title"]}],[1,"meal-plan-day",{"day":[1],"meals":[16],"icon":[1]}],[257,"recipe-card",{"recipeTitle":[1,"recipe-title"],"image":[1],"category":[1],"favorite":[4]}],[1,"recipe-filter-bar",{"categories":[16],"active":[1]}],[257,"recipe-form",{"initialData":[1,"initial-data"],"title":[32],"image":[32],"category":[32],"ingredients":[32],"instructions":[32],"errors":[32]},null,{"initialData":[{"onInitialDataChange":0}]}],[1,"recipe-rating",{"value":[2],"readonly":[4],"max":[2]}],[1,"recipe-search-bar",{"placeholder":[1],"value":[1],"debounceMs":[2,"debounce-ms"],"internalValue":[32]},null,{"value":[{"onValuePropChange":0}]}]]],["app-toast",[[1,"app-toast",{"message":[1],"type":[1],"duration":[2]}]]]], options);
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{app_modal as AppModal,meal_plan_day as MealPlanDay,recipe_card as RecipeCard,recipe_filter_bar as RecipeFilterBar,recipe_form as RecipeForm,recipe_rating as RecipeRating,recipe_search_bar as RecipeSearchBar}from"./app-modal.meal-plan-day.recipe-card.recipe-filter-bar.recipe-form.recipe-rating.recipe-search-bar.entry.esm.js";export{app_toast as AppToast}from"./app-toast.entry.esm.js";import"./p-
|
|
1
|
+
export{app_modal as AppModal,meal_plan_day as MealPlanDay,recipe_card as RecipeCard,recipe_filter_bar as RecipeFilterBar,recipe_form as RecipeForm,recipe_rating as RecipeRating,recipe_search_bar as RecipeSearchBar}from"./app-modal.meal-plan-day.recipe-card.recipe-filter-bar.recipe-form.recipe-rating.recipe-search-bar.entry.esm.js";export{app_toast as AppToast}from"./app-toast.entry.esm.js";import"./p-CrZUP9M-.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as o}from"./p-
|
|
1
|
+
import{r as s,c as t,h as o}from"./p-CrZUP9M-.js";const a=class{constructor(o){s(this,o),this.dismiss=t(this,"dismiss"),this.message="",this.type="info",this.duration=3e3}componentDidLoad(){this.duration>0&&setTimeout((()=>this.dismiss.emit()),this.duration)}render(){return o("div",{key:"73ab8ea44ad155052616ffbc424e1d8f13b8116f",class:`toast ${this.type}`},o("span",{key:"301487550c2f4f50cdcc6d0a138b9e968cde385f"},this.message),o("button",{key:"4e9de348002a397a25450142d9fa1fa07ca84d54",onClick:()=>this.dismiss.emit(),"aria-label":"Dismiss"},"✕"))}};a.style=":host{font-family:system-ui, sans-serif;display:block}.toast{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:8px;color:#fff;font-size:14px;box-shadow:0 4px 12px rgba(0,0,0,0.15)}.toast.success{background:#2ecc71}.toast.error{background:#e74c3c}.toast.info{background:#3498db}button{border:none;background:none;color:inherit;cursor:pointer;margin-left:auto}";export{a as app_toast}
|