@icij/murmur-next 4.0.5 → 4.0.6

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.
Files changed (62) hide show
  1. package/dist/lib/components/AccordionStep.vue.d.ts +78 -0
  2. package/dist/lib/components/AccordionWrapper.vue.d.ts +32 -0
  3. package/dist/lib/components/ActiveTextTruncate.vue.d.ts +101 -0
  4. package/dist/lib/components/AdvancedLinkForm.vue.d.ts +167 -0
  5. package/dist/lib/components/Brand.vue.d.ts +55 -0
  6. package/dist/lib/components/BrandExpansion.vue.d.ts +104 -0
  7. package/dist/lib/components/ConfirmButton.vue.d.ts +157 -0
  8. package/dist/lib/components/ContentPlaceholder.vue.d.ts +43 -0
  9. package/dist/lib/components/CustomPagination.vue.d.ts +129 -0
  10. package/dist/lib/components/DigitsInput.vue.d.ts +66 -0
  11. package/dist/lib/components/DonateForm.vue.d.ts +45 -0
  12. package/dist/lib/components/EmbedForm.vue.d.ts +120 -0
  13. package/dist/lib/components/EmbeddableFooter.vue.d.ts +103 -0
  14. package/dist/lib/components/FollowUsPopover.vue.d.ts +15 -0
  15. package/dist/lib/components/GenericFooter.vue.d.ts +46 -0
  16. package/dist/lib/components/GenericHeader.vue.d.ts +927 -0
  17. package/dist/lib/components/HapticCopy.vue.d.ts +154 -0
  18. package/dist/lib/components/ImddbHeader.vue.d.ts +959 -0
  19. package/dist/lib/components/OrdinalLegend.vue.d.ts +86 -0
  20. package/dist/lib/components/RangePicker.vue.d.ts +192 -0
  21. package/dist/lib/components/ResponsiveIframe.vue.d.ts +44 -0
  22. package/dist/lib/components/ScaleLegend.vue.d.ts +101 -0
  23. package/dist/lib/components/SecretInput.vue.d.ts +99 -0
  24. package/dist/lib/components/SelectableDropdown.vue.d.ts +209 -0
  25. package/dist/lib/components/SharingOptions.vue.d.ts +152 -0
  26. package/dist/lib/components/SharingOptionsLink.vue.d.ts +199 -0
  27. package/dist/lib/components/SignUpForm.vue.d.ts +140 -0
  28. package/dist/lib/components/SlideUpDown.vue.d.ts +73 -0
  29. package/dist/lib/components/TexturedDeck.vue.d.ts +88 -0
  30. package/dist/lib/components/TinyPagination.vue.d.ts +187 -0
  31. package/dist/lib/composables/chart.d.ts +47 -0
  32. package/dist/lib/composables/resizeObserver.d.ts +21 -0
  33. package/dist/lib/composables/sendEmail.d.ts +5 -0
  34. package/dist/lib/config.d.ts +20 -0
  35. package/dist/lib/config.default.d.ts +34 -0
  36. package/dist/lib/datavisualisations/BarChart.vue.d.ts +232 -0
  37. package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +407 -0
  38. package/dist/lib/datavisualisations/LineChart.vue.d.ts +208 -0
  39. package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +338 -0
  40. package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +412 -0
  41. package/dist/lib/enums.d.ts +32 -0
  42. package/dist/lib/i18n.d.ts +5 -0
  43. package/dist/lib/keys.d.ts +2 -0
  44. package/dist/lib/main.d.ts +55 -0
  45. package/dist/lib/maps/ChoroplethMap.vue.d.ts +466 -0
  46. package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +188 -0
  47. package/dist/lib/maps/SymbolMap.vue.d.ts +276 -0
  48. package/dist/lib/murmur.css +1 -0
  49. package/dist/lib/murmur.js +46019 -0
  50. package/dist/lib/murmur.js.map +1 -0
  51. package/dist/lib/murmur.umd.cjs +845 -0
  52. package/dist/lib/murmur.umd.cjs.map +1 -0
  53. package/dist/lib/types.d.ts +41 -0
  54. package/dist/lib/utils/animation.d.ts +8 -0
  55. package/dist/lib/utils/assets.d.ts +2 -0
  56. package/dist/lib/utils/clipboard.d.ts +2 -0
  57. package/dist/lib/utils/iframe-resizer.d.ts +11 -0
  58. package/dist/lib/utils/placeholder.d.ts +13 -0
  59. package/dist/lib/utils/placeholderTypes.d.ts +17 -0
  60. package/dist/lib/utils/strings.d.ts +1 -0
  61. package/lib/components/RangePicker.vue +3 -4
  62. package/package.json +6 -4
@@ -0,0 +1,41 @@
1
+ import { StyleValue, ComputedRef, Ref } from '../node_modules/vue';
2
+ import { AccordionKey, ParentKey } from './keys';
3
+ import { GeoProjection } from 'd3-geo';
4
+
5
+ export type Step = symbol | string;
6
+ export type Accordion = {
7
+ emitAccordionNextStepEvent: () => void;
8
+ emitAccordionPreviousStepEvent: () => void;
9
+ isActiveStep: (step: Step) => boolean;
10
+ isPreviousStep: (step: Step) => boolean;
11
+ isFirstStep: (step: Step) => boolean;
12
+ isLastStep: (step: Step) => boolean;
13
+ step: Step;
14
+ steps: Step[];
15
+ };
16
+ export type AccordionProvide = {
17
+ [AccordionKey]: Accordion;
18
+ };
19
+ export type BrandStyle = StyleValue & {
20
+ '--monochrome-color': string;
21
+ color: string;
22
+ background: string;
23
+ width: string;
24
+ };
25
+ export type BrandExpansionStyle = Pick<BrandStyle, '--monochrome-color' | 'background'>;
26
+ export type Variant = 'primary' | 'secondary' | 'danger' | 'info' | 'warning' | 'success' | 'dark' | 'light';
27
+ export type MapTransform = {
28
+ k: number;
29
+ x: number;
30
+ y: number;
31
+ rotateX: number;
32
+ rotateY: number;
33
+ };
34
+ export type ParentMap = {
35
+ mapRect: Ref<DOMRect>;
36
+ mapTransform: Ref<MapTransform>;
37
+ rotatingMapProjection: ComputedRef<GeoProjection | (() => number[])>;
38
+ };
39
+ export type ParentMapProvide = {
40
+ [ParentKey]: ParentMap;
41
+ };
@@ -0,0 +1,8 @@
1
+ export declare class RequestAnimationFrameWrapper {
2
+ live: boolean;
3
+ callback: () => void;
4
+ constructor();
5
+ start(callback: () => void): void;
6
+ stop(): void;
7
+ schedule(): void;
8
+ }
@@ -0,0 +1,2 @@
1
+ export declare const injectAsset: ((file: string, id?: string) => Promise<unknown>) & import('lodash').MemoizedFunction;
2
+ export declare const injectAssets: (...args: string[]) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare function copyText(text: string, container: Element): Promise<void>;
2
+ export declare function copyHtml(html: string, plain: string): void;
@@ -0,0 +1,11 @@
1
+ import { Child as PymChild } from 'pym.js';
2
+
3
+ export default class IframeResizer {
4
+ initializer: Promise<PymChild>;
5
+ constructor();
6
+ sendHeight(): Promise<void>;
7
+ static create(): IframeResizer;
8
+ static template(url: string, id?: string): string;
9
+ static deletePymParams(href?: string): string;
10
+ static isEmbedded(href?: string): boolean;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { BoxStyle, ContentPlaceholderStyledRows, ContentPlaceholderRows } from './placeholderTypes';
2
+
3
+ export declare function isFlexBasis(value: string | number): boolean;
4
+ export declare function isWidth(value: string | number): boolean;
5
+ export declare function getBoxStyle(left: number, width: number, isLast: boolean, subClass?: string): BoxStyle[];
6
+ export declare function formatRows(rows: ContentPlaceholderRows, subClass?: string): ContentPlaceholderStyledRows;
7
+ declare const _default: {
8
+ isFlexBasis: typeof isFlexBasis;
9
+ isWidth: typeof isWidth;
10
+ getBoxStyle: typeof getBoxStyle;
11
+ formatRows: typeof formatRows;
12
+ };
13
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { StyleValue } from '../../node_modules/vue';
2
+
3
+ export interface BoxStyle {
4
+ style: StyleValue;
5
+ subClass?: string;
6
+ }
7
+ export type ContentPlaceholderRowBoxes = Array<Array<number | string>>;
8
+ export interface ContentPlaceholderRow {
9
+ height: number | string;
10
+ boxes: ContentPlaceholderRowBoxes;
11
+ }
12
+ export interface ContentPlaceholderStyledRow {
13
+ height: number | string;
14
+ boxes: Array<BoxStyle>;
15
+ }
16
+ export type ContentPlaceholderStyledRows = Array<ContentPlaceholderStyledRow>;
17
+ export type ContentPlaceholderRows = Array<ContentPlaceholderRow>;
@@ -0,0 +1 @@
1
+ export declare function isUrl(value: string): boolean;
@@ -11,12 +11,11 @@ import {
11
11
  toRef
12
12
  } from 'vue'
13
13
  import { faGripLinesVertical } from '@fortawesome/free-solid-svg-icons/faGripLinesVertical'
14
- import { clamp, get, has, invoke, round } from 'lodash'
14
+ import { clamp, round } from 'lodash'
15
15
 
16
16
  import Fa, { library } from './Fa'
17
17
 
18
18
  import type { Variant } from '@/types'
19
- import isEqual from "lodash/isEqual";
20
19
  type DragDropValue = {detail:number}
21
20
  /**
22
21
  * A component to wrap an HTML element with a range picker overlay.
@@ -272,8 +271,8 @@ export default defineComponent({
272
271
  }
273
272
 
274
273
  watch(()=>props.range, (newRange) => {
275
- start.value = newRange[0] ?? 0 ;
276
- end.value = newRange[1] ?? 0;
274
+ start.value = newRange[0] ?? 0
275
+ end.value = newRange[1] ?? 0
277
276
  })
278
277
 
279
278
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icij/murmur-next",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "private": false,
5
5
  "description": "Murmur is ICIJ's Design System for Bootstrap 5 and Vue.js",
6
6
  "author": "promera@icij.org",
@@ -14,14 +14,16 @@
14
14
  "license": "MIT",
15
15
  "scripts": {
16
16
  "dev": "vite",
17
- "build": "vite build",
17
+ "build:lib": "vite build",
18
18
  "preview": "vite preview",
19
19
  "lint": "eslint . --fix",
20
20
  "format": "prettier --write lib/ stories/ .storybook/ tests/",
21
21
  "storybook": "storybook dev -p 6006",
22
- "build-storybook": "storybook build",
22
+ "build:storybook": "storybook build",
23
23
  "test": "vitest",
24
- "test:unit": "vitest run"
24
+ "test:unit": "vitest run",
25
+ "prepublish": "yarn build:lib",
26
+ "predeploy": "yarn build:storybook"
25
27
  },
26
28
  "main": "./dist/lib/murmur.umd.cjs",
27
29
  "module": "./dist/lib/murmur.js",