@win2win/shared-ui 0.3.238 → 0.3.239
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/_virtual/ProductPrice.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +4 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/archivo.js +4 -0
- package/dist/_virtual/canal-props.js +4 -0
- package/dist/_virtual/captacion.js +4 -0
- package/dist/_virtual/captacion2.js +4 -0
- package/dist/_virtual/comision.js +4 -0
- package/dist/_virtual/conditions.js +4 -0
- package/dist/_virtual/control-types.js +4 -0
- package/dist/_virtual/countries.js +4 -0
- package/dist/_virtual/estado-effect.js +4 -0
- package/dist/_virtual/estado-rule.js +4 -0
- package/dist/_virtual/estado.js +4 -0
- package/dist/_virtual/flag.js +4 -0
- package/dist/_virtual/formatters.js +4 -0
- package/dist/_virtual/gama.js +4 -0
- package/dist/_virtual/garantia.js +4 -0
- package/dist/_virtual/iban.js +4 -0
- package/dist/_virtual/id.js +4 -0
- package/dist/_virtual/import_schema.js +4 -0
- package/dist/_virtual/importacion.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index10.js +4 -0
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index12.js +4 -0
- package/dist/_virtual/index13.js +4 -0
- package/dist/_virtual/index14.js +4 -0
- package/dist/_virtual/index15.js +4 -0
- package/dist/_virtual/index16.js +4 -0
- package/dist/_virtual/index17.js +4 -0
- package/dist/_virtual/index18.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/item-liquidable.js +4 -0
- package/dist/_virtual/landing.js +4 -0
- package/dist/_virtual/languages.js +4 -0
- package/dist/_virtual/layout.js +4 -0
- package/dist/_virtual/layout2.js +4 -0
- package/dist/_virtual/liquidacion.js +4 -0
- package/dist/_virtual/liquidaciones.js +4 -0
- package/dist/_virtual/llamada.js +4 -0
- package/dist/_virtual/lodash.js +4 -0
- package/dist/_virtual/mappers.js +4 -0
- package/dist/_virtual/notificacion.js +4 -0
- package/dist/_virtual/options.js +4 -0
- package/dist/_virtual/page_sections.js +4 -0
- package/dist/_virtual/partner.js +4 -0
- package/dist/_virtual/pedido.js +4 -0
- package/dist/_virtual/perfiles.js +4 -0
- package/dist/_virtual/permisos.js +4 -0
- package/dist/_virtual/producto.js +4 -0
- package/dist/_virtual/producto2.js +4 -0
- package/dist/_virtual/query-params.js +4 -0
- package/dist/_virtual/regla.js +4 -0
- package/dist/_virtual/resultado.js +4 -0
- package/dist/_virtual/seguimiento.js +4 -0
- package/dist/_virtual/shared-types.js +4 -0
- package/dist/_virtual/shared.js +4 -0
- package/dist/_virtual/timestamp.js +4 -0
- package/dist/_virtual/validators.js +4 -0
- package/dist/_virtual/validators2.js +4 -0
- package/dist/_virtual/visibility.js +4 -0
- package/dist/components/Common/Button.vue.js +52 -0
- package/dist/components/Common/Button.vue2.js +4 -0
- package/dist/components/Common/Card.vue.js +7 -0
- package/dist/components/Common/Card.vue2.js +66 -0
- package/dist/components/Common/DynamicCarousel.vue.js +102 -0
- package/dist/components/Common/DynamicCarousel.vue3.js +5 -0
- package/dist/components/Common/FlagsIcons.vue.js +7 -0
- package/dist/components/Common/FlagsIcons.vue2.js +45 -0
- package/dist/components/Common/GeneratingError.vue.js +25 -0
- package/dist/components/Common/GeneratingError.vue2.js +4 -0
- package/dist/components/Common/GeneratingLoader.vue.js +25 -0
- package/dist/components/Common/GeneratingLoader.vue2.js +4 -0
- package/dist/components/Common/IconButton.vue.js +7 -0
- package/dist/components/Common/IconButton.vue2.js +97 -0
- package/dist/components/Common/IndicatorColor.vue.js +7 -0
- package/dist/components/Common/IndicatorColor.vue2.js +20 -0
- package/dist/components/Common/MenuButton.vue.js +91 -0
- package/dist/components/Common/MenuButton.vue2.js +4 -0
- package/dist/components/Common/SectionSpinner.vue.js +7 -0
- package/dist/components/Common/SectionSpinner.vue2.js +36 -0
- package/dist/components/Common/StateIndicator.vue.js +7 -0
- package/dist/components/Common/StateIndicator.vue2.js +41 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/pdf/DomSection.vue.js +19 -0
- package/dist/components/pdf/DomSection.vue2.js +4 -0
- package/dist/components/pdf/PdfContainer.vue.js +7 -0
- package/dist/components/pdf/PdfContainer.vue2.js +102 -0
- package/dist/components/pdf/SectionWrapper.vue.js +33 -0
- package/dist/components/pdf/SectionWrapper.vue2.js +4 -0
- package/dist/components/pdf/SectionsContainer.vue.js +9 -0
- package/dist/components/pdf/SectionsContainer.vue2.js +56 -0
- package/dist/components/pdf/SectionsContainer.vue3.js +6 -0
- package/dist/components/pdf/helpers.js +23 -0
- package/dist/components/pdf/sections/Card.vue.js +9 -0
- package/dist/components/pdf/sections/Card.vue2.js +52 -0
- package/dist/components/pdf/sections/Card.vue3.js +12 -0
- package/dist/components/pdf/sections/CardGridSection.vue.js +9 -0
- package/dist/components/pdf/sections/CardGridSection.vue2.js +30 -0
- package/dist/components/pdf/sections/CardGridSection.vue3.js +6 -0
- package/dist/components/pdf/sections/ImageSection.vue.js +9 -0
- package/dist/components/pdf/sections/ImageSection.vue2.js +26 -0
- package/dist/components/pdf/sections/ImageSection.vue3.js +6 -0
- package/dist/components/pdf/sections/RadioButtonsSection.vue.js +7 -0
- package/dist/components/pdf/sections/RadioButtonsSection.vue2.js +43 -0
- package/dist/components/pdf/sections/SignatureSection.vue.js +7 -0
- package/dist/components/pdf/sections/SignatureSection.vue2.js +115 -0
- package/dist/components/pdf/sections/TableSection.vue.js +9 -0
- package/dist/components/pdf/sections/TableSection.vue2.js +49 -0
- package/dist/components/pdf/sections/TableSection.vue3.js +6 -0
- package/dist/components/pdf/sections/TextSection.vue.js +9 -0
- package/dist/components/pdf/sections/TextSection.vue2.js +135 -0
- package/dist/components/pdf/sections/TextSection.vue3.js +11 -0
- package/dist/components/pdf/sections/useData.js +8 -0
- package/dist/components/widgets/broker-card/BrokerCard.vue.js +7 -0
- package/dist/components/widgets/broker-card/BrokerCard.vue2.js +171 -0
- package/dist/components/widgets/broker-card/components/BrokerProps.vue.js +7 -0
- package/dist/components/widgets/broker-card/components/BrokerProps.vue2.js +117 -0
- package/dist/components/widgets/broker-card/mock-data.js +452 -0
- package/dist/components/widgets/broker-card/mock-props.js +273 -0
- package/dist/components/widgets/broker-card/schema.js +11 -0
- package/dist/components/widgets/broker-detail/BrokerDetail.vue.js +7 -0
- package/dist/components/widgets/broker-detail/BrokerDetail.vue2.js +174 -0
- package/dist/components/widgets/broker-detail/components/BrokertActions.vue.js +7 -0
- package/dist/components/widgets/broker-detail/components/BrokertActions.vue2.js +31 -0
- package/dist/components/widgets/broker-detail/components/ImagesMiniature.vue.js +7 -0
- package/dist/components/widgets/broker-detail/components/ImagesMiniature.vue2.js +90 -0
- package/dist/components/widgets/broker-detail/mock-data.js +227 -0
- package/dist/components/widgets/broker-detail/mock-props.js +12 -0
- package/dist/components/widgets/broker-detail/schema.js +10 -0
- package/dist/components/widgets/broker-detail/useContext.js +32 -0
- package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue2.js +249 -0
- package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue.js +36 -0
- package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue2.js +4 -0
- package/dist/components/widgets/linvermedia-product-card/mock-data.js +1121 -0
- package/dist/components/widgets/linvermedia-product-card/mock-props.js +20 -0
- package/dist/components/widgets/linvermedia-product-card/schema.js +13 -0
- package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue2.js +151 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue2.js +90 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductConfiguration.vue.js +9 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductConfiguration.vue2.js +147 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue.js +37 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue2.js +4 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue2.js +61 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue2.js +56 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue.js +21 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue2.js +4 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShopcartActions.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShopcartActions.vue2.js +91 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue.js +20 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue2.js +4 -0
- package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue.js +7 -0
- package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue2.js +49 -0
- package/dist/components/widgets/linvermedia-product-detail/mock-data.js +1005 -0
- package/dist/components/widgets/linvermedia-product-detail/mock-props.js +12 -0
- package/dist/components/widgets/linvermedia-product-detail/schema.js +11 -0
- package/dist/components/widgets/linvermedia-product-detail/useContext.js +43 -0
- package/dist/components/widgets/linvermedia-solicitud-card/LinvermediaSolicitudCard.vue.js +7 -0
- package/dist/components/widgets/linvermedia-solicitud-card/LinvermediaSolicitudCard.vue2.js +74 -0
- package/dist/components/widgets/linvermedia-solicitud-card/mock-data.js +580 -0
- package/dist/components/widgets/linvermedia-solicitud-card/mock-props.js +8 -0
- package/dist/components/widgets/linvermedia-solicitud-card/schema.js +5 -0
- package/dist/components/widgets/perdm-telephony-product-detail/PerdmTelephonyProductDetail.vue.js +7 -0
- package/dist/components/widgets/perdm-telephony-product-detail/PerdmTelephonyProductDetail.vue2.js +263 -0
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductLongDescription.vue.js +21 -0
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductLongDescription.vue2.js +4 -0
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductShortDescription.vue.js +20 -0
- package/dist/components/widgets/perdm-telephony-product-detail/components/ProductShortDescription.vue2.js +4 -0
- package/dist/components/widgets/perdm-telephony-product-detail/mock-data.js +1187 -0
- package/dist/components/widgets/perdm-telephony-product-detail/mock-props.js +12 -0
- package/dist/components/widgets/perdm-telephony-product-detail/schema.js +11 -0
- package/dist/components/widgets/perdm-telephony-product-detail/useContext.js +41 -0
- package/dist/components/widgets/shared/LinvermediaGamaProps.js +1688 -0
- package/dist/components/widgets/shared/PerdmTelephonyGamaProps.js +1688 -0
- package/dist/components/widgets/shared/ProductPrice.vue.js +7 -0
- package/dist/components/widgets/shared/ProductPrice.vue2.js +84 -0
- package/dist/components/widgets/shared/ProductProps.vue.js +294 -0
- package/dist/components/widgets/shared/ProductProps.vue2.js +4 -0
- package/dist/components/widgets/shared/ProductTag.vue.js +7 -0
- package/dist/components/widgets/shared/ProductTag.vue2.js +38 -0
- package/dist/components/widgets/shared/helpers.js +52 -0
- package/dist/components/widgets/shared/schema.js +17 -0
- package/dist/components/widgets/shared/useWidgetEvent.js +13 -0
- package/dist/components/widgets/telephony-card/TelephonyCard.vue.js +7 -0
- package/dist/components/widgets/telephony-card/TelephonyCard.vue2.js +292 -0
- package/dist/components/widgets/telephony-card/mock-data.js +1197 -0
- package/dist/components/widgets/telephony-card/mock-props.js +400 -0
- package/dist/components/widgets/telephony-card/schema.js +22 -0
- package/dist/components/widgets/telmex-card/TelmexCard.vue.js +7 -0
- package/dist/components/widgets/telmex-card/TelmexCard.vue2.js +232 -0
- package/dist/components/widgets/telmex-card/mock-data.js +1545 -0
- package/dist/components/widgets/telmex-card/mock-props.js +1332 -0
- package/dist/components/widgets/telmex-card/schema.js +22 -0
- package/dist/components/widgets/telmex-product-detail/TelmexProductDetail.vue.js +7 -0
- package/dist/components/widgets/telmex-product-detail/TelmexProductDetail.vue2.js +648 -0
- package/dist/components/widgets/telmex-product-detail/components/ProductInfo.vue.js +7 -0
- package/dist/components/widgets/telmex-product-detail/components/ProductInfo.vue2.js +316 -0
- package/dist/components/widgets/telmex-product-detail/components/ProductLongDescription.vue.js +21 -0
- package/dist/components/widgets/telmex-product-detail/components/ProductLongDescription.vue2.js +4 -0
- package/dist/components/widgets/telmex-product-detail/components/ProductShortDescription.vue.js +20 -0
- package/dist/components/widgets/telmex-product-detail/components/ProductShortDescription.vue2.js +4 -0
- package/dist/components/widgets/telmex-product-detail/components/TotalOrder.vue.js +7 -0
- package/dist/components/widgets/telmex-product-detail/components/TotalOrder.vue2.js +52 -0
- package/dist/components/widgets/telmex-product-detail/mock-data.js +1561 -0
- package/dist/components/widgets/telmex-product-detail/mock-props.js +10 -0
- package/dist/components/widgets/telmex-product-detail/schema.js +11 -0
- package/dist/components/widgets/telmex-product-detail/useContext.js +41 -0
- package/dist/components.js +31 -0
- package/dist/composables/fetching/fetchUniqFactory.js +21 -0
- package/dist/composables/fetching/fetchUniqProvider.js +15 -0
- package/dist/composables/fetching/types.js +11 -0
- package/dist/composables/fetching/useFetch.js +40 -0
- package/dist/composables/fetching/useFetchPages.js +101 -0
- package/dist/composables/useDragAndDrop.js +65 -0
- package/dist/composables/utils.js +11 -0
- package/dist/composables.js +17 -0
- package/dist/index.js +58 -0
- package/dist/node_modules/@win2win/shared/dist/consts/countries.js +1082 -0
- package/dist/node_modules/@win2win/shared/dist/consts/index.js +26 -0
- package/dist/node_modules/@win2win/shared/dist/consts/languages.js +173 -0
- package/dist/node_modules/@win2win/shared/dist/consts/perfiles/index.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/consts/perfiles/perfiles.js +38 -0
- package/dist/node_modules/@win2win/shared/dist/consts/permisos/index.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/consts/permisos/permisos.js +129 -0
- package/dist/node_modules/@win2win/shared/dist/consts/visitas/index.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/consts/visitas/resultado.js +40 -0
- package/dist/node_modules/@win2win/shared/dist/enums/captacion.js +14 -0
- package/dist/node_modules/@win2win/shared/dist/enums/garantia.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/enums/importacion.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/enums/index.js +32 -0
- package/dist/node_modules/@win2win/shared/dist/enums/liquidacion.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/enums/notificacion.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/enums/pedido.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/enums/producto.js +22 -0
- package/dist/node_modules/@win2win/shared/dist/enums/shared.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/helpers/ProductPrice.js +61 -0
- package/dist/node_modules/@win2win/shared/dist/helpers/formatters.js +76 -0
- package/dist/node_modules/@win2win/shared/dist/helpers/index.js +22 -0
- package/dist/node_modules/@win2win/shared/dist/helpers/validators.js +15 -0
- package/dist/node_modules/@win2win/shared/dist/index.js +24 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/escaparates/canal-props.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/escaparates/index.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/estado-effect.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/estado-rule.js +23 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/estado.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/flag.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/index.js +26 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/estados/llamada.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/importaciones/import_schema.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/importaciones/index.js +20 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/importaciones/layout.js +7 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/index.js +34 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/landings/index.js +20 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/landings/landing.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/landings/page_sections.js +270 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/layout_documentos/index.js +18 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/layout_documentos/layout.js +15 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/comision.js +11 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/index.js +24 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/item-liquidable.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/liquidaciones.js +10 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/liquidaciones/regla.js +27 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/conditions.js +7 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/control-types.js +27 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/index.js +28 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/mappers.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/options.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/validators.js +85 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/props/visibility.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/archivo.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/captacion.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/gama.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/index.js +28 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/partner.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/producto.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/raw_entities/seguimiento.js +17 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/id.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/index.js +24 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/query-params.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/shared-types.js +5 -0
- package/dist/node_modules/@win2win/shared/dist/interfaces/shared/timestamp.js +10 -0
- package/dist/node_modules/better-dni/dist/index.js +67 -0
- package/dist/node_modules/iban/iban.js +114 -0
- package/dist/node_modules/lodash/lodash.js +3676 -0
- package/dist/widgets.js +154 -0
- package/package.json +21 -5
- package/dist/w2w-shared-ui.js +0 -26029
- package/dist/w2w-shared-ui.umd.cjs +0 -48
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z as o } from "zod";
|
|
2
|
+
import { WidgetPropsSchema as r } from "../shared/schema.js";
|
|
3
|
+
const i = r.extend({
|
|
4
|
+
view: o.enum(["detail", "summary"]).optional(),
|
|
5
|
+
title: o.string().optional(),
|
|
6
|
+
gamaProps: o.array(o.record(o.string(), o.any())),
|
|
7
|
+
showPrice: o.function().optional()
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as TelmexProductDetailPropsSchema
|
|
11
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { inject as p, computed as s, watch as n } from "vue";
|
|
2
|
+
function v() {
|
|
3
|
+
const t = p("context"), c = s(() => t.product.value), l = t.slide, a = t.isPublic, u = t.images, i = t.selectedPackProduct, d = s(() => !a.value), r = s(() => {
|
|
4
|
+
var e;
|
|
5
|
+
return ((e = c.value) == null ? void 0 : e.detalle_pack) || [];
|
|
6
|
+
}), m = s(() => {
|
|
7
|
+
var e;
|
|
8
|
+
return ((e = c.value) == null ? void 0 : e.props) || {};
|
|
9
|
+
});
|
|
10
|
+
return n(
|
|
11
|
+
c,
|
|
12
|
+
() => {
|
|
13
|
+
var o;
|
|
14
|
+
const e = ((o = c.value) == null ? void 0 : o.images) || [];
|
|
15
|
+
u.value = e;
|
|
16
|
+
},
|
|
17
|
+
{ immediate: !0 }
|
|
18
|
+
), n(
|
|
19
|
+
r,
|
|
20
|
+
(e) => {
|
|
21
|
+
var o;
|
|
22
|
+
e && (i.value = (o = e[0]) == null ? void 0 : o.DETALLE);
|
|
23
|
+
},
|
|
24
|
+
{ immediate: !0, deep: !0 }
|
|
25
|
+
), {
|
|
26
|
+
product: c,
|
|
27
|
+
isPublic: a,
|
|
28
|
+
isPrivate: d,
|
|
29
|
+
images: u,
|
|
30
|
+
detallePack: r,
|
|
31
|
+
productProps: m,
|
|
32
|
+
selectedPackProduct: i,
|
|
33
|
+
slide: l,
|
|
34
|
+
gamaProps: t.gamaProps,
|
|
35
|
+
count: t.count,
|
|
36
|
+
showPrice: t.showPrice
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
v as useContext
|
|
41
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as e } from "./components/Common/Button.vue.js";
|
|
2
|
+
import { default as f } from "./components/Common/Card.vue.js";
|
|
3
|
+
import { default as u } from "./components/Common/DynamicCarousel.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { default as p } from "./components/Common/FlagsIcons.vue.js";
|
|
6
|
+
import { default as m } from "./components/Common/IconButton.vue.js";
|
|
7
|
+
import { default as x } from "./components/Common/IndicatorColor.vue.js";
|
|
8
|
+
import { default as i } from "./components/Common/MenuButton.vue.js";
|
|
9
|
+
import { default as P } from "./components/Common/SectionSpinner.vue.js";
|
|
10
|
+
import { default as S } from "./components/Common/StateIndicator.vue.js";
|
|
11
|
+
import { default as B } from "./components/pdf/SectionsContainer.vue.js";
|
|
12
|
+
import { default as D } from "./components/widgets/shared/ProductPrice.vue.js";
|
|
13
|
+
import { default as M } from "./components/widgets/shared/ProductProps.vue.js";
|
|
14
|
+
import { default as W } from "./components/widgets/shared/ProductTag.vue.js";
|
|
15
|
+
import { WidgetsIndex as h } from "./widgets.js";
|
|
16
|
+
export {
|
|
17
|
+
e as Button,
|
|
18
|
+
f as Card,
|
|
19
|
+
u as DynamicCarousel,
|
|
20
|
+
p as FlagsIcons,
|
|
21
|
+
m as IconButton,
|
|
22
|
+
x as IndicatorColor,
|
|
23
|
+
i as MenuButton,
|
|
24
|
+
D as ProductPrice,
|
|
25
|
+
M as ProductProps,
|
|
26
|
+
W as ProductTag,
|
|
27
|
+
P as SectionSpinner,
|
|
28
|
+
B as SectionsContainer,
|
|
29
|
+
S as StateIndicator,
|
|
30
|
+
h as WidgetsIndex
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import u from "axios";
|
|
2
|
+
import { isNil as f } from "lodash-es";
|
|
3
|
+
const k = () => u.CancelToken.source();
|
|
4
|
+
function h(r) {
|
|
5
|
+
const c = {};
|
|
6
|
+
return async function(e, i, t) {
|
|
7
|
+
const a = c[t];
|
|
8
|
+
a && a.cancel("Solicitud reemplazada por una nueva");
|
|
9
|
+
const l = k();
|
|
10
|
+
return c[t] = l, e ? r.get(e, {
|
|
11
|
+
params: i,
|
|
12
|
+
cancelToken: l.token
|
|
13
|
+
}).then((n) => {
|
|
14
|
+
const o = (n == null ? void 0 : n.data) || null;
|
|
15
|
+
return f(o) ? null : o;
|
|
16
|
+
}).catch(() => null) : Promise.resolve(null);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
h as createFetchUniq
|
|
21
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useQueryClient as Q, useQuery as U } from "@tanstack/vue-query";
|
|
2
|
+
import { uniqueId as C } from "lodash-es";
|
|
3
|
+
import { computed as s } from "vue";
|
|
4
|
+
import { getValue as e } from "../utils.js";
|
|
5
|
+
import { getFetchUniq as E } from "./fetchUniqProvider.js";
|
|
6
|
+
import { DEFAULT_FETCH_OPTIONS as I } from "./types.js";
|
|
7
|
+
function V(r, n, c, i, t) {
|
|
8
|
+
const l = `${n}_${C()}`, m = Q(), y = async (u) => {
|
|
9
|
+
const a = E();
|
|
10
|
+
if (!a)
|
|
11
|
+
throw new Error("FetchUniq provider is not available");
|
|
12
|
+
return u ? a(u, e(c, {}), l).then(
|
|
13
|
+
(f) => i ? i(f) : f
|
|
14
|
+
) : Promise.resolve(null);
|
|
15
|
+
}, o = { ...I, ...t }, d = s(() => [
|
|
16
|
+
...e(r, []),
|
|
17
|
+
e(c, {})
|
|
18
|
+
]), h = () => U({
|
|
19
|
+
queryKey: d,
|
|
20
|
+
queryFn: () => y(e(n, "")),
|
|
21
|
+
...o
|
|
22
|
+
}), g = async () => {
|
|
23
|
+
m.invalidateQueries({
|
|
24
|
+
queryKey: e(r),
|
|
25
|
+
exact: !1,
|
|
26
|
+
refetchType: o.refetchType
|
|
27
|
+
});
|
|
28
|
+
}, { isFetching: q, isPending: F, data: v, refetch: T, error: p } = h(), _ = s(() => v.value ?? (t == null ? void 0 : t.defaultValue));
|
|
29
|
+
return {
|
|
30
|
+
pending: F,
|
|
31
|
+
fetching: q,
|
|
32
|
+
data: _,
|
|
33
|
+
refetch: T,
|
|
34
|
+
invalidate: g,
|
|
35
|
+
error: p
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
V as useFetch
|
|
40
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { useQueryClient as C, useQuery as U, keepPreviousData as _ } from "@tanstack/vue-query";
|
|
2
|
+
import { uniqueId as E, cloneDeep as K, omit as Q, isNil as y } from "lodash-es";
|
|
3
|
+
import { computed as c, isRef as g, watch as h } from "vue";
|
|
4
|
+
import { getValue as r } from "../utils.js";
|
|
5
|
+
import { getFetchUniq as B } from "./fetchUniqProvider.js";
|
|
6
|
+
import { DEFAULT_FETCH_OPTIONS as I } from "./types.js";
|
|
7
|
+
function S(t, i, s, p) {
|
|
8
|
+
const f = { ...I, ...p }, q = `${s}_${E()}`, n = c(() => {
|
|
9
|
+
const e = O(r(t, {})), m = r(i, {});
|
|
10
|
+
return K({
|
|
11
|
+
...m,
|
|
12
|
+
...e
|
|
13
|
+
});
|
|
14
|
+
}), o = c({
|
|
15
|
+
get() {
|
|
16
|
+
var e;
|
|
17
|
+
return ((e = r(t)) == null ? void 0 : e.page) || 1;
|
|
18
|
+
},
|
|
19
|
+
set(e) {
|
|
20
|
+
g(t) ? t.value.page = e : t.page = e;
|
|
21
|
+
}
|
|
22
|
+
}), v = c({
|
|
23
|
+
get() {
|
|
24
|
+
var e;
|
|
25
|
+
return ((e = r(t)) == null ? void 0 : e.rowsNumber) || 0;
|
|
26
|
+
},
|
|
27
|
+
set(e) {
|
|
28
|
+
g(t) ? t.value.rowsNumber = e : t.rowsNumber = e;
|
|
29
|
+
}
|
|
30
|
+
}), w = (e, m) => {
|
|
31
|
+
const P = B();
|
|
32
|
+
if (!P)
|
|
33
|
+
throw new Error("FetchUniq provider is not available");
|
|
34
|
+
return P(
|
|
35
|
+
r(e, ""),
|
|
36
|
+
r(m),
|
|
37
|
+
q
|
|
38
|
+
);
|
|
39
|
+
}, D = C(), d = async () => {
|
|
40
|
+
D.invalidateQueries({
|
|
41
|
+
queryKey: [r(s), n.value],
|
|
42
|
+
exact: !1,
|
|
43
|
+
refetchType: "active"
|
|
44
|
+
});
|
|
45
|
+
}, { isFetching: a, isPending: F, data: u, refetch: N, isPlaceholderData: l, error: T } = U({
|
|
46
|
+
queryKey: [s, n],
|
|
47
|
+
queryFn: () => w(s, n),
|
|
48
|
+
placeholderData: f.keepPreviousData ? _ : void 0,
|
|
49
|
+
...Q(f, "keepPreviousData")
|
|
50
|
+
});
|
|
51
|
+
h(
|
|
52
|
+
u,
|
|
53
|
+
(e) => {
|
|
54
|
+
a.value && y(e) || (v.value = (e == null ? void 0 : e.count) || 0);
|
|
55
|
+
},
|
|
56
|
+
{ immediate: !0 }
|
|
57
|
+
);
|
|
58
|
+
const b = () => {
|
|
59
|
+
l.value || (o.value = Math.max(o.value - 1, 1));
|
|
60
|
+
}, k = () => {
|
|
61
|
+
l.value || (o.value = o.value + 1);
|
|
62
|
+
}, x = c(() => {
|
|
63
|
+
var e;
|
|
64
|
+
return ((e = u.value) == null ? void 0 : e.items) || [];
|
|
65
|
+
});
|
|
66
|
+
return h(
|
|
67
|
+
() => {
|
|
68
|
+
var e;
|
|
69
|
+
return (e = u.value) == null ? void 0 : e.items;
|
|
70
|
+
},
|
|
71
|
+
(e) => {
|
|
72
|
+
a.value || y(e) && d();
|
|
73
|
+
},
|
|
74
|
+
{ immediate: !0 }
|
|
75
|
+
), {
|
|
76
|
+
pending: F,
|
|
77
|
+
fetching: a,
|
|
78
|
+
error: T,
|
|
79
|
+
items: x,
|
|
80
|
+
refetch: N,
|
|
81
|
+
invalidate: d,
|
|
82
|
+
count: v,
|
|
83
|
+
page: o,
|
|
84
|
+
prevPage: b,
|
|
85
|
+
nextPage: k,
|
|
86
|
+
isPlaceholderData: l,
|
|
87
|
+
rawData: u
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function O(t) {
|
|
91
|
+
const i = (t.page - 1) * t.rowsPerPage, s = t.rowsPerPage;
|
|
92
|
+
return {
|
|
93
|
+
startRow: i,
|
|
94
|
+
fetchCount: s,
|
|
95
|
+
sortBy: t.sortBy,
|
|
96
|
+
descending: t.descending
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
S as useFetchPages
|
|
101
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { uniqueId as p, cloneDeep as y } from "lodash-es";
|
|
2
|
+
import { watch as E } from "vue";
|
|
3
|
+
const L = "_id";
|
|
4
|
+
function A(l, u, o, t) {
|
|
5
|
+
const c = (t == null ? void 0 : t.idKey) ?? L, g = () => {
|
|
6
|
+
var e;
|
|
7
|
+
(e = l.value) == null || e.forEach((r) => {
|
|
8
|
+
let n = t != null && t.idKey ? r[t.idKey] : null;
|
|
9
|
+
n === null && (n = p()), r[c] = String(n);
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
E(
|
|
13
|
+
() => {
|
|
14
|
+
var e;
|
|
15
|
+
return (e = l.value) == null ? void 0 : e.length;
|
|
16
|
+
},
|
|
17
|
+
() => {
|
|
18
|
+
g();
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
immediate: !0
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
function D() {
|
|
25
|
+
return !0;
|
|
26
|
+
}
|
|
27
|
+
function v(e) {
|
|
28
|
+
e.dataTransfer.setData("id", e.target.id), e.dataTransfer.dropEffect = "move";
|
|
29
|
+
}
|
|
30
|
+
function I(e) {
|
|
31
|
+
if (e.preventDefault(), !e.target) return;
|
|
32
|
+
const r = e.target.closest(u);
|
|
33
|
+
r && (r != null && r.contains(e.relatedTarget) || r.classList.remove("drag-enter"));
|
|
34
|
+
}
|
|
35
|
+
function m(e) {
|
|
36
|
+
if (e.preventDefault(), !e.target) return;
|
|
37
|
+
const r = e.target.closest(u);
|
|
38
|
+
r && r.classList.add("drag-enter");
|
|
39
|
+
}
|
|
40
|
+
function h(e) {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
const r = e.target.closest(u);
|
|
43
|
+
if (x(r), !(r != null && r.draggable))
|
|
44
|
+
return;
|
|
45
|
+
const n = e.dataTransfer.getData("id");
|
|
46
|
+
if (!r) return;
|
|
47
|
+
const a = (r == null ? void 0 : r.id) ?? null;
|
|
48
|
+
if (a === null) return;
|
|
49
|
+
const d = y(l.value), i = d.findIndex((f) => f[c] == n), s = d.findIndex((f) => f[c] == a);
|
|
50
|
+
if (i === -1 || s === -1) return;
|
|
51
|
+
const [K] = d.splice(i, 1);
|
|
52
|
+
d.splice(s, 0, K), l.value = d, o(d);
|
|
53
|
+
}
|
|
54
|
+
function x(e) {
|
|
55
|
+
const r = e == null ? void 0 : e.parentElement;
|
|
56
|
+
if (!r) return;
|
|
57
|
+
const n = r.children;
|
|
58
|
+
for (let a = 0; a < n.length; a++)
|
|
59
|
+
n[a].classList.remove("drag-enter");
|
|
60
|
+
}
|
|
61
|
+
return { handler: D, onDragLeave: I, onDragStart: v, onDragOver: m, onDrop: h, idKey: c };
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
A as useDragAndDrop
|
|
65
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createFetchUniq as t } from "./composables/fetching/fetchUniqFactory.js";
|
|
2
|
+
import { getFetchUniq as p, setFetchUniq as f } from "./composables/fetching/fetchUniqProvider.js";
|
|
3
|
+
import { DEFAULT_FETCH_OPTIONS as x } from "./composables/fetching/types.js";
|
|
4
|
+
import { useFetch as c } from "./composables/fetching/useFetch.js";
|
|
5
|
+
import { useFetchPages as s } from "./composables/fetching/useFetchPages.js";
|
|
6
|
+
import { useDragAndDrop as g } from "./composables/useDragAndDrop.js";
|
|
7
|
+
import { getValue as u } from "./composables/utils.js";
|
|
8
|
+
export {
|
|
9
|
+
x as DEFAULT_FETCH_OPTIONS,
|
|
10
|
+
t as createFetchUniq,
|
|
11
|
+
p as getFetchUniq,
|
|
12
|
+
u as getValue,
|
|
13
|
+
f as setFetchUniq,
|
|
14
|
+
g as useDragAndDrop,
|
|
15
|
+
c as useFetch,
|
|
16
|
+
s as useFetchPages
|
|
17
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import e from "./components/Common/Button.vue.js";
|
|
2
|
+
import m from "./components/Common/Card.vue.js";
|
|
3
|
+
import c from "./components/Common/DynamicCarousel.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import i from "./components/Common/FlagsIcons.vue.js";
|
|
6
|
+
import a from "./components/Common/IconButton.vue.js";
|
|
7
|
+
import f from "./components/Common/IndicatorColor.vue.js";
|
|
8
|
+
import s from "./components/Common/MenuButton.vue.js";
|
|
9
|
+
import u from "./components/Common/SectionSpinner.vue.js";
|
|
10
|
+
import d from "./components/Common/StateIndicator.vue.js";
|
|
11
|
+
import p from "./components/pdf/SectionsContainer.vue.js";
|
|
12
|
+
import { WidgetsIndex as P } from "./widgets.js";
|
|
13
|
+
import l from "./components/widgets/shared/ProductPrice.vue.js";
|
|
14
|
+
import I from "./components/widgets/shared/ProductProps.vue.js";
|
|
15
|
+
import S from "./components/widgets/shared/ProductTag.vue.js";
|
|
16
|
+
import { createFetchUniq as M } from "./composables/fetching/fetchUniqFactory.js";
|
|
17
|
+
import { getFetchUniq as b, setFetchUniq as j } from "./composables/fetching/fetchUniqProvider.js";
|
|
18
|
+
import { DEFAULT_FETCH_OPTIONS as L } from "./composables/fetching/types.js";
|
|
19
|
+
import { useFetch as k } from "./composables/fetching/useFetch.js";
|
|
20
|
+
import { useFetchPages as z } from "./composables/fetching/useFetchPages.js";
|
|
21
|
+
import { useDragAndDrop as J } from "./composables/useDragAndDrop.js";
|
|
22
|
+
import { getValue as Q } from "./composables/utils.js";
|
|
23
|
+
const w = {
|
|
24
|
+
install(o, t) {
|
|
25
|
+
if (t != null && t.pinia)
|
|
26
|
+
o.use(t.pinia);
|
|
27
|
+
else
|
|
28
|
+
throw new Error("No se ha encontrado una instancia de pinia");
|
|
29
|
+
o.component("SectionsContainer", p), o.component("Card", m), o.component("DynamicCarousel", c), o.component("IndicatorColor", f), o.component("SectionSpinner", u), o.component("StateIndicator", d), o.component("IconButton", a), o.component("Button", e), o.component("MenuButton", s), o.component("ProductPrice", l), o.component("ProductProps", I), o.component("ProductTag", S), o.component("FlagsIcons", i), Object.entries(P).forEach(([r, n]) => {
|
|
30
|
+
o.component(r, n.component);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
e as Button,
|
|
36
|
+
m as Card,
|
|
37
|
+
L as DEFAULT_FETCH_OPTIONS,
|
|
38
|
+
c as DynamicCarousel,
|
|
39
|
+
i as FlagsIcons,
|
|
40
|
+
a as IconButton,
|
|
41
|
+
f as IndicatorColor,
|
|
42
|
+
s as MenuButton,
|
|
43
|
+
l as ProductPrice,
|
|
44
|
+
I as ProductProps,
|
|
45
|
+
S as ProductTag,
|
|
46
|
+
u as SectionSpinner,
|
|
47
|
+
p as SectionsContainer,
|
|
48
|
+
d as StateIndicator,
|
|
49
|
+
P as WidgetsIndex,
|
|
50
|
+
M as createFetchUniq,
|
|
51
|
+
w as default,
|
|
52
|
+
b as getFetchUniq,
|
|
53
|
+
Q as getValue,
|
|
54
|
+
j as setFetchUniq,
|
|
55
|
+
J as useDragAndDrop,
|
|
56
|
+
k as useFetch,
|
|
57
|
+
z as useFetchPages
|
|
58
|
+
};
|