@qwickapps/react-framework 1.3.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1681 -2
- package/dist/__tests__/schemas/transformers/MockSerializableComponent.d.ts +66 -0
- package/dist/__tests__/schemas/transformers/MockSerializableComponent.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.d.ts +7 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/Html.d.ts +28 -18
- package/dist/components/Html.d.ts.map +1 -1
- package/dist/components/Logo.d.ts +12 -35
- package/dist/components/Logo.d.ts.map +1 -1
- package/dist/components/Markdown.d.ts +18 -13
- package/dist/components/Markdown.d.ts.map +1 -1
- package/dist/components/QwickApp.d.ts +16 -3
- package/dist/components/QwickApp.d.ts.map +1 -1
- package/dist/components/QwickIcon.d.ts +23 -0
- package/dist/components/QwickIcon.d.ts.map +1 -0
- package/dist/components/SafeSpan.d.ts +12 -5
- package/dist/components/SafeSpan.d.ts.map +1 -1
- package/dist/components/Scaffold.d.ts.map +1 -1
- package/dist/components/base/ModelView.d.ts +101 -0
- package/dist/components/base/ModelView.d.ts.map +1 -0
- package/dist/components/base/index.d.ts +11 -0
- package/dist/components/base/index.d.ts.map +1 -0
- package/dist/components/blocks/Article.d.ts +12 -2
- package/dist/components/blocks/Article.d.ts.map +1 -1
- package/dist/components/blocks/Code.d.ts +13 -2
- package/dist/components/blocks/Code.d.ts.map +1 -1
- package/dist/components/blocks/CoverImageHeader.d.ts.map +1 -1
- package/dist/components/blocks/FeatureCard.d.ts.map +1 -1
- package/dist/components/blocks/FeatureGrid.d.ts.map +1 -1
- package/dist/components/blocks/Footer.d.ts.map +1 -1
- package/dist/components/blocks/HeroBlock.d.ts +27 -13
- package/dist/components/blocks/HeroBlock.d.ts.map +1 -1
- package/dist/components/blocks/Image.d.ts +41 -0
- package/dist/components/blocks/Image.d.ts.map +1 -0
- package/dist/components/blocks/PageBannerHeader.d.ts.map +1 -1
- package/dist/components/blocks/Section.d.ts +16 -2
- package/dist/components/blocks/Section.d.ts.map +1 -1
- package/dist/components/blocks/Text.d.ts +41 -0
- package/dist/components/blocks/Text.d.ts.map +1 -0
- package/dist/components/blocks/index.d.ts +4 -0
- package/dist/components/blocks/index.d.ts.map +1 -1
- package/dist/components/buttons/Button.d.ts +23 -7
- package/dist/components/buttons/Button.d.ts.map +1 -1
- package/dist/components/forms/FormBlock.d.ts +19 -13
- package/dist/components/forms/FormBlock.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/input/ChoiceInputField.d.ts +17 -11
- package/dist/components/input/ChoiceInputField.d.ts.map +1 -1
- package/dist/components/input/HtmlInputField.d.ts +17 -11
- package/dist/components/input/HtmlInputField.d.ts.map +1 -1
- package/dist/components/input/SelectInputField.d.ts +16 -10
- package/dist/components/input/SelectInputField.d.ts.map +1 -1
- package/dist/components/input/SwitchInputField.d.ts +16 -10
- package/dist/components/input/SwitchInputField.d.ts.map +1 -1
- package/dist/components/input/TextField.d.ts.map +1 -1
- package/dist/components/input/TextInputField.d.ts +16 -11
- package/dist/components/input/TextInputField.d.ts.map +1 -1
- package/dist/components/layout/GridCell.d.ts +23 -6
- package/dist/components/layout/GridCell.d.ts.map +1 -1
- package/dist/components/layout/GridLayout.d.ts +24 -23
- package/dist/components/layout/GridLayout.d.ts.map +1 -1
- package/dist/components/pages/FormPage.d.ts.map +1 -1
- package/dist/components/pages/Page.d.ts +49 -87
- package/dist/components/pages/Page.d.ts.map +1 -1
- package/dist/components/pages/index.d.ts +2 -2
- package/dist/components/pages/index.d.ts.map +1 -1
- package/dist/config/AppConfig.d.ts +49 -0
- package/dist/config/AppConfig.d.ts.map +1 -0
- package/dist/config/AppConfigBuilder.d.ts +75 -0
- package/dist/config/AppConfigBuilder.d.ts.map +1 -0
- package/dist/config/index.d.ts +13 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/types.d.ts +130 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.esm.js +451 -0
- package/dist/config.js +455 -0
- package/dist/contexts/PrintModeContext.d.ts +27 -0
- package/dist/contexts/PrintModeContext.d.ts.map +1 -0
- package/dist/contexts/QwickAppContext.d.ts +2 -2
- package/dist/contexts/QwickAppContext.d.ts.map +1 -1
- package/dist/contexts/index.d.ts +2 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/usePrintMode.d.ts +39 -0
- package/dist/hooks/usePrintMode.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +10951 -6238
- package/dist/index.js +11014 -6287
- package/dist/schemas/CodeSchema.d.ts +2 -1
- package/dist/schemas/CodeSchema.d.ts.map +1 -1
- package/dist/schemas/CollapsibleLayoutSchema.d.ts +2 -1
- package/dist/schemas/CollapsibleLayoutSchema.d.ts.map +1 -1
- package/dist/schemas/ContentSchema.d.ts +2 -1
- package/dist/schemas/ContentSchema.d.ts.map +1 -1
- package/dist/schemas/GridCellSchema.d.ts +25 -0
- package/dist/schemas/GridCellSchema.d.ts.map +1 -0
- package/dist/schemas/GridLayoutSchema.d.ts +23 -0
- package/dist/schemas/GridLayoutSchema.d.ts.map +1 -0
- package/dist/schemas/HtmlSchema.d.ts +14 -0
- package/dist/schemas/HtmlSchema.d.ts.map +1 -0
- package/dist/schemas/ImageSchema.d.ts +32 -0
- package/dist/schemas/ImageSchema.d.ts.map +1 -0
- package/dist/schemas/LogoSchema.d.ts +35 -0
- package/dist/schemas/LogoSchema.d.ts.map +1 -0
- package/dist/schemas/MarkdownSchema.d.ts +14 -0
- package/dist/schemas/MarkdownSchema.d.ts.map +1 -0
- package/dist/schemas/PageTemplateSchema.d.ts +31 -0
- package/dist/schemas/PageTemplateSchema.d.ts.map +1 -0
- package/dist/schemas/PrintConfigSchema.d.ts +31 -0
- package/dist/schemas/PrintConfigSchema.d.ts.map +1 -0
- package/dist/schemas/SectionSchema.d.ts +2 -1
- package/dist/schemas/SectionSchema.d.ts.map +1 -1
- package/dist/schemas/TextSchema.d.ts +37 -0
- package/dist/schemas/TextSchema.d.ts.map +1 -0
- package/dist/schemas/ViewModelSchema.d.ts +23 -0
- package/dist/schemas/ViewModelSchema.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +15 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/transformers/ComponentTransformer.d.ts +116 -0
- package/dist/schemas/transformers/ComponentTransformer.d.ts.map +1 -0
- package/dist/schemas/transformers/ReactNodeTransformer.d.ts +53 -0
- package/dist/schemas/transformers/ReactNodeTransformer.d.ts.map +1 -0
- package/dist/schemas/transformers/__tests__/MockSerializableComponent.d.ts +66 -0
- package/dist/schemas/transformers/__tests__/MockSerializableComponent.d.ts.map +1 -0
- package/dist/schemas/transformers/registry.d.ts +15 -0
- package/dist/schemas/transformers/registry.d.ts.map +1 -0
- package/dist/schemas/types/Serializable.d.ts +46 -0
- package/dist/schemas/types/Serializable.d.ts.map +1 -0
- package/dist/utils/htmlTransform.d.ts.map +1 -1
- package/dist/utils/reactUtils.d.ts +12 -3
- package/dist/utils/reactUtils.d.ts.map +1 -1
- package/package.json +17 -3
- package/src/{components/__tests__ → __tests__/components}/AccessibilityProvider.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Article.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Breadcrumbs.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Button.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/CardListGrid.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/ChoiceInputField.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Code.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Content.integration.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Content.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/CoverImageHeader.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/ErrorBoundary.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/FeatureCard.integration.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/FeatureGrid.integration.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/FeatureGrid.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/Footer.test.tsx +4 -4
- package/src/{components/__tests__ → __tests__/components}/FormBlock.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/HeroBlock.integration.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/HeroBlock.test.tsx +233 -7
- package/src/{components/__tests__ → __tests__/components}/Html.test.tsx +11 -2
- package/src/{components/__tests__ → __tests__/components}/HtmlInputField.test.tsx +3 -3
- package/src/__tests__/components/Logo.test.js +3 -3
- package/src/{components/__tests__ → __tests__/components}/Markdown.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/PageBannerHeader.test.tsx +3 -3
- package/src/{components/__tests__ → __tests__/components}/PaletteSwitcher.test.tsx +3 -3
- package/src/{components/__tests__ → __tests__/components}/ProductCard.test.tsx +4 -4
- package/src/{components/__tests__ → __tests__/components}/SafeSpan.integration.test.tsx +2 -2
- package/src/{components/__tests__ → __tests__/components}/SafeSpan.simple.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/SafeSpan.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Section.integration.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/Section.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/SelectInputField.test.tsx +1 -1
- package/src/{components/__tests__ → __tests__/components}/TextInputField.test.tsx +3 -3
- package/src/{components/__tests__ → __tests__/components}/ThemeSwitcher.test.tsx +3 -3
- package/src/__tests__/components/base/ModelView.test.tsx +220 -0
- package/src/__tests__/components/blocks/Code.performance.test.tsx +625 -0
- package/src/__tests__/components/blocks/Code.serialization.test.tsx +507 -0
- package/src/__tests__/components/blocks/HeroBlock.serialization.test.tsx +414 -0
- package/src/__tests__/components/blocks/Image.serialization.test.tsx +257 -0
- package/src/__tests__/components/blocks/Section.serialization.test.tsx +553 -0
- package/src/__tests__/components/blocks/Text.performance.test.tsx +442 -0
- package/src/__tests__/components/blocks/Text.serialization.test.tsx +491 -0
- package/src/__tests__/components/buttons/Button.serialization.test.tsx +443 -0
- package/src/__tests__/components/input/FormComponents.serialization.test.tsx +482 -0
- package/src/__tests__/components/input/SelectInputField.serialization.test.tsx +439 -0
- package/src/__tests__/components/input/TextInputField.serialization.test.tsx +359 -0
- package/src/{components/layout/CollapsibleLayout/__tests__ → __tests__/components/layout}/CollapsibleLayout.test.tsx +4 -4
- package/src/__tests__/components/layout/GridCell.serialization.test.tsx +403 -0
- package/src/__tests__/components/layout/GridLayout.serialization.test.tsx +311 -0
- package/src/__tests__/hooks/usePrintMode.test.ts +89 -0
- package/src/__tests__/schemas/PageTemplateSchema.test.ts +161 -0
- package/src/__tests__/schemas/PrintConfigSchema.test.ts +127 -0
- package/src/__tests__/schemas/ViewModelSchema.test.ts +80 -0
- package/src/__tests__/schemas/transformers/ComponentSerializationPatterns.test.tsx +602 -0
- package/src/__tests__/schemas/transformers/ComponentTransformer.htmlPatterns.test.ts +301 -0
- package/src/__tests__/schemas/transformers/ComponentTransformer.test.ts +521 -0
- package/src/__tests__/schemas/transformers/CrossBrowserCompatibility.test.ts +586 -0
- package/src/__tests__/schemas/transformers/MockSerializableComponent.ts +103 -0
- package/src/__tests__/schemas/transformers/RealWorldScenarios.test.tsx +1165 -0
- package/src/__tests__/schemas/transformers/SerializationErrorHandling.test.ts +602 -0
- package/src/__tests__/schemas/transformers/SerializationIntegration.test.tsx +691 -0
- package/src/__tests__/schemas/transformers/SerializationPerformance.test.ts +460 -0
- package/src/__tests__/schemas/transformers/TestAutomation.test.ts +597 -0
- package/src/{utils/__tests__ → __tests__/utils}/nested-dom-fix.test.tsx +1 -1
- package/src/components/ErrorBoundary.tsx +8 -8
- package/src/components/Html.tsx +147 -44
- package/src/components/Logo.tsx +198 -100
- package/src/components/Markdown.tsx +125 -16
- package/src/components/QwickApp.tsx +64 -31
- package/src/components/QwickIcon.tsx +59 -0
- package/src/components/SafeSpan.tsx +65 -10
- package/src/components/Scaffold.tsx +2 -8
- package/src/components/base/ModelView.tsx +199 -0
- package/src/components/base/index.ts +11 -0
- package/src/components/blocks/Article.tsx +57 -18
- package/src/components/blocks/Code.md +529 -0
- package/src/components/blocks/Code.tsx +102 -15
- package/src/components/blocks/CoverImageHeader.tsx +9 -4
- package/src/components/blocks/FeatureCard.tsx +1 -2
- package/src/components/blocks/FeatureGrid.tsx +19 -1
- package/src/components/blocks/Footer.tsx +13 -1
- package/src/components/blocks/HeroBlock.tsx +87 -20
- package/src/components/blocks/Image.tsx +395 -0
- package/src/components/blocks/PageBannerHeader.tsx +14 -12
- package/src/components/blocks/ProductCard.tsx +1 -1
- package/src/components/blocks/Section.tsx +113 -8
- package/src/components/blocks/Text.tsx +285 -0
- package/src/components/blocks/index.ts +4 -0
- package/src/components/buttons/Button.tsx +184 -15
- package/src/components/forms/FormBlock.tsx +70 -17
- package/src/components/index.ts +5 -0
- package/src/components/input/ChoiceInputField.tsx +48 -18
- package/src/components/input/HtmlInputField.tsx +48 -18
- package/src/components/input/SelectInputField.tsx +48 -16
- package/src/components/input/SwitchInputField.tsx +48 -17
- package/src/components/input/TextField.tsx +41 -1
- package/src/components/input/TextInputField.tsx +52 -18
- package/src/components/layout/GridCell.tsx +118 -9
- package/src/components/layout/GridLayout.tsx +125 -24
- package/src/components/pages/FormPage.tsx +0 -1
- package/src/components/pages/Page.css +304 -332
- package/src/components/pages/Page.tsx +307 -255
- package/src/components/pages/index.ts +2 -2
- package/src/config/AppConfig.ts +133 -0
- package/src/config/AppConfigBuilder.ts +421 -0
- package/src/config/__tests__/AppConfig.test.ts +385 -0
- package/src/config/__tests__/AppConfigBuilder.test.ts +432 -0
- package/src/config/index.ts +24 -0
- package/src/config/types.ts +170 -0
- package/src/config.ts +25 -0
- package/src/contexts/PrintModeContext.tsx +332 -0
- package/src/contexts/QwickAppContext.tsx +2 -2
- package/src/contexts/index.ts +2 -0
- package/src/hooks/index.ts +5 -1
- package/src/hooks/usePrintMode.ts +73 -0
- package/src/index.ts +3 -0
- package/src/schemas/CodeSchema.ts +3 -3
- package/src/schemas/CollapsibleLayoutSchema.ts +2 -1
- package/src/schemas/ContentSchema.ts +2 -1
- package/src/schemas/GridCellSchema.ts +164 -0
- package/src/schemas/GridLayoutSchema.ts +133 -0
- package/src/schemas/HtmlSchema.ts +47 -0
- package/src/schemas/ImageSchema.ts +235 -0
- package/src/schemas/LogoSchema.ts +241 -0
- package/src/schemas/MarkdownSchema.ts +47 -0
- package/src/schemas/PageTemplateSchema.ts +186 -0
- package/src/schemas/PrintConfigSchema.ts +207 -0
- package/src/schemas/README.md +661 -0
- package/src/schemas/SectionSchema.ts +2 -1
- package/src/schemas/TextSchema.ts +329 -0
- package/src/schemas/ViewModelSchema.ts +115 -0
- package/src/schemas/index.ts +21 -2
- package/src/schemas/transformers/ComponentTransformer.ts +403 -0
- package/src/schemas/transformers/ReactNodeTransformer.ts +236 -0
- package/src/schemas/transformers/registry.ts +72 -0
- package/src/schemas/types/Serializable.ts +51 -0
- package/src/stories/AccessibilityProvider.stories.tsx +253 -253
- package/src/stories/Article.stories.tsx +433 -433
- package/src/stories/Button.stories.tsx +1 -1
- package/src/stories/CardListGrid.stories.tsx +451 -451
- package/src/stories/ChoiceInputField.stories.tsx +503 -503
- package/src/stories/Code.stories.tsx +1 -1
- package/src/stories/CollapsibleLayout.stories.tsx +1414 -1414
- package/src/stories/Content.stories.tsx +393 -393
- package/src/stories/CoverImageHeader.stories.tsx +701 -701
- package/src/stories/DataBinding.advanced.stories.tsx +432 -432
- package/src/stories/DataProvider.stories.tsx +1192 -1192
- package/src/stories/FeatureCard.stories.tsx +557 -557
- package/src/stories/FeatureGrid.stories.tsx +594 -594
- package/src/stories/Footer.stories.tsx +640 -640
- package/src/stories/FormBlock.stories.tsx +760 -760
- package/src/stories/FormComponents.stories.tsx +349 -541
- package/src/stories/GridCell.stories.tsx +417 -0
- package/src/stories/GridLayout.stories.tsx +353 -0
- package/src/stories/HeroBlock.stories.tsx +862 -373
- package/src/stories/HtmlInputField.stories.tsx +474 -474
- package/src/stories/Image.stories.tsx +819 -0
- package/src/stories/Introduction.stories.tsx +667 -667
- package/src/stories/LayoutBlocks.stories.tsx +324 -324
- package/src/stories/Logo.stories.tsx +165 -6
- package/src/stories/Markdown.stories.tsx +137 -137
- package/src/stories/ModelView.stories.tsx +477 -0
- package/src/stories/Page.stories.tsx +688 -688
- package/src/stories/PageBannerHeader.stories.tsx +864 -864
- package/src/stories/PaletteSwitcher.stories.tsx +119 -119
- package/src/stories/ProductCard.stories.tsx +424 -424
- package/src/stories/QwickApp.stories.tsx +368 -368
- package/src/stories/ResponsiveMenu.stories.tsx +249 -249
- package/src/stories/SafeSpan.stories.tsx +531 -531
- package/src/stories/Section.stories.tsx +90 -2
- package/src/stories/SelectInputField.stories.tsx +524 -524
- package/src/stories/Text.stories.tsx +560 -0
- package/src/stories/TextInputField.stories.tsx +443 -443
- package/src/stories/ThemeSwitcher.stories.tsx +123 -123
- package/src/utils/htmlTransform.tsx +74 -53
- package/src/utils/reactUtils.tsx +57 -6
- package/dist/index.bundled.css +0 -12
- /package/src/{hooks/__tests__ → __tests__/hooks}/useDataBinding.test.tsx.disabled +0 -0
- /package/src/{schemas/__tests__ → __tests__/schemas}/builders.test.ts +0 -0
- /package/src/{utils/__tests__ → __tests__/utils}/createDataDrivenComponent.test.tsx.disabled +0 -0
- /package/src/{utils/__tests__ → __tests__/utils}/htmlTransform.test.tsx +0 -0
- /package/src/{utils/__tests__ → __tests__/utils}/optional-logging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AAQ,eAAe,EAAE,eAAe;CAAG;AAwNxE,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,kDAsEjC;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,33 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* HeroBlock Component - Full-width hero section with
|
|
3
|
-
*
|
|
4
|
-
* Enhanced with data binding support through dataSource prop.
|
|
5
|
-
*
|
|
6
|
-
* Usage:
|
|
7
|
-
* - Traditional: <HeroBlock title="Welcome" subtitle="Get started" actions={[...]} />
|
|
8
|
-
* - Data-driven: <HeroBlock dataSource="pages.home.hero" />
|
|
2
|
+
* HeroBlock Component - Full-width hero section with serialization support
|
|
9
3
|
*
|
|
10
4
|
* Features:
|
|
11
5
|
* - Responsive headline, subtitle, and actions
|
|
12
6
|
* - Supports background images, gradients, and theme colors
|
|
13
7
|
* - Overlay for image backgrounds
|
|
14
8
|
* - Customizable height, alignment, and overlay opacity
|
|
9
|
+
* - Full serialization support via ModelView
|
|
10
|
+
* - Nested Button component serialization support
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* - Traditional: <HeroBlock title="Welcome" subtitle="Get started" actions={[...]} />
|
|
14
|
+
* - Data-driven: <HeroBlock dataSource="pages.home.hero" />
|
|
15
|
+
* - Serializable: ComponentTransformer.serialize(<HeroBlock ... />)
|
|
15
16
|
*
|
|
16
17
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
17
18
|
*/
|
|
18
|
-
import {
|
|
19
|
-
import React from 'react';
|
|
20
|
-
import { WithBaseProps } from '../../hooks';
|
|
19
|
+
import type { ModelProps, WithDataBinding } from '@qwickapps/schema';
|
|
20
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
21
21
|
import HeroBlockModel from '../../schemas/HeroBlockSchema';
|
|
22
|
+
import { ModelView } from '../base/ModelView';
|
|
22
23
|
import { ButtonProps } from '../buttons/Button';
|
|
23
|
-
type HeroBlockViewProps =
|
|
24
|
+
type HeroBlockViewProps = ModelProps<HeroBlockModel> & {
|
|
24
25
|
/** Action buttons (data-driven) */
|
|
25
26
|
actions?: ButtonProps[];
|
|
26
27
|
/** Additional content below the text */
|
|
27
|
-
children?:
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
/** Click handler for the hero section */
|
|
30
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
31
|
+
/** Additional inline styles */
|
|
32
|
+
style?: React.CSSProperties;
|
|
28
33
|
};
|
|
29
34
|
export interface HeroBlockProps extends HeroBlockViewProps, WithDataBinding {
|
|
30
35
|
}
|
|
31
|
-
declare
|
|
36
|
+
export declare class HeroBlock extends ModelView<HeroBlockProps, HeroBlockModel> {
|
|
37
|
+
static readonly tagName = "HeroBlock";
|
|
38
|
+
static readonly version = "1.0.0";
|
|
39
|
+
static fromJson(jsonData: any): ReactElement;
|
|
40
|
+
protected getComponentSpecificProps(): any;
|
|
41
|
+
protected serializeChildren(children: ReactNode): any;
|
|
42
|
+
protected hasNestedComponents(children: ReactNode): boolean;
|
|
43
|
+
protected renderView(): React.ReactElement;
|
|
44
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
45
|
+
}
|
|
32
46
|
export default HeroBlock;
|
|
33
47
|
//# sourceMappingURL=HeroBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroBlock.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/HeroBlock.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"HeroBlock.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/HeroBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAU,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,kBAAkB,GAAG,UAAU,CAAC,cAAc,CAAC,GAAG;IACrD,mCAAmC;IACnC,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD,+BAA+B;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,kBAAkB,EAAE,eAAe;CAAG;AAuM9E,qBAAa,SAAU,SAAQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEtE,MAAM,CAAC,QAAQ,CAAC,OAAO,eAAe;IACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAgB1C,SAAS,CAAC,iBAAiB,CAAC,QAAQ,EAAE,SAAS,GAAG,GAAG;IAoBrD,SAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO;IAK3D,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;CAGtD;AAgDD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Image - Comprehensive image display component with serialization support
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Responsive image handling with srcSet and sizes
|
|
6
|
+
* - Multiple fit modes and positioning options
|
|
7
|
+
* - Loading states and error handling
|
|
8
|
+
* - Accessibility support with proper alt text
|
|
9
|
+
* - Lazy loading support
|
|
10
|
+
* - Fallback image handling
|
|
11
|
+
* - Full serialization support via ModelView
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
14
|
+
*/
|
|
15
|
+
import React, { ReactElement } from 'react';
|
|
16
|
+
import type { WithDataBinding, ModelProps } from '@qwickapps/schema';
|
|
17
|
+
import ImageModel from '../../schemas/ImageSchema';
|
|
18
|
+
import { ModelView } from '../base/ModelView';
|
|
19
|
+
type ImageViewProps = ModelProps<ImageModel> & {
|
|
20
|
+
/** Click handler for the image */
|
|
21
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
22
|
+
/** Additional inline styles */
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
/** Additional CSS class names */
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
27
|
+
export interface ImageProps extends ImageViewProps, WithDataBinding {
|
|
28
|
+
}
|
|
29
|
+
export declare class Image extends ModelView<ImageProps, ImageModel> {
|
|
30
|
+
static readonly tagName = "Image";
|
|
31
|
+
static readonly version = "1.0.0";
|
|
32
|
+
static fromJson(jsonData: any): ReactElement;
|
|
33
|
+
protected getComponentSpecificProps(): any;
|
|
34
|
+
protected renderView(): React.ReactElement;
|
|
35
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
36
|
+
static registerPatternHandlers(registry: any): void;
|
|
37
|
+
private static transformImage;
|
|
38
|
+
private static transformFigureImage;
|
|
39
|
+
}
|
|
40
|
+
export default Image;
|
|
41
|
+
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/Image.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAC;AAGnE,OAAO,KAAK,EAAE,eAAe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,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB,EAAE,eAAe;CAAG;AAmV5F,iBAAS,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,kDAwFrD;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
17
17
|
*/
|
|
18
18
|
import type { WithDataBinding } from '@qwickapps/schema';
|
|
19
|
-
import React from 'react';
|
|
19
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
20
20
|
import { WithBaseProps } from '../../hooks';
|
|
21
|
+
import SectionModel from '../../schemas/SectionSchema';
|
|
22
|
+
import { ModelView } from '../base/ModelView';
|
|
21
23
|
import type { BreakpointValue } from '../../types';
|
|
22
24
|
interface SectionViewProps extends WithBaseProps {
|
|
23
25
|
/** Section content */
|
|
@@ -35,6 +37,18 @@ interface SectionViewProps extends WithBaseProps {
|
|
|
35
37
|
}
|
|
36
38
|
export interface SectionProps extends SectionViewProps, WithDataBinding {
|
|
37
39
|
}
|
|
38
|
-
declare
|
|
40
|
+
export declare class Section extends ModelView<SectionProps, SectionModel> {
|
|
41
|
+
static readonly tagName = "Section";
|
|
42
|
+
static readonly version = "1.0.0";
|
|
43
|
+
static fromJson(jsonData: any): ReactElement;
|
|
44
|
+
protected hasNestedComponents(children: ReactNode): boolean;
|
|
45
|
+
protected serializeChildren(children: ReactNode): any;
|
|
46
|
+
protected getComponentSpecificProps(): any;
|
|
47
|
+
protected renderView(): React.ReactElement;
|
|
48
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
49
|
+
static registerPatternHandlers(registry: any): void;
|
|
50
|
+
private static transformSection;
|
|
51
|
+
private static transformBlogSection;
|
|
52
|
+
}
|
|
39
53
|
export default Section;
|
|
40
54
|
//# sourceMappingURL=Section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/Section.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/Section.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAoD,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9F,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,UAAU,gBAAiB,SAAQ,aAAa;IAC9C,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,CAAC;IACzE,6DAA6D;IAC7D,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,wBAAwB;IACxB,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;CACpD;AAED,MAAM,WAAW,YAAa,SAAQ,gBAAgB,EAAE,eAAe;CAAG;AA4G1E,qBAAa,OAAQ,SAAQ,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAEhE,MAAM,CAAC,QAAQ,CAAC,OAAO,aAAa;IACpC,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO;IAK3D,SAAS,CAAC,iBAAiB,CAAC,QAAQ,EAAE,SAAS,GAAG,GAAG;IAarD,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAW1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;IAKrD,MAAM,CAAC,uBAAuB,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;IAanD,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAiB/B,OAAO,CAAC,MAAM,CAAC,oBAAoB;CAcpC;AAmED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text - Comprehensive typography display component with serialization support
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Complete typography variant support (h1-h6, body1/2, subtitle, etc.)
|
|
6
|
+
* - Rich styling options (color, alignment, font properties)
|
|
7
|
+
* - Custom typography overrides (fontSize, fontFamily, etc.)
|
|
8
|
+
* - Semantic HTML element rendering
|
|
9
|
+
* - Text formatting and decoration options
|
|
10
|
+
* - Full serialization support via ModelView
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
13
|
+
*/
|
|
14
|
+
import React, { ReactElement } from 'react';
|
|
15
|
+
import type { WithDataBinding, ModelProps } from '@qwickapps/schema';
|
|
16
|
+
import TextModel from '../../schemas/TextSchema';
|
|
17
|
+
import { ModelView } from '../base/ModelView';
|
|
18
|
+
type TextViewProps = ModelProps<TextModel> & {
|
|
19
|
+
/** Click handler for the text */
|
|
20
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
21
|
+
/** Additional inline styles */
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
/** Additional CSS class names */
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
export interface TextProps extends TextViewProps, WithDataBinding {
|
|
27
|
+
}
|
|
28
|
+
export declare class Text extends ModelView<TextProps, TextModel> {
|
|
29
|
+
static readonly tagName = "Text";
|
|
30
|
+
static readonly version = "1.0.0";
|
|
31
|
+
static fromJson(jsonData: any): ReactElement;
|
|
32
|
+
protected getComponentSpecificProps(): any;
|
|
33
|
+
protected renderView(): React.ReactElement;
|
|
34
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
35
|
+
static registerPatternHandlers(registry: any): void;
|
|
36
|
+
private static transformParagraph;
|
|
37
|
+
private static transformHeading;
|
|
38
|
+
private static transformSpan;
|
|
39
|
+
}
|
|
40
|
+
export default Text;
|
|
41
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/Text.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,GAAG;IAC3C,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD,+BAA+B;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,eAAe;CAAG;AAmFpE,qBAAa,IAAK,SAAQ,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAEvD,MAAM,CAAC,QAAQ,CAAC,OAAO,UAAU;IACjC,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAwB1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;IAKrD,MAAM,CAAC,uBAAuB,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;IAqBnD,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAYjC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAqB/B,OAAO,CAAC,MAAM,CAAC,aAAa;CAU7B;AA6DD,eAAe,IAAI,CAAC"}
|
|
@@ -19,6 +19,8 @@ export { default as CoverImageHeader } from './CoverImageHeader';
|
|
|
19
19
|
export { default as FeatureGrid } from './FeatureGrid';
|
|
20
20
|
export { default as Footer } from './Footer';
|
|
21
21
|
export { default as Section } from './Section';
|
|
22
|
+
export { default as Image } from './Image';
|
|
23
|
+
export { default as Text } from './Text';
|
|
22
24
|
export { default as ProductCard } from './ProductCard';
|
|
23
25
|
export { default as FeatureCard } from './FeatureCard';
|
|
24
26
|
export { default as CardListGrid } from './CardListGrid';
|
|
@@ -31,6 +33,8 @@ export type { CoverImageHeaderProps, HeaderAction } from './CoverImageHeader';
|
|
|
31
33
|
export type { FeatureGridProps, FeatureItem as FeatureGridItem } from './FeatureGrid';
|
|
32
34
|
export type { FooterProps } from './Footer';
|
|
33
35
|
export type { SectionProps } from './Section';
|
|
36
|
+
export type { ImageProps } from './Image';
|
|
37
|
+
export type { TextProps } from './Text';
|
|
34
38
|
export type { ProductCardProps, Product, ProductCardAction } from './ProductCard';
|
|
35
39
|
export type { FeatureCardProps, FeatureItem, FeatureCardAction } from './FeatureCard';
|
|
36
40
|
export type { CardListGridProps } from './CardListGrid';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,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AC3C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClF,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACtF,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -13,9 +13,17 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
15
15
|
*/
|
|
16
|
-
import React from 'react';
|
|
16
|
+
import React, { ReactElement } from 'react';
|
|
17
17
|
import type { WithDataBinding, ModelProps } from '@qwickapps/schema';
|
|
18
18
|
import ButtonModel from '../../schemas/ButtonSchema';
|
|
19
|
+
import { ModelView } from '../base/ModelView';
|
|
20
|
+
export interface ButtonAction {
|
|
21
|
+
type: 'navigate' | 'submit' | 'custom' | 'external';
|
|
22
|
+
url?: string;
|
|
23
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
24
|
+
form?: string;
|
|
25
|
+
customHandler?: string;
|
|
26
|
+
}
|
|
19
27
|
type ButtonViewProps = ModelProps<ButtonModel> & {
|
|
20
28
|
/** Icon to display (before text) */
|
|
21
29
|
icon?: React.ReactNode;
|
|
@@ -25,14 +33,22 @@ type ButtonViewProps = ModelProps<ButtonModel> & {
|
|
|
25
33
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
26
34
|
/** Button content when using children */
|
|
27
35
|
children?: React.ReactNode;
|
|
36
|
+
/** Serializable action descriptor for buttons */
|
|
37
|
+
action?: ButtonAction;
|
|
28
38
|
};
|
|
29
39
|
export interface ButtonProps extends ButtonViewProps, WithDataBinding {
|
|
30
40
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
export declare class Button extends ModelView<ButtonProps, ButtonModel> {
|
|
42
|
+
static readonly tagName = "Button";
|
|
43
|
+
static readonly version = "1.0.0";
|
|
44
|
+
static fromJson(jsonData: any): ReactElement;
|
|
45
|
+
protected getComponentSpecificProps(): any;
|
|
46
|
+
protected renderView(): React.ReactElement;
|
|
47
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
48
|
+
static registerPatternHandlers(registry: any): void;
|
|
49
|
+
private static transformButton;
|
|
50
|
+
private static transformInputButton;
|
|
51
|
+
private static transformSubmitButton;
|
|
52
|
+
}
|
|
37
53
|
export default Button;
|
|
38
54
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,eAAe,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG;IAC/C,oCAAoC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,iCAAiC;IACjC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+BAA+B;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iDAAiD;IACjD,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,eAAe;CAAG;AAuLxE,qBAAa,MAAO,SAAQ,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IAE7D,MAAM,CAAC,QAAQ,CAAC,OAAO,YAAY;IACnC,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAgB1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;IAKrD,MAAM,CAAC,uBAAuB,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;IAkBnD,OAAO,CAAC,MAAM,CAAC,eAAe;IAqB9B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAenC,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAcrC;AAkED,eAAe,MAAM,CAAC"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* FormBlock - Reusable form layout component
|
|
2
|
+
* FormBlock - Reusable form layout component with serialization support
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* -
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* - Optional footer section
|
|
4
|
+
* Features:
|
|
5
|
+
* - Complete form layout with header, content, and footer
|
|
6
|
+
* - Status message handling (info, success, warning, error)
|
|
7
|
+
* - Cover image and logo integration
|
|
9
8
|
* - Data binding support for dynamic content
|
|
10
|
-
* -
|
|
9
|
+
* - Full serialization support via ModelView
|
|
10
|
+
* - Consistent Material-UI styling
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
13
13
|
*/
|
|
14
|
+
import React, { ReactElement } from 'react';
|
|
14
15
|
import type { ModelProps, WithDataBinding } from '@qwickapps/schema';
|
|
15
|
-
import React from 'react';
|
|
16
16
|
import FormBlockModel from '../../schemas/FormBlockSchema';
|
|
17
|
+
import { ModelView } from '../base/ModelView';
|
|
17
18
|
type FormBlockViewProps = ModelProps<FormBlockModel> & {
|
|
18
19
|
/**
|
|
19
20
|
* Custom header content - when provided, overrides the default header
|
|
@@ -36,10 +37,15 @@ type FormBlockViewProps = ModelProps<FormBlockModel> & {
|
|
|
36
37
|
};
|
|
37
38
|
export interface FormBlockProps extends FormBlockViewProps, WithDataBinding {
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
export declare class FormBlock extends ModelView<FormBlockProps, FormBlockModel> {
|
|
41
|
+
static readonly tagName = "FormBlock";
|
|
42
|
+
static readonly version = "1.0.0";
|
|
43
|
+
static fromJson(jsonData: any): ReactElement;
|
|
44
|
+
protected hasNestedComponents(children: React.ReactNode): boolean;
|
|
45
|
+
protected serializeChildren(children: React.ReactNode): any;
|
|
46
|
+
protected getComponentSpecificProps(): any;
|
|
47
|
+
protected renderView(): React.ReactElement;
|
|
48
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
49
|
+
}
|
|
44
50
|
export default FormBlock;
|
|
45
51
|
//# sourceMappingURL=FormBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormBlock.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FormBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"FormBlock.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FormBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW5C,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,kBAAkB,GAAG,UAAU,CAAC,cAAc,CAAC,GAAG;IACrD;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,kBAAkB,EAAE,eAAe;CAAI;AA0K/E,qBAAa,SAAU,SAAQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEtE,MAAM,CAAC,QAAQ,CAAC,OAAO,eAAe;IACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,OAAO;IAMjE,SAAS,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,GAAG;IAgB3D,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAe1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;CAGtD;AA2DD,eAAe,SAAS,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* All component props and exports available in QwickApps React Framework.
|
|
3
3
|
*
|
|
4
4
|
* Includes:
|
|
5
|
+
* - Base classes and abstractions
|
|
5
6
|
* - Buttons
|
|
6
7
|
* - Form inputs
|
|
7
8
|
* - Layout components
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
* - Pages and scaffolding
|
|
10
11
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
11
12
|
*/
|
|
13
|
+
export * from './base';
|
|
12
14
|
export * from './blocks';
|
|
13
15
|
export * from './buttons';
|
|
14
16
|
export * from './forms';
|
|
@@ -26,6 +28,8 @@ export { default as Logo } from './Logo';
|
|
|
26
28
|
export type { LogoProps } from './Logo';
|
|
27
29
|
export { default as QwickAppsLogo } from './QwickAppsLogo';
|
|
28
30
|
export type { QwickAppsLogoProps } from './QwickAppsLogo';
|
|
31
|
+
export { default as QwickIcon } from './QwickIcon';
|
|
32
|
+
export type { QwickIconProps } from './QwickIcon';
|
|
29
33
|
export { default as SafeSpan } from './SafeSpan';
|
|
30
34
|
export type { SafeSpanProps } from './SafeSpan';
|
|
31
35
|
export { default as Html } from './Html';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ChoiceInputField - Dynamic option inputs management component
|
|
2
|
+
* ChoiceInputField - Dynamic option inputs management component with serialization support
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* -
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
4
|
+
* Features:
|
|
5
|
+
* - Complete dynamic option input management
|
|
6
|
+
* - Rich text editing for each option (via HtmlInputField)
|
|
7
|
+
* - Data binding support for dynamic content
|
|
8
|
+
* - Full serialization support via ModelView
|
|
9
|
+
* - Consistent Material-UI styling
|
|
9
10
|
*
|
|
10
11
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
11
12
|
*/
|
|
13
|
+
import React, { ReactElement } from 'react';
|
|
12
14
|
import type { WithDataBinding, ModelProps } from '@qwickapps/schema';
|
|
13
15
|
import ChoiceInputFieldModel from '../../schemas/ChoiceInputFieldSchema';
|
|
16
|
+
import { ModelView } from '../base/ModelView';
|
|
14
17
|
type ChoiceInputFieldViewProps = ModelProps<ChoiceInputFieldModel> & {
|
|
15
18
|
/** Handler for option value changes */
|
|
16
19
|
onOptionChange?: (optionIndex: number, value: string) => void;
|
|
@@ -21,10 +24,13 @@ type ChoiceInputFieldViewProps = ModelProps<ChoiceInputFieldModel> & {
|
|
|
21
24
|
};
|
|
22
25
|
export interface ChoiceInputFieldProps extends ChoiceInputFieldViewProps, WithDataBinding {
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
export declare class ChoiceInputField extends ModelView<ChoiceInputFieldProps, ChoiceInputFieldModel> {
|
|
28
|
+
static readonly tagName = "ChoiceInputField";
|
|
29
|
+
static readonly version = "1.0.0";
|
|
30
|
+
static fromJson(jsonData: any): ReactElement;
|
|
31
|
+
protected getComponentSpecificProps(): any;
|
|
32
|
+
protected renderView(): React.ReactElement;
|
|
33
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
34
|
+
}
|
|
29
35
|
export default ChoiceInputField;
|
|
30
36
|
//# sourceMappingURL=ChoiceInputField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceInputField.d.ts","sourceRoot":"","sources":["../../../src/components/input/ChoiceInputField.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ChoiceInputField.d.ts","sourceRoot":"","sources":["../../../src/components/input/ChoiceInputField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAS5C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,yBAAyB,GAAG,UAAU,CAAC,qBAAqB,CAAC,GAAG;IACnE,uCAAuC;IACvC,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB;IACpB,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB,EAAE,eAAe;CAAG;AAuF5F,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAE3F,MAAM,CAAC,QAAQ,CAAC,OAAO,sBAAsB;IAC7C,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAc1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;CAGtD;AA2DD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* HtmlInputField - Custom HTML text field with
|
|
2
|
+
* HtmlInputField - Custom HTML text field with serialization support
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* -
|
|
6
|
-
* - HTML preview mode
|
|
7
|
-
* - Help system with supported tags
|
|
4
|
+
* Features:
|
|
5
|
+
* - Complete HTML editing with formatting toolbar
|
|
6
|
+
* - HTML preview mode and help system
|
|
8
7
|
* - HTML sanitization for security
|
|
9
|
-
* - Data binding support
|
|
8
|
+
* - Data binding support for dynamic content
|
|
9
|
+
* - Full serialization support via ModelView
|
|
10
|
+
* - Consistent Material-UI styling
|
|
10
11
|
*
|
|
11
12
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
12
13
|
*/
|
|
14
|
+
import React, { ReactElement } from 'react';
|
|
13
15
|
import type { WithDataBinding, ModelProps } from '@qwickapps/schema';
|
|
14
16
|
import HtmlInputFieldModel from '../../schemas/HtmlInputFieldSchema';
|
|
17
|
+
import { ModelView } from '../base/ModelView';
|
|
15
18
|
type HtmlInputFieldViewProps = ModelProps<HtmlInputFieldModel> & {
|
|
16
19
|
/** Change handler */
|
|
17
20
|
onChange?: (value: string) => void;
|
|
@@ -20,10 +23,13 @@ type HtmlInputFieldViewProps = ModelProps<HtmlInputFieldModel> & {
|
|
|
20
23
|
};
|
|
21
24
|
export interface HtmlInputFieldProps extends HtmlInputFieldViewProps, WithDataBinding {
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
export declare class HtmlInputField extends ModelView<HtmlInputFieldProps, HtmlInputFieldModel> {
|
|
27
|
+
static readonly tagName = "HtmlInputField";
|
|
28
|
+
static readonly version = "1.0.0";
|
|
29
|
+
static fromJson(jsonData: any): ReactElement;
|
|
30
|
+
protected getComponentSpecificProps(): any;
|
|
31
|
+
protected renderView(): React.ReactElement;
|
|
32
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
33
|
+
}
|
|
28
34
|
export default HtmlInputField;
|
|
29
35
|
//# sourceMappingURL=HtmlInputField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HtmlInputField.d.ts","sourceRoot":"","sources":["../../../src/components/input/HtmlInputField.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"HtmlInputField.d.ts","sourceRoot":"","sources":["../../../src/components/input/HtmlInputField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAsBtD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIrE,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,uBAAuB,GAAG,UAAU,CAAC,mBAAmB,CAAC,GAAG;IAC/D,qBAAqB;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB,EAAE,eAAe;CAAG;AAoNxF,qBAAa,cAAe,SAAQ,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAErF,MAAM,CAAC,QAAQ,CAAC,OAAO,oBAAoB;IAC3C,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAc1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;CAGtD;AA2DD,eAAe,cAAc,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SelectInputField - Select dropdown component with
|
|
2
|
+
* SelectInputField - Select dropdown component with serialization support
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Complete select dropdown functionality with options
|
|
6
|
+
* - Form validation and error handling
|
|
7
|
+
* - Data binding support for dynamic content
|
|
8
|
+
* - Full serialization support via ModelView
|
|
5
9
|
* - Consistent Material-UI styling
|
|
6
|
-
* - Data binding capabilities
|
|
7
|
-
* - Comprehensive option support
|
|
8
|
-
* - Focus and error handling
|
|
9
10
|
*
|
|
10
11
|
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
11
12
|
*/
|
|
13
|
+
import React, { ReactElement } from 'react';
|
|
12
14
|
import type { WithDataBinding, ModelProps } from '@qwickapps/schema';
|
|
13
15
|
import SelectInputFieldModel, { SelectOption } from '../../schemas/SelectInputFieldSchema';
|
|
16
|
+
import { ModelView } from '../base/ModelView';
|
|
14
17
|
type SelectInputFieldViewProps = ModelProps<SelectInputFieldModel> & {
|
|
15
18
|
/** Change handler */
|
|
16
19
|
onChange?: (value: string | number) => void;
|
|
@@ -20,10 +23,13 @@ type SelectInputFieldViewProps = ModelProps<SelectInputFieldModel> & {
|
|
|
20
23
|
export interface SelectInputFieldProps extends SelectInputFieldViewProps, WithDataBinding {
|
|
21
24
|
}
|
|
22
25
|
export { SelectOption };
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
export declare class SelectInputField extends ModelView<SelectInputFieldProps, SelectInputFieldModel> {
|
|
27
|
+
static readonly tagName = "SelectInputField";
|
|
28
|
+
static readonly version = "1.0.0";
|
|
29
|
+
static fromJson(jsonData: any): ReactElement;
|
|
30
|
+
protected getComponentSpecificProps(): any;
|
|
31
|
+
protected renderView(): React.ReactElement;
|
|
32
|
+
protected renderWithDataBinding(): React.ReactElement;
|
|
33
|
+
}
|
|
28
34
|
export default SelectInputField;
|
|
29
35
|
//# sourceMappingURL=SelectInputField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInputField.d.ts","sourceRoot":"","sources":["../../../src/components/input/SelectInputField.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"SelectInputField.d.ts","sourceRoot":"","sources":["../../../src/components/input/SelectInputField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW5C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,qBAAqB,EAAE,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,yBAAyB,GAAG,UAAU,CAAC,qBAAqB,CAAC,GAAG;IACnE,qBAAqB;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB,EAAE,eAAe;CAAG;AAG5F,OAAO,EAAE,YAAY,EAAE,CAAC;AA+FxB,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAE3F,MAAM,CAAC,QAAQ,CAAC,OAAO,sBAAsB;IAC7C,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAGlC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,GAAG,YAAY;IAK5C,SAAS,CAAC,yBAAyB,IAAI,GAAG;IAe1C,SAAS,CAAC,UAAU,IAAI,KAAK,CAAC,YAAY;IAM1C,SAAS,CAAC,qBAAqB,IAAI,KAAK,CAAC,YAAY;CAGtD;AA2DD,eAAe,gBAAgB,CAAC"}
|