@kaspernj/api-maker 1.0.2160 → 1.0.2161
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/build/api.d.ts +46 -34
- package/build/api.d.ts.map +1 -1
- package/build/api.js +32 -25
- package/build/attribute-not-loaded-error.d.ts.map +1 -1
- package/build/attribute-not-loaded-error.js +2 -1
- package/build/base-error.d.ts +49 -60
- package/build/base-error.d.ts.map +1 -1
- package/build/base-error.js +3 -2
- package/build/base-model/column.d.ts +2 -2
- package/build/base-model/column.d.ts.map +1 -1
- package/build/base-model/column.js +3 -2
- package/build/base-model/reflection.d.ts +8 -3
- package/build/base-model/reflection.d.ts.map +1 -1
- package/build/base-model/reflection.js +8 -3
- package/build/base-model/scope.d.ts +1 -1
- package/build/base-model/scope.d.ts.map +1 -1
- package/build/base-model/scope.js +3 -2
- package/build/base-model.d.ts +3801 -117
- package/build/base-model.d.ts.map +1 -1
- package/build/base-model.js +271 -143
- package/build/bootstrap/attribute-row.d.ts +12 -0
- package/build/bootstrap/attribute-row.d.ts.map +1 -1
- package/build/bootstrap/attribute-row.js +23 -5
- package/build/bootstrap/attribute-rows.d.ts +8 -0
- package/build/bootstrap/attribute-rows.d.ts.map +1 -1
- package/build/bootstrap/attribute-rows.js +14 -5
- package/build/bootstrap/card.d.ts +17 -0
- package/build/bootstrap/card.d.ts.map +1 -1
- package/build/bootstrap/card.js +30 -10
- package/build/bootstrap/checkbox.d.ts +16 -0
- package/build/bootstrap/checkbox.d.ts.map +1 -1
- package/build/bootstrap/checkbox.js +20 -2
- package/build/bootstrap/checkboxes.d.ts +31 -0
- package/build/bootstrap/checkboxes.d.ts.map +1 -1
- package/build/bootstrap/checkboxes.js +35 -3
- package/build/bootstrap/index.js +2 -1
- package/build/bootstrap/input.d.ts +24 -0
- package/build/bootstrap/input.d.ts.map +1 -1
- package/build/bootstrap/input.js +27 -2
- package/build/bootstrap/invalid-feedback.d.ts.map +1 -1
- package/build/bootstrap/invalid-feedback.js +2 -1
- package/build/bootstrap/paginate.d.ts +5 -0
- package/build/bootstrap/paginate.d.ts.map +1 -1
- package/build/bootstrap/paginate.js +9 -4
- package/build/bootstrap/radio-buttons.js +2 -1
- package/build/bootstrap/select.js +2 -1
- package/build/bootstrap/sort-link.d.ts +10 -0
- package/build/bootstrap/sort-link.d.ts.map +1 -1
- package/build/bootstrap/sort-link.js +15 -4
- package/build/cable-connection-pool.d.ts +201 -24
- package/build/cable-connection-pool.d.ts.map +1 -1
- package/build/cable-connection-pool.js +76 -16
- package/build/cable-subscription-pool.d.ts +186 -20
- package/build/cable-subscription-pool.d.ts.map +1 -1
- package/build/cable-subscription-pool.js +61 -22
- package/build/cable-subscription.d.ts.map +1 -1
- package/build/cable-subscription.js +3 -2
- package/build/cache-key-generator.d.ts +194 -20
- package/build/cache-key-generator.d.ts.map +1 -1
- package/build/cache-key-generator.js +63 -12
- package/build/can-can.d.ts +146 -29
- package/build/can-can.d.ts.map +1 -1
- package/build/can-can.js +105 -19
- package/build/channels-consumer.d.ts +23 -1
- package/build/channels-consumer.d.ts.map +1 -1
- package/build/channels-consumer.js +26 -8
- package/build/collection-loader.js +2 -1
- package/build/collection.d.ts +361 -370
- package/build/collection.d.ts.map +1 -1
- package/build/collection.js +59 -19
- package/build/command-execution.d.ts +50 -26
- package/build/command-execution.d.ts.map +1 -1
- package/build/command-execution.js +31 -13
- package/build/command-submit-data.d.ts +50 -37
- package/build/command-submit-data.d.ts.map +1 -1
- package/build/command-submit-data.js +35 -22
- package/build/commands-pool.d.ts +65 -27
- package/build/commands-pool.d.ts.map +1 -1
- package/build/commands-pool.js +67 -20
- package/build/compose.d.ts +8 -2
- package/build/compose.d.ts.map +1 -1
- package/build/compose.js +9 -2
- package/build/config.d.ts +31 -15
- package/build/config.d.ts.map +1 -1
- package/build/config.js +60 -23
- package/build/custom-error.d.ts.map +1 -1
- package/build/custom-error.js +2 -1
- package/build/data-set-to-attributes.d.ts +14 -2
- package/build/data-set-to-attributes.d.ts.map +1 -1
- package/build/data-set-to-attributes.js +12 -3
- package/build/deserializer.d.ts +116 -2
- package/build/deserializer.d.ts.map +1 -1
- package/build/deserializer.js +13 -2
- package/build/destroy-error.d.ts.map +1 -1
- package/build/destroy-error.js +2 -1
- package/build/devise.d.ts +638 -39
- package/build/devise.d.ts.map +1 -1
- package/build/devise.js +97 -28
- package/build/draggable-sort/controller.d.ts +126 -35
- package/build/draggable-sort/controller.d.ts.map +1 -1
- package/build/draggable-sort/controller.js +100 -28
- package/build/draggable-sort/index.d.ts +55 -0
- package/build/draggable-sort/index.d.ts.map +1 -1
- package/build/draggable-sort/index.js +71 -3
- package/build/draggable-sort/item.d.ts +54 -0
- package/build/draggable-sort/item.d.ts.map +1 -1
- package/build/draggable-sort/item.js +94 -6
- package/build/error-logger.d.ts +30 -14
- package/build/error-logger.d.ts.map +1 -1
- package/build/error-logger.js +22 -11
- package/build/event-connection.d.ts.map +1 -1
- package/build/event-connection.js +3 -2
- package/build/event-emitter-listener.d.ts.map +1 -1
- package/build/event-emitter-listener.js +2 -1
- package/build/event-model-class.d.ts.map +1 -1
- package/build/event-model-class.js +2 -1
- package/build/events.d.ts.map +1 -1
- package/build/events.js +2 -1
- package/build/form.d.ts +23 -0
- package/build/form.d.ts.map +1 -1
- package/build/form.js +16 -4
- package/build/history-expo.d.ts +6 -2
- package/build/history-expo.d.ts.map +1 -1
- package/build/history-expo.js +5 -2
- package/build/history-react-native.d.ts +6 -2
- package/build/history-react-native.d.ts.map +1 -1
- package/build/history-react-native.js +5 -2
- package/build/history.js +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -1
- package/build/inputs/attachment.d.ts +11 -0
- package/build/inputs/attachment.d.ts.map +1 -1
- package/build/inputs/attachment.js +17 -4
- package/build/inputs/auto-submit.d.ts +41 -13
- package/build/inputs/auto-submit.d.ts.map +1 -1
- package/build/inputs/auto-submit.js +16 -4
- package/build/inputs/checkbox.d.ts +15 -0
- package/build/inputs/checkbox.d.ts.map +1 -1
- package/build/inputs/checkbox.js +22 -6
- package/build/inputs/checkboxes.d.ts +16 -0
- package/build/inputs/checkboxes.d.ts.map +1 -1
- package/build/inputs/checkboxes.js +20 -4
- package/build/inputs/id-for-component.d.ts +21 -2
- package/build/inputs/id-for-component.d.ts.map +1 -1
- package/build/inputs/id-for-component.js +9 -2
- package/build/inputs/input-wrapper.d.ts.map +1 -1
- package/build/inputs/input-wrapper.js +2 -1
- package/build/inputs/input.d.ts +36 -0
- package/build/inputs/input.d.ts.map +1 -1
- package/build/inputs/input.js +26 -7
- package/build/inputs/money.d.ts +2 -0
- package/build/inputs/money.d.ts.map +1 -1
- package/build/inputs/money.js +6 -3
- package/build/inputs/name-for-component.d.ts +21 -2
- package/build/inputs/name-for-component.d.ts.map +1 -1
- package/build/inputs/name-for-component.js +9 -2
- package/build/inputs/select.d.ts +33 -0
- package/build/inputs/select.d.ts.map +1 -1
- package/build/inputs/select.js +21 -4
- package/build/instance-of-class-name.d.ts +7 -2
- package/build/instance-of-class-name.d.ts.map +1 -1
- package/build/instance-of-class-name.js +8 -4
- package/build/is-expo.d.ts.map +1 -1
- package/build/is-expo.js +2 -1
- package/build/key-value-store.d.ts +24 -14
- package/build/key-value-store.d.ts.map +1 -1
- package/build/key-value-store.js +22 -12
- package/build/link.d.ts +30 -0
- package/build/link.d.ts.map +1 -1
- package/build/link.js +76 -30
- package/build/logger.d.ts +10 -6
- package/build/logger.d.ts.map +1 -1
- package/build/logger.js +7 -4
- package/build/merge-styles.d.ts +10 -2
- package/build/merge-styles.d.ts.map +1 -1
- package/build/merge-styles.js +10 -3
- package/build/modal.d.ts +2 -0
- package/build/modal.d.ts.map +1 -1
- package/build/modal.js +6 -4
- package/build/model-class-require.d.ts +4 -2
- package/build/model-class-require.d.ts.map +1 -1
- package/build/model-class-require.js +4 -2
- package/build/model-events.d.ts +139 -346
- package/build/model-events.d.ts.map +1 -1
- package/build/model-events.js +21 -9
- package/build/model-name.d.ts +21 -7
- package/build/model-name.d.ts.map +1 -1
- package/build/model-name.js +12 -2
- package/build/model-prop-type.d.ts +533 -26
- package/build/model-prop-type.d.ts.map +1 -1
- package/build/model-prop-type.js +69 -11
- package/build/model-recipes-loader.d.ts +7 -3
- package/build/model-recipes-loader.d.ts.map +1 -1
- package/build/model-recipes-loader.js +4 -2
- package/build/model-recipes-model-loader.d.ts +189 -1493
- package/build/model-recipes-model-loader.d.ts.map +1 -1
- package/build/model-recipes-model-loader.js +119 -17
- package/build/models-response-reader.d.ts +600 -195
- package/build/models-response-reader.d.ts.map +1 -1
- package/build/models-response-reader.js +12 -4
- package/build/models.d.ts +438 -1
- package/build/models.d.ts.map +1 -1
- package/build/models.js +2 -1
- package/build/money-formatter.d.ts +25 -31
- package/build/money-formatter.d.ts.map +1 -1
- package/build/money-formatter.js +11 -8
- package/build/not-loaded-error.d.ts.map +1 -1
- package/build/not-loaded-error.js +2 -1
- package/build/params.d.ts +25 -17
- package/build/params.d.ts.map +1 -1
- package/build/params.js +19 -15
- package/build/preloaded.d.ts +61 -64
- package/build/preloaded.d.ts.map +1 -1
- package/build/preloaded.js +10 -4
- package/build/reset-realtime-runtime-state.d.ts.map +1 -1
- package/build/reset-realtime-runtime-state.js +2 -1
- package/build/resize-observer.d.ts.map +1 -1
- package/build/resize-observer.js +2 -1
- package/build/rest-props-validator.d.ts +2 -2
- package/build/rest-props-validator.d.ts.map +1 -1
- package/build/rest-props-validator.js +3 -2
- package/build/result.d.ts +142 -175
- package/build/result.d.ts.map +1 -1
- package/build/result.js +3 -2
- package/build/router/route.d.ts +50 -0
- package/build/router/route.d.ts.map +1 -1
- package/build/router/route.js +39 -10
- package/build/router/switch.d.ts +37 -1
- package/build/router/switch.d.ts.map +1 -1
- package/build/router/switch.js +29 -7
- package/build/router.d.ts +20 -0
- package/build/router.d.ts.map +1 -1
- package/build/router.js +15 -4
- package/build/routes-native.d.ts +13 -13
- package/build/routes-native.d.ts.map +1 -1
- package/build/routes-native.js +23 -11
- package/build/routes.d.ts +17 -9
- package/build/routes.d.ts.map +1 -1
- package/build/routes.js +7 -2
- package/build/run-last.d.ts.map +1 -1
- package/build/run-last.js +2 -1
- package/build/serializer.d.ts +44 -12
- package/build/serializer.d.ts.map +1 -1
- package/build/serializer.js +36 -7
- package/build/services.d.ts +29 -4
- package/build/services.d.ts.map +1 -1
- package/build/services.js +16 -4
- package/build/session-status-updater.d.ts +73 -25
- package/build/session-status-updater.d.ts.map +1 -1
- package/build/session-status-updater.js +52 -14
- package/build/source-maps-loader.d.ts +88 -33
- package/build/source-maps-loader.d.ts.map +1 -1
- package/build/source-maps-loader.js +74 -18
- package/build/super-admin/config-reader.d.ts.map +1 -1
- package/build/super-admin/config-reader.js +11 -16
- package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts +10 -0
- package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-checkbox.js +16 -4
- package/build/super-admin/edit-page/edit-attribute-content.d.ts +9 -0
- package/build/super-admin/edit-page/edit-attribute-content.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-content.js +15 -4
- package/build/super-admin/edit-page/edit-attribute-input.d.ts +8 -0
- package/build/super-admin/edit-page/edit-attribute-input.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-input.js +13 -4
- package/build/super-admin/edit-page/edit-attribute.d.ts +6 -0
- package/build/super-admin/edit-page/edit-attribute.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute.js +11 -4
- package/build/super-admin/edit-page.d.ts +5 -0
- package/build/super-admin/edit-page.d.ts.map +1 -1
- package/build/super-admin/edit-page.js +11 -5
- package/build/super-admin/has-edit-config.d.ts.map +1 -1
- package/build/super-admin/has-edit-config.js +2 -1
- package/build/super-admin/index-page.d.ts +4 -0
- package/build/super-admin/index-page.d.ts.map +1 -1
- package/build/super-admin/index-page.js +9 -4
- package/build/super-admin/index.d.ts +4 -0
- package/build/super-admin/index.d.ts.map +1 -1
- package/build/super-admin/index.js +12 -6
- package/build/super-admin/layout/header/index.d.ts +4 -0
- package/build/super-admin/layout/header/index.d.ts.map +1 -1
- package/build/super-admin/layout/header/index.js +13 -8
- package/build/super-admin/layout/index.d.ts +24 -0
- package/build/super-admin/layout/index.d.ts.map +1 -1
- package/build/super-admin/layout/index.js +33 -5
- package/build/super-admin/layout/menu/index.d.ts +2 -0
- package/build/super-admin/layout/menu/index.d.ts.map +1 -1
- package/build/super-admin/layout/menu/index.js +8 -6
- package/build/super-admin/layout/menu/menu-content.d.ts +2 -0
- package/build/super-admin/layout/menu/menu-content.d.ts.map +1 -1
- package/build/super-admin/layout/menu/menu-content.js +6 -4
- package/build/super-admin/layout/menu/menu-item.d.ts +9 -0
- package/build/super-admin/layout/menu/menu-item.d.ts.map +1 -1
- package/build/super-admin/layout/menu/menu-item.js +15 -4
- package/build/super-admin/layout/no-access.d.ts +2 -0
- package/build/super-admin/layout/no-access.d.ts.map +1 -1
- package/build/super-admin/layout/no-access.js +7 -5
- package/build/super-admin/model-class-table.d.ts +4 -0
- package/build/super-admin/model-class-table.d.ts.map +1 -1
- package/build/super-admin/model-class-table.js +9 -4
- package/build/super-admin/models.d.ts.map +1 -1
- package/build/super-admin/models.js +2 -1
- package/build/super-admin/show-nav.d.ts +2 -0
- package/build/super-admin/show-nav.d.ts.map +1 -1
- package/build/super-admin/show-nav.js +6 -4
- package/build/super-admin/show-page/belongs-to-attribute-row.d.ts +17 -1
- package/build/super-admin/show-page/belongs-to-attribute-row.d.ts.map +1 -1
- package/build/super-admin/show-page/belongs-to-attribute-row.js +14 -5
- package/build/super-admin/show-page/index.d.ts +4 -0
- package/build/super-admin/show-page/index.d.ts.map +1 -1
- package/build/super-admin/show-page/index.js +9 -4
- package/build/super-admin/show-reflection-actions.d.ts +6 -0
- package/build/super-admin/show-reflection-actions.d.ts.map +1 -1
- package/build/super-admin/show-reflection-actions.js +11 -4
- package/build/super-admin/show-reflection-link.d.ts +4 -0
- package/build/super-admin/show-reflection-link.d.ts.map +1 -1
- package/build/super-admin/show-reflection-link.js +9 -4
- package/build/super-admin/show-reflection-page.d.ts +5 -0
- package/build/super-admin/show-reflection-page.d.ts.map +1 -1
- package/build/super-admin/show-reflection-page.js +10 -4
- package/build/table/column-content.d.ts +155 -19
- package/build/table/column-content.d.ts.map +1 -1
- package/build/table/column-content.js +55 -12
- package/build/table/column-identifier.d.ts +11 -2
- package/build/table/column-identifier.d.ts.map +1 -1
- package/build/table/column-identifier.js +7 -2
- package/build/table/column-visible.d.ts +11 -2
- package/build/table/column-visible.d.ts.map +1 -1
- package/build/table/column-visible.js +8 -2
- package/build/table/components/column.d.ts +2 -0
- package/build/table/components/column.d.ts.map +1 -1
- package/build/table/components/column.js +6 -4
- package/build/table/components/flat-list.d.ts +2 -0
- package/build/table/components/flat-list.d.ts.map +1 -1
- package/build/table/components/flat-list.js +6 -4
- package/build/table/components/header.d.ts +2 -0
- package/build/table/components/header.d.ts.map +1 -1
- package/build/table/components/header.js +6 -4
- package/build/table/components/row.d.ts +2 -0
- package/build/table/components/row.d.ts.map +1 -1
- package/build/table/components/row.js +6 -4
- package/build/table/filters/attribute-element.d.ts +2 -0
- package/build/table/filters/attribute-element.d.ts.map +1 -1
- package/build/table/filters/attribute-element.js +7 -7
- package/build/table/filters/filter-form.d.ts +58 -0
- package/build/table/filters/filter-form.d.ts.map +1 -1
- package/build/table/filters/filter-form.js +72 -9
- package/build/table/filters/filter.d.ts +2 -0
- package/build/table/filters/filter.d.ts.map +1 -1
- package/build/table/filters/filter.js +6 -4
- package/build/table/filters/index.d.ts +127 -0
- package/build/table/filters/index.d.ts.map +1 -1
- package/build/table/filters/index.js +21 -4
- package/build/table/filters/load-search-modal.d.ts +130 -0
- package/build/table/filters/load-search-modal.d.ts.map +1 -1
- package/build/table/filters/load-search-modal.js +28 -6
- package/build/table/filters/reflection-element.d.ts +2 -0
- package/build/table/filters/reflection-element.d.ts.map +1 -1
- package/build/table/filters/reflection-element.js +6 -4
- package/build/table/filters/save-search-modal.d.ts +134 -0
- package/build/table/filters/save-search-modal.d.ts.map +1 -1
- package/build/table/filters/save-search-modal.js +36 -5
- package/build/table/filters/scope-element.d.ts +6 -0
- package/build/table/filters/scope-element.d.ts.map +1 -1
- package/build/table/filters/scope-element.js +13 -8
- package/build/table/header-column-content.d.ts +7 -0
- package/build/table/header-column-content.d.ts.map +1 -1
- package/build/table/header-column-content.js +12 -4
- package/build/table/header-column.d.ts +50 -0
- package/build/table/header-column.d.ts.map +1 -1
- package/build/table/header-column.js +32 -5
- package/build/table/header-select.d.ts +18 -0
- package/build/table/header-select.d.ts.map +1 -1
- package/build/table/header-select.js +19 -4
- package/build/table/model-callback-args.d.ts +116 -3
- package/build/table/model-callback-args.d.ts.map +1 -1
- package/build/table/model-callback-args.js +10 -3
- package/build/table/model-column.d.ts +136 -0
- package/build/table/model-column.d.ts.map +1 -1
- package/build/table/model-column.js +27 -4
- package/build/table/model-row.d.ts +19 -0
- package/build/table/model-row.d.ts.map +1 -1
- package/build/table/model-row.js +24 -4
- package/build/table/select-calculator.d.ts +37 -2
- package/build/table/select-calculator.d.ts.map +1 -1
- package/build/table/select-calculator.js +29 -6
- package/build/table/settings/column-row.d.ts +6 -0
- package/build/table/settings/column-row.d.ts.map +1 -1
- package/build/table/settings/column-row.js +13 -12
- package/build/table/settings/download-action.d.ts +5 -0
- package/build/table/settings/download-action.d.ts.map +1 -1
- package/build/table/settings/download-action.js +10 -4
- package/build/table/settings/index.d.ts +5 -0
- package/build/table/settings/index.d.ts.map +1 -1
- package/build/table/settings/index.js +10 -4
- package/build/table/should-render-loading-content.d.ts +2 -2
- package/build/table/should-render-loading-content.d.ts.map +1 -1
- package/build/table/should-render-loading-content.js +3 -2
- package/build/table/table-settings.d.ts +236 -43
- package/build/table/table-settings.d.ts.map +1 -1
- package/build/table/table-settings.js +104 -20
- package/build/table/table.d.ts +271 -0
- package/build/table/table.d.ts.map +1 -1
- package/build/table/table.js +167 -16
- package/build/table/use-sorting.d.ts +10 -8
- package/build/table/use-sorting.d.ts.map +1 -1
- package/build/table/use-sorting.js +16 -8
- package/build/table/widths.d.ts +55 -8
- package/build/table/widths.d.ts.map +1 -1
- package/build/table/widths.js +25 -2
- package/build/table/worker-plugins-check-all-checkbox.d.ts +18 -0
- package/build/table/worker-plugins-check-all-checkbox.d.ts.map +1 -1
- package/build/table/worker-plugins-check-all-checkbox.js +25 -5
- package/build/table/worker-plugins-checkbox.d.ts +5 -0
- package/build/table/worker-plugins-checkbox.d.ts.map +1 -1
- package/build/table/worker-plugins-checkbox.js +10 -4
- package/build/translated-attributes.d.ts +7 -2
- package/build/translated-attributes.d.ts.map +1 -1
- package/build/translated-attributes.js +8 -2
- package/build/translated-collections.d.ts +11 -2
- package/build/translated-collections.d.ts.map +1 -1
- package/build/translated-collections.js +9 -3
- package/build/updated-attribute.d.ts.map +1 -1
- package/build/updated-attribute.js +2 -1
- package/build/url-encode.d.ts.map +1 -1
- package/build/url-encode.js +2 -1
- package/build/use-can-can.d.ts +2 -2
- package/build/use-can-can.d.ts.map +1 -1
- package/build/use-can-can.js +27 -12
- package/build/use-collection.d.ts +167 -121
- package/build/use-collection.d.ts.map +1 -1
- package/build/use-collection.js +113 -44
- package/build/use-created-event.d.ts +120 -11
- package/build/use-created-event.d.ts.map +1 -1
- package/build/use-created-event.js +10 -7
- package/build/use-current-user-context.d.ts +2 -2
- package/build/use-current-user-context.d.ts.map +1 -1
- package/build/use-current-user-context.js +3 -2
- package/build/use-current-user.d.ts +86 -70
- package/build/use-current-user.d.ts.map +1 -1
- package/build/use-current-user.js +36 -8
- package/build/use-destroyed-event.d.ts +117 -8
- package/build/use-destroyed-event.d.ts.map +1 -1
- package/build/use-destroyed-event.js +29 -22
- package/build/use-input.d.ts +74 -12
- package/build/use-input.d.ts.map +1 -1
- package/build/use-input.js +33 -5
- package/build/use-model-class-event.d.ts +124 -10
- package/build/use-model-class-event.d.ts.map +1 -1
- package/build/use-model-class-event.js +26 -16
- package/build/use-model-event.d.ts +121 -8
- package/build/use-model-event.d.ts.map +1 -1
- package/build/use-model-event.js +24 -19
- package/build/use-model.d.ts +162 -244
- package/build/use-model.d.ts.map +1 -1
- package/build/use-model.js +85 -32
- package/build/use-resize-observer.d.ts.map +1 -1
- package/build/use-resize-observer.js +2 -1
- package/build/use-router.d.ts.map +1 -1
- package/build/use-router.js +2 -1
- package/build/use-screen-layout.d.ts +7 -2
- package/build/use-screen-layout.d.ts.map +1 -1
- package/build/use-screen-layout.js +8 -5
- package/build/use-shape.js +2 -1
- package/build/use-styles.d.ts +11 -5
- package/build/use-styles.d.ts.map +1 -1
- package/build/use-styles.js +16 -9
- package/build/use-updated-event.d.ts +66 -182
- package/build/use-updated-event.d.ts.map +1 -1
- package/build/use-updated-event.js +22 -18
- package/build/use-validation-errors.d.ts.map +1 -1
- package/build/use-validation-errors.js +2 -1
- package/build/utils/button.d.ts +14 -0
- package/build/utils/button.d.ts.map +1 -1
- package/build/utils/button.js +24 -7
- package/build/utils/card.d.ts +9 -0
- package/build/utils/card.d.ts.map +1 -1
- package/build/utils/card.js +13 -2
- package/build/utils/checkbox.d.ts +12 -0
- package/build/utils/checkbox.d.ts.map +1 -1
- package/build/utils/checkbox.js +18 -4
- package/build/utils/checkboxes.d.ts +25 -0
- package/build/utils/checkboxes.d.ts.map +1 -1
- package/build/utils/checkboxes.js +29 -3
- package/build/utils/default-style.d.ts +10 -4
- package/build/utils/default-style.d.ts.map +1 -1
- package/build/utils/default-style.js +12 -4
- package/build/utils/header.d.ts +6 -1
- package/build/utils/header.d.ts.map +1 -1
- package/build/utils/header.js +4 -2
- package/build/utils/icon.d.ts +7 -6
- package/build/utils/icon.d.ts.map +1 -1
- package/build/utils/icon.js +12 -11
- package/build/utils/invalid-feedback.d.ts +4 -0
- package/build/utils/invalid-feedback.d.ts.map +1 -1
- package/build/utils/invalid-feedback.js +8 -2
- package/build/utils/modal.d.ts +2 -0
- package/build/utils/modal.d.ts.map +1 -1
- package/build/utils/modal.js +9 -7
- package/build/utils/text.d.ts +8 -1
- package/build/utils/text.d.ts.map +1 -1
- package/build/utils/text.js +9 -2
- package/build/validation-error.d.ts +5 -2
- package/build/validation-error.d.ts.map +1 -1
- package/build/validation-error.js +5 -2
- package/build/validation-errors.d.ts +57 -15
- package/build/validation-errors.d.ts.map +1 -1
- package/build/validation-errors.js +37 -8
- package/build/websocket-request-client.d.ts +61 -15
- package/build/websocket-request-client.d.ts.map +1 -1
- package/build/websocket-request-client.js +35 -9
- package/build/with-api-maker.d.ts.map +1 -1
- package/build/with-api-maker.js +2 -1
- package/build/with-collection.d.ts.map +1 -1
- package/build/with-collection.js +2 -1
- package/build/with-current-user.d.ts.map +1 -1
- package/build/with-current-user.js +2 -1
- package/build/with-model.d.ts.map +1 -1
- package/build/with-model.js +2 -1
- package/build/with-router.d.ts.map +1 -1
- package/build/with-router.js +2 -1
- package/package.json +4 -3
- package/build/base-component.d.ts +0 -5
- package/build/base-component.d.ts.map +0 -1
- package/build/base-component.js +0 -4
package/build/use-model.d.ts
CHANGED
|
@@ -1,254 +1,172 @@
|
|
|
1
1
|
export default useModel;
|
|
2
|
+
export type BaseModelClass = typeof import("./base-model.js").default;
|
|
3
|
+
export type BaseModelInstance = {
|
|
4
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
5
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
6
|
+
collection: import("./collection.js").default<any>;
|
|
7
|
+
_identifierKey: string | number;
|
|
8
|
+
_markedForDestruction: boolean;
|
|
9
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
10
|
+
newRecord: boolean;
|
|
11
|
+
previousModelData: any;
|
|
12
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
13
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
14
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
15
|
+
uniqueKeyValue: number;
|
|
16
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
17
|
+
attributes(): ModelDataMap;
|
|
18
|
+
can(givenAbilityName: string): boolean;
|
|
19
|
+
clone(): /*elided*/ any;
|
|
20
|
+
cacheKey(): number | string;
|
|
21
|
+
localCacheKey(): string;
|
|
22
|
+
fullCacheKey(): string;
|
|
23
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
24
|
+
model: /*elided*/ any;
|
|
25
|
+
response: ModelCommandResponse;
|
|
26
|
+
}>;
|
|
27
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
28
|
+
model: /*elided*/ any;
|
|
29
|
+
response: ModelCommandResponse;
|
|
30
|
+
}>;
|
|
31
|
+
destroy(): Promise<{
|
|
32
|
+
model: /*elided*/ any;
|
|
33
|
+
response: ModelCommandResponse;
|
|
34
|
+
}>;
|
|
35
|
+
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
36
|
+
getAttributes(): ModelDataMap;
|
|
37
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
38
|
+
identifierKey(): number | string;
|
|
39
|
+
isAssociationLoaded(associationName: string): boolean;
|
|
40
|
+
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
41
|
+
isAssociationPresent(associationName: string): boolean;
|
|
42
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
43
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
44
|
+
isAttributeChanged(attributeName: string): boolean;
|
|
45
|
+
isChanged(): boolean;
|
|
46
|
+
isNewRecord(): boolean;
|
|
47
|
+
isPersisted(): boolean;
|
|
48
|
+
savedChangeToAttribute(attributeName: string): boolean;
|
|
49
|
+
setNewModel(model: /*elided*/ any): void;
|
|
50
|
+
setNewModelData(model: /*elided*/ any): void;
|
|
51
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
52
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
53
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
54
|
+
modelClassData(): ModelClassDataType;
|
|
55
|
+
reload(): Promise<void>;
|
|
56
|
+
save(): Promise<{
|
|
57
|
+
model: /*elided*/ any;
|
|
58
|
+
response?: object;
|
|
59
|
+
}>;
|
|
60
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
61
|
+
simpleModelErrors?: boolean;
|
|
62
|
+
}): Promise<{
|
|
63
|
+
model: /*elided*/ any;
|
|
64
|
+
response: ModelCommandResponse;
|
|
65
|
+
}>;
|
|
66
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
67
|
+
model: /*elided*/ any;
|
|
68
|
+
response?: object;
|
|
69
|
+
}>;
|
|
70
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
71
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
72
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
73
|
+
simpleModelErrors?: boolean;
|
|
74
|
+
}): Promise<{
|
|
75
|
+
response: ModelCommandResponse;
|
|
76
|
+
model: /*elided*/ any;
|
|
77
|
+
}>;
|
|
78
|
+
isValid(): never;
|
|
79
|
+
isValidOnServer(): Promise<{
|
|
80
|
+
valid: boolean;
|
|
81
|
+
errors: ValidationResponseErrors;
|
|
82
|
+
}>;
|
|
83
|
+
modelClass(): BaseModelClassType;
|
|
84
|
+
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
85
|
+
markForDestruction(): void;
|
|
86
|
+
markedForDestruction(): boolean;
|
|
87
|
+
uniqueKey(): number;
|
|
88
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
89
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
90
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
91
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
92
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
93
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
94
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
95
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
96
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
97
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
98
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
99
|
+
_readPreloadedRelationships(preloaded: {
|
|
100
|
+
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
101
|
+
}): void;
|
|
102
|
+
primaryKey(): number | string;
|
|
103
|
+
};
|
|
104
|
+
export type BaseModelWithId = BaseModelInstance & {
|
|
105
|
+
id: () => number | string;
|
|
106
|
+
};
|
|
107
|
+
export type ModelCollection = import("./collection.js").default<any>;
|
|
108
|
+
export type UseModelQueryParams = Record<string, string | number | boolean | object | undefined>;
|
|
109
|
+
export type UseModelCacheValue = string | number | boolean | object | null | undefined;
|
|
110
|
+
export type UseModelMatchParams = Record<string, string | number | undefined>;
|
|
111
|
+
export type UseModelMatch = {
|
|
112
|
+
params: UseModelMatchParams;
|
|
113
|
+
};
|
|
114
|
+
export type UseModelDefaults = Record<string, string | number | boolean | object | undefined>;
|
|
115
|
+
export type UseModelNewIfNoIdConfig = {
|
|
116
|
+
defaults?: () => UseModelDefaults | Promise<UseModelDefaults>;
|
|
117
|
+
};
|
|
118
|
+
export type UseModelModelClassResolver = {
|
|
119
|
+
callback: (args: {
|
|
120
|
+
queryParams: UseModelQueryParams | undefined;
|
|
121
|
+
}) => BaseModelClass;
|
|
122
|
+
};
|
|
123
|
+
export type UseModelArgsFactoryArgs = {
|
|
124
|
+
modelClass: BaseModelClass;
|
|
125
|
+
};
|
|
126
|
+
export type UseModelOnDestroyedArgs = {
|
|
127
|
+
model: BaseModelInstance;
|
|
128
|
+
} & Record<string, BaseModelInstance>;
|
|
129
|
+
export type UseModelEvents = {
|
|
130
|
+
addListener: (eventName: string, callback: () => void) => void;
|
|
131
|
+
removeListener: (eventName: string, callback: () => void) => void;
|
|
132
|
+
};
|
|
2
133
|
export type useModelArgs = {
|
|
3
|
-
|
|
4
|
-
|
|
134
|
+
active?: boolean;
|
|
135
|
+
abilities?: Record<string, string[]>;
|
|
136
|
+
cacheArgs?: UseModelCacheValue[];
|
|
137
|
+
eventUpdated?: boolean;
|
|
138
|
+
events?: UseModelEvents;
|
|
5
139
|
loadByQueryParam?: (args: {
|
|
6
|
-
queryParams:
|
|
7
|
-
}) => number | string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
attributes(): Record<string, any>;
|
|
22
|
-
can(givenAbilityName: string): boolean;
|
|
23
|
-
clone(): /*elided*/ any;
|
|
24
|
-
cacheKey(): number | string;
|
|
25
|
-
localCacheKey(): string;
|
|
26
|
-
fullCacheKey(): string;
|
|
27
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
28
|
-
model: /*elided*/ any;
|
|
29
|
-
response: object;
|
|
30
|
-
}>;
|
|
31
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
32
|
-
model: /*elided*/ any;
|
|
33
|
-
response: any;
|
|
34
|
-
}>;
|
|
35
|
-
destroy(): Promise<{
|
|
36
|
-
model: /*elided*/ any;
|
|
37
|
-
response: object;
|
|
38
|
-
}>;
|
|
39
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
40
|
-
getAttributes(): Record<string, any>;
|
|
41
|
-
handleResponseError(response: object): never;
|
|
42
|
-
identifierKey(): number | string;
|
|
43
|
-
_identifierKey: string | number;
|
|
44
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
45
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
46
|
-
isAssociationPresent(associationName: string): boolean;
|
|
47
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
48
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
49
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
50
|
-
isChanged(): boolean;
|
|
51
|
-
isNewRecord(): boolean;
|
|
52
|
-
isPersisted(): boolean;
|
|
53
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
54
|
-
setNewModel(model: /*elided*/ any): void;
|
|
55
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
56
|
-
previousModelData: any;
|
|
57
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
58
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
59
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
60
|
-
modelClassData(): ModelClassDataType;
|
|
61
|
-
reload(): Promise<void>;
|
|
62
|
-
save(): Promise<{
|
|
63
|
-
model: /*elided*/ any;
|
|
64
|
-
response?: object;
|
|
65
|
-
}>;
|
|
66
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
67
|
-
model: /*elided*/ any;
|
|
68
|
-
response: object;
|
|
69
|
-
}>;
|
|
70
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
71
|
-
model: /*elided*/ any;
|
|
72
|
-
response?: object;
|
|
73
|
-
}>;
|
|
74
|
-
_refreshModelFromResponse(response: object): void;
|
|
75
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
76
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
77
|
-
simpleModelErrors?: boolean;
|
|
78
|
-
}): Promise<{
|
|
79
|
-
response: object;
|
|
80
|
-
model: /*elided*/ any;
|
|
81
|
-
}>;
|
|
82
|
-
isValid(): never;
|
|
83
|
-
isValidOnServer(): Promise<{
|
|
84
|
-
valid: boolean;
|
|
85
|
-
errors: Record<string, any>;
|
|
86
|
-
}>;
|
|
87
|
-
modelClass(): Record<string, any>;
|
|
88
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
89
|
-
markForDestruction(): void;
|
|
90
|
-
_markedForDestruction: boolean;
|
|
91
|
-
markedForDestruction(): boolean;
|
|
92
|
-
uniqueKey(): number;
|
|
93
|
-
uniqueKeyValue: number;
|
|
94
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
95
|
-
readAttribute(attributeName: string): any;
|
|
96
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
97
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
98
|
-
_isPresent(value: any): boolean;
|
|
99
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
100
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
101
|
-
modelClass: any;
|
|
102
|
-
reflectionName: string;
|
|
103
|
-
}): any | null;
|
|
104
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
105
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
106
|
-
_readHasOneReflection({ reflectionName }: {
|
|
107
|
-
modelClass: any;
|
|
108
|
-
reflectionName: string;
|
|
109
|
-
}): any | null;
|
|
110
|
-
_readModelDataFromArgs(args?: {
|
|
111
|
-
data?: {
|
|
112
|
-
b?: Record<string, any>;
|
|
113
|
-
a?: Record<string, any>;
|
|
114
|
-
r?: any;
|
|
115
|
-
};
|
|
116
|
-
collection?: import("./collection.js").default<any>;
|
|
117
|
-
}): void;
|
|
118
|
-
collection: import("./collection.js").default<any>;
|
|
119
|
-
preloadedRelationships: any;
|
|
120
|
-
_readPreloadedRelationships(preloaded: {
|
|
121
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
122
|
-
}): void;
|
|
123
|
-
primaryKey(): number | string;
|
|
124
|
-
};
|
|
125
|
-
}) => void;
|
|
126
|
-
query?: import("./collection.js").default<any>;
|
|
140
|
+
queryParams: UseModelQueryParams | undefined;
|
|
141
|
+
}) => number | string | undefined;
|
|
142
|
+
match?: UseModelMatch;
|
|
143
|
+
newIfNoId?: UseModelNewIfNoIdConfig | boolean;
|
|
144
|
+
newAttributes?: UseModelDefaults;
|
|
145
|
+
onDestroyed?: (ctx: UseModelOnDestroyedArgs) => void;
|
|
146
|
+
optional?: boolean;
|
|
147
|
+
preload?: string[] | object;
|
|
148
|
+
query?: ModelCollection;
|
|
149
|
+
select?: string[] | object;
|
|
150
|
+
};
|
|
151
|
+
export type UseModelArgsArg = useModelArgs | ((args: UseModelArgsFactoryArgs) => useModelArgs);
|
|
152
|
+
export type UseModelShapeHookProps = {
|
|
153
|
+
argsArg?: UseModelArgsArg;
|
|
154
|
+
modelClassArg: BaseModelClass | UseModelModelClassResolver;
|
|
127
155
|
};
|
|
128
156
|
export type UseModelState = {
|
|
129
|
-
model:
|
|
157
|
+
model: BaseModelInstance | undefined;
|
|
130
158
|
notFound: boolean | undefined;
|
|
131
159
|
};
|
|
160
|
+
export type UseModelResult = {
|
|
161
|
+
model: BaseModelInstance | undefined;
|
|
162
|
+
modelId: number | string | undefined;
|
|
163
|
+
notFound: boolean | undefined;
|
|
164
|
+
} & Record<string, BaseModelInstance | number | string | boolean | undefined>;
|
|
132
165
|
/**
|
|
133
|
-
*
|
|
134
|
-
* @param {
|
|
135
|
-
* @
|
|
166
|
+
* useModel.
|
|
167
|
+
* @param {BaseModelClass | UseModelModelClassResolver} modelClassArg
|
|
168
|
+
* @param {UseModelArgsArg} [argsArg]
|
|
169
|
+
* @returns {UseModelResult}
|
|
136
170
|
*/
|
|
137
|
-
|
|
138
|
-
declare function useModel(modelClassArg: any, argsArg?: {}): {
|
|
139
|
-
model: {
|
|
140
|
-
changes: {};
|
|
141
|
-
newRecord: boolean;
|
|
142
|
-
relationshipsCache: {};
|
|
143
|
-
relationships: {};
|
|
144
|
-
abilities: Record<string, any>;
|
|
145
|
-
modelData: {};
|
|
146
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
147
|
-
attributes(): Record<string, any>;
|
|
148
|
-
can(givenAbilityName: string): boolean;
|
|
149
|
-
clone(): /*elided*/ any;
|
|
150
|
-
cacheKey(): number | string;
|
|
151
|
-
localCacheKey(): string;
|
|
152
|
-
fullCacheKey(): string;
|
|
153
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
154
|
-
model: /*elided*/ any;
|
|
155
|
-
response: object;
|
|
156
|
-
}>;
|
|
157
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
158
|
-
model: /*elided*/ any;
|
|
159
|
-
response: any;
|
|
160
|
-
}>;
|
|
161
|
-
destroy(): Promise<{
|
|
162
|
-
model: /*elided*/ any;
|
|
163
|
-
response: object;
|
|
164
|
-
}>;
|
|
165
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
166
|
-
getAttributes(): Record<string, any>;
|
|
167
|
-
handleResponseError(response: object): never;
|
|
168
|
-
identifierKey(): number | string;
|
|
169
|
-
_identifierKey: string | number;
|
|
170
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
171
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
172
|
-
isAssociationPresent(associationName: string): boolean;
|
|
173
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
174
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
175
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
176
|
-
isChanged(): boolean;
|
|
177
|
-
isNewRecord(): boolean;
|
|
178
|
-
isPersisted(): boolean;
|
|
179
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
180
|
-
setNewModel(model: /*elided*/ any): void;
|
|
181
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
182
|
-
previousModelData: any;
|
|
183
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
184
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
185
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
186
|
-
modelClassData(): ModelClassDataType;
|
|
187
|
-
reload(): Promise<void>;
|
|
188
|
-
save(): Promise<{
|
|
189
|
-
model: /*elided*/ any;
|
|
190
|
-
response?: object;
|
|
191
|
-
}>;
|
|
192
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
193
|
-
model: /*elided*/ any;
|
|
194
|
-
response: object;
|
|
195
|
-
}>;
|
|
196
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
197
|
-
model: /*elided*/ any;
|
|
198
|
-
response?: object;
|
|
199
|
-
}>;
|
|
200
|
-
_refreshModelFromResponse(response: object): void;
|
|
201
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
202
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
203
|
-
simpleModelErrors?: boolean;
|
|
204
|
-
}): Promise<{
|
|
205
|
-
response: object;
|
|
206
|
-
model: /*elided*/ any;
|
|
207
|
-
}>;
|
|
208
|
-
isValid(): never;
|
|
209
|
-
isValidOnServer(): Promise<{
|
|
210
|
-
valid: boolean;
|
|
211
|
-
errors: Record<string, any>;
|
|
212
|
-
}>;
|
|
213
|
-
modelClass(): Record<string, any>;
|
|
214
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
215
|
-
markForDestruction(): void;
|
|
216
|
-
_markedForDestruction: boolean;
|
|
217
|
-
markedForDestruction(): boolean;
|
|
218
|
-
uniqueKey(): number;
|
|
219
|
-
uniqueKeyValue: number;
|
|
220
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
221
|
-
readAttribute(attributeName: string): any;
|
|
222
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
223
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
224
|
-
_isPresent(value: any): boolean;
|
|
225
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
226
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
227
|
-
modelClass: any;
|
|
228
|
-
reflectionName: string;
|
|
229
|
-
}): any | null;
|
|
230
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
231
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
232
|
-
_readHasOneReflection({ reflectionName }: {
|
|
233
|
-
modelClass: any;
|
|
234
|
-
reflectionName: string;
|
|
235
|
-
}): any | null;
|
|
236
|
-
_readModelDataFromArgs(args?: {
|
|
237
|
-
data?: {
|
|
238
|
-
b?: Record<string, any>;
|
|
239
|
-
a?: Record<string, any>;
|
|
240
|
-
r?: any;
|
|
241
|
-
};
|
|
242
|
-
collection?: import("./collection.js").default<any>;
|
|
243
|
-
}): void;
|
|
244
|
-
collection: import("./collection.js").default<any>;
|
|
245
|
-
preloadedRelationships: any;
|
|
246
|
-
_readPreloadedRelationships(preloaded: {
|
|
247
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
248
|
-
}): void;
|
|
249
|
-
primaryKey(): number | string;
|
|
250
|
-
};
|
|
251
|
-
modelId: string | number;
|
|
252
|
-
notFound: boolean;
|
|
253
|
-
};
|
|
171
|
+
declare function useModel(modelClassArg: BaseModelClass | UseModelModelClassResolver, argsArg?: UseModelArgsArg): UseModelResult;
|
|
254
172
|
//# sourceMappingURL=use-model.d.ts.map
|
package/build/use-model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-model.d.ts","sourceRoot":"/src/","sources":["use-model.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-model.d.ts","sourceRoot":"/src/","sources":["use-model.js"],"names":[],"mappings":";6BAUc,cAAc,iBAAiB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAwd61d,CAAC;;;yBAA6O,CAAC;;;;;;;gBAAoc,CAAC;;;;;yBAAm7E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAtd7+jB,iBAAiB,GAAG;IAAC,EAAE,EAAE,MAAM,MAAM,GAAG,MAAM,CAAA;CAAC;;kCAE/C,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;iCAC9D,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS;kCACrD,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;4BAC3C;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAC;+BAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;sCAC9D;IAAC,QAAQ,CAAC,EAAE,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;CAAC;yCAC/D;IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAC,WAAW,EAAE,mBAAmB,GAAG,SAAS,CAAA;KAAC,KAAK,cAAc,CAAA;CAAC;sCACpF;IAAC,UAAU,EAAE,cAAc,CAAA;CAAC;sCAC5B;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC;;iBAG9D,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI;oBACjD,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI;;;aAIjD,OAAO;gBACP,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;gBACxB,kBAAkB,EAAE;mBACpB,OAAO;aACP,cAAc;uBACd,CAAC,IAAI,EAAE;QAAC,WAAW,EAAE,mBAAmB,GAAG,SAAS,CAAA;KAAC,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS;YACrF,aAAa;gBACb,uBAAuB,GAAG,OAAO;oBACjC,gBAAgB;kBAChB,CAAC,GAAG,EAAE,uBAAuB,KAAK,IAAI;eACtC,OAAO;cACP,MAAM,EAAE,GAAG,MAAM;YACjB,eAAe;aACf,MAAM,EAAE,GAAG,MAAM;;8BAEjB,YAAY,GAAG,CAAC,CAAC,IAAI,EAAE,uBAAuB,KAAK,YAAY,CAAC;;cAGhE,eAAe;mBACf,cAAc,GAAG,0BAA0B;;;WAM3C,iBAAiB,GAAG,SAAS;cAC7B,OAAO,GAAG,SAAS;;6BAIpB;IACR,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAwYhF;;;;;GAKG;AACH,yCAJW,cAAc,GAAG,0BAA0B,YAC3C,eAAe,GACb,cAAc,CAmB1B"}
|