@uva-glass/component-library 3.0.10 → 3.0.11
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/{Lexical.prod-CoFvB6ST.js → Lexical.prod-pVkgOp1j.js} +6 -6
- package/dist/Lexical.prod-pVkgOp1j.js.map +1 -0
- package/dist/{LexicalClipboard.prod-BceK2u8q.js → LexicalClipboard.prod-DIvwPtmL.js} +4 -4
- package/dist/{LexicalClipboard.prod-BceK2u8q.js.map → LexicalClipboard.prod-DIvwPtmL.js.map} +1 -1
- package/dist/{LexicalLink.prod-DgAdBBH7.js → LexicalLink.prod-NMeHB9CR.js} +3 -3
- package/dist/{LexicalLink.prod-DgAdBBH7.js.map → LexicalLink.prod-NMeHB9CR.js.map} +1 -1
- package/dist/{LexicalList.prod-BsGg0KUo.js → LexicalList.prod-CicvwkCx.js} +10 -8
- package/dist/LexicalList.prod-CicvwkCx.js.map +1 -0
- package/dist/{LexicalSelection.prod-CajyzNb9.js → LexicalSelection.prod-mQvH0_ap.js} +2 -2
- package/dist/{LexicalSelection.prod-CajyzNb9.js.map → LexicalSelection.prod-mQvH0_ap.js.map} +1 -1
- package/dist/{LexicalTable.prod-CNsOdwua.js → LexicalTable.prod-Bb6g8CAC.js} +240 -231
- package/dist/LexicalTable.prod-Bb6g8CAC.js.map +1 -0
- package/dist/{LexicalUtils.prod-CqRL6ZhZ.js → LexicalUtils.prod-C_aSRWfh.js} +2 -2
- package/dist/{LexicalUtils.prod-CqRL6ZhZ.js.map → LexicalUtils.prod-C_aSRWfh.js.map} +1 -1
- package/dist/{TablePlugin-CFD5PSMc.js → TablePlugin-o1MveXq2.js} +4 -4
- package/dist/{TablePlugin-CFD5PSMc.js.map → TablePlugin-o1MveXq2.js.map} +1 -1
- package/dist/TimelineItem-v4zDdKUz.js +52 -0
- package/dist/TimelineItem-v4zDdKUz.js.map +1 -0
- package/dist/__mocks__/svgrMock.js.map +1 -1
- package/dist/assets/TimelineItem.css +1 -0
- package/dist/assets/VarIndicator.css +1 -1
- package/dist/assets/variables.css +3 -3
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.test.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.test.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +31 -31
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/Timeline/Timeline.d.ts +28 -0
- package/dist/components/Timeline/Timeline.js +29 -0
- package/dist/components/Timeline/Timeline.js.map +1 -0
- package/dist/components/Timeline/Timeline.stories.d.ts +5 -0
- package/dist/components/Timeline/Timeline.stories.js +43 -0
- package/dist/components/Timeline/Timeline.stories.js.map +1 -0
- package/dist/components/Timeline/Timeline.test.d.ts +0 -0
- package/dist/components/Timeline/Timeline.test.js +80 -0
- package/dist/components/Timeline/Timeline.test.js.map +1 -0
- package/dist/components/Timeline/TimelineItem.d.ts +2 -0
- package/dist/components/Timeline/TimelineItem.js +7 -0
- package/dist/components/Timeline/TimelineItem.js.map +1 -0
- package/dist/components/Timeline/index.d.ts +1 -0
- package/dist/components/Timeline/index.js +5 -0
- package/dist/components/Timeline/index.js.map +1 -0
- package/dist/components/Timeline/mockTimelineItem.d.ts +30 -0
- package/dist/components/Timeline/mockTimelineItem.js +95 -0
- package/dist/components/Timeline/mockTimelineItem.js.map +1 -0
- package/dist/components/VarIndicator/VarIndicator.js +11 -11
- package/dist/components/VarIndicator/VarIndicator.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +23 -21
- package/dist/components/index.js.map +1 -1
- package/dist/{helpers-C-JeRM2f.js → helpers-CtrLGKFA.js} +4 -4
- package/dist/{helpers-C-JeRM2f.js.map → helpers-CtrLGKFA.js.map} +1 -1
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/dist/setupTests.js.map +1 -1
- package/package.json +8 -8
- package/dist/Lexical.prod-CoFvB6ST.js.map +0 -1
- package/dist/LexicalList.prod-BsGg0KUo.js.map +0 -1
- package/dist/LexicalTable.prod-CNsOdwua.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { Icon as c } from "../Icon/Icon.js";
|
|
4
4
|
import '../../assets/VarIndicator.css';const i = {
|
|
5
|
-
"var-indicator__container": "_var-
|
|
6
|
-
"var-indicator__container--draft": "_var-indicator__container--
|
|
7
|
-
"var-indicator__container--rejected": "_var-indicator__container--
|
|
8
|
-
"var-indicator__container--submitted": "_var-indicator__container--
|
|
9
|
-
"var-indicator__container--active": "_var-indicator__container--
|
|
10
|
-
"var-indicator__label": "_var-
|
|
11
|
-
"var-indicator__step-container": "_var-indicator__step-
|
|
5
|
+
"var-indicator__container": "_var-indicator__container_1bf94_40",
|
|
6
|
+
"var-indicator__container--draft": "_var-indicator__container--draft_1bf94_59",
|
|
7
|
+
"var-indicator__container--rejected": "_var-indicator__container--rejected_1bf94_60",
|
|
8
|
+
"var-indicator__container--submitted": "_var-indicator__container--submitted_1bf94_72",
|
|
9
|
+
"var-indicator__container--active": "_var-indicator__container--active_1bf94_83",
|
|
10
|
+
"var-indicator__label": "_var-indicator__label_1bf94_94",
|
|
11
|
+
"var-indicator__step-container": "_var-indicator__step-container_1bf94_105"
|
|
12
12
|
}, v = {
|
|
13
13
|
DRAFT: "CircleLarge",
|
|
14
14
|
REJECTED: "CircleLarge",
|
|
15
15
|
SUBMITTED: "CircleLargeDotted",
|
|
16
16
|
ACTIVE: "SignalActive"
|
|
17
|
-
},
|
|
17
|
+
}, C = ({ label: t, variant: r = "DRAFT", maxSteps: n, currentStep: e = 1, onClick: o }) => /* @__PURE__ */ l(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
className: s(i["var-indicator__container"], i[`var-indicator__container--${r.toLowerCase()}`]),
|
|
@@ -22,11 +22,11 @@ import '../../assets/VarIndicator.css';const i = {
|
|
|
22
22
|
children: [
|
|
23
23
|
/* @__PURE__ */ a(c, { name: v[r], size: 16 }),
|
|
24
24
|
/* @__PURE__ */ a("span", { className: i["var-indicator__label"], children: t[`${r}`] }),
|
|
25
|
-
n && n > 0 && r === "SUBMITTED" ? Array.from({ length: n }, (_,
|
|
25
|
+
n && n > 0 && r === "SUBMITTED" ? Array.from({ length: n }, (_, d) => d + 1).map((_) => /* @__PURE__ */ a("div", { className: i["var-indicator__step-container"], children: /* @__PURE__ */ a(c, { name: _ <= e ? "CircleSmallFilled" : "CircleSmall" }) }, _)) : null
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
C as VarIndicator
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=VarIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarIndicator.js","sources":["../../../src/components/VarIndicator/VarIndicator.tsx"],"sourcesContent":["import clsx from 'clsx';\
|
|
1
|
+
{"version":3,"file":"VarIndicator.js","sources":["../../../src/components/VarIndicator/VarIndicator.tsx"],"sourcesContent":["import clsx from 'clsx';\n\nimport type { IconProps } from 'components/Icon';\n\nimport styles from './VarIndicator.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport type StatusType = 'DRAFT' | 'REJECTED' | 'SUBMITTED' | 'ACTIVE';\n\nexport interface VarIndicatorProps {\n label: Record<StatusType, string>;\n variant?: StatusType;\n maxSteps?: number;\n currentStep?: number;\n onClick?: () => void;\n}\n\nconst ICON_NAMES = {\n DRAFT: 'CircleLarge',\n REJECTED: 'CircleLarge',\n SUBMITTED: 'CircleLargeDotted',\n ACTIVE: 'SignalActive',\n};\n\nexport const VarIndicator = ({ label, variant = 'DRAFT', maxSteps, currentStep = 1, onClick }: VarIndicatorProps) => (\n <button\n className={clsx(styles['var-indicator__container'], styles[`var-indicator__container--${variant.toLowerCase()}`])}\n onClick={onClick}\n >\n <Icon name={ICON_NAMES[variant] as IconProps['name']} size={16} />\n <span className={styles['var-indicator__label']}>{label[`${variant}`]}</span>\n {maxSteps && maxSteps > 0 && variant === 'SUBMITTED'\n ? Array.from({ length: maxSteps }, (_, idx) => idx + 1).map((step) => (\n <div key={step} className={styles['var-indicator__step-container']}>\n <Icon name={step <= currentStep ? 'CircleSmallFilled' : 'CircleSmall'} />\n </div>\n ))\n : null}\n </button>\n);\n"],"names":["ICON_NAMES","VarIndicator","label","variant","maxSteps","currentStep","onClick","jsxs","clsx","styles","jsx","Icon","idx","step"],"mappings":";;;;;;;;;;;GAkBMA,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,QAAQ;AACV,GAEaC,IAAe,CAAC,EAAE,OAAAC,GAAO,SAAAC,IAAU,SAAS,UAAAC,GAAU,aAAAC,IAAc,GAAG,SAAAC,EAAA,MAClF,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAKC,EAAO,0BAA0B,GAAGA,EAAO,6BAA6BN,EAAQ,YAAa,CAAA,EAAE,CAAC;AAAA,IAChH,SAAAG;AAAA,IAEA,UAAA;AAAA,MAAA,gBAAAI,EAACC,KAAK,MAAMX,EAAWG,CAAO,GAAwB,MAAM,IAAI;AAAA,MAChE,gBAAAO,EAAC,QAAK,EAAA,WAAWD,EAAO,sBAAsB,GAAI,UAAMP,EAAA,GAAGC,CAAO,EAAE,EAAE,CAAA;AAAA,MACrEC,KAAYA,IAAW,KAAKD,MAAY,cACrC,MAAM,KAAK,EAAE,QAAQC,KAAY,CAAC,GAAGQ,MAAQA,IAAM,CAAC,EAAE,IAAI,CAACC,wBACxD,OAAe,EAAA,WAAWJ,EAAO,+BAA+B,GAC/D,UAAC,gBAAAC,EAAAC,GAAA,EAAK,MAAME,KAAQR,IAAc,sBAAsB,cAAA,CAAe,EAD/D,GAAAQ,CAEV,CACD,IACD;AAAA,IAAA;AAAA,EAAA;AACN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarIndicator.stories.js","sources":["../../../src/components/VarIndicator/VarIndicator.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\
|
|
1
|
+
{"version":3,"file":"VarIndicator.stories.js","sources":["../../../src/components/VarIndicator/VarIndicator.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { VarIndicatorProps } from './VarIndicator';\n\nimport { VarIndicator } from './VarIndicator';\n\nconst LABELS = {\n DRAFT: 'Concept',\n REJECTED: 'Concept',\n SUBMITTED: 'Verificatie',\n ACTIVE: 'Actief',\n};\n\nconst codeString =\n '<VarIndicator label={[string]: [string]} maxSteps={number} currentStep={number} onClick={() => void} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/VarIndicator',\n component: VarIndicator,\n argTypes: {},\n parameters: {\n inspectComponent: VarIndicator,\n codeString: codeString,\n },\n} as Meta<VarIndicatorProps>;\n\nconst Template: StoryFn<VarIndicatorProps> = (args) => <VarIndicator {...args} />;\n\nconst defaultArgs: Partial<VarIndicatorProps> = {\n label: LABELS,\n maxSteps: 3,\n currentStep: 2,\n onClick: fn(),\n};\n\nexport const VarIndicatorExample = Template.bind({});\nVarIndicatorExample.args = {\n ...defaultArgs,\n};\n"],"names":["LABELS","codeString","VarIndicator_stories","VarIndicator","Template","args","jsx","defaultArgs","fn","VarIndicatorExample"],"mappings":";;;AAOA,MAAMA,IAAS;AAAA,EACb,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,QAAQ;AACV,GAEMC,IACJ,2GAGaC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAuC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAc,GAAGE,GAAM,GAEzEE,IAA0C;AAAA,EAC9C,OAAOP;AAAA,EACP,UAAU;AAAA,EACV,aAAa;AAAA,EACb,SAASQ,EAAG;AACd,GAEaC,IAAsBL,EAAS,KAAK,CAAE,CAAA;AACnDK,EAAoB,OAAO;AAAA,EACzB,GAAGF;AACL;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VarIndicator.test.js","sources":["../../../src/components/VarIndicator/VarIndicator.test.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-magic-numbers */\
|
|
1
|
+
{"version":3,"file":"VarIndicator.test.js","sources":["../../../src/components/VarIndicator/VarIndicator.test.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-magic-numbers */\nimport '@testing-library/jest-dom';\nimport { render, screen, waitFor } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\nimport { useState } from 'react';\n\nimport { VarIndicator } from './VarIndicator';\n\nconst LABELS = {\n DRAFT: 'Concept',\n REJECTED: 'Concept',\n SUBMITTED: 'Verificatie',\n ACTIVE: 'Actief',\n};\n\njest.mock('components/Icon', () => ({\n Icon: ({ name }: { name: string }) => <svg data-testid={name} />,\n}));\n\nconst TestWrapper = () => {\n const [currentStep, setCurrentStep] = useState(1);\n return (\n // When clicked the onClick callback updates currentStep from 1 to 2.\n <VarIndicator\n label={LABELS}\n variant=\"SUBMITTED\"\n maxSteps={3}\n currentStep={currentStep}\n onClick={() => setCurrentStep(2)}\n />\n );\n};\n\ndescribe('VarIndicator', () => {\n const onClickSpy = jest.fn();\n\n beforeEach(() => {\n onClickSpy.mockClear();\n });\n\n it('should render Concept (DRAFT)', () => {\n render(<VarIndicator label={LABELS} variant=\"DRAFT\" />);\n expect(screen.getByText('Concept')).toBeInTheDocument();\n });\n\n it('should render Concept (REJECTED)', () => {\n render(<VarIndicator label={LABELS} variant=\"REJECTED\" />);\n expect(screen.getByText('Concept')).toBeInTheDocument();\n });\n\n it('should render Concept (ACTIVE)', () => {\n render(<VarIndicator label={LABELS} variant=\"ACTIVE\" />);\n expect(screen.getByText('Actief')).toBeInTheDocument();\n });\n\n it('should render dots (SUBMITTED)', () => {\n render(<VarIndicator label={LABELS} variant=\"SUBMITTED\" maxSteps={3} currentStep={0} />);\n expect(screen.getByText('Verificatie')).toBeInTheDocument();\n expect(screen.getAllByTestId('CircleSmall')).toHaveLength(3);\n expect(screen.queryByTestId('CircleSmallFilled')).not.toBeInTheDocument();\n });\n\n it('should render filled dots when currentStep != 0 (SUBMITTED)', () => {\n render(<VarIndicator label={LABELS} variant=\"SUBMITTED\" maxSteps={3} currentStep={1} onClick={onClickSpy} />);\n const verificationButton = screen.getByText('Verificatie');\n expect(verificationButton).toBeInTheDocument();\n expect(screen.getAllByTestId('CircleSmallFilled')).toHaveLength(1);\n expect(screen.getAllByTestId('CircleSmall')).toHaveLength(2);\n });\n\n it('should render filled dots currentStep is updated (SUBMITTED)', async () => {\n render(<TestWrapper />);\n expect(screen.getAllByTestId('CircleSmallFilled')).toHaveLength(1);\n expect(screen.getAllByTestId('CircleSmall')).toHaveLength(2);\n const verificationButton = screen.getByText('Verificatie');\n await userEvent.click(verificationButton);\n await waitFor(() => {\n expect(screen.getAllByTestId('CircleSmallFilled')).toHaveLength(2);\n });\n await waitFor(() => {\n expect(screen.getAllByTestId('CircleSmall')).toHaveLength(1);\n });\n });\n});\n"],"names":["LABELS","name","jsx","TestWrapper","currentStep","setCurrentStep","useState","VarIndicator","onClickSpy","render","screen","verificationButton","userEvent","waitFor"],"mappings":";;;;;;AAQ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,CAAA,CAAE,GACvF,OAAOU,EAAO,UAAU,aAAa,CAAC,EAAE,kBAAkB,GAC1D,OAAOA,EAAO,eAAe,aAAa,CAAC,EAAE,aAAa,CAAC,GAC3D,OAAOA,EAAO,cAAc,mBAAmB,CAAC,EAAE,IAAI,kBAAkB;AAAA,EAAA,CACzE,GAED,GAAG,+DAA+D,MAAM;AACtE,IAAAD,EAAQ,gBAAAP,EAAAK,GAAA,EAAa,OAAOP,GAAQ,SAAQ,aAAY,UAAU,GAAG,aAAa,GAAG,SAASQ,EAAY,CAAA,CAAE;AACtG,UAAAG,IAAqBD,EAAO,UAAU,aAAa;AAClD,WAAAC,CAAkB,EAAE,kBAAkB,GAC7C,OAAOD,EAAO,eAAe,mBAAmB,CAAC,EAAE,aAAa,CAAC,GACjE,OAAOA,EAAO,eAAe,aAAa,CAAC,EAAE,aAAa,CAAC;AAAA,EAAA,CAC5D,GAED,GAAG,gEAAgE,YAAY;AACtE,IAAAD,EAAA,gBAAAP,EAACC,KAAY,CAAE,GACtB,OAAOO,EAAO,eAAe,mBAAmB,CAAC,EAAE,aAAa,CAAC,GACjE,OAAOA,EAAO,eAAe,aAAa,CAAC,EAAE,aAAa,CAAC;AACrD,UAAAC,IAAqBD,EAAO,UAAU,aAAa;AACnD,UAAAE,EAAU,MAAMD,CAAkB,GACxC,MAAME,EAAQ,MAAM;AAClB,aAAOH,EAAO,eAAe,mBAAmB,CAAC,EAAE,aAAa,CAAC;AAAA,IAAA,CAClE,GACD,MAAMG,EAAQ,MAAM;AAClB,aAAOH,EAAO,eAAe,aAAa,CAAC,EAAE,aAAa,CAAC;AAAA,IAAA,CAC5D;AAAA,EAAA,CACF;AACH,CAAC;"}
|
|
@@ -46,6 +46,7 @@ export * from './SelectListbox/SelectProvider';
|
|
|
46
46
|
export * from './Sortable';
|
|
47
47
|
export * from './Spinner';
|
|
48
48
|
export * from './StatusPill';
|
|
49
|
+
export * from './Timeline';
|
|
49
50
|
export * from './ToggleSwitch';
|
|
50
51
|
export * from './Tooltip';
|
|
51
52
|
export * from './VarIndicator';
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accordion as t } from "./Accordion/Accordion.js";
|
|
2
2
|
import { AccordionCard as p } from "./AccordionCard/AccordionCard.js";
|
|
3
|
-
import { ActionList as
|
|
4
|
-
import { AppStatusBar as
|
|
3
|
+
import { ActionList as x } from "./ActionList/ActionList.js";
|
|
4
|
+
import { AppStatusBar as i } from "./AppStatusBar/AppStatusBar.js";
|
|
5
5
|
import { Attention as n } from "./Attention/Attention.js";
|
|
6
6
|
import { Backdrop as c } from "./Backdrop/Backdrop.js";
|
|
7
7
|
import { ButtonGroup as u } from "./ButtonGroup/ButtonGroup.js";
|
|
@@ -14,7 +14,7 @@ import { CheckboxButton as h } from "./CheckboxButton/CheckboxButton.js";
|
|
|
14
14
|
import { CheckboxButtonBar as y } from "./CheckboxButtonBar/CheckboxButtonBar.js";
|
|
15
15
|
import { CheckboxTree as D } from "./CheckboxTree/CheckboxTree.js";
|
|
16
16
|
import { Chip as v } from "./Chip/Chip.js";
|
|
17
|
-
import { Drawer as
|
|
17
|
+
import { Drawer as w } from "./Drawer/Drawer.js";
|
|
18
18
|
import { EmptyStateDataDisplay as E } from "./EmptyStateDataDisplay/EmptyStateDataDisplay.js";
|
|
19
19
|
import { FeedbackBox as H } from "./FeedbackBox/FeedbackBox.js";
|
|
20
20
|
import { FieldHint as N } from "./FieldHint/FieldHint.js";
|
|
@@ -27,12 +27,12 @@ import { Icon as _ } from "./Icon/Icon.js";
|
|
|
27
27
|
import { IconButton as oo } from "./IconButton/IconButton.js";
|
|
28
28
|
import { InfoMessage as to } from "./InfoMessage/InfoMessage.js";
|
|
29
29
|
import { Input as po } from "./Input/Input.js";
|
|
30
|
-
import { InputField as
|
|
31
|
-
import { Label as
|
|
30
|
+
import { InputField as xo } from "./InputField/InputField.js";
|
|
31
|
+
import { Label as io } from "./Label/Label.js";
|
|
32
32
|
import { MenuLink as no } from "./MenuLink/MenuLink.js";
|
|
33
33
|
import { MetaDataList as co } from "./MetaDataList/MetaDataList.js";
|
|
34
34
|
import { ModalDialog as so } from "./ModalDialog/ModalDialog.js";
|
|
35
|
-
import { M as So } from "../TablePlugin-
|
|
35
|
+
import { M as So } from "../TablePlugin-o1MveXq2.js";
|
|
36
36
|
import { OverlayCloseButton as bo } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
37
37
|
import { OverlayStepBar as Fo } from "./OverlayStepBar/OverlayStepBar.js";
|
|
38
38
|
import { PageOverlay as Lo } from "./PageOverlay/PageOverlay.js";
|
|
@@ -40,22 +40,23 @@ import { Periods as go } from "./Periods/Periods.js";
|
|
|
40
40
|
import { PeriodSelector as Po } from "./PeriodSelector/PeriodSelector.js";
|
|
41
41
|
import { ProgrammeCard as Ao } from "./ProgrammeCard/ProgrammeCard.js";
|
|
42
42
|
import { RadioButton as Ro } from "./RadioButton/RadioButton.js";
|
|
43
|
-
import { Repeater as
|
|
44
|
-
import { Rte as
|
|
43
|
+
import { Repeater as To } from "./Repeater/Repeater.js";
|
|
44
|
+
import { Rte as Oo, RteEditor as Eo } from "./RteEditor/RteEditor.js";
|
|
45
45
|
import { SectionNotification as Ho } from "./SectionNotification/SectionNotification.js";
|
|
46
46
|
import { SelectListbox as No } from "./SelectListbox/SelectListbox.js";
|
|
47
47
|
import { SelectProvider as jo, useSelect as qo } from "./SelectListbox/SelectProvider.js";
|
|
48
48
|
import { Sortable as Ko } from "./Sortable/Sortable.js";
|
|
49
49
|
import { Spinner as Uo } from "./Spinner/Spinner.js";
|
|
50
50
|
import { StatusPill as Xo } from "./StatusPill/StatusPill.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
51
|
+
import { Timeline as Zo } from "./Timeline/Timeline.js";
|
|
52
|
+
import { ToggleSwitch as $o } from "./ToggleSwitch/ToggleSwitch.js";
|
|
53
|
+
import { Tooltip as rr } from "./Tooltip/Tooltip.js";
|
|
54
|
+
import { VarIndicator as er } from "./VarIndicator/VarIndicator.js";
|
|
54
55
|
export {
|
|
55
56
|
t as Accordion,
|
|
56
57
|
p as AccordionCard,
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
x as ActionList,
|
|
59
|
+
i as AppStatusBar,
|
|
59
60
|
n as Attention,
|
|
60
61
|
c as Backdrop,
|
|
61
62
|
B as Button,
|
|
@@ -66,7 +67,7 @@ export {
|
|
|
66
67
|
y as CheckboxButtonBar,
|
|
67
68
|
D as CheckboxTree,
|
|
68
69
|
v as Chip,
|
|
69
|
-
|
|
70
|
+
w as Drawer,
|
|
70
71
|
E as EmptyStateDataDisplay,
|
|
71
72
|
H as FeedbackBox,
|
|
72
73
|
N as FieldHint,
|
|
@@ -79,8 +80,8 @@ export {
|
|
|
79
80
|
oo as IconButton,
|
|
80
81
|
to as InfoMessage,
|
|
81
82
|
po as Input,
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
xo as InputField,
|
|
84
|
+
io as Label,
|
|
84
85
|
C as LinkButton,
|
|
85
86
|
k as MenuButton,
|
|
86
87
|
no as MenuLink,
|
|
@@ -94,8 +95,8 @@ export {
|
|
|
94
95
|
go as Periods,
|
|
95
96
|
Ao as ProgrammeCard,
|
|
96
97
|
Ro as RadioButton,
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
To as Repeater,
|
|
99
|
+
Oo as Rte,
|
|
99
100
|
Eo as RteEditor,
|
|
100
101
|
Ho as SectionNotification,
|
|
101
102
|
No as SelectListbox,
|
|
@@ -103,9 +104,10 @@ export {
|
|
|
103
104
|
Ko as Sortable,
|
|
104
105
|
Uo as Spinner,
|
|
105
106
|
Xo as StatusPill,
|
|
106
|
-
Zo as
|
|
107
|
-
$o as
|
|
108
|
-
rr as
|
|
107
|
+
Zo as Timeline,
|
|
108
|
+
$o as ToggleSwitch,
|
|
109
|
+
rr as Tooltip,
|
|
110
|
+
er as VarIndicator,
|
|
109
111
|
qo as useSelect
|
|
110
112
|
};
|
|
111
113
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as _, O as y, U as x, d as F, m as G } from "./LexicalLink.prod-
|
|
1
|
+
import { p as _, O as y, U as x, d as F, m as G } from "./LexicalLink.prod-NMeHB9CR.js";
|
|
2
2
|
import { o as M } from "./LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { $ as H } from "./LexicalUtils.prod-
|
|
4
|
-
import { a as v, l as E, E as Q, R as j, X as T, Q as L, aA as B, O as N, d as P } from "./Lexical.prod-
|
|
3
|
+
import { $ as H } from "./LexicalUtils.prod-C_aSRWfh.js";
|
|
4
|
+
import { a as v, l as E, E as Q, R as j, X as T, Q as L, aA as B, O as N, d as P } from "./Lexical.prod-pVkgOp1j.js";
|
|
5
5
|
import { useEffect as K } from "react";
|
|
6
6
|
function b(t, e = (n) => n) {
|
|
7
7
|
return (n) => {
|
|
@@ -161,4 +161,4 @@ export {
|
|
|
161
161
|
gt as v,
|
|
162
162
|
at as w
|
|
163
163
|
};
|
|
164
|
-
//# sourceMappingURL=helpers-
|
|
164
|
+
//# sourceMappingURL=helpers-CtrLGKFA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-C-JeRM2f.js","sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as t,$isAutoLinkNode as e,$isLinkNode as n,TOGGLE_LINK_COMMAND as r,$createAutoLinkNode as l}from\"@lexical/link\";import{useLexicalComposerContext as i}from\"@lexical/react/LexicalComposerContext\";import{mergeRegister as o}from\"@lexical/utils\";import{TextNode as s,$getSelection as u,$isRangeSelection as g,COMMAND_PRIORITY_LOW as c,$isTextNode as a,$isElementNode as f,$isLineBreakNode as x,$createTextNode as h,$isNodeSelection as p}from\"lexical\";import{useEffect as d}from\"react\";function m(t,e=(t=>t)){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function T(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const C=/[.,;\\s]/;function S(t){return C.test(t)}function b(t){return S(t[t.length-1])}function U(t){return S(t[0])}function v(t){let e=t.getPreviousSibling();return f(e)&&(e=e.getLastDescendant()),null===e||x(e)||a(e)&&b(e.getTextContent())}function L(t){let e=t.getNextSibling();return f(e)&&(e=e.getFirstDescendant()),null===e||x(e)||a(e)&&U(e.getTextContent())}function R(t,e,n,r){if(!(t>0?S(n[t-1]):v(r[0])))return!1;return e<n.length?S(n[e]):L(r[r.length-1])}function k(t,e,n){const r=[],l=[],i=[];let o=0,s=0;const u=[...t];for(;u.length>0;){const t=u[0],g=t.getTextContent().length,c=s;s+g<=e?(r.push(t),o+=g):c>=n?i.push(t):l.push(t),s+=g,u.shift()}return[o,r,l,i]}function D(t,e,n,r){const i=l(r.url,r.attributes);if(1===t.length){let l,o=t[0];0===e?[l,o]=o.splitText(n):[,l,o]=o.splitText(e,n);const s=h(r.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),i.append(s),l.replace(i),o}if(t.length>1){const r=t[0];let l,o=r.getTextContent().length;0===e?l=r:[,l]=r.splitText(e);const s=[];let c;for(let e=1;e<t.length;e++){const r=t[e],l=r.getTextContent().length,i=o;if(i<n)if(o+l<=n)s.push(r);else{const[t,e]=r.splitText(n-i);s.push(t),c=e}o+=l}const f=u(),x=f?f.getNodes().find(a):void 0,d=h(l.getTextContent());return d.setFormat(l.getFormat()),d.setDetail(l.getDetail()),d.setStyle(l.getStyle()),i.append(d,...s),x&&x===l&&(g(f)?d.select(f.anchor.offset,f.focus.offset):p(f)&&d.select(0,d.getTextContent().length)),l.replace(i),c}}function N(t,e,n){const r=t.getChildren(),l=r.length;for(let e=0;e<l;e++){const l=r[e];if(!a(l)||!l.isSimpleText())return I(t),void n(null,t.getURL())}const i=t.getTextContent(),o=T(i,e);if(null===o||o.text!==i)return I(t),void n(null,t.getURL());if(!v(t)||!L(t))return I(t),void n(null,t.getURL());const s=t.getURL();if(s!==o.url&&(t.setURL(o.url),n(o.url,s)),o.attributes){const e=t.getRel();e!==o.attributes.rel&&(t.setRel(o.attributes.rel||null),n(o.attributes.rel||null,e));const r=t.getTarget();r!==o.attributes.target&&(t.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function I(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((t=>t.getLatest()))}function P(l,i,f){d((()=>{l.hasNodes([t])||function(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),r=new URLSearchParams;r.append(\"code\",t);for(const t of e)r.append(\"v\",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);const x=(t,e)=>{f&&f(t,e)};return o(l.registerNodeTransform(s,(t=>{const r=t.getParentOrThrow(),l=t.getPreviousSibling();if(e(r)&&!r.getIsUnlinked())N(r,i,x);else if(!n(r)){if(t.isSimpleText()&&(U(t.getTextContent())||!e(l))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&a(n)&&n.isSimpleText()&&(e.push(n),!/[\\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n){let r=[...t];const l=r.map((t=>t.getTextContent())).join(\"\");let i,o=l,s=0;for(;(i=T(o,e))&&null!==i;){const t=i.index,e=t+i.length;if(R(s+t,s+e,l,r)){const[l,,o,u]=k(r,s+t,s+e),g=D(o,s+t-l,s+e-l,i);r=g?[g,...u]:u,n(i.url,null),s=0}else s+=e;o=o.substring(e)}}(e,i,x)}!function(t,n,r){const l=t.getPreviousSibling(),i=t.getNextSibling(),o=t.getTextContent();var s;!e(l)||l.getIsUnlinked()||U(o)&&(s=o,!(l.isEmailURI()?/^\\.[a-zA-Z]{2,}/.test(s):/^\\.[a-zA-Z0-9]{1,}/.test(s)))||(l.append(t),N(l,n,r),r(null,l.getURL())),!e(i)||i.getIsUnlinked()||b(o)||(I(i),N(i,n,r),r(null,i.getURL()))}(t,i,x)}})),l.registerCommand(r,(t=>{const n=u();if(null!==t||!g(n))return!1;return n.extract().forEach((t=>{const n=t.getParent();if(e(n))return n.setIsUnlinked(!n.getIsUnlinked()),n.markDirty(),!0})),!1}),c))}),[l,i,f])}function w({matchers:t,onChange:e}){const[n]=i();return P(n,t,e),null}export{w as AutoLinkPlugin,m as createLinkMatcherWithRegExp};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["m","t","r","T","C","S","b","U","v","f","x","a","L","R","k","l","i","o","s","u","g","D","h","c","e","d","p","N","I","P","n","w","PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";;;;;AAQqf,SAASA,EAAE,GAAE,IAAG,CAAAC,MAAGA,GAAG;AAAC,SAAO,OAAG;AAAC,UAAMC,IAAE,EAAE,KAAK,CAAC;AAAE,WAAcA,MAAP,OAAS,OAAK,EAAC,OAAMA,EAAE,OAAM,QAAOA,EAAE,CAAC,EAAE,QAAO,MAAKA,EAAE,CAAC,GAAE,KAAI,EAAEA,EAAE,CAAC,CAAC,EAAC;AAAA,EAAC;AAAC;AAAC,SAASC,EAAE,GAAE,GAAE;AAAC,WAAQ,IAAE,GAAE,IAAE,EAAE,QAAO,KAAI;AAA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AAS,EAAC,GAAE;AAAC,QAAK,CAAC,CAAC,IAAEf,EAAG;AAAC,SAAOa,EAAE,GAAE,GAAE,CAAC,GAAE;AAAI;ACN1gJ,MAAMG,KAAiB,sBAEjBC,IACJ,qNAEIC,KACJ,uJAEIC,KACJ,wNAEWC,KAAc,CAACC,MACnBA,MAAQ,cAAcJ,EAAU,KAAKI,CAAG,GAGpCC,KAA0B,CAACD,MAC/BA,MAAQ,cAAcF,GAAmB,KAAKE,CAAG,GAG7CE,KAAW;AAAA,EACtBC,EAA4BP,GAAW,CAACQ,MAC9BT,GAAe,KAAKS,CAAI,IAAkBA,IAAd,KAAKA,CAAI,EAC9C;AAAA,EACDD,EAA4BN,IAAa,CAACO,MACjC,UAAUA,CAAI,EACtB;AACH,GAEaC,KAAc,CAACL,MACrB,gBAAgB,KAAKA,CAAG,IAGtBA,IAFE,WAAWA,CAAG;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"helpers-CtrLGKFA.js","sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as t,$isAutoLinkNode as e,$isLinkNode as n,TOGGLE_LINK_COMMAND as r,$createAutoLinkNode as l}from\"@lexical/link\";import{useLexicalComposerContext as i}from\"@lexical/react/LexicalComposerContext\";import{mergeRegister as o}from\"@lexical/utils\";import{TextNode as s,$getSelection as u,$isRangeSelection as g,COMMAND_PRIORITY_LOW as c,$isTextNode as a,$isElementNode as f,$isLineBreakNode as x,$createTextNode as h,$isNodeSelection as p}from\"lexical\";import{useEffect as d}from\"react\";function m(t,e=(t=>t)){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function T(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const C=/[.,;\\s]/;function S(t){return C.test(t)}function b(t){return S(t[t.length-1])}function U(t){return S(t[0])}function v(t){let e=t.getPreviousSibling();return f(e)&&(e=e.getLastDescendant()),null===e||x(e)||a(e)&&b(e.getTextContent())}function L(t){let e=t.getNextSibling();return f(e)&&(e=e.getFirstDescendant()),null===e||x(e)||a(e)&&U(e.getTextContent())}function R(t,e,n,r){if(!(t>0?S(n[t-1]):v(r[0])))return!1;return e<n.length?S(n[e]):L(r[r.length-1])}function k(t,e,n){const r=[],l=[],i=[];let o=0,s=0;const u=[...t];for(;u.length>0;){const t=u[0],g=t.getTextContent().length,c=s;s+g<=e?(r.push(t),o+=g):c>=n?i.push(t):l.push(t),s+=g,u.shift()}return[o,r,l,i]}function D(t,e,n,r){const i=l(r.url,r.attributes);if(1===t.length){let l,o=t[0];0===e?[l,o]=o.splitText(n):[,l,o]=o.splitText(e,n);const s=h(r.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),i.append(s),l.replace(i),o}if(t.length>1){const r=t[0];let l,o=r.getTextContent().length;0===e?l=r:[,l]=r.splitText(e);const s=[];let c;for(let e=1;e<t.length;e++){const r=t[e],l=r.getTextContent().length,i=o;if(i<n)if(o+l<=n)s.push(r);else{const[t,e]=r.splitText(n-i);s.push(t),c=e}o+=l}const f=u(),x=f?f.getNodes().find(a):void 0,d=h(l.getTextContent());return d.setFormat(l.getFormat()),d.setDetail(l.getDetail()),d.setStyle(l.getStyle()),i.append(d,...s),x&&x===l&&(g(f)?d.select(f.anchor.offset,f.focus.offset):p(f)&&d.select(0,d.getTextContent().length)),l.replace(i),c}}function N(t,e,n){const r=t.getChildren(),l=r.length;for(let e=0;e<l;e++){const l=r[e];if(!a(l)||!l.isSimpleText())return I(t),void n(null,t.getURL())}const i=t.getTextContent(),o=T(i,e);if(null===o||o.text!==i)return I(t),void n(null,t.getURL());if(!v(t)||!L(t))return I(t),void n(null,t.getURL());const s=t.getURL();if(s!==o.url&&(t.setURL(o.url),n(o.url,s)),o.attributes){const e=t.getRel();e!==o.attributes.rel&&(t.setRel(o.attributes.rel||null),n(o.attributes.rel||null,e));const r=t.getTarget();r!==o.attributes.target&&(t.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function I(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((t=>t.getLatest()))}function P(l,i,f){d((()=>{l.hasNodes([t])||function(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),r=new URLSearchParams;r.append(\"code\",t);for(const t of e)r.append(\"v\",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);const x=(t,e)=>{f&&f(t,e)};return o(l.registerNodeTransform(s,(t=>{const r=t.getParentOrThrow(),l=t.getPreviousSibling();if(e(r)&&!r.getIsUnlinked())N(r,i,x);else if(!n(r)){if(t.isSimpleText()&&(U(t.getTextContent())||!e(l))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&a(n)&&n.isSimpleText()&&(e.push(n),!/[\\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n){let r=[...t];const l=r.map((t=>t.getTextContent())).join(\"\");let i,o=l,s=0;for(;(i=T(o,e))&&null!==i;){const t=i.index,e=t+i.length;if(R(s+t,s+e,l,r)){const[l,,o,u]=k(r,s+t,s+e),g=D(o,s+t-l,s+e-l,i);r=g?[g,...u]:u,n(i.url,null),s=0}else s+=e;o=o.substring(e)}}(e,i,x)}!function(t,n,r){const l=t.getPreviousSibling(),i=t.getNextSibling(),o=t.getTextContent();var s;!e(l)||l.getIsUnlinked()||U(o)&&(s=o,!(l.isEmailURI()?/^\\.[a-zA-Z]{2,}/.test(s):/^\\.[a-zA-Z0-9]{1,}/.test(s)))||(l.append(t),N(l,n,r),r(null,l.getURL())),!e(i)||i.getIsUnlinked()||b(o)||(I(i),N(i,n,r),r(null,i.getURL()))}(t,i,x)}})),l.registerCommand(r,(t=>{const n=u();if(null!==t||!g(n))return!1;return n.extract().forEach((t=>{const n=t.getParent();if(e(n))return n.setIsUnlinked(!n.getIsUnlinked()),n.markDirty(),!0})),!1}),c))}),[l,i,f])}function w({matchers:t,onChange:e}){const[n]=i();return P(n,t,e),null}export{w as AutoLinkPlugin,m as createLinkMatcherWithRegExp};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["m","t","r","T","C","S","b","U","v","f","x","a","L","R","k","l","i","o","s","u","g","D","h","c","e","d","p","N","I","P","n","w","PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";;;;;AAQqf,SAASA,EAAE,GAAE,IAAG,CAAAC,MAAGA,GAAG;AAAC,SAAO,OAAG;AAAC,UAAMC,IAAE,EAAE,KAAK,CAAC;AAAE,WAAcA,MAAP,OAAS,OAAK,EAAC,OAAMA,EAAE,OAAM,QAAOA,EAAE,CAAC,EAAE,QAAO,MAAKA,EAAE,CAAC,GAAE,KAAI,EAAEA,EAAE,CAAC,CAAC,EAAC;AAAA,EAAC;AAAC;AAAC,SAASC,EAAE,GAAE,GAAE;AAAC,WAAQ,IAAE,GAAE,IAAE,EAAE,QAAO,KAAI;AAAC,UAAMD,IAAE,EAAE,CAAC,EAAE,CAAC;AAAE,QAAGA,EAAE,QAAOA;AAAA,EAAC;AAAC,SAAO;AAAI;AAAC,MAAME,IAAE;AAAU,SAASC,EAAE,GAAE;AAAC,SAAOD,EAAE,KAAK,CAAC;AAAC;AAAC,SAASE,EAAE,GAAE;AAAC,SAAOD,EAAE,EAAE,EAAE,SAAO,CAAC,CAAC;AAAC;AAAC,SAASE,EAAE,GAAE;AAAC,SAAOF,EAAE,EAAE,CAAC,CAAC;AAAC;AAAC,SAASG,EAAE,GAAE;AAAC,MAAI,IAAE,EAAE,mBAAoB;AAAC,S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AAd,KAAKA,CAAI,EAC9C;AAAA,EACDD,EAA4BN,IAAa,CAACO,MACjC,UAAUA,CAAI,EACtB;AACH,GAEaC,KAAc,CAACL,MACrB,gBAAgB,KAAKA,CAAG,IAGtBA,IAFE,WAAWA,CAAG;","x_google_ignoreList":[0]}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accordion as t } from "./components/Accordion/Accordion.js";
|
|
2
2
|
import { AccordionCard as p } from "./components/AccordionCard/AccordionCard.js";
|
|
3
|
-
import { ActionList as
|
|
4
|
-
import { AppStatusBar as
|
|
3
|
+
import { ActionList as x } from "./components/ActionList/ActionList.js";
|
|
4
|
+
import { AppStatusBar as i } from "./components/AppStatusBar/AppStatusBar.js";
|
|
5
5
|
import { Attention as n } from "./components/Attention/Attention.js";
|
|
6
6
|
import { Backdrop as c } from "./components/Backdrop/Backdrop.js";
|
|
7
7
|
import { ButtonGroup as u } from "./components/ButtonGroup/ButtonGroup.js";
|
|
@@ -14,7 +14,7 @@ import { CheckboxButton as h } from "./components/CheckboxButton/CheckboxButton.
|
|
|
14
14
|
import { CheckboxButtonBar as y } from "./components/CheckboxButtonBar/CheckboxButtonBar.js";
|
|
15
15
|
import { CheckboxTree as D } from "./components/CheckboxTree/CheckboxTree.js";
|
|
16
16
|
import { Chip as v } from "./components/Chip/Chip.js";
|
|
17
|
-
import { Drawer as
|
|
17
|
+
import { Drawer as w } from "./components/Drawer/Drawer.js";
|
|
18
18
|
import { EmptyStateDataDisplay as E } from "./components/EmptyStateDataDisplay/EmptyStateDataDisplay.js";
|
|
19
19
|
import { FeedbackBox as H } from "./components/FeedbackBox/FeedbackBox.js";
|
|
20
20
|
import { FieldHint as N } from "./components/FieldHint/FieldHint.js";
|
|
@@ -27,12 +27,12 @@ import { Icon as _ } from "./components/Icon/Icon.js";
|
|
|
27
27
|
import { IconButton as oo } from "./components/IconButton/IconButton.js";
|
|
28
28
|
import { InfoMessage as to } from "./components/InfoMessage/InfoMessage.js";
|
|
29
29
|
import { Input as po } from "./components/Input/Input.js";
|
|
30
|
-
import { InputField as
|
|
31
|
-
import { Label as
|
|
30
|
+
import { InputField as xo } from "./components/InputField/InputField.js";
|
|
31
|
+
import { Label as io } from "./components/Label/Label.js";
|
|
32
32
|
import { MenuLink as no } from "./components/MenuLink/MenuLink.js";
|
|
33
33
|
import { MetaDataList as co } from "./components/MetaDataList/MetaDataList.js";
|
|
34
34
|
import { ModalDialog as so } from "./components/ModalDialog/ModalDialog.js";
|
|
35
|
-
import { M as So } from "./TablePlugin-
|
|
35
|
+
import { M as So } from "./TablePlugin-o1MveXq2.js";
|
|
36
36
|
import { OverlayCloseButton as bo } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
37
37
|
import { OverlayStepBar as Fo } from "./components/OverlayStepBar/OverlayStepBar.js";
|
|
38
38
|
import { PageOverlay as Lo } from "./components/PageOverlay/PageOverlay.js";
|
|
@@ -40,22 +40,23 @@ import { Periods as go } from "./components/Periods/Periods.js";
|
|
|
40
40
|
import { PeriodSelector as Po } from "./components/PeriodSelector/PeriodSelector.js";
|
|
41
41
|
import { ProgrammeCard as Ao } from "./components/ProgrammeCard/ProgrammeCard.js";
|
|
42
42
|
import { RadioButton as Ro } from "./components/RadioButton/RadioButton.js";
|
|
43
|
-
import { Repeater as
|
|
44
|
-
import { Rte as
|
|
43
|
+
import { Repeater as To } from "./components/Repeater/Repeater.js";
|
|
44
|
+
import { Rte as Oo, RteEditor as Eo } from "./components/RteEditor/RteEditor.js";
|
|
45
45
|
import { SectionNotification as Ho } from "./components/SectionNotification/SectionNotification.js";
|
|
46
46
|
import { SelectListbox as No } from "./components/SelectListbox/SelectListbox.js";
|
|
47
47
|
import { SelectProvider as jo, useSelect as qo } from "./components/SelectListbox/SelectProvider.js";
|
|
48
48
|
import { Sortable as Ko } from "./components/Sortable/Sortable.js";
|
|
49
49
|
import { Spinner as Uo } from "./components/Spinner/Spinner.js";
|
|
50
50
|
import { StatusPill as Xo } from "./components/StatusPill/StatusPill.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
51
|
+
import { Timeline as Zo } from "./components/Timeline/Timeline.js";
|
|
52
|
+
import { ToggleSwitch as $o } from "./components/ToggleSwitch/ToggleSwitch.js";
|
|
53
|
+
import { Tooltip as rr } from "./components/Tooltip/Tooltip.js";
|
|
54
|
+
import { VarIndicator as er } from "./components/VarIndicator/VarIndicator.js";
|
|
54
55
|
export {
|
|
55
56
|
t as Accordion,
|
|
56
57
|
p as AccordionCard,
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
x as ActionList,
|
|
59
|
+
i as AppStatusBar,
|
|
59
60
|
n as Attention,
|
|
60
61
|
c as Backdrop,
|
|
61
62
|
B as Button,
|
|
@@ -66,7 +67,7 @@ export {
|
|
|
66
67
|
y as CheckboxButtonBar,
|
|
67
68
|
D as CheckboxTree,
|
|
68
69
|
v as Chip,
|
|
69
|
-
|
|
70
|
+
w as Drawer,
|
|
70
71
|
E as EmptyStateDataDisplay,
|
|
71
72
|
H as FeedbackBox,
|
|
72
73
|
N as FieldHint,
|
|
@@ -79,8 +80,8 @@ export {
|
|
|
79
80
|
oo as IconButton,
|
|
80
81
|
to as InfoMessage,
|
|
81
82
|
po as Input,
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
xo as InputField,
|
|
84
|
+
io as Label,
|
|
84
85
|
C as LinkButton,
|
|
85
86
|
k as MenuButton,
|
|
86
87
|
no as MenuLink,
|
|
@@ -94,8 +95,8 @@ export {
|
|
|
94
95
|
go as Periods,
|
|
95
96
|
Ao as ProgrammeCard,
|
|
96
97
|
Ro as RadioButton,
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
To as Repeater,
|
|
99
|
+
Oo as Rte,
|
|
99
100
|
Eo as RteEditor,
|
|
100
101
|
Ho as SectionNotification,
|
|
101
102
|
No as SelectListbox,
|
|
@@ -103,9 +104,10 @@ export {
|
|
|
103
104
|
Ko as Sortable,
|
|
104
105
|
Uo as Spinner,
|
|
105
106
|
Xo as StatusPill,
|
|
106
|
-
Zo as
|
|
107
|
-
$o as
|
|
108
|
-
rr as
|
|
107
|
+
Zo as Timeline,
|
|
108
|
+
$o as ToggleSwitch,
|
|
109
|
+
rr as Tooltip,
|
|
110
|
+
er as VarIndicator,
|
|
109
111
|
qo as useSelect
|
|
110
112
|
};
|
|
111
113
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|