@wix/patterns-fields 1.95.0 → 1.96.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/dist/cjs/components/address/input/address-input.js +127 -36
- package/dist/cjs/components/address/input/address-input.js.map +1 -1
- package/dist/cjs/components/address/input/address-input.st.css.js +3 -3
- package/dist/cjs/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
- package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/cjs/components/audio/audio-field/controlled-audio.uni.driver.js +3 -2
- package/dist/cjs/components/audio/audio-field/controlled-audio.uni.driver.js.map +1 -1
- package/dist/cjs/components/audio/audio-field/form-audio-field.js +55 -48
- package/dist/cjs/components/audio/audio-field/form-audio-field.js.map +1 -1
- package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js +4 -4
- package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
- package/dist/cjs/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/cjs/components/audio/audio-player/audio-player.st.css.js.map +1 -1
- package/dist/cjs/components/color-view/cell-color-view.st.css.js +3 -3
- package/dist/cjs/components/color-view/cell-color-view.st.css.js.map +1 -1
- package/dist/cjs/components/color-view/color-view.st.css.js +4 -4
- package/dist/cjs/components/color-view/color-view.st.css.js.map +1 -1
- package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js +3 -3
- package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
- package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
- package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
- package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
- package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
- package/dist/cjs/components/field-validation-settings/field-validation-settings-input.js +85 -49
- package/dist/cjs/components/field-validation-settings/field-validation-settings-input.js.map +1 -1
- package/dist/cjs/components/field-validation-settings/field-validation-settings.uni.driver.js +2 -1
- package/dist/cjs/components/field-validation-settings/field-validation-settings.uni.driver.js.map +1 -1
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
- package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
- package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
- package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
- package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
- package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
- package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
- package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
- package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
- package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +7 -7
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/cjs/components/text/text-view.st.css.js +3 -3
- package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
- package/dist/cjs/components/url/form-url.js +22 -9
- package/dist/cjs/components/url/form-url.js.map +1 -1
- package/dist/cjs/components/video/form-video-field.js +35 -28
- package/dist/cjs/components/video/form-video-field.js.map +1 -1
- package/dist/cjs/services/atlas/types.js.map +1 -1
- package/dist/cjs/services/atlas/wix-atlas-service.js +16 -1
- package/dist/cjs/services/atlas/wix-atlas-service.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/types/validation.js.map +1 -1
- package/dist/esm/components/address/input/address-input.js +139 -38
- package/dist/esm/components/address/input/address-input.js.map +1 -1
- package/dist/esm/components/address/input/address-input.st.css.js +2 -2
- package/dist/esm/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
- package/dist/esm/components/audio/audio-field/controlled-audio.uni.driver.js +3 -2
- package/dist/esm/components/audio/audio-field/controlled-audio.uni.driver.js.map +1 -1
- package/dist/esm/components/audio/audio-field/form-audio-field.js +9 -13
- package/dist/esm/components/audio/audio-field/form-audio-field.js.map +1 -1
- package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
- package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
- package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
- package/dist/esm/components/color-view/cell-color-view.st.css.js.map +1 -1
- package/dist/esm/components/color-view/color-view.st.css.js +2 -2
- package/dist/esm/components/color-view/color-view.st.css.js.map +1 -1
- package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
- package/dist/esm/components/document/form-document-field.st.css.js +2 -2
- package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
- package/dist/esm/components/field-validation-settings/field-validation-settings-input.js +45 -10
- package/dist/esm/components/field-validation-settings/field-validation-settings-input.js.map +1 -1
- package/dist/esm/components/field-validation-settings/field-validation-settings.uni.driver.js +2 -1
- package/dist/esm/components/field-validation-settings/field-validation-settings.uni.driver.js.map +1 -1
- package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
- package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
- package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
- package/dist/esm/components/media-image/media-image.st.css.js +3 -3
- package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
- package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
- package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
- package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
- package/dist/esm/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
- package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/esm/components/text/text-view.st.css.js +2 -2
- package/dist/esm/components/url/form-url.js +14 -1
- package/dist/esm/components/url/form-url.js.map +1 -1
- package/dist/esm/components/video/form-video-field.js +8 -1
- package/dist/esm/components/video/form-video-field.js.map +1 -1
- package/dist/esm/services/atlas/wix-atlas-service.js +22 -2
- package/dist/esm/services/atlas/wix-atlas-service.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/types/components/address/input/address-input.d.ts.map +1 -1
- package/dist/types/components/address/input/address-input.st.css.d.ts.map +1 -1
- package/dist/types/components/audio/audio-field/controlled-audio.uni.driver.d.ts +1 -0
- package/dist/types/components/audio/audio-field/controlled-audio.uni.driver.d.ts.map +1 -1
- package/dist/types/components/audio/audio-field/form-audio-field.d.ts.map +1 -1
- package/dist/types/components/audio/audio-field/form-audio-field.st.css.d.ts.map +1 -1
- package/dist/types/components/color-view/cell-color-view.st.css.d.ts.map +1 -1
- package/dist/types/components/color-view/color-view.st.css.d.ts.map +1 -1
- package/dist/types/components/controlled-input.uni.driver.d.ts +1 -0
- package/dist/types/components/controlled-input.uni.driver.d.ts.map +1 -1
- package/dist/types/components/field-validation-settings/field-validation-settings-input.d.ts +4 -1
- package/dist/types/components/field-validation-settings/field-validation-settings-input.d.ts.map +1 -1
- package/dist/types/components/field-validation-settings/field-validation-settings.uni.driver.d.ts +7 -0
- package/dist/types/components/field-validation-settings/field-validation-settings.uni.driver.d.ts.map +1 -1
- package/dist/types/components/multi-document/multi-document-input/form-multi-document.st.css.d.ts.map +1 -1
- package/dist/types/components/reference/cell-multi-reference-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/url/form-url.d.ts.map +1 -1
- package/dist/types/components/video/form-video-field.d.ts.map +1 -1
- package/dist/types/services/atlas/types.d.ts +5 -1
- package/dist/types/services/atlas/types.d.ts.map +1 -1
- package/dist/types/services/atlas/wix-atlas-service.d.ts +6 -1
- package/dist/types/services/atlas/wix-atlas-service.d.ts.map +1 -1
- package/dist/types/types/validation.d.ts +6 -1
- package/dist/types/types/validation.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/components/address/address-input.driver.tsx +17 -1
- package/src/__tests__/components/address/address-input.spec.tsx +207 -1
- package/src/__tests__/components/field-validation-settings/field-validation-settings-input.spec.tsx +87 -0
- package/src/__tests__/components/url/form-url.spec.tsx +63 -0
- package/src/__tests__/components/video/form-video.spec.tsx +17 -0
- package/src/__tests__/exports/controlled-inputs.spec.tsx +46 -0
- package/src/components/address/input/address-input.st.css.ts +2 -2
- package/src/components/address/input/address-input.tsx +163 -50
- package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
- package/src/components/audio/audio-field/controlled-audio.uni.driver.ts +3 -2
- package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
- package/src/components/audio/audio-field/form-audio-field.tsx +59 -53
- package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
- package/src/components/color-view/cell-color-view.st.css.ts +2 -2
- package/src/components/color-view/color-view.st.css.ts +2 -2
- package/src/components/delete-dialog/delete-dialog.st.css.ts +2 -2
- package/src/components/document/form-document-field.st.css.ts +2 -2
- package/src/components/exclamation/exclamation.st.css.ts +2 -2
- package/src/components/field-validation-settings/field-validation-settings-input.tsx +75 -11
- package/src/components/field-validation-settings/field-validation-settings.uni.driver.ts +3 -1
- package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
- package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
- package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
- package/src/components/media-control/paste-url-button.st.css.ts +2 -2
- package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
- package/src/components/media-image/media-image.st.css.ts +3 -3
- package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
- package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
- package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
- package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
- package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
- package/src/components/reference/cell-reference-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
- package/src/components/text/text-view.st.css.ts +2 -2
- package/src/components/url/form-url.tsx +16 -1
- package/src/components/video/form-video-field.tsx +6 -0
- package/src/services/atlas/types.ts +6 -1
- package/src/services/atlas/wix-atlas-service.ts +27 -3
- package/src/styles.global.css +1 -1
- package/src/types/validation.ts +6 -1
- package/dist/cjs/components/media-loader/index.js +0 -10
- package/dist/cjs/components/media-loader/index.js.map +0 -1
- package/dist/cjs/components/media-loader/media-loader.js +0 -37
- package/dist/cjs/components/media-loader/media-loader.js.map +0 -1
- package/dist/cjs/components/media-loader/media-loader.st.css +0 -20
- package/dist/cjs/components/media-loader/media-loader.st.css.js +0 -29
- package/dist/cjs/components/media-loader/media-loader.st.css.js.map +0 -1
- package/dist/esm/components/media-loader/index.js +0 -2
- package/dist/esm/components/media-loader/index.js.map +0 -1
- package/dist/esm/components/media-loader/media-loader.js +0 -8
- package/dist/esm/components/media-loader/media-loader.js.map +0 -1
- package/dist/esm/components/media-loader/media-loader.st.css +0 -20
- package/dist/esm/components/media-loader/media-loader.st.css.js +0 -15
- package/dist/esm/components/media-loader/media-loader.st.css.js.map +0 -1
- package/dist/types/components/media-loader/index.d.ts +0 -2
- package/dist/types/components/media-loader/index.d.ts.map +0 -1
- package/dist/types/components/media-loader/media-loader.d.ts +0 -7
- package/dist/types/components/media-loader/media-loader.d.ts.map +0 -1
- package/dist/types/components/media-loader/media-loader.st.css.d.ts +0 -20
- package/dist/types/components/media-loader/media-loader.st.css.d.ts.map +0 -1
- package/src/components/media-loader/index.ts +0 -1
- package/src/components/media-loader/media-loader.st.css +0 -20
- package/src/components/media-loader/media-loader.st.css.ts +0 -25
- package/src/components/media-loader/media-loader.tsx +0 -30
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "addressinput549716124";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"addressinput549716124__root","tableAddressInput":"addressinput549716124__tableAddressInput"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -10,6 +10,7 @@ import React, {
|
|
|
10
10
|
|
|
11
11
|
import isEqual from 'lodash/isEqual';
|
|
12
12
|
import debounce from 'lodash/debounce';
|
|
13
|
+
import { usePatternsCmsFieldsContainer } from '../../../providers/PatternsFieldsContainerProvider';
|
|
13
14
|
import type { Address } from '../../../types/address';
|
|
14
15
|
import type {
|
|
15
16
|
AddressInputProps as WDSAddressInputProps,
|
|
@@ -36,6 +37,14 @@ import { noop } from '../../../utils';
|
|
|
36
37
|
|
|
37
38
|
const SEARCH_ADDRESS_DEBOUNCE = 250;
|
|
38
39
|
|
|
40
|
+
interface AddressSuggestion {
|
|
41
|
+
formatted: string;
|
|
42
|
+
mainLabel: string;
|
|
43
|
+
secondaryLabel: string;
|
|
44
|
+
searchId?: string;
|
|
45
|
+
address?: AtlasAddress;
|
|
46
|
+
}
|
|
47
|
+
|
|
39
48
|
export interface AddressInputProps
|
|
40
49
|
extends Omit<
|
|
41
50
|
WDSAddressInputProps,
|
|
@@ -85,9 +94,11 @@ export const AddressInput = forwardRef<
|
|
|
85
94
|
},
|
|
86
95
|
forwardedRef,
|
|
87
96
|
) => {
|
|
97
|
+
const { patternsContainer } = usePatternsCmsFieldsContainer();
|
|
98
|
+
const errorHandler = patternsContainer?.errorHandler;
|
|
88
99
|
const atlas = useMemo(
|
|
89
|
-
() => atlasService ?? new WixAtlasService(),
|
|
90
|
-
[atlasService],
|
|
100
|
+
() => atlasService ?? new WixAtlasService(errorHandler),
|
|
101
|
+
[atlasService, errorHandler],
|
|
91
102
|
);
|
|
92
103
|
const { t } = useTranslations();
|
|
93
104
|
|
|
@@ -111,46 +122,107 @@ export const AddressInput = forwardRef<
|
|
|
111
122
|
const clearInputValue = useClearValue(setInputValue, '');
|
|
112
123
|
|
|
113
124
|
const [isSearching, setIsSearching] = useState(false);
|
|
114
|
-
const [searchResults, setSearchResults] = useState<
|
|
125
|
+
const [searchResults, setSearchResults] = useState<AddressSuggestion[]>([]);
|
|
115
126
|
const [searchResultsError, setSearchResultsError] = useState<Error>();
|
|
127
|
+
const requestIdRef = useRef(0);
|
|
128
|
+
const isMountedRef = useRef(true);
|
|
116
129
|
const searchAddress = useMemo(
|
|
117
130
|
() =>
|
|
118
|
-
debounce((query: string) => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
|
|
131
|
+
debounce(async (query: string, requestId: number) => {
|
|
132
|
+
const isCurrent = () =>
|
|
133
|
+
isMountedRef.current && requestId === requestIdRef.current;
|
|
134
|
+
try {
|
|
135
|
+
let suggestions: AddressSuggestion[];
|
|
136
|
+
if (atlas.predictAddress && atlas.getAddress) {
|
|
137
|
+
const predictions = await atlas.predictAddress(query);
|
|
138
|
+
suggestions = predictions.flatMap((prediction) =>
|
|
139
|
+
prediction.searchId && prediction.description
|
|
140
|
+
? [
|
|
141
|
+
{
|
|
142
|
+
searchId: prediction.searchId,
|
|
143
|
+
formatted: prediction.description,
|
|
144
|
+
mainLabel:
|
|
145
|
+
prediction.textStructure?.mainText ??
|
|
146
|
+
prediction.description,
|
|
147
|
+
secondaryLabel:
|
|
148
|
+
prediction.textStructure?.secondaryText ?? '',
|
|
149
|
+
},
|
|
150
|
+
]
|
|
151
|
+
: [],
|
|
152
|
+
);
|
|
153
|
+
} else {
|
|
154
|
+
const addresses = await atlas.searchAddress(query);
|
|
155
|
+
suggestions = addresses.map((result) => {
|
|
156
|
+
const [mainLabel, ...secondary] =
|
|
157
|
+
result.formatted?.split(', ') ?? [];
|
|
158
|
+
return {
|
|
159
|
+
address: result,
|
|
160
|
+
formatted: result.formatted ?? '',
|
|
161
|
+
mainLabel: mainLabel ?? '',
|
|
162
|
+
secondaryLabel: secondary.join(', '),
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
if (isCurrent()) {
|
|
167
|
+
setSearchResults(suggestions);
|
|
168
|
+
}
|
|
169
|
+
} catch (error) {
|
|
170
|
+
if (isCurrent()) {
|
|
171
|
+
setSearchResultsError(
|
|
172
|
+
error instanceof Error ? error : new Error(String(error)),
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
} finally {
|
|
176
|
+
if (isCurrent()) {
|
|
177
|
+
setIsSearching(false);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
126
180
|
}, SEARCH_ADDRESS_DEBOUNCE),
|
|
127
181
|
[atlas],
|
|
128
182
|
);
|
|
129
|
-
|
|
130
|
-
|
|
183
|
+
|
|
184
|
+
const cancelSearch = useCallback(() => {
|
|
185
|
+
requestIdRef.current++;
|
|
186
|
+
searchAddress.cancel();
|
|
187
|
+
setIsSearching(false);
|
|
188
|
+
}, [searchAddress]);
|
|
189
|
+
|
|
190
|
+
useEffect(() => {
|
|
191
|
+
const requests = requestIdRef;
|
|
192
|
+
isMountedRef.current = true;
|
|
193
|
+
return () => {
|
|
194
|
+
isMountedRef.current = false;
|
|
195
|
+
requests.current++;
|
|
131
196
|
searchAddress.cancel();
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
);
|
|
197
|
+
};
|
|
198
|
+
}, [searchAddress]);
|
|
135
199
|
|
|
136
200
|
const onInputChange = useCallback(
|
|
137
201
|
({ target }: React.ChangeEvent<HTMLInputElement>) => {
|
|
138
202
|
onInput?.();
|
|
203
|
+
cancelSearch();
|
|
139
204
|
setInputValue(target.value);
|
|
205
|
+
setSearchResults([]);
|
|
206
|
+
setSearchResultsError(undefined);
|
|
140
207
|
|
|
141
208
|
const trimmedValue = target.value.trim();
|
|
142
209
|
|
|
143
210
|
if (trimmedValue) {
|
|
144
|
-
|
|
211
|
+
setIsSearching(true);
|
|
212
|
+
searchAddress(trimmedValue, requestIdRef.current);
|
|
145
213
|
} else {
|
|
146
214
|
setAddress(undefined);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
setIsSearching(false);
|
|
150
|
-
setSearchResultsError(undefined);
|
|
215
|
+
triggerOnChange(undefined);
|
|
151
216
|
}
|
|
152
217
|
},
|
|
153
|
-
[
|
|
218
|
+
[
|
|
219
|
+
onInput,
|
|
220
|
+
cancelSearch,
|
|
221
|
+
setAddress,
|
|
222
|
+
setInputValue,
|
|
223
|
+
searchAddress,
|
|
224
|
+
triggerOnChange,
|
|
225
|
+
],
|
|
154
226
|
);
|
|
155
227
|
|
|
156
228
|
const addressInputRef = useRef<WDSAddressInputRef>(null);
|
|
@@ -159,25 +231,29 @@ export const AddressInput = forwardRef<
|
|
|
159
231
|
() => ({
|
|
160
232
|
focus: () => addressInputRef.current?.focus(),
|
|
161
233
|
clear: () => {
|
|
234
|
+
cancelSearch();
|
|
162
235
|
clearAddress();
|
|
163
236
|
clearInputValue();
|
|
237
|
+
setSearchResults([]);
|
|
238
|
+
triggerOnChange(undefined);
|
|
164
239
|
},
|
|
165
240
|
}),
|
|
166
|
-
[clearAddress, clearInputValue],
|
|
241
|
+
[cancelSearch, clearAddress, clearInputValue, triggerOnChange],
|
|
167
242
|
);
|
|
168
243
|
|
|
169
244
|
useEffect(() => {
|
|
170
|
-
if (!initialSearchText)
|
|
245
|
+
if (!initialSearchText) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
171
248
|
setInputValue(initialSearchText);
|
|
172
|
-
|
|
249
|
+
setIsSearching(true);
|
|
250
|
+
searchAddress(initialSearchText.trim(), ++requestIdRef.current);
|
|
173
251
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
174
252
|
}, []); // Deliberately run only on mount — initialSearchText is a one-shot seed
|
|
175
253
|
|
|
176
|
-
const isFocusedRef = useRef(false);
|
|
177
254
|
const onSetSelection = useSetSelectionOnFocus();
|
|
178
255
|
const onInputFocus = useCallback(
|
|
179
256
|
(e?: React.FocusEvent<HTMLInputElement>) => {
|
|
180
|
-
isFocusedRef.current = true;
|
|
181
257
|
onSetSelection(e);
|
|
182
258
|
onFocus?.(e);
|
|
183
259
|
},
|
|
@@ -186,40 +262,70 @@ export const AddressInput = forwardRef<
|
|
|
186
262
|
const onInputBlur = useCallback(
|
|
187
263
|
(e: React.FocusEvent<HTMLInputElement>) => {
|
|
188
264
|
setSearchResultsError(undefined);
|
|
189
|
-
|
|
265
|
+
cancelSearch();
|
|
190
266
|
onBlur?.(e);
|
|
191
267
|
},
|
|
192
|
-
[onBlur],
|
|
193
|
-
);
|
|
194
|
-
|
|
195
|
-
const isMountedRef = useRef(true);
|
|
196
|
-
useEffect(
|
|
197
|
-
() => () => {
|
|
198
|
-
isMountedRef.current = false;
|
|
199
|
-
},
|
|
200
|
-
[],
|
|
268
|
+
[onBlur, cancelSearch],
|
|
201
269
|
);
|
|
202
270
|
|
|
203
271
|
const requestFrameCallback = useRequestFrameCallback();
|
|
204
272
|
const onSelect = useCallback(
|
|
205
273
|
async (option: DropdownLayoutValueOption) => {
|
|
206
274
|
const index = Number(option.id);
|
|
207
|
-
const
|
|
275
|
+
const suggestion = searchResults[index];
|
|
208
276
|
|
|
209
|
-
if (!
|
|
277
|
+
if (!suggestion) {
|
|
210
278
|
return;
|
|
211
279
|
}
|
|
212
280
|
|
|
213
281
|
onInput?.();
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
282
|
+
cancelSearch();
|
|
283
|
+
const requestId = requestIdRef.current;
|
|
284
|
+
const isCurrent = () =>
|
|
285
|
+
isMountedRef.current && requestId === requestIdRef.current;
|
|
286
|
+
setIsSearching(true);
|
|
287
|
+
try {
|
|
288
|
+
const resolvedAddress = suggestion.searchId
|
|
289
|
+
? await atlas.getAddress?.(suggestion.searchId)
|
|
290
|
+
: suggestion.address;
|
|
291
|
+
if (!isCurrent()) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
if (!resolvedAddress) {
|
|
295
|
+
throw new Error('Address could not be resolved');
|
|
296
|
+
}
|
|
297
|
+
const selectedAddress = {
|
|
298
|
+
...resolvedAddress,
|
|
299
|
+
formatted: resolvedAddress.formatted || suggestion.formatted,
|
|
300
|
+
};
|
|
301
|
+
setAddress(atlasAddressToAddress(selectedAddress));
|
|
302
|
+
setInputValue(selectedAddress.formatted);
|
|
303
|
+
triggerOnChange(selectedAddress);
|
|
304
|
+
requestFrameCallback(() => {
|
|
305
|
+
if (isCurrent()) {
|
|
306
|
+
onSelectAddress();
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
} catch (error) {
|
|
310
|
+
if (isCurrent()) {
|
|
311
|
+
setSearchResultsError(
|
|
312
|
+
error instanceof Error ? error : new Error(String(error)),
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
} finally {
|
|
316
|
+
if (isCurrent()) {
|
|
317
|
+
setIsSearching(false);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
217
320
|
},
|
|
218
321
|
[
|
|
219
322
|
onInput,
|
|
323
|
+
atlas,
|
|
324
|
+
cancelSearch,
|
|
220
325
|
onSelectAddress,
|
|
221
326
|
requestFrameCallback,
|
|
222
327
|
searchResults,
|
|
328
|
+
setAddress,
|
|
223
329
|
setInputValue,
|
|
224
330
|
triggerOnChange,
|
|
225
331
|
],
|
|
@@ -281,15 +387,12 @@ export const AddressInput = forwardRef<
|
|
|
281
387
|
|
|
282
388
|
const options = useMemo(
|
|
283
389
|
() =>
|
|
284
|
-
searchResults.map((
|
|
285
|
-
const [mainLabel, ...secondaryLabelParts] =
|
|
286
|
-
addr?.formatted?.split(', ') ?? [];
|
|
287
|
-
|
|
390
|
+
searchResults.map((suggestion, index) => {
|
|
288
391
|
return addressInputItemBuilder({
|
|
289
392
|
id: index,
|
|
290
|
-
displayLabel:
|
|
291
|
-
mainLabel: mainLabel
|
|
292
|
-
secondaryLabel:
|
|
393
|
+
displayLabel: suggestion.formatted,
|
|
394
|
+
mainLabel: suggestion.mainLabel,
|
|
395
|
+
secondaryLabel: suggestion.secondaryLabel,
|
|
293
396
|
optionLayout: 'single-line',
|
|
294
397
|
});
|
|
295
398
|
}),
|
|
@@ -297,7 +400,16 @@ export const AddressInput = forwardRef<
|
|
|
297
400
|
);
|
|
298
401
|
|
|
299
402
|
return (
|
|
300
|
-
<div
|
|
403
|
+
<div
|
|
404
|
+
onMouseDown={onMouseDown}
|
|
405
|
+
onKeyDown={onKeyDown}
|
|
406
|
+
onKeyDownCapture={(event) => {
|
|
407
|
+
// The dropdown can stop Escape before it reaches onKeyDown.
|
|
408
|
+
if (event.key === 'Escape') {
|
|
409
|
+
cancelSearch();
|
|
410
|
+
}
|
|
411
|
+
}}
|
|
412
|
+
>
|
|
301
413
|
<WDSAddressInput
|
|
302
414
|
dataHook="address-input"
|
|
303
415
|
{...props}
|
|
@@ -313,6 +425,7 @@ export const AddressInput = forwardRef<
|
|
|
313
425
|
onBlur={onInputBlur}
|
|
314
426
|
autoSelect={false}
|
|
315
427
|
status={inputStatus}
|
|
428
|
+
size="small"
|
|
316
429
|
/>
|
|
317
430
|
</div>
|
|
318
431
|
);
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "actionsmenu2362666947";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"actionsmenu2362666947__root","action":"actionsmenu2362666947__action"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -7,8 +7,8 @@ export function ControlledAudioInputUniDriver(
|
|
|
7
7
|
base: UniDriver,
|
|
8
8
|
body: UniDriver,
|
|
9
9
|
) {
|
|
10
|
-
// The dataHook sits on the AddItem in the empty
|
|
11
|
-
// in the filled one, so `base` is either.
|
|
10
|
+
// The dataHook sits on the AddItem in the empty and loading states and on the
|
|
11
|
+
// wrapper Box in the filled one, so `base` is either.
|
|
12
12
|
const addItem = AddItemUniDriver(base, body);
|
|
13
13
|
const moreButton = base.$('[data-hook="fromAudioInput.button.more"]');
|
|
14
14
|
const deleteAction = body.$('[data-hook="fromAudioInput.button.delete"]');
|
|
@@ -23,6 +23,7 @@ export function ControlledAudioInputUniDriver(
|
|
|
23
23
|
getAddButtonText: () => base.text(),
|
|
24
24
|
clickAddButton: () => addItem.click(),
|
|
25
25
|
isAddButtonFocused: () => addItem.isFocused(),
|
|
26
|
+
isLoading: () => base.$('[data-hook="fromAudioInput.loader"]').exists(),
|
|
26
27
|
getAudioName: () => base.$('[data-hook="fromAudioInput.audioName"]').text(),
|
|
27
28
|
audioPlayerExists: () =>
|
|
28
29
|
base.$('[data-hook="fromAudioInput.player"]').exists(),
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "formaudiofield502767307";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"formaudiofield502767307__root","addItem":"formaudiofield502767307__addItem","mediaTitle":"formaudiofield502767307__mediaTitle"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -3,16 +3,16 @@ import React, { useRef, useMemo } from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { getMediaURL } from '../../../auto-field-types';
|
|
5
5
|
import type { AddItemActions } from '@wix/design-system';
|
|
6
|
-
import { AddItem, AudioPlayer, Box, Text } from '@wix/design-system';
|
|
6
|
+
import { AddItem, AudioPlayer, Box, Loader, Text } from '@wix/design-system';
|
|
7
7
|
|
|
8
8
|
import { useMergedRef, useTranslations, useWithCallback } from '../../../hooks';
|
|
9
9
|
import { getMediaTitle, MEDIA_TYPES } from '../../../utils';
|
|
10
|
+
import { MEDIA_MAX_WIDTH } from '../../../utils/media-constants';
|
|
10
11
|
|
|
11
12
|
import { Z_INDEX_MODAL_POPOVER } from '../../common';
|
|
12
13
|
import type { ControlledInputProps } from '../../../types/controlled-input';
|
|
13
14
|
import type { FormMediaControlProps } from '../../media-control';
|
|
14
15
|
import { useMediaControl, useMediaHandlers } from '../../media-control';
|
|
15
|
-
import { MediaLoader } from '../../media-loader';
|
|
16
16
|
import { ActionsButton } from '../actions/actions-button';
|
|
17
17
|
import { buildAudioActions } from '../actions/audio-actions';
|
|
18
18
|
|
|
@@ -97,61 +97,67 @@ export const FormAudioField: FC<FormAudioFieldProps> = ({
|
|
|
97
97
|
[t, readOnly, handleReplace, handleDownload, handleDelete],
|
|
98
98
|
);
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (!data) {
|
|
105
|
-
return (
|
|
106
|
-
<AddItem
|
|
107
|
-
ref={setInputRef}
|
|
108
|
-
dataHook={dataHook}
|
|
109
|
-
className={style(classes.addItem, {
|
|
110
|
-
disabled: !!readOnly,
|
|
111
|
-
error: invalid,
|
|
112
|
-
})}
|
|
113
|
-
theme="dashes"
|
|
114
|
-
onClick={callMedia}
|
|
115
|
-
disabled={readOnly}
|
|
116
|
-
children={t('CMS.audio.button.add')}
|
|
117
|
-
/>
|
|
118
|
-
);
|
|
119
|
-
}
|
|
100
|
+
// The picker takes over the field while it is open, value or not.
|
|
101
|
+
const showAddItem = loading || !data;
|
|
120
102
|
|
|
121
103
|
return (
|
|
122
|
-
<Box
|
|
123
|
-
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
104
|
+
<Box width="100%" maxWidth={MEDIA_MAX_WIDTH}>
|
|
105
|
+
{showAddItem ? (
|
|
106
|
+
<AddItem
|
|
107
|
+
ref={setInputRef}
|
|
108
|
+
dataHook={dataHook}
|
|
109
|
+
className={style(classes.addItem, {
|
|
110
|
+
disabled: !!readOnly,
|
|
111
|
+
error: invalid,
|
|
112
|
+
})}
|
|
113
|
+
theme="dashes"
|
|
114
|
+
onClick={callMedia}
|
|
115
|
+
disabled={readOnly || loading}
|
|
116
|
+
showIcon={!loading}
|
|
117
|
+
children={
|
|
118
|
+
loading ? (
|
|
119
|
+
<Loader dataHook="fromAudioInput.loader" size="tiny" />
|
|
120
|
+
) : (
|
|
121
|
+
t('CMS.audio.button.add')
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
/>
|
|
125
|
+
) : (
|
|
126
|
+
<Box dataHook={dataHook} direction="vertical" gap="S1">
|
|
127
|
+
<div ref={viewRef} tabIndex={0}>
|
|
128
|
+
<Box
|
|
129
|
+
direction="vertical"
|
|
130
|
+
verticalAlign="middle"
|
|
131
|
+
backgroundColor="D70"
|
|
132
|
+
padding="SP5"
|
|
133
|
+
borderRadius={12}
|
|
134
|
+
>
|
|
135
|
+
<Text
|
|
136
|
+
dataHook="fromAudioInput.audioName"
|
|
137
|
+
className={classes.mediaTitle}
|
|
138
|
+
>
|
|
139
|
+
{getMediaTitle(data)}
|
|
140
|
+
</Text>
|
|
141
|
+
<Box direction="horizontal" marginTop="9px" marginBottom="-3px">
|
|
142
|
+
<AudioPlayer
|
|
143
|
+
dataHook="fromAudioInput.player"
|
|
144
|
+
src={getMediaURL(data)}
|
|
145
|
+
onLoad={onMediaLoad}
|
|
146
|
+
onLoadError={onMediaLoad}
|
|
147
|
+
/>
|
|
148
|
+
<Box marginLeft="SP3" gap="SP1">
|
|
149
|
+
<ActionsButton
|
|
150
|
+
dataHook="fromAudioInput.button.more"
|
|
151
|
+
actionsMenuProps={actionsMenuProps}
|
|
152
|
+
priority="secondary"
|
|
153
|
+
skin="inverted"
|
|
154
|
+
/>
|
|
155
|
+
</Box>
|
|
156
|
+
</Box>
|
|
151
157
|
</Box>
|
|
152
|
-
</
|
|
158
|
+
</div>
|
|
153
159
|
</Box>
|
|
154
|
-
|
|
160
|
+
)}
|
|
155
161
|
</Box>
|
|
156
162
|
);
|
|
157
163
|
};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "audioplayer2335250008";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"audioplayer2335250008__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "cellcolorview938440383";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"cellcolorview938440383__root","hashPrefix":"cellcolorview938440383__hashPrefix"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "colorview65911971";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"colorview65911971__root","view":"colorview65911971__view","fillPreview":"colorview65911971__fillPreview"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "deletedialog3266102737";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"deletedialog3266102737__root","layout":"deletedialog3266102737__layout"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "formdocumentfield1771787540";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"formdocumentfield1771787540__root","viewWrapper":"formdocumentfield1771787540__viewWrapper","textWidth":"formdocumentfield1771787540__textWidth","documentLoader":"formdocumentfield1771787540__documentLoader","addDocument":"formdocumentfield1771787540__addDocument","addItemWrapper":"formdocumentfield1771787540__addItemWrapper"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "exclamation1979955691";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"exclamation1979955691__root","exclamation":"exclamation1979955691__exclamation","actions":"exclamation1979955691__actions","action":"exclamation1979955691__action"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|