@bpd-library/utilities 1.1.1-beta.3 → 1.1.1-beta.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.
- package/dist/{types/api → api}/http.d.ts +0 -0
- package/dist/{lib/api → api}/http.js +0 -0
- package/dist/api/http.js.map +1 -0
- package/dist/{types/api → api}/index.d.ts +0 -0
- package/dist/{lib/api → api}/index.js +0 -0
- package/dist/api/index.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/api-utilities.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/api-utilities.js +0 -0
- package/dist/api-utilities/api-utilities.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/api-utilities.test.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/api-utilities.test.js +0 -0
- package/dist/api-utilities/api-utilities.test.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/api-utilities.types.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/api-utilities.types.js +0 -0
- package/dist/api-utilities/api-utilities.types.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/compose-exclude-string.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/compose-exclude-string.js +0 -0
- package/dist/api-utilities/compose-exclude-string.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/decimal-range/merge-decimal-range.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/decimal-range/merge-decimal-range.js +0 -0
- package/dist/api-utilities/decimal-range/merge-decimal-range.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/decimal-range/merge-specification-range.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/decimal-range/merge-specification-range.js +0 -0
- package/dist/api-utilities/decimal-range/merge-specification-range.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/district-status.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/district-status.js +0 -0
- package/dist/api-utilities/district-status.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/find-filter.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/find-filter.js +0 -0
- package/dist/api-utilities/find-filter.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/get/coordinates.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/get/coordinates.js +0 -0
- package/dist/api-utilities/get/coordinates.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/get/layer-raster.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/get/layer-raster.js +0 -0
- package/dist/api-utilities/get/layer-raster.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/index.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/index.js +0 -0
- package/dist/api-utilities/index.js.map +1 -0
- package/dist/{types/api-utilities → api-utilities}/show-price.d.ts +0 -0
- package/dist/{lib/api-utilities → api-utilities}/show-price.js +0 -0
- package/dist/api-utilities/show-price.js.map +1 -0
- package/dist/{types/constants → constants}/index.d.ts +0 -0
- package/dist/{lib/constants → constants}/index.js +0 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/{types/date.d.ts → date.d.ts} +0 -0
- package/dist/{lib/date.js → date.js} +0 -0
- package/dist/date.js.map +1 -0
- package/dist/{types/debounce.d.ts → debounce.d.ts} +0 -0
- package/dist/{lib/debounce.js → debounce.js} +0 -0
- package/dist/debounce.js.map +1 -0
- package/dist/{types/dom → dom}/dom.d.ts +0 -0
- package/dist/{lib/dom → dom}/dom.js +0 -0
- package/dist/dom/dom.js.map +1 -0
- package/dist/{types/dom → dom}/index.d.ts +0 -0
- package/dist/{lib/dom → dom}/index.js +0 -0
- package/dist/dom/index.js.map +1 -0
- package/dist/{types/environment.d.ts → environment.d.ts} +0 -0
- package/dist/{lib/environment.js → environment.js} +0 -0
- package/dist/environment.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/excluded-properties.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/excluded-properties.js +0 -0
- package/dist/extended-api-models/excluded-properties.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/extended-area-projects.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/extended-area-projects.js +0 -0
- package/dist/extended-api-models/extended-area-projects.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/extended-area.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/extended-area.js +0 -0
- package/dist/extended-api-models/extended-area.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/index.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/index.js +0 -0
- package/dist/extended-api-models/index.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/status/apartment-building-status.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/status/apartment-building-status.js +0 -0
- package/dist/extended-api-models/status/apartment-building-status.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/status/construction-number-status.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/status/construction-number-status.js +0 -0
- package/dist/extended-api-models/status/construction-number-status.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/status/property-type-status.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/status/property-type-status.js +0 -0
- package/dist/extended-api-models/status/property-type-status.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/utilities/apartment-building-view.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/utilities/apartment-building-view.js +0 -0
- package/dist/extended-api-models/utilities/apartment-building-view.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/utilities/extended-model-price-range.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/utilities/extended-model-price-range.js +0 -0
- package/dist/extended-api-models/utilities/extended-model-price-range.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/utilities/find-extended-object.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/utilities/find-extended-object.js +0 -0
- package/dist/extended-api-models/utilities/find-extended-object.js.map +1 -0
- package/dist/{types/extended-api-models → extended-api-models}/utilities/is-apartment.d.ts +0 -0
- package/dist/{lib/extended-api-models → extended-api-models}/utilities/is-apartment.js +0 -0
- package/dist/extended-api-models/utilities/is-apartment.js.map +1 -0
- package/dist/{types/function-is-true.d.ts → function-is-true.d.ts} +0 -0
- package/dist/{lib/function-is-true.js → function-is-true.js} +0 -0
- package/dist/function-is-true.js.map +1 -0
- package/dist/{types/generated → generated}/bpd-client.d.ts +0 -0
- package/dist/{lib/generated → generated}/bpd-client.js +0 -0
- package/dist/generated/bpd-client.js.map +1 -0
- package/dist/{types/generated → generated}/index.d.ts +0 -0
- package/dist/{lib/generated → generated}/index.js +0 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/{types/geometry → geometry}/country-bounding-box.d.ts +0 -0
- package/dist/{lib/geometry → geometry}/country-bounding-box.js +0 -0
- package/dist/geometry/country-bounding-box.js.map +1 -0
- package/dist/{types/geometry → geometry}/geometry.d.ts +0 -0
- package/dist/{lib/geometry → geometry}/geometry.js +0 -0
- package/dist/geometry/geometry.js.map +1 -0
- package/dist/{types/geometry → geometry}/geometry.test.d.ts +0 -0
- package/dist/{lib/geometry → geometry}/geometry.test.js +0 -0
- package/dist/geometry/geometry.test.js.map +1 -0
- package/dist/{types/geometry → geometry}/index.d.ts +0 -0
- package/dist/{lib/geometry → geometry}/index.js +0 -0
- package/dist/geometry/index.js.map +1 -0
- package/dist/{types/hooks → hooks}/index.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/index.js +0 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-click-outside.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-click-outside.js +0 -0
- package/dist/hooks/use-click-outside.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-delegate-listen.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-delegate-listen.js +0 -0
- package/dist/hooks/use-delegate-listen.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-form-changes.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-form-changes.js +0 -0
- package/dist/hooks/use-form-changes.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-history.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-history.js +0 -0
- package/dist/hooks/use-history.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-input.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-input.js +0 -0
- package/dist/hooks/use-input.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-keyboard-focus.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-keyboard-focus.js +0 -0
- package/dist/hooks/use-keyboard-focus.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-lazy.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-lazy.js +0 -0
- package/dist/hooks/use-lazy.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-map-storage.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-map-storage.js +0 -0
- package/dist/hooks/use-map-storage.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-scroll-position.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-scroll-position.js +0 -0
- package/dist/hooks/use-scroll-position.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-scroll-to.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-scroll-to.js +0 -0
- package/dist/hooks/use-scroll-to.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-stylesheet.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-stylesheet.js +0 -0
- package/dist/hooks/use-stylesheet.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-text.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-text.js +0 -0
- package/dist/hooks/use-text.js.map +1 -0
- package/dist/{types/hooks → hooks}/use-url-params.d.ts +0 -0
- package/dist/{lib/hooks → hooks}/use-url-params.js +0 -0
- package/dist/hooks/use-url-params.js.map +1 -0
- package/dist/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/{lib/index.js → index.js} +0 -0
- package/dist/index.js.map +1 -0
- package/dist/{types/is-touch.d.ts → is-touch.d.ts} +0 -0
- package/dist/{lib/is-touch.js → is-touch.js} +0 -0
- package/dist/is-touch.js.map +1 -0
- package/dist/{types/media-query → media-query}/breakpoints.d.ts +0 -0
- package/dist/{lib/media-query → media-query}/breakpoints.js +0 -0
- package/dist/media-query/breakpoints.js.map +1 -0
- package/dist/{types/media-query → media-query}/index.d.ts +0 -0
- package/dist/{lib/media-query → media-query}/index.js +0 -0
- package/dist/media-query/index.js.map +1 -0
- package/dist/{types/media-query → media-query}/media-query.d.ts +0 -0
- package/dist/{lib/media-query → media-query}/media-query.js +0 -0
- package/dist/media-query/media-query.js.map +1 -0
- package/dist/{types/media-query → media-query}/media-query.types.d.ts +0 -0
- package/dist/{lib/media-query → media-query}/media-query.types.js +0 -0
- package/dist/media-query/media-query.types.js.map +1 -0
- package/dist/{types/media-query → media-query}/utils/index.d.ts +0 -0
- package/dist/{lib/media-query → media-query}/utils/index.js +0 -0
- package/dist/media-query/utils/index.js.map +1 -0
- package/dist/{types/raf-throttle.d.ts → raf-throttle.d.ts} +0 -0
- package/dist/{lib/raf-throttle.js → raf-throttle.js} +0 -0
- package/dist/raf-throttle.js.map +1 -0
- package/dist/{types/throttle.d.ts → throttle.d.ts} +0 -0
- package/dist/{lib/throttle.js → throttle.js} +0 -0
- package/dist/throttle.js.map +1 -0
- package/dist/{types/to-currency.d.ts → to-currency.d.ts} +0 -0
- package/dist/{lib/to-currency.js → to-currency.js} +0 -0
- package/dist/to-currency.js.map +1 -0
- package/package.json +7 -10
- package/dist/esm/api/http.js +0 -120
- package/dist/esm/api/http.js.map +0 -1
- package/dist/esm/api/index.js +0 -11
- package/dist/esm/api/index.js.map +0 -1
- package/dist/esm/api-utilities/compose-exclude-string.js +0 -6
- package/dist/esm/api-utilities/compose-exclude-string.js.map +0 -1
- package/dist/esm/api-utilities/decimal-range/merge-decimal-range.js +0 -13
- package/dist/esm/api-utilities/decimal-range/merge-decimal-range.js.map +0 -1
- package/dist/esm/api-utilities/decimal-range/merge-specification-range.js +0 -29
- package/dist/esm/api-utilities/decimal-range/merge-specification-range.js.map +0 -1
- package/dist/esm/api-utilities/district-status.js +0 -14
- package/dist/esm/api-utilities/district-status.js.map +0 -1
- package/dist/esm/api-utilities/find-filter.js +0 -41
- package/dist/esm/api-utilities/find-filter.js.map +0 -1
- package/dist/esm/api-utilities/get/coordinates.js +0 -31
- package/dist/esm/api-utilities/get/coordinates.js.map +0 -1
- package/dist/esm/api-utilities/get/layer-raster.js +0 -4
- package/dist/esm/api-utilities/get/layer-raster.js.map +0 -1
- package/dist/esm/api-utilities/show-price.js +0 -7
- package/dist/esm/api-utilities/show-price.js.map +0 -1
- package/dist/esm/atomify.js +0 -14
- package/dist/esm/atomify.js.map +0 -1
- package/dist/esm/constants/index.js +0 -7
- package/dist/esm/constants/index.js.map +0 -1
- package/dist/esm/date.js +0 -11
- package/dist/esm/date.js.map +0 -1
- package/dist/esm/debounce.js +0 -25
- package/dist/esm/debounce.js.map +0 -1
- package/dist/esm/dom/dom.js +0 -9
- package/dist/esm/dom/dom.js.map +0 -1
- package/dist/esm/environment.js +0 -27
- package/dist/esm/environment.js.map +0 -1
- package/dist/esm/extended-api-models/excluded-properties.js +0 -36
- package/dist/esm/extended-api-models/excluded-properties.js.map +0 -1
- package/dist/esm/extended-api-models/extended-area-projects.js +0 -12
- package/dist/esm/extended-api-models/extended-area-projects.js.map +0 -1
- package/dist/esm/extended-api-models/extended-area.js +0 -182
- package/dist/esm/extended-api-models/extended-area.js.map +0 -1
- package/dist/esm/extended-api-models/status/apartment-building-status.js +0 -60
- package/dist/esm/extended-api-models/status/apartment-building-status.js.map +0 -1
- package/dist/esm/extended-api-models/status/construction-number-status.js +0 -20
- package/dist/esm/extended-api-models/status/construction-number-status.js.map +0 -1
- package/dist/esm/extended-api-models/status/property-type-status.js +0 -60
- package/dist/esm/extended-api-models/status/property-type-status.js.map +0 -1
- package/dist/esm/extended-api-models/utilities/apartment-building-view.js +0 -5
- package/dist/esm/extended-api-models/utilities/apartment-building-view.js.map +0 -1
- package/dist/esm/extended-api-models/utilities/extended-model-price-range.js +0 -37
- package/dist/esm/extended-api-models/utilities/extended-model-price-range.js.map +0 -1
- package/dist/esm/extended-api-models/utilities/find-extended-object.js +0 -23
- package/dist/esm/extended-api-models/utilities/find-extended-object.js.map +0 -1
- package/dist/esm/extended-api-models/utilities/is-apartment.js +0 -14
- package/dist/esm/extended-api-models/utilities/is-apartment.js.map +0 -1
- package/dist/esm/function-is-true.js +0 -13
- package/dist/esm/function-is-true.js.map +0 -1
- package/dist/esm/generated/bpd-client.js +0 -53
- package/dist/esm/generated/bpd-client.js.map +0 -1
- package/dist/esm/geometry/country-bounding-box.js +0 -14
- package/dist/esm/geometry/country-bounding-box.js.map +0 -1
- package/dist/esm/geometry/geometry.js +0 -65
- package/dist/esm/geometry/geometry.js.map +0 -1
- package/dist/esm/hooks/use-click-outside.js +0 -34
- package/dist/esm/hooks/use-click-outside.js.map +0 -1
- package/dist/esm/hooks/use-form-changes.js +0 -30
- package/dist/esm/hooks/use-form-changes.js.map +0 -1
- package/dist/esm/hooks/use-history.js +0 -15
- package/dist/esm/hooks/use-history.js.map +0 -1
- package/dist/esm/hooks/use-keyboard-focus.js +0 -14
- package/dist/esm/hooks/use-keyboard-focus.js.map +0 -1
- package/dist/esm/hooks/use-lazy.js +0 -47
- package/dist/esm/hooks/use-lazy.js.map +0 -1
- package/dist/esm/hooks/use-map-storage.js +0 -16
- package/dist/esm/hooks/use-map-storage.js.map +0 -1
- package/dist/esm/hooks/use-scroll-position.js +0 -23
- package/dist/esm/hooks/use-scroll-position.js.map +0 -1
- package/dist/esm/hooks/use-scroll-to.js +0 -66
- package/dist/esm/hooks/use-scroll-to.js.map +0 -1
- package/dist/esm/hooks/use-stylesheet.js +0 -8
- package/dist/esm/hooks/use-stylesheet.js.map +0 -1
- package/dist/esm/hooks/use-url-params.js +0 -31
- package/dist/esm/hooks/use-url-params.js.map +0 -1
- package/dist/esm/index.js +0 -40
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/is-touch.js +0 -32
- package/dist/esm/is-touch.js.map +0 -1
- package/dist/esm/media-query/breakpoints.js +0 -29
- package/dist/esm/media-query/breakpoints.js.map +0 -1
- package/dist/esm/media-query/media-query.js +0 -39
- package/dist/esm/media-query/media-query.js.map +0 -1
- package/dist/esm/media-query/utils/index.js +0 -35
- package/dist/esm/media-query/utils/index.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/core/apply-attributes.js +0 -87
- package/dist/esm/node_modules/@atomify/jsx/dist/core/apply-attributes.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/core/create-element.js +0 -14
- package/dist/esm/node_modules/@atomify/jsx/dist/core/create-element.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/core/create-fragment-from-children.js +0 -20
- package/dist/esm/node_modules/@atomify/jsx/dist/core/create-fragment-from-children.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/index.js +0 -18
- package/dist/esm/node_modules/@atomify/jsx/dist/index.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/class-names.js +0 -19
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/class-names.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/index.js +0 -7
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/index.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/is-boolean-attr.js +0 -29
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/is-boolean-attr.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/is-custom-element.js +0 -6
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/is-custom-element.js.map +0 -1
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/is-svg.js +0 -101
- package/dist/esm/node_modules/@atomify/jsx/dist/utilities/is-svg.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/hooks/use-classname.js +0 -34
- package/dist/esm/node_modules/@atomify/kit/dist/hooks/use-classname.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/hooks/use-store.js +0 -13
- package/dist/esm/node_modules/@atomify/kit/dist/hooks/use-store.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/index.js +0 -8
- package/dist/esm/node_modules/@atomify/kit/dist/index.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/inview.js +0 -66
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/inview.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/build-treshhold-list.js +0 -13
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/build-treshhold-list.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/generate-unique-element-id.js +0 -20
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/generate-unique-element-id.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/has-observer-items.js +0 -22
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/has-observer-items.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/on-change.js +0 -21
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/on-change.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/loadable/loadable.js +0 -79
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/loadable/loadable.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/media-query/breakpoints.js +0 -29
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/media-query/breakpoints.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/media-query/media-query.js +0 -34
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/media-query/media-query.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/media-query/utils/index.js +0 -38
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/media-query/utils/index.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/store/polyfill/index.js +0 -12
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/store/polyfill/index.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/store/polyfill/proxy.js +0 -119
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/store/polyfill/proxy.js.map +0 -1
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/store/store.js +0 -53
- package/dist/esm/node_modules/@atomify/kit/dist/utilities/store/store.js.map +0 -1
- package/dist/esm/raf-throttle.js +0 -24
- package/dist/esm/raf-throttle.js.map +0 -1
- package/dist/esm/throttle.js +0 -23
- package/dist/esm/throttle.js.map +0 -1
- package/dist/esm/to-currency.js +0 -26
- package/dist/esm/to-currency.js.map +0 -1
- package/dist/lib/api/http.js.map +0 -1
- package/dist/lib/api/index.js.map +0 -1
- package/dist/lib/api-utilities/api-utilities.js.map +0 -1
- package/dist/lib/api-utilities/api-utilities.test.js.map +0 -1
- package/dist/lib/api-utilities/api-utilities.types.js.map +0 -1
- package/dist/lib/api-utilities/compose-exclude-string.js.map +0 -1
- package/dist/lib/api-utilities/decimal-range/merge-decimal-range.js.map +0 -1
- package/dist/lib/api-utilities/decimal-range/merge-specification-range.js.map +0 -1
- package/dist/lib/api-utilities/district-status.js.map +0 -1
- package/dist/lib/api-utilities/find-filter.js.map +0 -1
- package/dist/lib/api-utilities/get/coordinates.js.map +0 -1
- package/dist/lib/api-utilities/get/layer-raster.js.map +0 -1
- package/dist/lib/api-utilities/index.js.map +0 -1
- package/dist/lib/api-utilities/show-price.js.map +0 -1
- package/dist/lib/atomify/index.js +0 -6
- package/dist/lib/atomify/index.js.map +0 -1
- package/dist/lib/atomify.js +0 -11
- package/dist/lib/atomify.js.map +0 -1
- package/dist/lib/constants/index.js.map +0 -1
- package/dist/lib/date.js.map +0 -1
- package/dist/lib/debounce.js.map +0 -1
- package/dist/lib/dom/dom.js.map +0 -1
- package/dist/lib/dom/index.js.map +0 -1
- package/dist/lib/environment.js.map +0 -1
- package/dist/lib/extended-api-models/excluded-properties.js.map +0 -1
- package/dist/lib/extended-api-models/extended-area-projects.js.map +0 -1
- package/dist/lib/extended-api-models/extended-area.js.map +0 -1
- package/dist/lib/extended-api-models/index.js.map +0 -1
- package/dist/lib/extended-api-models/status/apartment-building-status.js.map +0 -1
- package/dist/lib/extended-api-models/status/construction-number-status.js.map +0 -1
- package/dist/lib/extended-api-models/status/property-type-status.js.map +0 -1
- package/dist/lib/extended-api-models/utilities/apartment-building-view.js.map +0 -1
- package/dist/lib/extended-api-models/utilities/extended-model-price-range.js.map +0 -1
- package/dist/lib/extended-api-models/utilities/find-extended-object.js.map +0 -1
- package/dist/lib/extended-api-models/utilities/is-apartment.js.map +0 -1
- package/dist/lib/function-is-true.js.map +0 -1
- package/dist/lib/generated/bpd-client.js.map +0 -1
- package/dist/lib/generated/index.js.map +0 -1
- package/dist/lib/geometry/country-bounding-box.js.map +0 -1
- package/dist/lib/geometry/geometry.js.map +0 -1
- package/dist/lib/geometry/geometry.test.js.map +0 -1
- package/dist/lib/geometry/index.js.map +0 -1
- package/dist/lib/hooks/index.js.map +0 -1
- package/dist/lib/hooks/use-click-outside.js.map +0 -1
- package/dist/lib/hooks/use-delegate-listen.js.map +0 -1
- package/dist/lib/hooks/use-form-changes.js.map +0 -1
- package/dist/lib/hooks/use-history.js.map +0 -1
- package/dist/lib/hooks/use-input.js.map +0 -1
- package/dist/lib/hooks/use-keyboard-focus.js.map +0 -1
- package/dist/lib/hooks/use-lazy.js.map +0 -1
- package/dist/lib/hooks/use-map-storage.js.map +0 -1
- package/dist/lib/hooks/use-scroll-position.js.map +0 -1
- package/dist/lib/hooks/use-scroll-to.js.map +0 -1
- package/dist/lib/hooks/use-stylesheet.js.map +0 -1
- package/dist/lib/hooks/use-text.js.map +0 -1
- package/dist/lib/hooks/use-url-params.js.map +0 -1
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/is-touch.js.map +0 -1
- package/dist/lib/media-query/breakpoints.js.map +0 -1
- package/dist/lib/media-query/index.js.map +0 -1
- package/dist/lib/media-query/media-query.js.map +0 -1
- package/dist/lib/media-query/media-query.types.js.map +0 -1
- package/dist/lib/media-query/utils/index.js.map +0 -1
- package/dist/lib/raf-throttle.js.map +0 -1
- package/dist/lib/throttle.js.map +0 -1
- package/dist/lib/to-currency.js.map +0 -1
- package/dist/types/atomify/index.d.ts +0 -5
- package/dist/types/atomify.d.ts +0 -10
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-classname.js","sources":["../../../../../../../../../node_modules/@atomify/kit/dist/hooks/use-classname.js"],"sourcesContent":["import { createHook } from '@atomify/hooks';\nimport { classNames } from '@atomify/jsx';\nexport const useClassname = (initialValue) => createHook({\n onDidLoad: () => {\n const holder = document.createElement('div');\n if (initialValue != null) {\n holder.className = classNames(initialValue);\n }\n let holderClassList = holder.classList;\n function ClassList(element) {\n element.className = holderClassList.value;\n holderClassList = element.classList;\n }\n Object.defineProperties(ClassList, Object.getOwnPropertyDescriptors({\n add(...tokens) {\n holderClassList.add(...tokens);\n },\n remove(...tokens) {\n holderClassList.remove(...tokens);\n },\n toggle(token, force) {\n holderClassList.toggle(token, force);\n },\n contains(token) {\n return holderClassList.contains(token);\n },\n }));\n return ClassList;\n },\n});\n//# sourceMappingURL=use-classname.js.map"],"names":[],"mappings":";;;AAEY,MAAC,YAAY,GAAG,CAAC,YAAY,KAAK,UAAU,CAAC;AACzD,IAAI,SAAS,EAAE,MAAM;AACrB,QAAQ,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACrD,QAAQ,IAAI,YAAY,IAAI,IAAI,EAAE;AAClC,YAAY,MAAM,CAAC,SAAS,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;AACxD,SAAS;AACT,QAAQ,IAAI,eAAe,GAAG,MAAM,CAAC,SAAS,CAAC;AAC/C,QAAQ,SAAS,SAAS,CAAC,OAAO,EAAE;AACpC,YAAY,OAAO,CAAC,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC;AACtD,YAAY,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC;AAChD,SAAS;AACT,QAAQ,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,CAAC,yBAAyB,CAAC;AAC5E,YAAY,GAAG,CAAC,GAAG,MAAM,EAAE;AAC3B,gBAAgB,eAAe,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;AAC/C,aAAa;AACb,YAAY,MAAM,CAAC,GAAG,MAAM,EAAE;AAC9B,gBAAgB,eAAe,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAClD,aAAa;AACb,YAAY,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE;AACjC,gBAAgB,eAAe,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACrD,aAAa;AACb,YAAY,QAAQ,CAAC,KAAK,EAAE;AAC5B,gBAAgB,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvD,aAAa;AACb,SAAS,CAAC,CAAC,CAAC;AACZ,QAAQ,OAAO,SAAS,CAAC;AACzB,KAAK;AACL,CAAC;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createHook } from '@atomify/hooks';
|
|
2
|
-
|
|
3
|
-
const useStore = (store) => createHook({
|
|
4
|
-
onDidLoad: () => {
|
|
5
|
-
const state = store.getState();
|
|
6
|
-
const subscribe = store.subscribe;
|
|
7
|
-
const prevState = store.getPrevState();
|
|
8
|
-
return [state, subscribe, prevState];
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export { useStore };
|
|
13
|
-
//# sourceMappingURL=use-store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-store.js","sources":["../../../../../../../../../node_modules/@atomify/kit/dist/hooks/use-store.js"],"sourcesContent":["import { createHook } from '@atomify/hooks';\nexport const useStore = (store) => createHook({\n onDidLoad: () => {\n const state = store.getState();\n const subscribe = store.subscribe;\n const prevState = store.getPrevState();\n return [state, subscribe, prevState];\n },\n});\n//# sourceMappingURL=use-store.js.map"],"names":[],"mappings":";;AACY,MAAC,QAAQ,GAAG,CAAC,KAAK,KAAK,UAAU,CAAC;AAC9C,IAAI,SAAS,EAAE,MAAM;AACrB,QAAQ,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;AACvC,QAAQ,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;AAC1C,QAAQ,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;AAC/C,QAAQ,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAC7C,KAAK;AACL,CAAC;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { useClassname } from './hooks/use-classname.js';
|
|
2
|
-
export { useStore } from './hooks/use-store.js';
|
|
3
|
-
export { inviewObserver } from './utilities/inview/inview.js';
|
|
4
|
-
export { Loadable } from './utilities/loadable/loadable.js';
|
|
5
|
-
export { getCurrentBreakpoint, max, mediaWatcher, min, useMedia } from './utilities/media-query/media-query.js';
|
|
6
|
-
export { createStore } from './utilities/store/store.js';
|
|
7
|
-
export { breakpoints } from './utilities/media-query/breakpoints.js';
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { buildThresholdList } from './utils/build-treshhold-list.js';
|
|
2
|
-
import { generateUniqueElementId, generateOptionsId } from './utils/generate-unique-element-id.js';
|
|
3
|
-
import { onChange } from './utils/on-change.js';
|
|
4
|
-
import { hasObserverItems } from './utils/has-observer-items.js';
|
|
5
|
-
|
|
6
|
-
const INSTANCES = new Map();
|
|
7
|
-
const OBSERVERS = new Map();
|
|
8
|
-
const ELEMENT_IDS = new Map();
|
|
9
|
-
const DEFAULT_ROOT = document.querySelector('body');
|
|
10
|
-
class Inview {
|
|
11
|
-
observe(element, callback, options = {}) {
|
|
12
|
-
if (!element)
|
|
13
|
-
return;
|
|
14
|
-
if (INSTANCES.has(element))
|
|
15
|
-
throw new Error(`Trying to observe ${Element} this one is already observed by another instance.`);
|
|
16
|
-
if (typeof options.threshold === 'undefined') {
|
|
17
|
-
options.threshold = buildThresholdList();
|
|
18
|
-
}
|
|
19
|
-
const { threshold, root = DEFAULT_ROOT } = options;
|
|
20
|
-
const uniqueId = `${generateUniqueElementId(ELEMENT_IDS, root)}`;
|
|
21
|
-
const instanceId = generateOptionsId(uniqueId, options);
|
|
22
|
-
let observer = OBSERVERS.get(instanceId);
|
|
23
|
-
if (!observer) {
|
|
24
|
-
observer = new IntersectionObserver(changes => onChange(changes, INSTANCES), options);
|
|
25
|
-
if (instanceId)
|
|
26
|
-
OBSERVERS.set(instanceId, observer);
|
|
27
|
-
}
|
|
28
|
-
const instance = {
|
|
29
|
-
callback,
|
|
30
|
-
element,
|
|
31
|
-
instanceId,
|
|
32
|
-
inView: false,
|
|
33
|
-
observer,
|
|
34
|
-
thresholds: Array.isArray(threshold) ? threshold : [threshold],
|
|
35
|
-
};
|
|
36
|
-
INSTANCES.set(element, instance);
|
|
37
|
-
instance.observer.observe(element);
|
|
38
|
-
return instance;
|
|
39
|
-
}
|
|
40
|
-
unobserve(element) {
|
|
41
|
-
if (!element)
|
|
42
|
-
return;
|
|
43
|
-
const instance = INSTANCES.get(element);
|
|
44
|
-
if (instance) {
|
|
45
|
-
const { observer, instanceId } = instance;
|
|
46
|
-
const { rootHasItemsLeft, rootIsObserved } = hasObserverItems(INSTANCES, observer.root, element, instanceId);
|
|
47
|
-
observer.unobserve(element);
|
|
48
|
-
if (!rootIsObserved && observer.root)
|
|
49
|
-
ELEMENT_IDS.delete(observer.root);
|
|
50
|
-
if (observer && !rootHasItemsLeft) {
|
|
51
|
-
observer.disconnect();
|
|
52
|
-
}
|
|
53
|
-
INSTANCES.delete(element);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
destroy() {
|
|
57
|
-
INSTANCES.forEach(instance => instance.observer.disconnect());
|
|
58
|
-
INSTANCES.clear();
|
|
59
|
-
ELEMENT_IDS.clear();
|
|
60
|
-
OBSERVERS.clear();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const inviewObserver = new Inview();
|
|
64
|
-
|
|
65
|
-
export { inviewObserver };
|
|
66
|
-
//# sourceMappingURL=inview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inview.js","sources":["../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/inview/inview.js"],"sourcesContent":["import { buildThresholdList, generateOptionsId, generateUniqueElementId, hasObserverItems, onChange, } from './utils';\nconst INSTANCES = new Map();\nconst OBSERVERS = new Map();\nconst ELEMENT_IDS = new Map();\nconst DEFAULT_ROOT = document.querySelector('body');\nclass Inview {\n observe(element, callback, options = {}) {\n if (!element)\n return;\n if (INSTANCES.has(element))\n throw new Error(`Trying to observe ${Element} this one is already observed by another instance.`);\n if (typeof options.threshold === 'undefined') {\n options.threshold = buildThresholdList();\n }\n const { threshold, root = DEFAULT_ROOT } = options;\n const uniqueId = `${generateUniqueElementId(ELEMENT_IDS, root)}`;\n const instanceId = generateOptionsId(uniqueId, options);\n let observer = OBSERVERS.get(instanceId);\n if (!observer) {\n observer = new IntersectionObserver(changes => onChange(changes, INSTANCES), options);\n if (instanceId)\n OBSERVERS.set(instanceId, observer);\n }\n const instance = {\n callback,\n element,\n instanceId,\n inView: false,\n observer,\n thresholds: Array.isArray(threshold) ? threshold : [threshold],\n };\n INSTANCES.set(element, instance);\n instance.observer.observe(element);\n return instance;\n }\n unobserve(element) {\n if (!element)\n return;\n const instance = INSTANCES.get(element);\n if (instance) {\n const { observer, instanceId } = instance;\n const { rootHasItemsLeft, rootIsObserved } = hasObserverItems(INSTANCES, observer.root, element, instanceId);\n observer.unobserve(element);\n if (!rootIsObserved && observer.root)\n ELEMENT_IDS.delete(observer.root);\n if (observer && !rootHasItemsLeft) {\n observer.disconnect();\n }\n INSTANCES.delete(element);\n }\n }\n destroy() {\n INSTANCES.forEach(instance => instance.observer.disconnect());\n INSTANCES.clear();\n ELEMENT_IDS.clear();\n OBSERVERS.clear();\n }\n}\nexport const inviewObserver = new Inview();\n//# sourceMappingURL=inview.js.map"],"names":[],"mappings":";;;;;AACA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;AAC5B,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;AAC5B,MAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC;AAC9B,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AACpD,MAAM,MAAM,CAAC;AACb,IAAI,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,EAAE;AAC7C,QAAQ,IAAI,CAAC,OAAO;AACpB,YAAY,OAAO;AACnB,QAAQ,IAAI,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC;AAClC,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,kBAAkB,EAAE,OAAO,CAAC,kDAAkD,CAAC,CAAC,CAAC;AAC9G,QAAQ,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,WAAW,EAAE;AACtD,YAAY,OAAO,CAAC,SAAS,GAAG,kBAAkB,EAAE,CAAC;AACrD,SAAS;AACT,QAAQ,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,YAAY,EAAE,GAAG,OAAO,CAAC;AAC3D,QAAQ,MAAM,QAAQ,GAAG,CAAC,EAAE,uBAAuB,CAAC,WAAW,EAAE,IAAI,CAAC,CA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E,OAAO,EAAE,UAAU,CAAC,CAAC;AACzH,YAAY,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AACxC,YAAY,IAAI,CAAC,cAAc,IAAI,QAAQ,CAAC,IAAI;AAChD,gBAAgB,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAClD,YAAY,IAAI,QAAQ,IAAI,CAAC,gBAAgB,EAAE;AAC/C,gBAAgB,QAAQ,CAAC,UAAU,EAAE,CAAC;AACtC,aAAa;AACb,YAAY,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACtC,SAAS;AACT,KAAK;AACL,IAAI,OAAO,GAAG;AACd,QAAQ,SAAS,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;AACtE,QAAQ,SAAS,CAAC,KAAK,EAAE,CAAC;AAC1B,QAAQ,WAAW,CAAC,KAAK,EAAE,CAAC;AAC5B,QAAQ,SAAS,CAAC,KAAK,EAAE,CAAC;AAC1B,KAAK;AACL,CAAC;AACW,MAAC,cAAc,GAAG,IAAI,MAAM;;;;"}
|
package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/build-treshhold-list.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function buildThresholdList() {
|
|
2
|
-
const numSteps = 1000;
|
|
3
|
-
const thresholds = [];
|
|
4
|
-
for (let i = 1.0; i <= numSteps; i++) {
|
|
5
|
-
const ratio = i / numSteps;
|
|
6
|
-
thresholds.push(ratio);
|
|
7
|
-
}
|
|
8
|
-
thresholds.push(0);
|
|
9
|
-
return thresholds;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { buildThresholdList };
|
|
13
|
-
//# sourceMappingURL=build-treshhold-list.js.map
|
package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/build-treshhold-list.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-treshhold-list.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/inview/utils/build-treshhold-list.js"],"sourcesContent":["export function buildThresholdList() {\n const numSteps = 1000;\n const thresholds = [];\n for (let i = 1.0; i <= numSteps; i++) {\n const ratio = i / numSteps;\n thresholds.push(ratio);\n }\n thresholds.push(0);\n return thresholds;\n}\n//# sourceMappingURL=build-treshhold-list.js.map"],"names":[],"mappings":"AAAO,SAAS,kBAAkB,GAAG;AACrC,IAAI,MAAM,QAAQ,GAAG,IAAI,CAAC;AAC1B,IAAI,MAAM,UAAU,GAAG,EAAE,CAAC;AAC1B,IAAI,KAAK,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAE;AAC1C,QAAQ,MAAM,KAAK,GAAG,CAAC,GAAG,QAAQ,CAAC;AACnC,QAAQ,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC/B,KAAK;AACL,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACvB,IAAI,OAAO,UAAU,CAAC;AACtB;;;;"}
|
package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/generate-unique-element-id.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function generateUniqueElementId(elementIds, root) {
|
|
2
|
-
if (!root)
|
|
3
|
-
return '';
|
|
4
|
-
if (elementIds.has(root))
|
|
5
|
-
return elementIds.get(root);
|
|
6
|
-
const generatedId = `${Math.random()
|
|
7
|
-
.toString(36)
|
|
8
|
-
.substr(2, 9)}_`;
|
|
9
|
-
elementIds.set(root, generatedId);
|
|
10
|
-
return elementIds.get(root);
|
|
11
|
-
}
|
|
12
|
-
function generateOptionsId(rootId, options) {
|
|
13
|
-
const { rootMargin, threshold } = options;
|
|
14
|
-
const thresholdId = threshold ? threshold.toString() : '';
|
|
15
|
-
const optionsId = rootMargin ? `${thresholdId}_${rootMargin}` : thresholdId;
|
|
16
|
-
return `${rootId}${optionsId}`;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { generateOptionsId, generateUniqueElementId };
|
|
20
|
-
//# sourceMappingURL=generate-unique-element-id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-unique-element-id.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/inview/utils/generate-unique-element-id.js"],"sourcesContent":["export function generateUniqueElementId(elementIds, root) {\n if (!root)\n return '';\n if (elementIds.has(root))\n return elementIds.get(root);\n const generatedId = `${Math.random()\n .toString(36)\n .substr(2, 9)}_`;\n elementIds.set(root, generatedId);\n return elementIds.get(root);\n}\nexport function generateOptionsId(rootId, options) {\n const { rootMargin, threshold } = options;\n const thresholdId = threshold ? threshold.toString() : '';\n const optionsId = rootMargin ? `${thresholdId}_${rootMargin}` : thresholdId;\n return `${rootId}${optionsId}`;\n}\n//# sourceMappingURL=generate-unique-element-id.js.map"],"names":[],"mappings":"AAAO,SAAS,uBAAuB,CAAC,UAAU,EAAE,IAAI,EAAE;AAC1D,IAAI,IAAI,CAAC,IAAI;AACb,QAAQ,OAAO,EAAE,CAAC;AAClB,IAAI,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;AAC5B,QAAQ,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACpC,IAAI,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE;AACxC,SAAS,QAAQ,CAAC,EAAE,CAAC;AACrB,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzB,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AACtC,IAAI,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AACM,SAAS,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE;AACnD,IAAI,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;AAC9C,IAAI,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC;AAC9D,IAAI,MAAM,SAAS,GAAG,UAAU,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG,WAAW,CAAC;AAChF,IAAI,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;AACnC;;;;"}
|
package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/has-observer-items.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function hasObserverItems(instances, root, element, instanceId) {
|
|
2
|
-
let rootIsObserved = false;
|
|
3
|
-
let rootHasItemsLeft = false;
|
|
4
|
-
instances.forEach((item, key) => {
|
|
5
|
-
if (key !== element) {
|
|
6
|
-
if (item.instanceId === instanceId) {
|
|
7
|
-
rootHasItemsLeft = true;
|
|
8
|
-
rootIsObserved = true;
|
|
9
|
-
}
|
|
10
|
-
if (item.observer.root === root) {
|
|
11
|
-
rootIsObserved = true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
return {
|
|
16
|
-
rootIsObserved,
|
|
17
|
-
rootHasItemsLeft,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { hasObserverItems };
|
|
22
|
-
//# sourceMappingURL=has-observer-items.js.map
|
package/dist/esm/node_modules/@atomify/kit/dist/utilities/inview/utils/has-observer-items.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"has-observer-items.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/inview/utils/has-observer-items.js"],"sourcesContent":["export function hasObserverItems(instances, root, element, instanceId) {\n let rootIsObserved = false;\n let rootHasItemsLeft = false;\n instances.forEach((item, key) => {\n if (key !== element) {\n if (item.instanceId === instanceId) {\n rootHasItemsLeft = true;\n rootIsObserved = true;\n }\n if (item.observer.root === root) {\n rootIsObserved = true;\n }\n }\n });\n return {\n rootIsObserved,\n rootHasItemsLeft,\n };\n}\n//# sourceMappingURL=has-observer-items.js.map"],"names":[],"mappings":"AAAO,SAAS,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE;AACvE,IAAI,IAAI,cAAc,GAAG,KAAK,CAAC;AAC/B,IAAI,IAAI,gBAAgB,GAAG,KAAK,CAAC;AACjC,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK;AACrC,QAAQ,IAAI,GAAG,KAAK,OAAO,EAAE;AAC7B,YAAY,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;AAChD,gBAAgB,gBAAgB,GAAG,IAAI,CAAC;AACxC,gBAAgB,cAAc,GAAG,IAAI,CAAC;AACtC,aAAa;AACb,YAAY,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI,EAAE;AAC7C,gBAAgB,cAAc,GAAG,IAAI,CAAC;AACtC,aAAa;AACb,SAAS;AACT,KAAK,CAAC,CAAC;AACP,IAAI,OAAO;AACX,QAAQ,cAAc;AACtB,QAAQ,gBAAgB;AACxB,KAAK,CAAC;AACN;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
function onChange(changes, instanceMap) {
|
|
2
|
-
changes.forEach(intersection => {
|
|
3
|
-
const { isIntersecting, intersectionRatio, target } = intersection;
|
|
4
|
-
const instance = instanceMap.get(target);
|
|
5
|
-
if (instance && intersectionRatio >= 0) {
|
|
6
|
-
let inView = instance.thresholds.some(threshold => {
|
|
7
|
-
return instance.inView
|
|
8
|
-
? intersectionRatio > threshold
|
|
9
|
-
: intersectionRatio >= threshold;
|
|
10
|
-
});
|
|
11
|
-
if (isIntersecting !== undefined) {
|
|
12
|
-
inView = inView && isIntersecting;
|
|
13
|
-
}
|
|
14
|
-
instance.inView = inView;
|
|
15
|
-
instance.callback(inView, intersection);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { onChange };
|
|
21
|
-
//# sourceMappingURL=on-change.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"on-change.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/inview/utils/on-change.js"],"sourcesContent":["export function onChange(changes, instanceMap) {\n changes.forEach(intersection => {\n const { isIntersecting, intersectionRatio, target } = intersection;\n const instance = instanceMap.get(target);\n if (instance && intersectionRatio >= 0) {\n let inView = instance.thresholds.some(threshold => {\n return instance.inView\n ? intersectionRatio > threshold\n : intersectionRatio >= threshold;\n });\n if (isIntersecting !== undefined) {\n inView = inView && isIntersecting;\n }\n instance.inView = inView;\n instance.callback(inView, intersection);\n }\n });\n}\n//# sourceMappingURL=on-change.js.map"],"names":[],"mappings":"AAAO,SAAS,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE;AAC/C,IAAI,OAAO,CAAC,OAAO,CAAC,YAAY,IAAI;AACpC,QAAQ,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC;AAC3E,QAAQ,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,QAAQ,IAAI,QAAQ,IAAI,iBAAiB,IAAI,CAAC,EAAE;AAChD,YAAY,IAAI,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,IAAI;AAC/D,gBAAgB,OAAO,QAAQ,CAAC,MAAM;AACtC,sBAAsB,iBAAiB,GAAG,SAAS;AACnD,sBAAsB,iBAAiB,IAAI,SAAS,CAAC;AACrD,aAAa,CAAC,CAAC;AACf,YAAY,IAAI,cAAc,KAAK,SAAS,EAAE;AAC9C,gBAAgB,MAAM,GAAG,MAAM,IAAI,cAAc,CAAC;AAClD,aAAa;AACb,YAAY,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACrC,YAAY,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACpD,SAAS;AACT,KAAK,CAAC,CAAC;AACP;;;;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { inviewObserver } from '../inview/inview.js';
|
|
2
|
-
|
|
3
|
-
const INITIALIZERS = new Map();
|
|
4
|
-
const INITIALIZED_HOOKS = [];
|
|
5
|
-
const Loadable = (options) => {
|
|
6
|
-
const elements = document.querySelectorAll(options.hook);
|
|
7
|
-
if (elements.length !== 0) {
|
|
8
|
-
Array.from(elements).forEach((element) => {
|
|
9
|
-
const currentElements = INITIALIZERS.get(options.hook);
|
|
10
|
-
if (currentElements) {
|
|
11
|
-
INITIALIZERS.set(options.hook, [...currentElements, element]);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
INITIALIZERS.set(options.hook, [element]);
|
|
15
|
-
}
|
|
16
|
-
element.__initializedHookReference = element.__initializedHookReference || [];
|
|
17
|
-
if (element.__initializedHookReference.indexOf(options.hook) !== -1)
|
|
18
|
-
return;
|
|
19
|
-
observeComponent(element, options);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
function observeComponent(element, options) {
|
|
24
|
-
const loadingState = createLoadingState(element, options);
|
|
25
|
-
inviewObserver.observe(element, (inView) => {
|
|
26
|
-
if (inView) {
|
|
27
|
-
options
|
|
28
|
-
.loader()
|
|
29
|
-
.then(() => {
|
|
30
|
-
if (INITIALIZED_HOOKS.indexOf(options.hook) !== -1)
|
|
31
|
-
return;
|
|
32
|
-
unObserveRelatedElements(options.hook, inviewObserver);
|
|
33
|
-
if (options.onLoaded) {
|
|
34
|
-
options.onLoaded();
|
|
35
|
-
}
|
|
36
|
-
INITIALIZED_HOOKS.push(options.hook);
|
|
37
|
-
if (loadingState)
|
|
38
|
-
loadingState.remove();
|
|
39
|
-
})
|
|
40
|
-
.catch((error) => {
|
|
41
|
-
if (options.onError)
|
|
42
|
-
options.onError(error);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}, options.inViewOptions || {});
|
|
46
|
-
}
|
|
47
|
-
function unObserveRelatedElements(hook, observer) {
|
|
48
|
-
const relatedElements = INITIALIZERS.get(hook);
|
|
49
|
-
if (relatedElements) {
|
|
50
|
-
Array.from(relatedElements).map((element) => {
|
|
51
|
-
if (element.__initializedHookReference) {
|
|
52
|
-
element.__initializedHookReference.push(hook);
|
|
53
|
-
}
|
|
54
|
-
observer.unobserve(element);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function createLoadingState(element, options) {
|
|
59
|
-
if (!options.loading)
|
|
60
|
-
return false;
|
|
61
|
-
const loadingPlaceholder = document.createElement('div');
|
|
62
|
-
loadingPlaceholder.innerHTML = options.loading;
|
|
63
|
-
element.appendChild(loadingPlaceholder);
|
|
64
|
-
return {
|
|
65
|
-
remove: () => {
|
|
66
|
-
if (element.componentOnReady) {
|
|
67
|
-
element.componentOnReady().then(() => {
|
|
68
|
-
loadingPlaceholder.remove();
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
loadingPlaceholder.remove();
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export { Loadable };
|
|
79
|
-
//# sourceMappingURL=loadable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadable.js","sources":["../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/loadable/loadable.js"],"sourcesContent":["import { inviewObserver } from '../inview';\nconst INITIALIZERS = new Map();\nconst INITIALIZED_HOOKS = [];\nexport const Loadable = (options) => {\n const elements = document.querySelectorAll(options.hook);\n if (elements.length !== 0) {\n Array.from(elements).forEach((element) => {\n const currentElements = INITIALIZERS.get(options.hook);\n if (currentElements) {\n INITIALIZERS.set(options.hook, [...currentElements, element]);\n }\n else {\n INITIALIZERS.set(options.hook, [element]);\n }\n element.__initializedHookReference = element.__initializedHookReference || [];\n if (element.__initializedHookReference.indexOf(options.hook) !== -1)\n return;\n observeComponent(element, options);\n });\n }\n};\nfunction observeComponent(element, options) {\n const loadingState = createLoadingState(element, options);\n inviewObserver.observe(element, (inView) => {\n if (inView) {\n options\n .loader()\n .then(() => {\n if (INITIALIZED_HOOKS.indexOf(options.hook) !== -1)\n return;\n unObserveRelatedElements(options.hook, inviewObserver);\n if (options.onLoaded) {\n options.onLoaded();\n }\n INITIALIZED_HOOKS.push(options.hook);\n if (loadingState)\n loadingState.remove();\n })\n .catch((error) => {\n if (options.onError)\n options.onError(error);\n });\n }\n }, options.inViewOptions || {});\n}\nfunction unObserveRelatedElements(hook, observer) {\n const relatedElements = INITIALIZERS.get(hook);\n if (relatedElements) {\n Array.from(relatedElements).map((element) => {\n if (element.__initializedHookReference) {\n element.__initializedHookReference.push(hook);\n }\n observer.unobserve(element);\n });\n }\n}\nfunction createLoadingState(element, options) {\n if (!options.loading)\n return false;\n const loadingPlaceholder = document.createElement('div');\n loadingPlaceholder.innerHTML = options.loading;\n element.appendChild(loadingPlaceholder);\n return {\n remove: () => {\n if (element.componentOnReady) {\n element.componentOnReady().then(() => {\n loadingPlaceholder.remove();\n });\n }\n else {\n loadingPlaceholder.remove();\n }\n },\n };\n}\n//# sourceMappingURL=loadable.js.map"],"names":[],"mappings":";;AACA,MAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;AAC/B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AACjB,MAAC,QAAQ,GAAG,CAAC,OAAO,KAAK;AACrC,IAAI,MAAM,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC7D,IAAI,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AAC/B,QAAQ,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OA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OAAO;AACX,QAAQ,MAAM,EAAE,MAAM;AACtB,YAAY,IAAI,OAAO,CAAC,gBAAgB,EAAE;AAC1C,gBAAgB,OAAO,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,MAAM;AACtD,oBAAoB,kBAAkB,CAAC,MAAM,EAAE,CAAC;AAChD,iBAAiB,CAAC,CAAC;AACnB,aAAa;AACb,iBAAiB;AACjB,gBAAgB,kBAAkB,CAAC,MAAM,EAAE,CAAC;AAC5C,aAAa;AACb,SAAS;AACT,KAAK,CAAC;AACN;;;;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const breakpoints = {
|
|
2
|
-
mobile: {
|
|
3
|
-
size: 320,
|
|
4
|
-
active: false,
|
|
5
|
-
},
|
|
6
|
-
mobilePlus: {
|
|
7
|
-
size: 480,
|
|
8
|
-
active: false,
|
|
9
|
-
},
|
|
10
|
-
tabletPortrait: {
|
|
11
|
-
size: 768,
|
|
12
|
-
active: false,
|
|
13
|
-
},
|
|
14
|
-
tabletLandscape: {
|
|
15
|
-
size: 1024,
|
|
16
|
-
active: false,
|
|
17
|
-
},
|
|
18
|
-
laptop: {
|
|
19
|
-
size: 1260,
|
|
20
|
-
active: false,
|
|
21
|
-
},
|
|
22
|
-
desktop: {
|
|
23
|
-
size: 1600,
|
|
24
|
-
active: false,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { breakpoints };
|
|
29
|
-
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sources":["../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/media-query/breakpoints.js"],"sourcesContent":["export const breakpoints = {\n mobile: {\n size: 320,\n active: false,\n },\n mobilePlus: {\n size: 480,\n active: false,\n },\n tabletPortrait: {\n size: 768,\n active: false,\n },\n tabletLandscape: {\n size: 1024,\n active: false,\n },\n laptop: {\n size: 1260,\n active: false,\n },\n desktop: {\n size: 1600,\n active: false,\n },\n};\n//# sourceMappingURL=breakpoints.js.map"],"names":[],"mappings":"AAAY,MAAC,WAAW,GAAG;AAC3B,IAAI,MAAM,EAAE;AACZ,QAAQ,IAAI,EAAE,GAAG;AACjB,QAAQ,MAAM,EAAE,KAAK;AACrB,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,QAAQ,IAAI,EAAE,GAAG;AACjB,QAAQ,MAAM,EAAE,KAAK;AACrB,KAAK;AACL,IAAI,cAAc,EAAE;AACpB,QAAQ,IAAI,EAAE,GAAG;AACjB,QAAQ,MAAM,EAAE,KAAK;AACrB,KAAK;AACL,IAAI,eAAe,EAAE;AACrB,QAAQ,IAAI,EAAE,IAAI;AAClB,QAAQ,MAAM,EAAE,KAAK;AACrB,KAAK;AACL,IAAI,MAAM,EAAE;AACZ,QAAQ,IAAI,EAAE,IAAI;AAClB,QAAQ,MAAM,EAAE,KAAK;AACrB,KAAK;AACL,IAAI,OAAO,EAAE;AACb,QAAQ,IAAI,EAAE,IAAI;AAClB,QAAQ,MAAM,EAAE,KAAK;AACrB,KAAK;AACL;;;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { breakpoints } from './breakpoints.js';
|
|
2
|
-
export { breakpoints } from './breakpoints.js';
|
|
3
|
-
import { getSizeFromBreakpoint, getMediaQueries } from './utils/index.js';
|
|
4
|
-
|
|
5
|
-
const max = (breakpoint) => `(max-width: ${getSizeFromBreakpoint(breakpoint)}px)`;
|
|
6
|
-
const min = (breakpoint) => `(min-width: ${getSizeFromBreakpoint(breakpoint)}px)`;
|
|
7
|
-
const mediaWatcher = (mediaQuery, layoutChangedCallback) => {
|
|
8
|
-
const mediaQueryListener = window.matchMedia(mediaQuery);
|
|
9
|
-
mediaQueryListener.addListener((e) => layoutChangedCallback(e.matches));
|
|
10
|
-
layoutChangedCallback(mediaQueryListener.matches);
|
|
11
|
-
};
|
|
12
|
-
const getCurrentBreakpoint = () => getMediaQueries().reduce((previous, current) => window.matchMedia(current.query()).matches ? current.breakpoint : previous, '');
|
|
13
|
-
const useMedia = (callback) => {
|
|
14
|
-
const breakpointObject = getMediaQueries();
|
|
15
|
-
breakpointObject
|
|
16
|
-
.map((breakpoint) => {
|
|
17
|
-
return {
|
|
18
|
-
listener: window.matchMedia(breakpoint.query()),
|
|
19
|
-
breakpoint: breakpoint.breakpoint,
|
|
20
|
-
};
|
|
21
|
-
})
|
|
22
|
-
.forEach((breakpoint) => breakpoint.listener.addListener((e) => handleMediaListeners(e, breakpoint.breakpoint)));
|
|
23
|
-
function handleMediaListeners(event, key) {
|
|
24
|
-
if (!event.matches)
|
|
25
|
-
return;
|
|
26
|
-
Object.keys(breakpoints).forEach((item) => (breakpoints[item].active =
|
|
27
|
-
item === key ? event.matches : !event.matches));
|
|
28
|
-
callback(breakpoints);
|
|
29
|
-
}
|
|
30
|
-
callback(breakpoints);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { getCurrentBreakpoint, max, mediaWatcher, min, useMedia };
|
|
34
|
-
//# sourceMappingURL=media-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media-query.js","sources":["../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/media-query/media-query.js"],"sourcesContent":["import { breakpoints } from './breakpoints';\nimport { getMediaQueries, getSizeFromBreakpoint } from './utils';\nconst max = (breakpoint) => `(max-width: ${getSizeFromBreakpoint(breakpoint)}px)`;\nconst min = (breakpoint) => `(min-width: ${getSizeFromBreakpoint(breakpoint)}px)`;\nconst mediaWatcher = (mediaQuery, layoutChangedCallback) => {\n const mediaQueryListener = window.matchMedia(mediaQuery);\n mediaQueryListener.addListener((e) => layoutChangedCallback(e.matches));\n layoutChangedCallback(mediaQueryListener.matches);\n};\nconst getCurrentBreakpoint = () => getMediaQueries().reduce((previous, current) => window.matchMedia(current.query()).matches ? current.breakpoint : previous, '');\nconst useMedia = (callback) => {\n const breakpointObject = getMediaQueries();\n breakpointObject\n .map((breakpoint) => {\n return {\n listener: window.matchMedia(breakpoint.query()),\n breakpoint: breakpoint.breakpoint,\n };\n })\n .forEach((breakpoint) => breakpoint.listener.addListener((e) => handleMediaListeners(e, breakpoint.breakpoint)));\n function handleMediaListeners(event, key) {\n if (!event.matches)\n return;\n Object.keys(breakpoints).forEach((item) => (breakpoints[item].active =\n item === key ? event.matches : !event.matches));\n callback(breakpoints);\n }\n callback(breakpoints);\n};\nexport { breakpoints, min, max, useMedia, mediaWatcher, getCurrentBreakpoint };\n//# sourceMappingURL=media-query.js.map"],"names":[],"mappings":";;;;AAEK,MAAC,GAAG,GAAG,CAAC,UAAU,KAAK,CAAC,YAAY,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE;AAC7E,MAAC,GAAG,GAAG,CAAC,UAAU,KAAK,CAAC,YAAY,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE;AAC7E,MAAC,YAAY,GAAG,CAAC,UAAU,EAAE,qBAAqB,KAAK;AAC5D,IAAI,MAAM,kBAAkB,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAC7D,IAAI,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,qBAAqB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC5E,IAAI,qBAAqB,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;AACtD,EAAE;AACG,MAAC,oBAAoB,GAAG,MAAM,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,GAAG,OAAO,CAAC,UAAU,GAAG,QAAQ,EAAE,EAAE,EAAE;AAC9J,MAAC,QAAQ,GAAG,CAAC,QAAQ,KAAK;AAC/B,IAAI,MAAM,gBAAgB,GAAG,eAAe,EAAE,CAAC;AAC/C,IAAI,gBAAgB;AACpB,SAAS,GAAG,CAAC,CAAC,UAAU,KAAK;AAC7B,QAAQ,OAAO;AACf,YAAY,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;AAC3D,YAAY,UAAU,EAAE,UAAU,CAAC,UAAU;AAC7C,SAAS,CAAC;AACV,KAAK,CAAC;AACN,SAAS,OAAO,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACzH,IAAI,SAAS,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE;AAC9C,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO;AAC1B,YAAY,OAAO;AACnB,QAAQ,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM;AAC5E,YAAY,IAAI,KAAK,GAAG,GAAG,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC5D,QAAQ,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC9B,KAAK;AACL,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC1B;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { breakpoints } from '../breakpoints.js';
|
|
2
|
-
|
|
3
|
-
function getSizeFromBreakpoint(breakpointValue) {
|
|
4
|
-
if (breakpoints[breakpointValue].size) {
|
|
5
|
-
return breakpoints[breakpointValue].size;
|
|
6
|
-
}
|
|
7
|
-
else {
|
|
8
|
-
console.error('No valid breakpoint or size specified for media.');
|
|
9
|
-
return '0';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
function getMediaQueries() {
|
|
13
|
-
const breakpointsKeys = Object.keys(breakpoints);
|
|
14
|
-
const breakpointMap = [];
|
|
15
|
-
breakpointsKeys.forEach((item, index) => {
|
|
16
|
-
const key = item;
|
|
17
|
-
const breakpoint = breakpoints[key];
|
|
18
|
-
const breakpointAbove = breakpoints[breakpointsKeys[index + 1]];
|
|
19
|
-
breakpointMap.push({
|
|
20
|
-
breakpoint: key,
|
|
21
|
-
query: () => {
|
|
22
|
-
if (index === 0) {
|
|
23
|
-
return `(max-width: ${breakpointAbove.size - 1}px)`;
|
|
24
|
-
}
|
|
25
|
-
else if (index === breakpointMap.length - 1) {
|
|
26
|
-
return `(min-width: ${breakpoint.size}px)`;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return `(max-width: ${breakpointAbove.size - 1}px) and (min-width: ${breakpoint.size}px)`;
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
return breakpointMap;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { getMediaQueries, getSizeFromBreakpoint };
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/media-query/utils/index.js"],"sourcesContent":["import { breakpoints } from '../breakpoints';\nexport function getSizeFromBreakpoint(breakpointValue) {\n if (breakpoints[breakpointValue].size) {\n return breakpoints[breakpointValue].size;\n }\n else {\n console.error('No valid breakpoint or size specified for media.');\n return '0';\n }\n}\nexport function getMediaQueries() {\n const breakpointsKeys = Object.keys(breakpoints);\n const breakpointMap = [];\n breakpointsKeys.forEach((item, index) => {\n const key = item;\n const breakpoint = breakpoints[key];\n const breakpointAbove = breakpoints[breakpointsKeys[index + 1]];\n breakpointMap.push({\n breakpoint: key,\n query: () => {\n if (index === 0) {\n return `(max-width: ${breakpointAbove.size - 1}px)`;\n }\n else if (index === breakpointMap.length - 1) {\n return `(min-width: ${breakpoint.size}px)`;\n }\n else {\n return `(max-width: ${breakpointAbove.size - 1}px) and (min-width: ${breakpoint.size}px)`;\n }\n },\n });\n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AC,IAAI,GAAG,CAAC,CAAC,oBAAoB,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9G,iBAAiB;AACjB,aAAa;AACb,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,aAAa,CAAC;AACzB;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import proxyPolyfill from './proxy.js';
|
|
2
|
-
|
|
3
|
-
const proxyContainer = (services = {}, handler = {}) => {
|
|
4
|
-
if (!window.Proxy) {
|
|
5
|
-
const ProxyPolyfill = proxyPolyfill();
|
|
6
|
-
return new ProxyPolyfill(services, handler);
|
|
7
|
-
}
|
|
8
|
-
return new Proxy(services, handler);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default proxyContainer;
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/store/polyfill/index.js"],"sourcesContent":["import proxyPolyfill from './proxy';\nconst proxyContainer = (services = {}, handler = {}) => {\n if (!window.Proxy) {\n const ProxyPolyfill = proxyPolyfill();\n return new ProxyPolyfill(services, handler);\n }\n return new Proxy(services, handler);\n};\nexport default proxyContainer;\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AACK,MAAC,cAAc,GAAG,CAAC,QAAQ,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,KAAK;AACxD,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;AACvB,QAAQ,MAAM,aAAa,GAAG,aAAa,EAAE,CAAC;AAC9C,QAAQ,OAAO,IAAI,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpD,KAAK;AACL,IAAI,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACxC;;;;"}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
function proxyPolyfill() {
|
|
2
|
-
let lastRevokeFn = null;
|
|
3
|
-
function isObject(o) {
|
|
4
|
-
return o ? typeof o === 'object' || typeof o === 'function' : false;
|
|
5
|
-
}
|
|
6
|
-
const ProxyPolyfill = function (target, handler) {
|
|
7
|
-
if (!isObject(target) || !isObject(handler)) {
|
|
8
|
-
throw new TypeError('Cannot create proxy with a non-object as target or handler');
|
|
9
|
-
}
|
|
10
|
-
let throwRevoked = function () {
|
|
11
|
-
return;
|
|
12
|
-
};
|
|
13
|
-
lastRevokeFn = function () {
|
|
14
|
-
throwRevoked = function (trap) {
|
|
15
|
-
throw new TypeError(`Cannot perform '${trap}' on a proxy that has been revoked`);
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
const unsafeHandler = handler;
|
|
19
|
-
handler = { get: null, set: null, apply: null, construct: null };
|
|
20
|
-
for (const k in unsafeHandler) {
|
|
21
|
-
if (!(k in handler)) ;
|
|
22
|
-
else {
|
|
23
|
-
handler[k] = unsafeHandler[k];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (typeof unsafeHandler === 'function') {
|
|
27
|
-
handler.apply = unsafeHandler.apply.bind(unsafeHandler);
|
|
28
|
-
}
|
|
29
|
-
let proxy = this;
|
|
30
|
-
let isMethod = false;
|
|
31
|
-
let isArray = false;
|
|
32
|
-
if (typeof target === 'function') {
|
|
33
|
-
proxy = function ProxyPolyfill() {
|
|
34
|
-
const usingNew = this && this.constructor === proxy;
|
|
35
|
-
const args = Array.prototype.slice.call(arguments);
|
|
36
|
-
throwRevoked(usingNew ? 'construct' : 'apply');
|
|
37
|
-
if (usingNew && handler['construct']) {
|
|
38
|
-
return handler['construct'].call(this, target, args);
|
|
39
|
-
}
|
|
40
|
-
else if (!usingNew && handler.apply) {
|
|
41
|
-
return handler.apply(target, this, args);
|
|
42
|
-
}
|
|
43
|
-
if (usingNew) {
|
|
44
|
-
args.unshift(target);
|
|
45
|
-
const f = target.bind.apply(target, args);
|
|
46
|
-
return new f();
|
|
47
|
-
}
|
|
48
|
-
return target.apply(this, args);
|
|
49
|
-
};
|
|
50
|
-
isMethod = true;
|
|
51
|
-
}
|
|
52
|
-
else if (target instanceof Array) {
|
|
53
|
-
proxy = [];
|
|
54
|
-
isArray = true;
|
|
55
|
-
}
|
|
56
|
-
const getter = handler.get
|
|
57
|
-
? function (prop) {
|
|
58
|
-
throwRevoked('get');
|
|
59
|
-
return handler.get(this, prop, proxy);
|
|
60
|
-
}
|
|
61
|
-
: function (prop) {
|
|
62
|
-
throwRevoked('get');
|
|
63
|
-
return this[prop];
|
|
64
|
-
};
|
|
65
|
-
const setter = handler.set
|
|
66
|
-
? function (prop, value) {
|
|
67
|
-
throwRevoked('set');
|
|
68
|
-
handler.set(this, prop, value, proxy);
|
|
69
|
-
}
|
|
70
|
-
: function (prop, value) {
|
|
71
|
-
throwRevoked('set');
|
|
72
|
-
this[prop] = value;
|
|
73
|
-
};
|
|
74
|
-
const propertyNames = Object.getOwnPropertyNames(target);
|
|
75
|
-
const propertyMap = {};
|
|
76
|
-
propertyNames.forEach(function (prop) {
|
|
77
|
-
if ((isMethod || isArray) && prop in proxy) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const real = Object.getOwnPropertyDescriptor(target, prop);
|
|
81
|
-
const desc = {
|
|
82
|
-
enumerable: !!real.enumerable,
|
|
83
|
-
get: getter.bind(target, prop),
|
|
84
|
-
set: setter.bind(target, prop),
|
|
85
|
-
};
|
|
86
|
-
Object.defineProperty(proxy, prop, desc);
|
|
87
|
-
propertyMap[prop] = true;
|
|
88
|
-
});
|
|
89
|
-
let prototypeOk = true;
|
|
90
|
-
if (Object.setPrototypeOf) {
|
|
91
|
-
Object.setPrototypeOf(proxy, Object.getPrototypeOf(target));
|
|
92
|
-
}
|
|
93
|
-
else if (proxy.__proto__) {
|
|
94
|
-
proxy.__proto__ = target.__proto__;
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
prototypeOk = false;
|
|
98
|
-
}
|
|
99
|
-
if (handler.get || !prototypeOk) {
|
|
100
|
-
for (const k in target) {
|
|
101
|
-
if (propertyMap[k]) {
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
Object.defineProperty(proxy, k, { get: getter.bind(target, k) });
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
Object.seal(target);
|
|
108
|
-
Object.seal(proxy);
|
|
109
|
-
return proxy;
|
|
110
|
-
};
|
|
111
|
-
ProxyPolyfill.revocable = function (target, handler) {
|
|
112
|
-
const p = new ProxyPolyfill(target, handler);
|
|
113
|
-
return { proxy: p, revoke: lastRevokeFn };
|
|
114
|
-
};
|
|
115
|
-
return ProxyPolyfill;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export default proxyPolyfill;
|
|
119
|
-
//# sourceMappingURL=proxy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.js","sources":["../../../../../../../../../../../node_modules/@atomify/kit/dist/utilities/store/polyfill/proxy.js"],"sourcesContent":["export default function proxyPolyfill() {\n let lastRevokeFn = null;\n function isObject(o) {\n return o ? typeof o === 'object' || typeof o === 'function' : false;\n }\n const ProxyPolyfill = function (target, handler) {\n if (!isObject(target) || !isObject(handler)) {\n throw new TypeError('Cannot create proxy with a non-object as target or handler');\n }\n let throwRevoked = function () {\n return;\n };\n lastRevokeFn = function () {\n throwRevoked = function (trap) {\n throw new TypeError(`Cannot perform '${trap}' on a proxy that has been revoked`);\n };\n };\n const unsafeHandler = handler;\n handler = { get: null, set: null, apply: null, construct: null };\n for (const k in unsafeHandler) {\n if (!(k in handler)) {\n }\n else {\n handler[k] = unsafeHandler[k];\n }\n }\n if (typeof unsafeHandler === 'function') {\n handler.apply = unsafeHandler.apply.bind(unsafeHandler);\n }\n let proxy = this;\n let isMethod = false;\n let isArray = false;\n if (typeof target === 'function') {\n proxy = function ProxyPolyfill() {\n const usingNew = this && this.constructor === proxy;\n const args = Array.prototype.slice.call(arguments);\n throwRevoked(usingNew ? 'construct' : 'apply');\n if (usingNew && handler['construct']) {\n return handler['construct'].call(this, target, args);\n }\n else if (!usingNew && handler.apply) {\n return handler.apply(target, this, args);\n }\n if (usingNew) {\n args.unshift(target);\n const f = target.bind.apply(target, args);\n return new f();\n }\n return target.apply(this, args);\n };\n isMethod = true;\n }\n else if (target instanceof Array) {\n proxy = [];\n isArray = true;\n }\n const getter = handler.get\n ? function (prop) {\n throwRevoked('get');\n return handler.get(this, prop, proxy);\n }\n : function (prop) {\n throwRevoked('get');\n return this[prop];\n };\n const setter = handler.set\n ? function (prop, value) {\n throwRevoked('set');\n handler.set(this, prop, value, proxy);\n }\n : function (prop, value) {\n throwRevoked('set');\n this[prop] = value;\n };\n const propertyNames = Object.getOwnPropertyNames(target);\n const propertyMap = {};\n propertyNames.forEach(function (prop) {\n if ((isMethod || isArray) && prop in proxy) {\n return;\n }\n const real = Object.getOwnPropertyDescriptor(target, prop);\n const desc = {\n enumerable: !!real.enumerable,\n get: getter.bind(target, prop),\n set: setter.bind(target, prop),\n };\n Object.defineProperty(proxy, prop, desc);\n propertyMap[prop] = true;\n });\n let prototypeOk = true;\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(proxy, Object.getPrototypeOf(target));\n }\n else if (proxy.__proto__) {\n proxy.__proto__ = target.__proto__;\n }\n else {\n prototypeOk = false;\n }\n if (handler.get || !prototypeOk) {\n for (const k in target) {\n if (propertyMap[k]) {\n continue;\n }\n Object.defineProperty(proxy, k, { get: getter.bind(target, k) });\n }\n }\n Object.seal(target);\n Object.seal(proxy);\n return proxy;\n };\n ProxyPolyfill.revocable = function (target, handler) {\n const p = new ProxyPolyfill(target, handler);\n return { proxy: p, revoke: lastRevokeFn };\n };\n return ProxyPolyfill;\n}\n//# sourceMappingURL=proxy.js.map"],"names":[],"mappings":"AAAe,SAAS,aAAa,GAAG;AACxC,IAAI,IAAI,YAAY,GAAG,IAAI,CAAC;AAC5B,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;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