@mojawork/ui-docs 2.3.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 +22 -0
- package/bin/serve.mjs +73 -0
- package/catalog/atoms/background.md +130 -0
- package/catalog/atoms/barcode.md +285 -0
- package/catalog/atoms/buzzer.md +210 -0
- package/catalog/atoms/card.md +174 -0
- package/catalog/atoms/chart.md +236 -0
- package/catalog/atoms/clock.md +252 -0
- package/catalog/atoms/copy-value.md +203 -0
- package/catalog/atoms/image-grid.md +208 -0
- package/catalog/atoms/image-slider.md +216 -0
- package/catalog/atoms/lang-selector.md +237 -0
- package/catalog/atoms/mosaic.md +366 -0
- package/catalog/atoms/placeholder.md +157 -0
- package/catalog/atoms/qr-code.md +334 -0
- package/catalog/atoms/rating.md +176 -0
- package/catalog/atoms/reader-doc.md +404 -0
- package/catalog/atoms/text-animate.md +122 -0
- package/catalog/atoms/thumb.md +153 -0
- package/catalog/atoms/timer.md +111 -0
- package/catalog/atoms/typewriter.md +132 -0
- package/catalog/cdk/splitter.md +63 -0
- package/catalog/cdk/table.md +188 -0
- package/catalog/forms/autocomplete.md +304 -0
- package/catalog/forms/checkbox.md +218 -0
- package/catalog/forms/input.md +193 -0
- package/catalog/forms/slider.md +142 -0
- package/catalog/forms/switch.md +188 -0
- package/catalog/guide.json +1209 -0
- package/catalog/layout/header.md +167 -0
- package/catalog/layout/main.md +158 -0
- package/catalog/layout/media-screen.md +163 -0
- package/catalog/layout/nav.md +181 -0
- package/catalog/layout/overlay.md +256 -0
- package/catalog/layout/spinner.md +94 -0
- package/catalog/layout/splitter.md +331 -0
- package/catalog/layout/tabs.md +144 -0
- package/catalog/layout/top-scroll-bottom.md +98 -0
- package/catalog/manifest.json +482 -0
- package/catalog/mcp.json +44 -0
- package/catalog/molecules/image-editor.md +285 -0
- package/catalog/usage.md +137 -0
- package/catalog/version.json +4 -0
- package/package.json +10 -0
- package/storybook/1183.da25800b.iframe.bundle.js +1 -0
- package/storybook/1255.2abec879.iframe.bundle.js +2 -0
- package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
- package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
- package/storybook/2089.32694489.iframe.bundle.js +1 -0
- package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
- package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
- package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
- package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
- package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
- package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
- package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
- package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
- package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
- package/storybook/3899.55560628.iframe.bundle.js +2 -0
- package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
- package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
- package/storybook/4425.368129b3.iframe.bundle.js +2 -0
- package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
- package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
- package/storybook/4555.066c242d.iframe.bundle.js +1 -0
- package/storybook/4755.e4656207.iframe.bundle.js +23 -0
- package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
- package/storybook/4935.8959522b.iframe.bundle.js +1 -0
- package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
- package/storybook/5944.810cb147.iframe.bundle.js +1 -0
- package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
- package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
- package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
- package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/660.18f0458e.iframe.bundle.js +1 -0
- package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
- package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
- package/storybook/7749.2a853795.iframe.bundle.js +1 -0
- package/storybook/8051.719eb790.iframe.bundle.js +1 -0
- package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
- package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
- package/storybook/871.428deceb.iframe.bundle.js +1 -0
- package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
- package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
- package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/9560.668052f3.iframe.bundle.js +7 -0
- package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
- package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
- package/storybook/9850.28367747.iframe.bundle.js +1 -0
- package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
- package/storybook/MaterialIcons-Regular.woff2 +0 -0
- package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/storybook/PetMe64.ttf +0 -0
- package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
- package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
- package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
- package/storybook/assets/fonts/PetMe64.ttf +0 -0
- package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
- package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
- package/storybook/assets/ui/documents/demo.pdf +42 -0
- package/storybook/assets/ui/i18n/de-DE.json +1 -0
- package/storybook/assets/ui/i18n/en-EN.json +2 -0
- package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
- package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
- package/storybook/assets/ui/images/600x600.png +0 -0
- package/storybook/assets/ui/images/600x800.png +0 -0
- package/storybook/assets/ui/images/800x600.png +0 -0
- package/storybook/assets/ui/images/unknown.gif +0 -0
- package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
- package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
- package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
- package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
- package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
- package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
- package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
- package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
- package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
- package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
- package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
- package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
- package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
- package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
- package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
- package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
- package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
- package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
- package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
- package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
- package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
- package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
- package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
- package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
- package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
- package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
- package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
- package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
- package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
- package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
- package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
- package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
- package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
- package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
- package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
- package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
- package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
- package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
- package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
- package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
- package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
- package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
- package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
- package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
- package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
- package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
- package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
- package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
- package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
- package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
- package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
- package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
- package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
- package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/favicon-wrapper.svg +46 -0
- package/storybook/favicon.svg +1 -0
- package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
- package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
- package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
- package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
- package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
- package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
- package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
- package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
- package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
- package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
- package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
- package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
- package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
- package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
- package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
- package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
- package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
- package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
- package/storybook/iframe.html +558 -0
- package/storybook/index.html +155 -0
- package/storybook/index.json +1 -0
- package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
- package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
- package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
- package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
- package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
- package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
- package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
- package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
- package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
- package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
- package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
- package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
- package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
- package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
- package/storybook/main.2d116a57.iframe.bundle.js +1 -0
- package/storybook/main.a402659c6a0734088d14.css +2101 -0
- package/storybook/mocker-runtime-injected.js +1 -0
- package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
- package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
- package/storybook/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook/nunito-sans-bold.woff2 +0 -0
- package/storybook/nunito-sans-italic.woff2 +0 -0
- package/storybook/nunito-sans-regular.woff2 +0 -0
- package/storybook/project.json +1 -0
- package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
- package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
- package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook/sb-common-assets/favicon.svg +1 -0
- package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook/sb-manager/globals-runtime.js +76714 -0
- package/storybook/sb-manager/globals.js +24 -0
- package/storybook/sb-manager/manager-stores.js +23 -0
- package/storybook/sb-manager/runtime.js +27451 -0
- package/storybook/sb-preview/globals.js +20 -0
- package/storybook/sb-preview/runtime.js +35491 -0
- package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
- package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
- package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
- package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
- package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
- package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
- package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
- package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
- package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
- package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
- package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
- package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
- package/storybook/version.json +4 -0
- package/version.json +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9946],{"../web-components/dist/esm/WaveParser-D8ea-SeF.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WaveParser:()=>WaveParser});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../web-components/dist/esm/mwork-banner.mwork-basic-interpreter.mwork-music-player-CKnbZ8Ik.js"),_ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../web-components/dist/esm/ID3v2Parser-DLpVzYcQ.js");__webpack_require__("../web-components/dist/esm/index-BCPpAKCl.js");const Header={len:8,get:(buf,off)=>({chunkID:new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(4,"latin1").get(buf,off),chunkSize:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+4)})};class ListInfoTagValue{constructor(tagHeader){this.tagHeader=tagHeader,this.len=tagHeader.chunkSize,this.len+=1&this.len}get(buf,off){return new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(this.tagHeader.chunkSize,"ascii").get(buf,off)}}class WaveContentError extends((0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.m)("Wave")){}const WaveFormat_PCM=1,WaveFormat_ADPCM=2,WaveFormat_IEEE_FLOAT=3,WaveFormat_ALAW=6,WaveFormat_MULAW=7,WaveFormat_DVI_ADPCM=17,WaveFormat_GSM610=49,WaveFormat_MPEG_ADTS_AAC=5632,WaveFormat_MPEG_LOAS=5634,WaveFormat_RAW_AAC1=255,WaveFormat_DOLBY_AC3_SPDIF=146,WaveFormat_DVM=8192,WaveFormat_RAW_SPORT=576,WaveFormat_ESST_AC3=577,WaveFormat_DRM=9,WaveFormat_DTS2=8193,WaveFormat_MPEG=80,WaveFormat_MPEGLAYER3=85,WaveFormatNameMap={[WaveFormat_PCM]:"PCM",[WaveFormat_ADPCM]:"ADPCM",[WaveFormat_IEEE_FLOAT]:"IEEE_FLOAT",[WaveFormat_ALAW]:"ALAW",[WaveFormat_MULAW]:"MULAW",[WaveFormat_DVI_ADPCM]:"DVI_ADPCM",[WaveFormat_GSM610]:"GSM610",[WaveFormat_MPEG_ADTS_AAC]:"MPEG_ADTS_AAC",[WaveFormat_MPEG_LOAS]:"MPEG_LOAS",[WaveFormat_RAW_AAC1]:"RAW_AAC1",[WaveFormat_DOLBY_AC3_SPDIF]:"DOLBY_AC3_SPDIF",[WaveFormat_DVM]:"DVM",[WaveFormat_RAW_SPORT]:"RAW_SPORT",[WaveFormat_ESST_AC3]:"ESST_AC3",[WaveFormat_DRM]:"DRM",[WaveFormat_DTS2]:"DTS2",[WaveFormat_MPEG]:"MPEG",[WaveFormat_MPEGLAYER3]:"MPEGLAYER3"};class Format{constructor(header){if(header.chunkSize<16)throw new WaveContentError("Invalid chunk size");this.len=header.chunkSize}get(buf,off){return{wFormatTag:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(buf,off),nChannels:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(buf,off+2),nSamplesPerSec:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+4),nAvgBytesPerSec:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off+8),nBlockAlign:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(buf,off+12),wBitsPerSample:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(buf,off+14)}}}class FactChunk{constructor(header){if(header.chunkSize<4)throw new WaveContentError("Invalid fact chunk size.");this.len=header.chunkSize}get(buf,off){return{dwSampleLength:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(buf,off)}}}const BroadcastAudioExtensionChunk={len:420,get:(uint8array,off)=>({description:(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.s)(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(256,"ascii").get(uint8array,off)).trim(),originator:(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.s)(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(32,"ascii").get(uint8array,off+256)).trim(),originatorReference:(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.s)(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(32,"ascii").get(uint8array,off+288)).trim(),originationDate:(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.s)(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(10,"ascii").get(uint8array,off+320)).trim(),originationTime:(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.s)(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(8,"ascii").get(uint8array,off+330)).trim(),timeReferenceLow:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(uint8array,off+338),timeReferenceHigh:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.f.get(uint8array,off+342),version:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(uint8array,off+346),umid:new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.d(64).get(uint8array,off+348),loudnessValue:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(uint8array,off+412),maxTruePeakLevel:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(uint8array,off+414),maxMomentaryLoudness:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(uint8array,off+416),maxShortTermLoudness:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.j.get(uint8array,off+418)})},debug=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.c)("music-metadata:parser:RIFF");class WaveParser extends _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.B{constructor(){super(...arguments),this.blockAlign=0,this.avgBytesPerSec=0}parse(){var _this=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){const riffHeader=yield _this.tokenizer.readToken(Header);if(debug(`pos=${_this.tokenizer.position}, parse: chunkID=${riffHeader.chunkID}`),"RIFF"===riffHeader.chunkID)return _this.metadata.setAudioOnly(),_this.parseRiffChunk(riffHeader.chunkSize).catch(err=>{if(!(err instanceof _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.E))throw err})})()}parseRiffChunk(chunkSize){var _this2=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){const type=yield _this2.tokenizer.readToken(_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F);if(_this2.metadata.setFormat("container",type),"WAVE"===type)return _this2.readWaveChunk(chunkSize-_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F.len);throw new WaveContentError(`Unsupported RIFF format: RIFF/${type}`)})()}readWaveChunk(remaining){var _this3=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){for(;remaining>=Header.len;){const header=yield _this3.tokenizer.readToken(Header);switch(remaining-=Header.len+header.chunkSize,header.chunkSize>remaining&&_this3.metadata.addWarning("Data chunk size exceeds file size"),_this3.header=header,debug(`pos=${_this3.tokenizer.position}, readChunk: chunkID=RIFF/WAVE/${header.chunkID}`),header.chunkID){case"LIST":yield _this3.parseListTag(header);break;case"fact":_this3.metadata.setFormat("lossless",!1),_this3.fact=yield _this3.tokenizer.readToken(new FactChunk(header));break;case"fmt ":{const fmt=yield _this3.tokenizer.readToken(new Format(header));let subFormat=WaveFormatNameMap[fmt.wFormatTag];subFormat||(debug(`WAVE/non-PCM format=${fmt.wFormatTag}`),subFormat=`non-PCM (${fmt.wFormatTag})`),_this3.metadata.setFormat("codec",subFormat),_this3.metadata.setFormat("bitsPerSample",fmt.wBitsPerSample),_this3.metadata.setFormat("sampleRate",fmt.nSamplesPerSec),_this3.metadata.setFormat("numberOfChannels",fmt.nChannels),_this3.blockAlign=fmt.nBlockAlign,_this3.avgBytesPerSec=fmt.nAvgBytesPerSec;break}case"id3 ":case"ID3 ":{const id3_data=yield _this3.tokenizer.readToken(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.d(header.chunkSize)),rst=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.n)(id3_data);yield(new _ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_2__.I).parse(_this3.metadata,rst,_this3.options);break}case"data":{!1!==_this3.metadata.format.lossless&&_this3.metadata.setFormat("lossless",!0);let chunkSize=header.chunkSize;if(_this3.tokenizer.fileInfo.size){const calcRemaining=_this3.tokenizer.fileInfo.size-_this3.tokenizer.position;calcRemaining<chunkSize&&(_this3.metadata.addWarning("data chunk length exceeding file length"),chunkSize=calcRemaining)}const numberOfSamples=_this3.fact?_this3.fact.dwSampleLength:4294967295===chunkSize?void 0:chunkSize/_this3.blockAlign;numberOfSamples&&(_this3.metadata.setFormat("numberOfSamples",numberOfSamples),_this3.metadata.format.sampleRate&&_this3.metadata.setFormat("duration",numberOfSamples/_this3.metadata.format.sampleRate)),_this3.avgBytesPerSec>0?_this3.metadata.setFormat("bitrate",8*_this3.avgBytesPerSec):_this3.metadata.format.duration&&_this3.metadata.setFormat("bitrate",8*chunkSize/_this3.metadata.format.duration),yield _this3.tokenizer.ignore(header.chunkSize);break}case"bext":{const bext=yield _this3.tokenizer.readToken(BroadcastAudioExtensionChunk);Object.keys(bext).forEach(key=>{_this3.metadata.addTag("exif",`bext.${key}`,bext[key])});const bextRemaining=header.chunkSize-BroadcastAudioExtensionChunk.len;yield _this3.tokenizer.ignore(bextRemaining);break}case"\0\0\0\0":debug(`Ignore padding chunk: RIFF/${header.chunkID} of ${header.chunkSize} bytes`),_this3.metadata.addWarning(`Ignore chunk: RIFF/${header.chunkID}`),yield _this3.tokenizer.ignore(header.chunkSize);break;default:debug(`Ignore chunk: RIFF/${header.chunkID} of ${header.chunkSize} bytes`),_this3.metadata.addWarning(`Ignore chunk: RIFF/${header.chunkID}`),yield _this3.tokenizer.ignore(header.chunkSize)}_this3.header.chunkSize%2==1&&(debug("Read odd padding byte"),yield _this3.tokenizer.ignore(1))}})()}parseListTag(listHeader){var _this4=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){const listType=yield _this4.tokenizer.readToken(new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.S(4,"latin1"));return debug("pos=%s, parseListTag: chunkID=RIFF/WAVE/LIST/%s",_this4.tokenizer.position,listType),"INFO"===listType?_this4.parseRiffInfoTags(listHeader.chunkSize-4):(_this4.metadata.addWarning(`Ignore chunk: RIFF/WAVE/LIST/${listType}`),debug(`Ignoring chunkID=RIFF/WAVE/LIST/${listType}`),_this4.tokenizer.ignore(listHeader.chunkSize-4).then())})()}parseRiffInfoTags(chunkSize){var _this5=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){for(;chunkSize>=8;){const header=yield _this5.tokenizer.readToken(Header),valueToken=new ListInfoTagValue(header),value=yield _this5.tokenizer.readToken(valueToken);_this5.addTag(header.chunkID,(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.s)(value)),chunkSize-=8+valueToken.len}if(0!==chunkSize)throw new WaveContentError(`Illegal remaining size: ${chunkSize}`)})()}addTag(id,value){this.metadata.addTag("exif",id,value)}}}}]);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[6501,7867],{"./libs/ui/src/lib/_external/mwork-banner/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_mwork_banner_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_mwork_banner_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"external-mwork-banner",children:"External: Mwork Banner"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<mwork-banner>"})," is a marquee — a text line scrolling from right to left, the\nway a 90s homepage would have it — as a framework-agnostic web component\n(Stencil, from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"web-components"})," repo, published as\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@mojawork/web-components"}),"). One animation, no controls, no events: the text\nenters from the right edge, leaves at the left, and starts over."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_banner_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Property / attribute"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"10rem"},children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"text"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'moja.work'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The text to display."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"speed"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'10s'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Duration of one full cycle, as a CSS time (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'10s'"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'500ms'"}),"). One cycle is the content's own width plus the\nbanner's — a longer text at the same speed therefore moves faster."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"font-size"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"fontSize"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'16px'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Font size, any CSS length."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"color"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'black'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Text color, any CSS color."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"background-color"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"backgroundColor"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"'transparent'"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Background color, any CSS color."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The one styling hook beyond the properties is the font: the component uses\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--font-family-mwork"})," when set (falling back to verdana), so a host\npage can hand its own face down without an attribute."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variants",children:"Variants"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Speed is a feel, not a number to know in advance — the two variants frame the\nuseful range:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_banner_stories__WEBPACK_IMPORTED_MODULE_4__.Slow}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_banner_stories__WEBPACK_IMPORTED_MODULE_4__.Fast}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"usage-in-an-app",children:"Usage in an app"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-bash",children:"npm i @mojawork/web-components\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"// main.ts — registers all mwork components once\nimport { defineCustomElements } from '@mojawork/web-components/loader';\ndefineCustomElements();\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<mwork-banner\n text="Now playing: everything, on repeat"\n speed="12s"\n font-size="2rem"\n color="white"\n background-color="black"\n></mwork-banner>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In Angular templates, bind the properties directly (requires\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CUSTOM_ELEMENTS_SCHEMA"}),"): ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'[text]="headline"'}),"."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Fast:()=>Fast,Slow:()=>Slow,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js");(0,__webpack_require__("../web-components/loader/index.js").u)();const __WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Banner",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],render:args=>({props:args,template:'\n <mwork-banner\n [text]="text"\n [speed]="speed"\n [fontSize]="fontSize"\n [color]="color"\n [backgroundColor]="backgroundColor">\n </mwork-banner>\n '}),argTypes:{text:{control:"text"},speed:{control:"text"},fontSize:{control:"text"},color:{control:"color"},backgroundColor:{control:"color"}}},Default={args:{text:"moja.work banner component",speed:"10s",fontSize:"20px",color:"white",backgroundColor:"black"}},Slow={args:{...Default.args,text:"a slow banner takes its time",speed:"30s",backgroundColor:"#333"}},Fast={args:{...Default.args,text:"a fast one does not",speed:"3s",backgroundColor:"red"}},__namedExportsOrder=["Default","Slow","Fast"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n text: 'moja.work banner component',\n speed: '10s',\n fontSize: '20px',\n color: 'white',\n backgroundColor: 'black'\n }\n}",...Default.parameters?.docs?.source}}},Slow.parameters={...Slow.parameters,docs:{...Slow.parameters?.docs,source:{originalSource:"{\n args: {\n ...Default.args,\n text: 'a slow banner takes its time',\n speed: '30s',\n backgroundColor: '#333'\n }\n}",...Slow.parameters?.docs?.source}}},Fast.parameters={...Fast.parameters,docs:{...Fast.parameters?.docs,source:{originalSource:"{\n args: {\n ...Default.args,\n text: 'a fast one does not',\n speed: '3s',\n backgroundColor: 'red'\n }\n}",...Fast.parameters?.docs?.source}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[7867],{"./libs/ui/src/lib/_external/mwork-banner/mwork-banner.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,Fast:()=>Fast,Slow:()=>Slow,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js");(0,__webpack_require__("../web-components/loader/index.js").u)();const __WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Banner",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],render:args=>({props:args,template:'\n <mwork-banner\n [text]="text"\n [speed]="speed"\n [fontSize]="fontSize"\n [color]="color"\n [backgroundColor]="backgroundColor">\n </mwork-banner>\n '}),argTypes:{text:{control:"text"},speed:{control:"text"},fontSize:{control:"text"},color:{control:"color"},backgroundColor:{control:"color"}}},Default={args:{text:"moja.work banner component",speed:"10s",fontSize:"20px",color:"white",backgroundColor:"black"}},Slow={args:{...Default.args,text:"a slow banner takes its time",speed:"30s",backgroundColor:"#333"}},Fast={args:{...Default.args,text:"a fast one does not",speed:"3s",backgroundColor:"red"}},__namedExportsOrder=["Default","Slow","Fast"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: {\n text: 'moja.work banner component',\n speed: '10s',\n fontSize: '20px',\n color: 'white',\n backgroundColor: 'black'\n }\n}",...Default.parameters?.docs?.source}}},Slow.parameters={...Slow.parameters,docs:{...Slow.parameters?.docs,source:{originalSource:"{\n args: {\n ...Default.args,\n text: 'a slow banner takes its time',\n speed: '30s',\n backgroundColor: '#333'\n }\n}",...Slow.parameters?.docs?.source}}},Fast.parameters={...Fast.parameters,docs:{...Fast.parameters?.docs,source:{originalSource:"{\n args: {\n ...Default.args,\n text: 'a fast one does not',\n speed: '3s',\n backgroundColor: 'red'\n }\n}",...Fast.parameters?.docs?.source}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2379,3752],{"./libs/ui/src/lib/_external/mwork-basic-interpreter/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"external-mwork-basic-interpreter",children:"External: Mwork Basic Interpreter"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<mwork-basic-interpreter>"})," is a Commodore 64 with a ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"complete BASIC V2 interpreter"})," as a\nframework-agnostic web component (Stencil, from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"web-components"})," repo). It boots to an\nauthentic ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"READY."})," prompt on a real 40×25 PETSCII screen — click the screen and start typing."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The interpreter core is DOM-free TypeScript (tokenizer → parser → step-machine executor);\nthe component is a thin shell that renders the screen model, maps keyboard events to PETSCII\nand pumps the machine with a statement budget — even ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"10 GOTO 10"})," stays interruptible."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"try-it",children:"Try it"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Click the screen, then type — every statement works in direct mode, just like on real hardware:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"22rem"},children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What happens"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT 2+3*4"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Full expression engine with authentic precedence (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-2^2"})," = ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-4"}),")."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'10 FOR I=1 TO 5:PRINT "HI";I:NEXT'})," then ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Enter numbered lines to build a program; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LIST"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"NEW"})," manage it."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE 53280,0"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"The border really turns black — VIC registers 53280/53281 are live."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'SAVE "DEMO"'})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD "DEMO"'})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD "$"'})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:['The "datasette" persists programs to localStorage; ',(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD "$"'})," lists the directory."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"10 GOTO 10"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"}),", then Escape"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Escape (or the STOP button) is RUN/STOP: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"BREAK IN 10"}),", resume with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CONT"}),"."]})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"language-coverage-basic-v2",children:"Language coverage (BASIC V2)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"12rem"},children:"Area"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Supported"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Statements"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT"})," (with ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:";"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:","})," zones, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TAB"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"SPC"}),"),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LET"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"INPUT"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"GET"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"IF..THEN"})," (incl. statement tails),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"GOTO"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"GOSUB"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RETURN"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ON..GOTO/GOSUB"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"FOR/TO/STEP/NEXT"})," (nested, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"NEXT A,B"}),"), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DIM"})," (multi-dimensional),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DATA/READ/RESTORE"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DEF FN"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"REM"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"STOP/CONT"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"END"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CLR"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"NEW"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LIST"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"RUN"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"WAIT"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE/PEEK"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"SYS/USR"})," (stubs),\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LOAD/SAVE/VERIFY"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'LOAD"$"'})]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Functions"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ABS ASC ATN CHR$ COS EXP FRE INT LEFT$ LEN LOG MID$ PEEK POS RIGHT$ RND SGN SIN\nSPC SQR STR$ TAB TAN USR VAL"})," plus the system variables ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TI"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TI$"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ST"})]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Expressions"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Full precedence chain (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"OR < AND < NOT < relational < + - < * / <\nunary - < ^"}),"), string concatenation and comparison, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"AND/OR/NOT"})," as\n16-bit integer operations, relational results are ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"-1"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"0"})]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Variables"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Typed by suffix (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"A"})," float, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"A%"})," int16, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"A$"})," string),\nonly the first two characters are significant (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"VALUE"})," ≡ ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"VA"}),"),\narrays with auto-",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DIM"}),", separate scalar/array namespaces"]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Errors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Authentic messages: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?SYNTAX ERROR IN 10"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?NEXT WITHOUT FOR"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?OUT OF DATA"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?REDO FROM START"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?ILLEGAL QUANTITY"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?TYPE MISMATCH"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?DEVICE NOT PRESENT"}),", …"]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Tokenizer"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["ROM-order keyword crunching without whitespace — ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"FORI=1TO10"})," works, and\nvariable names cannot contain keywords (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TOTAL"})," crunches to\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TO TAL"}),"; that quirk is authentic), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"?"})," is ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT"})]})})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"screen--keyboard",children:"Screen & keyboard"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The 40×25 screen is a real memory model: screen RAM at 1024–2023 (authentic screen codes,\nso ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PEEK"})," works), color RAM at 55296+, border/background via\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE 53280/53281"}),", PETSCII control codes (CLR/HOME, cursor moves, reverse video,\ncolors), scrolling and a blinking cursor. Non-PETSCII unicode printed by scripts renders as\nits own glyph while ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PEEK"})," stays sane. The pixel font is\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"Pet Me 64"})," (Kreative Korp, license shipped alongside)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"16rem"},children:"Key"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"PETSCII meaning"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Enter / Backspace"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"RETURN / DEL"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Arrow keys, Home, Shift+Home"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Cursor moves, HOME, CLR"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Ctrl+1 … Ctrl+8"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Text colors (black, white, red, cyan, purple, green, blue, yellow)"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Ctrl+9 / Ctrl+0"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Reverse video on / off"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Escape"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"RUN/STOP (break a running program)"})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h5,{id:"global-hotkeys-of-the-host-page-the-typing-1-breaks-the-editor-problem",children:'Global hotkeys of the host page (the "typing 1 breaks the editor" problem)'}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The screen is a focusable ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"div"}),", not an ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"<input>"}),". Host pages\nthat bind global keyboard shortcuts usually only exempt form fields — Storybook, for\nexample, checks ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"focusInInput()"})," (input/textarea/contenteditable) and otherwise\ntreats bare ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"1"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"2"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"3"})," as focus shortcuts (sidebar /\npreview / addons panel) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"Escape"})," as a UI shortcut. Typing a BASIC line\nnumber like ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"10 PRINT"})," would yank the focus into the sidebar and every further\nkeystroke would land in the host UI — which feels like a crashed editor."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The component solves this at the source: every key it handles is swallowed with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"preventDefault()"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"and"})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"stopPropagation()"}),", so the\nevent never reaches the host page's ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"window"}),"-level listeners. Unmapped keys\n(Tab, function keys) bubble as usual, so focus navigation and browser shortcuts keep\nworking. The toolbar buttons additionally hand the keyboard focus back to the screen after\na click, so you can keep typing right away."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"demo-programs-toolbar-buttons",children:"Demo programs (toolbar buttons)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"12rem"},children:"Demo"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"What it shows"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Credits"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Simple PRINT sequence with CHR$(147) screen clear."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Pacman"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Fills all 1000 screen cells with dots via POKE, then eats them in a spiral from the\noutside in (GOSUB routine, TI-clock pacing), blinks at the last dot and vanishes."})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Maze"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["The classic one-liner ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT CHR$(205.5+RND(1));"})," — stop it with STOP."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Guess"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"INPUT-driven number guessing game — just start typing (the toolbar buttons hand keyboard focus back to the screen)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Cactus"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A small text adventure: cactus Carl searches for his butterfly friend Fridolin across\nfive rooms (commands: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"N S E W"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"TAKE"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"DIG"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"WATER"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LOOK"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"QUIT"}),"). Fetch the shovel from the\ndune, water from the oasis, loosen the meadow soil, then water the flowers — solvable\nin 8 turns. Shows string INPUT, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"ON GOTO"})," room dispatch and GOSUB-based\nmovement."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Colors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Cycles the border through all 16 colors and prints reverse-video bars."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"properties-methods-events",children:"Properties, methods, events"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"16rem"},children:"API"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"print-delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Delay in ms after each PRINT statement (typewriter pacing, default 100)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"load-delay"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Delay in ms between loading a script and its auto-RUN (default 3000)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"src"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"hot-reload"})," + ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"polling-interval-ms"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Load a .bas file from a URL, optionally polling it for changes (live hot reload)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"show-toolbar"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Show the navigation sidebar right of the screen (default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"}),"): demo buttons\non top, STOP/EXIT pinned to the bottom. It is exactly as tall as the screen frame,\nscrolls vertically when space runs out, and is colored through the active\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"theme"})," palette (and follows ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"POKE 53280/53281"}),")."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"theme"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Monitor look: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"color"})," (default), ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"green"})," (green phosphor) or\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"bw"})," (black-and-white tube). The monochrome palettes are derived from the\nluminance of the 16 hardware colors, so POKEd colors stay distinguishable."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"run()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"stop()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"loadProgram(text)"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"reset()"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Programmatic control from the embedding app."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"mworkBasicState"})," event"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:["Machine state changes: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"idle"})," | ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"running"})," | ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"stopped"}),"."]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"exit"})," event"]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Fired by the EXIT button — lets the embedding app close the C64."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"documented-simplifications",children:"Documented simplifications"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Line-input editing instead of the C64 full-screen editor; ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"LIST"})," echoes the stored\nsource text (no de-tokenization); device I/O (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"OPEN"}),"/",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"PRINT#"}),"/…) raises\nauthentic errors; no SID sound."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"fast-pacing",children:"Fast pacing"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Lower delays for quick experiments:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.FastPacing}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"without-toolbar",children:"Without toolbar"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["For embeddings that bring their own controls (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'show-toolbar="false"'})," — use the\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"run()/stop()/loadProgram()"})," methods and the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"exit"})," event instead):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.WithoutToolbar}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"monitor-themes",children:"Monitor themes"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'theme="green"'})," — the classic green phosphor monitor:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.GreenMonitor}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'theme="bw"'})," — a black-and-white tube:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_basic_interpreter_stories__WEBPACK_IMPORTED_MODULE_4__.BlackAndWhite})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BlackAndWhite:()=>BlackAndWhite,Default:()=>Default,FastPacing:()=>FastPacing,GreenMonitor:()=>GreenMonitor,WithoutToolbar:()=>WithoutToolbar,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),storybook_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/actions");(0,__webpack_require__("../web-components/loader/index.js").u)();const __WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Basic Interpreter",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],argTypes:{printDelay:{control:{type:"range",min:0,max:500,step:5},description:"Delay in ms after each PRINT statement (typewriter pacing)."},loadDelay:{control:{type:"range",min:0,max:1e4,step:100},description:"Delay in ms between loading a script and its auto-RUN."},showToolbar:{control:"boolean",description:"Show the toolbar with the demo/STOP/EXIT buttons."},theme:{control:"radio",options:["color","green","bw"],description:"Monitor look: 'color' (default), 'green' (phosphor) or 'bw' (b/w tube)."},exit:{control:!1,description:"Emitted by the EXIT button."},mworkBasicState:{control:!1,description:"Machine state: idle | running | stopped."}},args:{printDelay:100,loadDelay:3e3,showToolbar:!0,theme:"color"},render:args=>({props:{...args,exit:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("exit"),mworkBasicState:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkBasicState")},template:'\n <div class="flex justify-center p-4">\n <mwork-basic-interpreter\n [attr.print-delay]="printDelay"\n [attr.load-delay]="loadDelay"\n [attr.show-toolbar]="showToolbar"\n [attr.theme]="theme"\n (exit)="exit($event)"\n (mworkBasicState)="mworkBasicState($event)"\n ></mwork-basic-interpreter>\n </div>\n '})},Default={},FastPacing={args:{printDelay:10,loadDelay:500}},WithoutToolbar={args:{showToolbar:!1}},GreenMonitor={args:{theme:"green"}},BlackAndWhite={args:{theme:"bw"}},__namedExportsOrder=["Default","FastPacing","WithoutToolbar","GreenMonitor","BlackAndWhite"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},FastPacing.parameters={...FastPacing.parameters,docs:{...FastPacing.parameters?.docs,source:{originalSource:"{\n args: {\n printDelay: 10,\n loadDelay: 500\n }\n}",...FastPacing.parameters?.docs?.source}}},WithoutToolbar.parameters={...WithoutToolbar.parameters,docs:{...WithoutToolbar.parameters?.docs,source:{originalSource:"{\n args: {\n showToolbar: false\n }\n}",...WithoutToolbar.parameters?.docs?.source}}},GreenMonitor.parameters={...GreenMonitor.parameters,docs:{...GreenMonitor.parameters?.docs,source:{originalSource:"{\n args: {\n theme: 'green'\n }\n}",...GreenMonitor.parameters?.docs?.source}}},BlackAndWhite.parameters={...BlackAndWhite.parameters,docs:{...BlackAndWhite.parameters?.docs,source:{originalSource:"{\n args: {\n theme: 'bw'\n }\n}",...BlackAndWhite.parameters?.docs?.source}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[2379],{"./libs/ui/src/lib/_external/mwork-basic-interpreter/mwork-basic-interpreter.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BlackAndWhite:()=>BlackAndWhite,Default:()=>Default,FastPacing:()=>FastPacing,GreenMonitor:()=>GreenMonitor,WithoutToolbar:()=>WithoutToolbar,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),storybook_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/actions");(0,__webpack_require__("../web-components/loader/index.js").u)();const __WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Basic Interpreter",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],argTypes:{printDelay:{control:{type:"range",min:0,max:500,step:5},description:"Delay in ms after each PRINT statement (typewriter pacing)."},loadDelay:{control:{type:"range",min:0,max:1e4,step:100},description:"Delay in ms between loading a script and its auto-RUN."},showToolbar:{control:"boolean",description:"Show the toolbar with the demo/STOP/EXIT buttons."},theme:{control:"radio",options:["color","green","bw"],description:"Monitor look: 'color' (default), 'green' (phosphor) or 'bw' (b/w tube)."},exit:{control:!1,description:"Emitted by the EXIT button."},mworkBasicState:{control:!1,description:"Machine state: idle | running | stopped."}},args:{printDelay:100,loadDelay:3e3,showToolbar:!0,theme:"color"},render:args=>({props:{...args,exit:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("exit"),mworkBasicState:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkBasicState")},template:'\n <div class="flex justify-center p-4">\n <mwork-basic-interpreter\n [attr.print-delay]="printDelay"\n [attr.load-delay]="loadDelay"\n [attr.show-toolbar]="showToolbar"\n [attr.theme]="theme"\n (exit)="exit($event)"\n (mworkBasicState)="mworkBasicState($event)"\n ></mwork-basic-interpreter>\n </div>\n '})},Default={},FastPacing={args:{printDelay:10,loadDelay:500}},WithoutToolbar={args:{showToolbar:!1}},GreenMonitor={args:{theme:"green"}},BlackAndWhite={args:{theme:"bw"}},__namedExportsOrder=["Default","FastPacing","WithoutToolbar","GreenMonitor","BlackAndWhite"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},FastPacing.parameters={...FastPacing.parameters,docs:{...FastPacing.parameters?.docs,source:{originalSource:"{\n args: {\n printDelay: 10,\n loadDelay: 500\n }\n}",...FastPacing.parameters?.docs?.source}}},WithoutToolbar.parameters={...WithoutToolbar.parameters,docs:{...WithoutToolbar.parameters?.docs,source:{originalSource:"{\n args: {\n showToolbar: false\n }\n}",...WithoutToolbar.parameters?.docs?.source}}},GreenMonitor.parameters={...GreenMonitor.parameters,docs:{...GreenMonitor.parameters?.docs,source:{originalSource:"{\n args: {\n theme: 'green'\n }\n}",...GreenMonitor.parameters?.docs?.source}}},BlackAndWhite.parameters={...BlackAndWhite.parameters,docs:{...BlackAndWhite.parameters?.docs,source:{originalSource:"{\n args: {\n theme: 'bw'\n }\n}",...BlackAndWhite.parameters?.docs?.source}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1365,3260],{"./libs/ui/src/lib/_external/mwork-music-player/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"external-mwork-music-player",children:"External: Mwork Music Player"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<mwork-music-player>"})," is a minimal music player as a framework-agnostic web component\n(Stencil, from the ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"web-components"})," repo, published as ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"@mojawork/web-components"}),"). It wraps\na native ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"<audio>"})," element with playlist buttons, prev/next/play/pause controls and a\nmetadata section that fetches the active track and displays its ID3 tags — title, album,\nartist and embedded cover, plus the full format and generic tag tables (parsed with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"music-metadata"}),", the package's only runtime dependency)."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The playlist is fully consumer-provided: the component ships without any built-in URLs.\nThe playlist below is a demo configured in this story."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.Default}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"properties",children:"Properties"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Property / attribute"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"10rem"},children:"Type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"8rem"},children:"Default"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Description"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"tracks"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"string[] | string"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"[]"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The playlist. As a property a real string array; as an attribute a JSON array string\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'\'["a.mp3","b.mp3"]\''}),") or a comma/newline separated list of URLs."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"show-meta"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"showMeta"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"boolean"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"true"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Show the metadata section (cover and tag tables) below the controls."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"events",children:"Events"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Event"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Payload"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"mworkTrackChange"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"{ index: number, url: string }"})," — fired whenever the active\ntrack changes, including the initial track."]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"mworkMusicMeta"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Essential metadata after a successful parse: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"title"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"track"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"album"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"artist"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"image"})," (base64 data URL of the\ncover) and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"url"}),"."]})})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"methods",children:"Methods"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{style:{width:"14rem"},children:"Method"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"Effect"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"play()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"pause()"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Start or pause playback of the loaded track."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("td",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"prev()"})," / ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"next()"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Move through the playlist (no-ops at the first/last track)."})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"selectTrack(index)"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"Load and play the track at the given playlist index."})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variants",children:"Variants"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Without the metadata section (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'show-meta="false"'}),"):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.WithoutMeta}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A single track hides the playlist buttons:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.SingleTrack}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"theming",children:"Theming"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The player is styled exclusively through its own ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-*"})," CSS custom\nproperties, each with a working default — it needs no surrounding design system and stays\nindependent of the ui library. Apps map their tokens onto them; this story maps the ui\ndesign tokens (theme-aware, so it follows light/dark):"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-css",children:"mwork-music-player {\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_mwork_music_player_stories__WEBPACK_IMPORTED_MODULE_4__.UiThemed}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["Additional knobs: ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-font-family"}),",\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-button-background"})," and ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"--mwork-player-cover-size"}),"\n(default ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"16rem"}),")."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"usage-in-an-app",children:"Usage in an app"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-bash",children:"npm i @mojawork/web-components\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"// main.ts — registers all mwork components once\nimport { defineCustomElements } from '@mojawork/web-components/loader';\ndefineCustomElements();\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-html",children:'<mwork-music-player\n tracks=\'["https://moja.work/one.mp3", "https://moja.work/two.mp3"]\'\n></mwork-music-player>\n'})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["In Angular templates, bind the playlist as a property (requires\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:"CUSTOM_ELEMENTS_SCHEMA"}),"): ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("code",{children:'[tracks]="trackUrls"'}),"."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,SingleTrack:()=>SingleTrack,UiThemed:()=>UiThemed,WithoutMeta:()=>WithoutMeta,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),storybook_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/actions");(0,__webpack_require__("../web-components/loader/index.js").u)();const DEMO_TRACKS=["https://moja.work/media/traks/mojawork-v1.mp3","https://moja.work/media/traks/mojawork-v2.mp3","https://moja.work/media/traks/mojawork-v3.mp3"],__WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Music Player",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],argTypes:{tracks:{control:"object",description:"Playlist as an array of track URLs (property binding); as attribute also a JSON array string or a comma/newline separated list."},showMeta:{control:"boolean",description:"Show the ID3/format metadata section below the controls."},mworkTrackChange:{control:!1,description:"Emitted when the active track changes: { index, url }."},mworkMusicMeta:{control:!1,description:"Emitted after a successful metadata parse: title, track, album, artist, cover image, url."}},args:{tracks:DEMO_TRACKS,showMeta:!0},render:args=>({props:{...args,mworkTrackChange:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkTrackChange"),mworkMusicMeta:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkMusicMeta")},template:'\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n '})},Default={},WithoutMeta={args:{showMeta:!1}},SingleTrack={args:{tracks:[DEMO_TRACKS[0]]}},UiThemed={render:args=>({props:{...args,mworkTrackChange:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkTrackChange"),mworkMusicMeta:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkMusicMeta")},template:'\n <style>\n .ui-themed-music-player {\n --mwork-player-font-family: inherit;\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n }\n </style>\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="ui-themed-music-player w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n '})},__namedExportsOrder=["Default","WithoutMeta","SingleTrack","UiThemed"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},WithoutMeta.parameters={...WithoutMeta.parameters,docs:{...WithoutMeta.parameters?.docs,source:{originalSource:"{\n args: {\n showMeta: false\n }\n}",...WithoutMeta.parameters?.docs?.source}}},SingleTrack.parameters={...SingleTrack.parameters,docs:{...SingleTrack.parameters?.docs,source:{originalSource:"{\n args: {\n tracks: [DEMO_TRACKS[0]]\n }\n}",...SingleTrack.parameters?.docs?.source}}},UiThemed.parameters={...UiThemed.parameters,docs:{...UiThemed.parameters?.docs,source:{originalSource:'{\n render: args => ({\n props: {\n ...args,\n mworkTrackChange: action(\'mworkTrackChange\'),\n mworkMusicMeta: action(\'mworkMusicMeta\')\n },\n template: `\n <style>\n .ui-themed-music-player {\n --mwork-player-font-family: inherit;\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n }\n </style>\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="ui-themed-music-player w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n `\n })\n}',...UiThemed.parameters?.docs?.source},description:{story:"Maps the ui design tokens onto the component's own `--mwork-player-*`\ncustom properties — the pattern every ui app uses to theme the player.",...UiThemed.parameters?.docs?.description}}}}}]);
|
package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1365],{"./libs/ui/src/lib/_external/mwork-music-player/mwork-music-player.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,SingleTrack:()=>SingleTrack,UiThemed:()=>UiThemed,WithoutMeta:()=>WithoutMeta,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_storybook_angular__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),storybook_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/actions");(0,__webpack_require__("../web-components/loader/index.js").u)();const DEMO_TRACKS=["https://moja.work/media/traks/mojawork-v1.mp3","https://moja.work/media/traks/mojawork-v2.mp3","https://moja.work/media/traks/mojawork-v3.mp3"],__WEBPACK_DEFAULT_EXPORT__={title:"External/Mwork Music Player",decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_1__.Iz)({schemas:[_angular_core__WEBPACK_IMPORTED_MODULE_0__.CkJ]})],argTypes:{tracks:{control:"object",description:"Playlist as an array of track URLs (property binding); as attribute also a JSON array string or a comma/newline separated list."},showMeta:{control:"boolean",description:"Show the ID3/format metadata section below the controls."},mworkTrackChange:{control:!1,description:"Emitted when the active track changes: { index, url }."},mworkMusicMeta:{control:!1,description:"Emitted after a successful metadata parse: title, track, album, artist, cover image, url."}},args:{tracks:DEMO_TRACKS,showMeta:!0},render:args=>({props:{...args,mworkTrackChange:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkTrackChange"),mworkMusicMeta:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkMusicMeta")},template:'\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n '})},Default={},WithoutMeta={args:{showMeta:!1}},SingleTrack={args:{tracks:[DEMO_TRACKS[0]]}},UiThemed={render:args=>({props:{...args,mworkTrackChange:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkTrackChange"),mworkMusicMeta:(0,storybook_actions__WEBPACK_IMPORTED_MODULE_2__.action)("mworkMusicMeta")},template:'\n <style>\n .ui-themed-music-player {\n --mwork-player-font-family: inherit;\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n }\n </style>\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="ui-themed-music-player w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n '})},__namedExportsOrder=["Default","WithoutMeta","SingleTrack","UiThemed"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{}",...Default.parameters?.docs?.source}}},WithoutMeta.parameters={...WithoutMeta.parameters,docs:{...WithoutMeta.parameters?.docs,source:{originalSource:"{\n args: {\n showMeta: false\n }\n}",...WithoutMeta.parameters?.docs?.source}}},SingleTrack.parameters={...SingleTrack.parameters,docs:{...SingleTrack.parameters?.docs,source:{originalSource:"{\n args: {\n tracks: [DEMO_TRACKS[0]]\n }\n}",...SingleTrack.parameters?.docs?.source}}},UiThemed.parameters={...UiThemed.parameters,docs:{...UiThemed.parameters?.docs,source:{originalSource:'{\n render: args => ({\n props: {\n ...args,\n mworkTrackChange: action(\'mworkTrackChange\'),\n mworkMusicMeta: action(\'mworkMusicMeta\')\n },\n template: `\n <style>\n .ui-themed-music-player {\n --mwork-player-font-family: inherit;\n --mwork-player-color: var(--ui-c-default);\n --mwork-player-background: var(--ui-c-background);\n --mwork-player-spacer: var(--ui-spacer);\n --mwork-player-border-width: var(--ui-border-width);\n --mwork-player-border-color: var(--ui-c-fourthly);\n --mwork-player-border-radius: var(--ui-border-radius);\n --mwork-player-accent: var(--ui-c-primary);\n --mwork-player-accent-contrast: var(--ui-c-invert);\n --mwork-player-error-color: var(--ui-c-error);\n }\n </style>\n <div class="flex justify-center p-4">\n <mwork-music-player\n class="ui-themed-music-player w-full max-w-3xl"\n [tracks]="tracks"\n [showMeta]="showMeta"\n (mworkTrackChange)="mworkTrackChange($event)"\n (mworkMusicMeta)="mworkMusicMeta($event)"\n ></mwork-music-player>\n </div>\n `\n })\n}',...UiThemed.parameters?.docs?.source},description:{story:"Maps the ui design tokens onto the component's own `--mwork-player-*`\ncustom properties — the pattern every ui app uses to theme the player.",...UiThemed.parameters?.docs?.description}}}}}]);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
KREATIVE SOFTWARE RELAY FONTS FREE USE LICENSE
|
|
2
|
+
version 1.2f
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person or entity (the "User") obtaining a copy of the included font files (the "Software") produced by Kreative Software, to utilize, display, embed, or redistribute the Software, subject to the following conditions:
|
|
5
|
+
|
|
6
|
+
1. The User may not sell copies of the Software for a fee.
|
|
7
|
+
|
|
8
|
+
1a. The User may give away copies of the Software free of charge provided this license and any documentation is included verbatim and credit is given to Kreative Korporation or Kreative Software.
|
|
9
|
+
|
|
10
|
+
2. The User may not modify, reverse-engineer, or create any derivative works of the Software.
|
|
11
|
+
|
|
12
|
+
3. Any Software carrying the following font names or variations thereof is not covered by this license and may not be used under the terms of this license: Jewel Hill, Miss Diode n Friends, This is Beckie's font!
|
|
13
|
+
|
|
14
|
+
3a. Any Software carrying a font name ending with the string "Pro CE" is not covered by this license and may not be used under the terms of this license.
|
|
15
|
+
|
|
16
|
+
4. This license becomes null and void if any of the above conditions are not met.
|
|
17
|
+
|
|
18
|
+
5. Kreative Software reserves the right to change this license at any time without notice.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR FROM OTHER DEALINGS IN THE SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
1 0 obj
|
|
3
|
+
<< /Type /Catalog /Pages 2 0 R >>
|
|
4
|
+
endobj
|
|
5
|
+
2 0 obj
|
|
6
|
+
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
|
|
7
|
+
endobj
|
|
8
|
+
3 0 obj
|
|
9
|
+
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595.28 841.89] /Resources << /Font << /F1 5 0 R >> >> /Contents 4 0 R >>
|
|
10
|
+
endobj
|
|
11
|
+
4 0 obj
|
|
12
|
+
<< /Length 119 >>
|
|
13
|
+
stream
|
|
14
|
+
0.8 0.8 0.8 RG
|
|
15
|
+
0.75 w
|
|
16
|
+
242.97 408.94 m
|
|
17
|
+
352.31 408.94 l
|
|
18
|
+
S
|
|
19
|
+
BT
|
|
20
|
+
/F1 24 Tf
|
|
21
|
+
0.2 0.2 0.2 rg
|
|
22
|
+
242.97 420.94 Td
|
|
23
|
+
(moja.work) Tj
|
|
24
|
+
ET
|
|
25
|
+
endstream
|
|
26
|
+
endobj
|
|
27
|
+
5 0 obj
|
|
28
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>
|
|
29
|
+
endobj
|
|
30
|
+
xref
|
|
31
|
+
0 6
|
|
32
|
+
0000000000 65535 f
|
|
33
|
+
0000000009 00000 n
|
|
34
|
+
0000000058 00000 n
|
|
35
|
+
0000000115 00000 n
|
|
36
|
+
0000000247 00000 n
|
|
37
|
+
0000000416 00000 n
|
|
38
|
+
trailer
|
|
39
|
+
<< /Size 6 /Root 1 0 R >>
|
|
40
|
+
startxref
|
|
41
|
+
486
|
|
42
|
+
%%EOF
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"langSelector": {
|
|
3
|
+
"selected": "DE"
|
|
4
|
+
},
|
|
5
|
+
"form": {
|
|
6
|
+
"placeholder": {
|
|
7
|
+
"enterNumber": "Zahl eingeben",
|
|
8
|
+
"enterHex": "Hex-Zahl eingeben",
|
|
9
|
+
"enterUrl": "URL eingeben",
|
|
10
|
+
"enterUniqueName": "Eindeutigen Namen eingeben",
|
|
11
|
+
"enterForbiddenName": "Die Eingabe ist nicht erlaubt.",
|
|
12
|
+
"enterPassword": "Passwort eingeben...",
|
|
13
|
+
"required": "Dies ist ein Pflichtfeld",
|
|
14
|
+
"enterEmail": "E-Mail-Adresse eingeben"
|
|
15
|
+
},
|
|
16
|
+
"errors": {
|
|
17
|
+
"required": "Die Eingabe ist erforderlich.",
|
|
18
|
+
"minlength": "Die Mindestanzahl an Zeichen beträgt: {requiredLength}",
|
|
19
|
+
"maxlength": "Die maximale Zeichenanzahl beträgt: {requiredLength}",
|
|
20
|
+
"min": "Die minimale Eingabe ist:",
|
|
21
|
+
"max": "Die maximale Eingabe ist:",
|
|
22
|
+
"hexNotValid": "Die Eingabe ist nicht hexadezimal",
|
|
23
|
+
"numberNotValid": "Die Eingabe ist keine Nummer",
|
|
24
|
+
"forbiddenName": "Die Eingabe ist nicht erlaubt.",
|
|
25
|
+
"uniqueName": "Die Eingabe ist vergeben.",
|
|
26
|
+
"urlInvalid": "Die URL ist nicht valide.",
|
|
27
|
+
"isbn": "Keine gültige ISBN.",
|
|
28
|
+
"integer": "Bitte nur ganze Zahlen eingeben.",
|
|
29
|
+
"unknown": "Unbekannter Fehler",
|
|
30
|
+
"email": "Bitte eine gültige E-Mail-Adresse eingeben."
|
|
31
|
+
},
|
|
32
|
+
"labels": {}
|
|
33
|
+
},
|
|
34
|
+
"duration": {
|
|
35
|
+
"day": "{count, plural, =0 {} one {# Tag} other {# Tage}}",
|
|
36
|
+
"hours": "{count, plural, =0 {} one {# Stunde} other {# Stunden}}",
|
|
37
|
+
"minutes": "{count, plural, =0 {} one {# Minute} other {# Minuten}}",
|
|
38
|
+
"seconds": "{count, plural, =0 {} one {# Sekunde} other {# Sekunden}}"
|
|
39
|
+
},
|
|
40
|
+
"actions": {
|
|
41
|
+
"delete": "Löschen",
|
|
42
|
+
"discard": "Zurücksetzen",
|
|
43
|
+
"cancel": "Abbrechen",
|
|
44
|
+
"save": "Speichern",
|
|
45
|
+
"action": "Ok",
|
|
46
|
+
"copied": "Kopiert!"
|
|
47
|
+
},
|
|
48
|
+
"splitter": {
|
|
49
|
+
"direction": {
|
|
50
|
+
"left": "Linkes Panel vergrößern",
|
|
51
|
+
"center": "Gleichmäßig teilen",
|
|
52
|
+
"right": "Rechtes Panel vergrößern",
|
|
53
|
+
"split": "Untereinander anordnen"
|
|
54
|
+
},
|
|
55
|
+
"fullscreen": "Vollbild umschalten",
|
|
56
|
+
"zoom": "Zoom umschalten",
|
|
57
|
+
"theme": "Design wechseln",
|
|
58
|
+
"swap": "Panels tauschen"
|
|
59
|
+
},
|
|
60
|
+
"imageEditor": {
|
|
61
|
+
"title": "Bild bearbeiten",
|
|
62
|
+
"replace": "Bild hochladen",
|
|
63
|
+
"edit": "Zuschneiden",
|
|
64
|
+
"zoom": "Zoom",
|
|
65
|
+
"empty": "Noch kein Bild",
|
|
66
|
+
"cropHint": "Ziehen oder Pfeiltasten verschieben den Ausschnitt — Shift mit Pfeiltaste ändert die Größe.",
|
|
67
|
+
"cropLabel": "Zuschneidebereich",
|
|
68
|
+
"errors": {
|
|
69
|
+
"tooBig": "Die Datei ist zu groß.",
|
|
70
|
+
"wrongType": "Nur PNG-, GIF- oder JPEG-Bilder sind erlaubt."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"placeholder": {
|
|
74
|
+
"label": "Platzhalter"
|
|
75
|
+
},
|
|
76
|
+
"barcode": {
|
|
77
|
+
"empty": "Kein Code",
|
|
78
|
+
"invalid": "Kein gültiger Barcode"
|
|
79
|
+
},
|
|
80
|
+
"qrCode": {
|
|
81
|
+
"empty": "Kein Wert",
|
|
82
|
+
"overCapacity": "Passt nicht in einen QR-Code"
|
|
83
|
+
},
|
|
84
|
+
"reader": {
|
|
85
|
+
"empty": "Dieses Dokument hat keinen Inhalt.",
|
|
86
|
+
"sourceLanguage": "Dieser Text steht in seiner Quellsprache ({lang}) — er ist nicht übersetzt.",
|
|
87
|
+
"fallback": "Dieses Dokument fehlt in der angeforderten Sprache und wird stattdessen in {lang} gezeigt. Das ist ein Defekt, kein Angebot.",
|
|
88
|
+
"dropped": "Dieses Dokument enthält HTML, das nicht gezeigt wird: {count} Element(e) ({tags}). Der Text dazwischen ist da, seine Auszeichnung nicht.",
|
|
89
|
+
"showFull": "Vollansicht",
|
|
90
|
+
"showShort": "Kurzfassung",
|
|
91
|
+
"download": "PDF herunterladen",
|
|
92
|
+
"print": "Drucken",
|
|
93
|
+
"stand": "Stand: {date}"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"langSelector": {
|
|
3
|
+
"selected": "EN"
|
|
4
|
+
},
|
|
5
|
+
"form": {
|
|
6
|
+
"placeholder": {
|
|
7
|
+
"enterNumber": "Enter a number",
|
|
8
|
+
"enterHex": "Enter a hex number",
|
|
9
|
+
"enterUrl": "Enter a URL",
|
|
10
|
+
"enterUniqueName": "Enter a unique name",
|
|
11
|
+
"enterForbiddenName": "The input is not allowed.",
|
|
12
|
+
"enterPassword": "Enter password...",
|
|
13
|
+
"required": "This is required",
|
|
14
|
+
"enterEmail": "Enter an email address"
|
|
15
|
+
},
|
|
16
|
+
"errors": {
|
|
17
|
+
"required": "This field is required.",
|
|
18
|
+
"minlength": "The minimum number of characters is: {requiredLength}",
|
|
19
|
+
"maxlength": "The maximum number of characters is: {requiredLength}",
|
|
20
|
+
"min": "The minimum value is:",
|
|
21
|
+
"max": "The maximum value is:",
|
|
22
|
+
"hexNotValid": "Input is not hexadecimal",
|
|
23
|
+
"forbiddenName": "The input is not allowed.",
|
|
24
|
+
"numberNotValid": "The input is not a number.",
|
|
25
|
+
"uniqueName": "The input is already taken.",
|
|
26
|
+
"urlInvalid": "The URL is not valid.",
|
|
27
|
+
"isbn": "Not a valid ISBN.",
|
|
28
|
+
"integer": "Please enter digits only.",
|
|
29
|
+
"unknown": "Unknown Error",
|
|
30
|
+
"email": "Please enter a valid email address."
|
|
31
|
+
},
|
|
32
|
+
"labels": {}
|
|
33
|
+
},
|
|
34
|
+
"duration": {
|
|
35
|
+
"day": "{count, plural, =0 {} one {# Day} other {# Days}}",
|
|
36
|
+
"hours": "{count, plural, =0 {} one {# Hour} other {# Hours}}",
|
|
37
|
+
"minutes": "{count, plural, =0 {} one {# Minute} other {# Minutes}}",
|
|
38
|
+
"seconds": "{count, plural, =0 {} one {# Second} other {# Seconds}}"
|
|
39
|
+
},
|
|
40
|
+
"actions": {
|
|
41
|
+
"delete": "Delete",
|
|
42
|
+
"discard": "Discard",
|
|
43
|
+
"cancel": "Cancel",
|
|
44
|
+
"save": "Save",
|
|
45
|
+
"action": "Ok",
|
|
46
|
+
"copied": "Copied!"
|
|
47
|
+
},
|
|
48
|
+
"splitter": {
|
|
49
|
+
"direction": {
|
|
50
|
+
"left": "Enlarge left panel",
|
|
51
|
+
"center": "Split evenly",
|
|
52
|
+
"right": "Enlarge right panel",
|
|
53
|
+
"split": "Stack panels"
|
|
54
|
+
},
|
|
55
|
+
"fullscreen": "Toggle fullscreen",
|
|
56
|
+
"zoom": "Toggle zoom",
|
|
57
|
+
"theme": "Switch theme",
|
|
58
|
+
"swap": "Swap panels"
|
|
59
|
+
},
|
|
60
|
+
"imageEditor": {
|
|
61
|
+
"title": "Edit image",
|
|
62
|
+
"replace": "Upload image",
|
|
63
|
+
"edit": "Crop",
|
|
64
|
+
"zoom": "Zoom",
|
|
65
|
+
"empty": "No image yet",
|
|
66
|
+
"cropHint": "Drag or use the arrow keys to move the crop area — Shift with an arrow resizes it.",
|
|
67
|
+
"cropLabel": "Crop area",
|
|
68
|
+
"errors": {
|
|
69
|
+
"tooBig": "The file is too large.",
|
|
70
|
+
"wrongType": "Only PNG, GIF or JPEG images are allowed."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"placeholder": {
|
|
74
|
+
"label": "placeholder"
|
|
75
|
+
},
|
|
76
|
+
"barcode": {
|
|
77
|
+
"empty": "No code",
|
|
78
|
+
"invalid": "Not a valid barcode"
|
|
79
|
+
},
|
|
80
|
+
"qrCode": {
|
|
81
|
+
"empty": "No value",
|
|
82
|
+
"overCapacity": "Does not fit in a QR code"
|
|
83
|
+
},
|
|
84
|
+
"reader": {
|
|
85
|
+
"empty": "This document has no content.",
|
|
86
|
+
"sourceLanguage": "This text is shown in its source language ({lang}) — it is not translated.",
|
|
87
|
+
"fallback": "This document is missing in the requested language and is shown in {lang} instead. That is a defect, not an offer.",
|
|
88
|
+
"dropped": "This document contains HTML that is not shown: {count} element(s) ({tags}). The text between them is there, its markup is not.",
|
|
89
|
+
"showFull": "Full version",
|
|
90
|
+
"showShort": "Short version",
|
|
91
|
+
"download": "Download PDF",
|
|
92
|
+
"print": "Print",
|
|
93
|
+
"stand": "As of: {date}"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1322,2074],{"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>UiElectronFormErrorMessageComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var form_error_message_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.css?ngResource"),form_error_message_componentngResource_default=__webpack_require__.n(form_error_message_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ngneat_transloco=__webpack_require__("./node_modules/@ngneat/transloco/fesm2022/ngneat-transloco.mjs");let UiElectronFormErrorMessageComponent=class UiElectronFormErrorMessageComponent{errors=(0,core.input)({});variant=(0,core.input)("field");static propDecorators={errors:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"errors",required:!1,transform:void 0}]}],variant:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"variant",required:!1,transform:void 0}]}]}};UiElectronFormErrorMessageComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-form-error-message",template:"@if (errors()['required']) {\n <span\n >{{ 'form.errors.required' | transloco }}\n </span>\n}\n\n@if (errors()['minlength']) {\n <span>\n {{ 'form.errors.minlength' | transloco }}\n {{ errors()['minlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['maxlength']) {\n <span>\n {{ 'form.errors.maxlength' | transloco }}\n {{ errors()['maxlength']['requiredLength'] }}\n </span>\n}\n\n@if (errors()['min']) {\n <span>\n {{ 'form.errors.min' | transloco }} {{ errors()['min']['min'] }}\n </span>\n}\n@if (errors()['max']) {\n <span>\n {{ 'form.errors.max' | transloco }} {{ errors()['max']['max'] }}\n </span>\n}\n@if (errors()['email']) {\n <span>{{\n 'form.errors.email' | transloco\n }}</span>\n}\n@if (errors()['numberNotValid']) {\n <span>{{\n 'form.errors.numberNotValid' | transloco\n }}</span>\n}\n@if (errors()['hexNotValid']) {\n <span>{{\n 'form.errors.hexNotValid' | transloco\n }}</span>\n}\n@if (errors()['urlInvalid']) {\n <span>{{\n 'form.errors.urlInvalid' | transloco\n }}</span>\n}\n@if (errors()['forbiddenName']) {\n <span>{{\n 'form.errors.forbiddenName' | transloco\n }}</span>\n}\n@if (errors()['uniqueName']) {\n <span>{{\n 'form.errors.uniqueName' | transloco\n }}</span>\n}\n@if (errors()['isbn']) {\n <span>{{\n 'form.errors.isbn' | transloco\n }}</span>\n}\n@if (errors()['integer']) {\n <span>{{\n 'form.errors.integer' | transloco\n }}</span>\n}\n\n@if (\n !errors()['required'] &&\n !errors()['minlength'] &&\n !errors()['maxlength'] &&\n !errors()['min'] &&\n !errors()['max'] &&\n !errors()['email'] &&\n !errors()['numberNotValid'] &&\n !errors()['hexNotValid'] &&\n !errors()['urlInvalid'] &&\n !errors()['forbiddenName'] &&\n !errors()['uniqueName'] &&\n !errors()['isbn'] &&\n !errors()['integer']\n ) {\n <span\n >\n {{ 'form.errors.unknown' | transloco }}\n </span>\n}\n",encapsulation:_debug_node_chunk.gXe.None,host:{"[class.floating]":"variant() === 'floating'"},imports:[ngneat_transloco.Kj],styles:[form_error_message_componentngResource_default()]})],UiElectronFormErrorMessageComponent)},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./libs/ui/src/lib/atoms/_electrons/form-error-message/docs.mdx"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.js"),_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts");function _createMdxContent(props){const _components={code:"code",h3:"h3",h4:"h4",hr:"hr",p:"p",...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{of:_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"electron-form-error-message",children:"Electron: Form Error Message"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["An internal building block (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-electron-form-error-message"}),") that renders\nlocalized validation error messages for form fields — one message per active\nkey of an Angular ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ValidationErrors"})," map (required, minlength, email, …,\nwith a fallback for unknown keys). It is not exported for app consumption;\nthe form components (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-input"}),", ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-checkbox"}),") embed it in their error\noverlays, coordinated by the shared ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"UiFormErrorOverlayService"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"args",children:"args"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("table",{class:"ui",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"@Input"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"type"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("th",{children:"default"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"errors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"ValidationErrors"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"{}"})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"variant"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'field' | 'floating'"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("td",{children:"'field'"})]})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variant-field",children:"Variant: field"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The default look for text-like fields: full field width, flush against the\nfield's bottom edge and deliberately open at the top — it reads as a seamless\ncontinuation of the input's red error border. Used by ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-input"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Field}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"variant-floating",children:"Variant: floating"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["A self-contained box for compact controls: it only fits its text\n(",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"fit-content"}),"), carries a full border including the top edge, rounded with\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"--ui-border-radius"}),", and hovers with a small gap below the control. Used by\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"ui-checkbox"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.Hl,{of:_form_error_message_component_stories_ts__WEBPACK_IMPORTED_MODULE_4__.Floating}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.hr,{}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"positioning-contract",children:"Positioning contract"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The electron positions itself absolutely against its nearest relatively\npositioned ancestor — the embedding form component provides that context (in\nthe stories a placeholder box stands in for the field). Long error lists\nscroll inside the box (",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{children:"max-height: 12rem"}),"); multiple messages are divided by\nhairlines."]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,file_Users_moja_projects_mojawork_mono_node_modules_storybook_addon_docs_dist_mdx_react_shim_js__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.stories.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Field:()=>Field,Floating:()=>Floating,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _storybook_angular__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/angular/dist/index.js"),_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.ts"),_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./libs/ui/src/lib/transloco-modules/transloco-storybook.module.ts"),_form_error_message_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Forms/Electrons/Form Error Message",component:_form_error_message_component__WEBPACK_IMPORTED_MODULE_3__.d,decorators:[(0,_storybook_angular__WEBPACK_IMPORTED_MODULE_0__.Iz)({imports:[_storybook_demos_header_header_component__WEBPACK_IMPORTED_MODULE_1__.b,_form_error_message_component__WEBPACK_IMPORTED_MODULE_3__.d,_transloco_modules_transloco_storybook_module__WEBPACK_IMPORTED_MODULE_2__.o]})],argTypes:{variant:{control:"radio",options:["field","floating"],description:"Overlay look: 'field' continues the wrapped input's error border, 'floating' is a self-contained box for compact controls."},errors:{control:"object",description:"Angular ValidationErrors map; one message per active key."}},args:{variant:"field",errors:{required:!0}},parameters:{docs:{canvas:{sourceState:"none"}}},render:args=>({props:{...args},template:'\n <ui-intern-header theme="theme-light"></ui-intern-header>\n <section class="relative flex flex-col p-4 pb-72">\n <div class="relative h-10 w-96">\n <ui-electron-form-error-message\n [errors]="errors"\n [variant]="variant"\n ></ui-electron-form-error-message>\n </div>\n </section>\n '})},Field={args:{errors:{required:!0,minlength:{requiredLength:3}}}},Floating={args:{variant:"floating"}},__namedExportsOrder=["Field","Floating"];Field.parameters={...Field.parameters,docs:{...Field.parameters?.docs,source:{originalSource:"{\n args: {\n errors: {\n required: true,\n minlength: {\n requiredLength: 3\n }\n }\n }\n}",...Field.parameters?.docs?.source}}},Floating.parameters={...Floating.parameters,docs:{...Floating.parameters?.docs,source:{originalSource:"{\n args: {\n variant: 'floating'\n }\n}",...Floating.parameters?.docs?.source}}}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/atoms/_electrons/form-error-message/form-error-message.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\nui-electron-form-error-message {\n position: absolute;\n bottom: 0;\n left: 0;\n display: flex;\n flex-flow: column;\n /* Same width as the wrapped input (which is `100% - 0.25·spacer` wide) and\n flush against its bottom edge — reads as a continuation of the field's\n error border (aligned on both sides, no gap, no shadow). */\n width: calc(100% - var(--ui-spacer) * 0.25);\n transform: translateY(100%);\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-top: 0;\n border-radius: 0 0 var(--ui-border-radius) var(--ui-border-radius);\n padding: calc(var(--ui-spacer) * 0.25);\n max-height: 12rem;\n overflow-y: auto;\n z-index: 1;\n span {\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n padding-bottom: calc(var(--ui-spacer) * 0.25);\n margin-bottom: calc(var(--ui-spacer) * 0.25);\n\n &:last-of-type {\n border: 0;\n }\n\n &:only-of-type {\n padding-bottom: 0;\n margin-bottom: 0;\n }\n }\n\n /* Self-contained box below compact controls (checkbox): fits its text,\n carries its own full border (incl. top) and hovers with a small gap. */\n &.floating {\n width: fit-content;\n max-width: 100%;\n transform: translateY(calc(100% + var(--ui-spacer) * 0.15));\n border: var(--ui-border-width) solid var(--ui-c-error);\n border-radius: var(--ui-border-radius);\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
|